Skip to content

Commit 18d339c

Browse files
committed
chore: remove unused layout components
1 parent 7d297a2 commit 18d339c

11 files changed

Lines changed: 0 additions & 431 deletions

File tree

packages/meteor-lib/src/collections/RundownLayouts.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,12 @@ export enum RundownLayoutElementType {
4545
PLAYLIST_START_TIMER = 'playlist_start_timer',
4646
PLAYLIST_END_TIMER = 'playlist_end_timer',
4747
NEXT_BREAK_TIMING = 'next_break_timing',
48-
END_WORDS = 'end_words',
4948
SEGMENT_TIMING = 'segment_timing',
5049
PART_TIMING = 'part_timing',
5150
TEXT_LABEL = 'text_label',
5251
PLAYLIST_NAME = 'playlist_name',
5352
STUDIO_NAME = 'studio_name',
5453
TIME_OF_DAY = 'time_of_day',
55-
SYSTEM_STATUS = 'system_status',
56-
SHOWSTYLE_DISPLAY = 'showstyle_display',
5754
SEGMENT_NAME = 'segment_name',
5855
PART_NAME = 'part_name',
5956
COLORED_BOX = 'colored_box',
@@ -153,11 +150,6 @@ export interface RundownLayoutNextBreakTiming extends RundownLayoutElementBase {
153150
type: RundownLayoutElementType.NEXT_BREAK_TIMING
154151
}
155152

156-
export interface RundownLayoutEndWords extends RundownLayoutElementBase, RequiresActiveLayers {
157-
type: RundownLayoutElementType.PLAYLIST_END_TIMER
158-
hideLabel: boolean
159-
}
160-
161153
export interface RundownLayoutSegmentTiming extends RundownLayoutElementBase, RequiresActiveLayers {
162154
type: RundownLayoutElementType.SEGMENT_TIMING
163155
timingType: 'count_down' | 'count_up'
@@ -190,14 +182,6 @@ export interface RundownLayoutTimeOfDay extends RundownLayoutElementBase {
190182
hideLabel: boolean
191183
}
192184

193-
export interface RundownLayoutSytemStatus extends RundownLayoutElementBase {
194-
type: RundownLayoutElementType.SYSTEM_STATUS
195-
}
196-
197-
export interface RundownLayoutShowStyleDisplay extends RundownLayoutElementBase {
198-
type: RundownLayoutElementType.SHOWSTYLE_DISPLAY
199-
}
200-
201185
export interface RundownLayoutSegmentName extends RundownLayoutElementBase {
202186
type: RundownLayoutElementType.SEGMENT_NAME
203187
segment: 'current' | 'next'
@@ -285,15 +269,12 @@ export type DashboardLayoutNextInfo = DashboardPanel<RundownLayoutNextInfo>
285269
export type DashboardLayoutPlaylistStartTimer = DashboardPanel<RundownLayoutPlaylistStartTimer>
286270
export type DashboardLayoutNextBreakTiming = DashboardPanel<RundownLayoutNextBreakTiming>
287271
export type DashboardLayoutPlaylistEndTimer = DashboardPanel<RundownLayoutPlaylistEndTimer>
288-
export type DashboardLayoutEndsWords = DashboardPanel<RundownLayoutEndWords>
289272
export type DashboardLayoutSegmentCountDown = DashboardPanel<RundownLayoutSegmentTiming>
290273
export type DashboardLayoutPartCountDown = DashboardPanel<RundownLayoutPartTiming>
291274
export type DashboardLayoutTextLabel = DashboardPanel<RundownLayoutTextLabel>
292275
export type DashboardLayoutPlaylistName = DashboardPanel<RundownLayoutPlaylistName>
293276
export type DashboardLayoutStudioName = DashboardPanel<RundownLayoutStudioName>
294277
export type DashboardLayoutTimeOfDay = DashboardPanel<RundownLayoutTimeOfDay>
295-
export type DashboardLayoutSystemStatus = DashboardPanel<RundownLayoutSytemStatus>
296-
export type DashboardLayoutShowStyleDisplay = DashboardPanel<RundownLayoutShowStyleDisplay>
297278
export type DashboardLayoutSegmentName = DashboardPanel<RundownLayoutSegmentName>
298279
export type DashboardLayoutPartName = DashboardPanel<RundownLayoutPartName>
299280
export type DashboardLayoutColoredBox = DashboardPanel<RundownLayoutColoredBox>

packages/webui/src/client/lib/rundownLayouts.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {
2121
type RundownLayoutColoredBox,
2222
type RundownLayoutElementBase,
2323
RundownLayoutElementType,
24-
type RundownLayoutEndWords,
2524
type RundownLayoutExternalFrame,
2625
type RundownLayoutFilterBase,
2726
type RundownLayoutMiniRundown,
@@ -37,9 +36,7 @@ import {
3736
type RundownLayoutSegmentName,
3837
type RundownLayoutSegmentTiming,
3938
type RundownLayoutShelfBase,
40-
type RundownLayoutShowStyleDisplay,
4139
type RundownLayoutStudioName,
42-
type RundownLayoutSytemStatus,
4340
type RundownLayoutTextLabel,
4441
type RundownLayoutTimeOfDay,
4542
RundownLayoutType,
@@ -416,10 +413,6 @@ export namespace RundownLayoutsAPI {
416413
return element.type === RundownLayoutElementType.NEXT_BREAK_TIMING
417414
}
418415

419-
export function isEndWords(element: RundownLayoutElementBase): element is RundownLayoutEndWords {
420-
return element.type === RundownLayoutElementType.END_WORDS
421-
}
422-
423416
export function isSegmentTiming(element: RundownLayoutElementBase): element is RundownLayoutSegmentTiming {
424417
return element.type === RundownLayoutElementType.SEGMENT_TIMING
425418
}
@@ -444,14 +437,6 @@ export namespace RundownLayoutsAPI {
444437
return element.type === RundownLayoutElementType.TIME_OF_DAY
445438
}
446439

447-
export function isSystemStatus(element: RundownLayoutElementBase): element is RundownLayoutSytemStatus {
448-
return element.type === RundownLayoutElementType.SYSTEM_STATUS
449-
}
450-
451-
export function isShowStyleDisplay(element: RundownLayoutElementBase): element is RundownLayoutShowStyleDisplay {
452-
return element.type === RundownLayoutElementType.SHOWSTYLE_DISPLAY
453-
}
454-
455440
export function isSegmentName(element: RundownLayoutElementBase): element is RundownLayoutSegmentName {
456441
return element.type === RundownLayoutElementType.SEGMENT_NAME
457442
}

packages/webui/src/client/styles/main.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ input {
6767
@import 'shelf/dashboard-streamdeck';
6868
@import 'shelf/dashboard';
6969
@import 'shelf/endTimerPanel';
70-
@import 'shelf/endWordsPanel';
7170
@import 'shelf/externalFramePanel';
7271
@import 'shelf/inspector';
7372
@import 'shelf/miniRundownPanel';
@@ -79,10 +78,8 @@ input {
7978
@import 'shelf/segmentNamePanel';
8079
@import 'shelf/segmentTimingPanel';
8180
@import 'shelf/shelf';
82-
@import 'shelf/showStylePanel';
8381
@import 'shelf/startTimerPanel';
8482
@import 'shelf/studioNamePanel';
85-
@import 'shelf/systemStatusPanel';
8683
@import 'shelf/textLabelPanel';
8784
@import 'shelf/timeOfDayPanel';
8885

packages/webui/src/client/styles/shelf/endWordsPanel.scss

Lines changed: 0 additions & 18 deletions
This file was deleted.

packages/webui/src/client/styles/shelf/showStylePanel.scss

Lines changed: 0 additions & 34 deletions
This file was deleted.

packages/webui/src/client/styles/shelf/systemStatusPanel.scss

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/webui/src/client/ui/Settings/components/FilterEditor.tsx

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -742,36 +742,6 @@ export const FilterEditor: React.ComponentType<IProps> = withTranslation()(
742742
)
743743
}
744744

745-
renderEndWords(item: RundownLayoutBase, index: number, isDashboardLayout: boolean) {
746-
const { t } = this.props
747-
return (
748-
<React.Fragment>
749-
<label className="field">
750-
<LabelActual label={t('Name')} />
751-
<EditAttribute attribute={`filters.${index}.name`} obj={item} type="text" collection={RundownLayouts} />
752-
</label>
753-
754-
<label className="field">
755-
<LabelActual label={t('Hide Label')} />
756-
<EditAttribute
757-
attribute={`filters.${index}.hideLabel`}
758-
obj={item}
759-
type="checkbox"
760-
collection={RundownLayouts}
761-
/>
762-
</label>
763-
764-
{this.renderRequiresActiveLayerSettings(
765-
item,
766-
index,
767-
t('Script Source Layers'),
768-
t('Source layers containing script')
769-
)}
770-
{isDashboardLayout && this.renderDashboardLayoutSettings(item, index)}
771-
</React.Fragment>
772-
)
773-
}
774-
775745
renderSegmentTiming(item: RundownLayoutBase, index: number, isDashboardLayout: boolean) {
776746
const { t } = this.props
777747

@@ -1010,34 +980,6 @@ export const FilterEditor: React.ComponentType<IProps> = withTranslation()(
1010980
)
1011981
}
1012982

1013-
renderShowStyleDisplay(item: RundownLayoutBase, index: number, isDashboardLayout: boolean) {
1014-
const { t } = this.props
1015-
return (
1016-
<React.Fragment>
1017-
<label className="field">
1018-
<LabelActual label={t('Name')} />
1019-
<EditAttribute attribute={`filters.${index}.name`} obj={item} type="text" collection={RundownLayouts} />
1020-
</label>
1021-
1022-
{isDashboardLayout && this.renderDashboardLayoutSettings(item, index)}
1023-
</React.Fragment>
1024-
)
1025-
}
1026-
1027-
renderSystemStatus(item: RundownLayoutBase, index: number, isDashboardLayout: boolean) {
1028-
const { t } = this.props
1029-
return (
1030-
<React.Fragment>
1031-
<label className="field">
1032-
<LabelActual label={t('Name')} />
1033-
<EditAttribute attribute={`filters.${index}.name`} obj={item} type="text" collection={RundownLayouts} />
1034-
</label>
1035-
1036-
{isDashboardLayout && this.renderDashboardLayoutSettings(item, index)}
1037-
</React.Fragment>
1038-
)
1039-
}
1040-
1041983
renderTimeOfDay(item: RundownLayoutBase, index: number, isDashboardLayout: boolean) {
1042984
const { t } = this.props
1043985
return (
@@ -1308,8 +1250,6 @@ export const FilterEditor: React.ComponentType<IProps> = withTranslation()(
13081250
return this.renderPlaylistStartTimer(item, index, isDashboardLayout)
13091251
} else if (RundownLayoutsAPI.isPlaylistEndTimer(filter)) {
13101252
return this.renderPlaylistEndTimer(item, index, isDashboardLayout)
1311-
} else if (RundownLayoutsAPI.isEndWords(filter)) {
1312-
return this.renderEndWords(item, index, isDashboardLayout)
13131253
} else if (RundownLayoutsAPI.isSegmentTiming(filter)) {
13141254
return this.renderSegmentCountDown(item, index, isDashboardLayout)
13151255
} else if (RundownLayoutsAPI.isPartTiming(filter)) {
@@ -1328,10 +1268,6 @@ export const FilterEditor: React.ComponentType<IProps> = withTranslation()(
13281268
return this.renderColoredBox(item, index, isDashboardLayout)
13291269
} else if (RundownLayoutsAPI.isTimeOfDay(filter)) {
13301270
return this.renderTimeOfDay(item, index, isDashboardLayout)
1331-
} else if (RundownLayoutsAPI.isShowStyleDisplay(filter)) {
1332-
return this.renderShowStyleDisplay(item, index, isDashboardLayout)
1333-
} else if (RundownLayoutsAPI.isSystemStatus(filter)) {
1334-
return this.renderSystemStatus(item, index, isDashboardLayout)
13351271
} else if (RundownLayoutsAPI.isMiniRundown(filter)) {
13361272
return this.renderMiniRundown(item, index, isDashboardLayout)
13371273
}

packages/webui/src/client/ui/Shelf/EndWordsPanel.tsx

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)