Skip to content

Commit fa367ed

Browse files
authored
Merge pull request Sofie-Automation#1318 from bbc/upstream/remove-unused-keyboardmap-and-settings
chore: remove unused keyboardmap and settings
2 parents c58d6ba + a876c6d commit fa367ed

File tree

9 files changed

+9
-357
lines changed

9 files changed

+9
-357
lines changed

meteor/server/migration/1_40_0.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ interface ISettingsOld {
2424
allowRundownResetOnAir: boolean
2525
/** Default duration to use to render parts when no duration is provided */
2626
defaultDisplayDuration: number
27-
/** If true, allows creation of new playlists in the Lobby Gui (rundown list). If false; only pre-existing playlists are allowed. */
28-
allowMultiplePlaylistsInGUI: boolean
2927
/** How many segments of history to show when scrolling back in time (0 = show current segment only) */
3028
followOnAirSegmentsHistory: number
3129
/** Clean up stuff that are older than this [ms] */

packages/meteor-lib/src/KeyboardLayout.ts

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

packages/meteor-lib/src/Settings.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { KeyboardLayouts } from './KeyboardLayout'
2-
31
/**
42
* This is an object specifying installation-wide, User Interface settings.
53
* There are default values for these settings that will be used, unless overriden
@@ -21,8 +19,6 @@ export interface ISettings {
2119
enableUserAccounts: boolean
2220
/** Default duration to use to render parts when no duration is provided */
2321
defaultDisplayDuration: number
24-
/** If true, allows creation of new playlists in the Lobby Gui (rundown list). If false; only pre-existing playlists are allowed. */
25-
allowMultiplePlaylistsInGUI: boolean
2622
/** How many segments of history to show when scrolling back in time (0 = show current segment only) */
2723
followOnAirSegmentsHistory: number
2824
/** Clean up stuff that are older than this [ms] */
@@ -38,12 +34,6 @@ export interface ISettings {
3834
/** Default value used to toggle Shelf options when the 'display' URL argument is not provided. */
3935
defaultShelfDisplayOptions: string
4036

41-
/** The KeyboardPreview is a feature that is not implemented in the main Fork, and is kept here for compatibility */
42-
enableKeyboardPreview: boolean
43-
44-
/** Keyboard map layout (what physical layout to use for the keyboard) */
45-
keyboardMapLayout: KeyboardLayouts.Names
46-
4737
/**
4838
* CSS class applied to the body of the page. Used to include custom implementations that differ from the main Fork.
4939
* I.e. custom CSS etc. Leave undefined if no custom implementation is needed
@@ -71,14 +61,11 @@ export const DEFAULT_SETTINGS = Object.freeze<ISettings>({
7161
allowGrabbingTimeline: true,
7262
enableUserAccounts: false,
7363
defaultDisplayDuration: 3000,
74-
allowMultiplePlaylistsInGUI: false,
7564
poisonKey: 'Escape',
7665
followOnAirSegmentsHistory: 0,
7766
maximumDataAge: 1000 * 60 * 60 * 24 * 100, // 100 days
7867
enableNTPTimeChecker: null,
7968
defaultShelfDisplayOptions: 'buckets,layout,shelfLayout,inspector',
80-
enableKeyboardPreview: false,
81-
keyboardMapLayout: KeyboardLayouts.Names.STANDARD_102_TKL,
8269
useCountdownToFreezeFrame: true,
8370
confirmKeyCode: 'Enter',
8471
})

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export enum RundownLayoutElementType {
4242
FILTER = 'filter',
4343
EXTERNAL_FRAME = 'external_frame',
4444
ADLIB_REGION = 'adlib_region',
45-
KEYBOARD_PREVIEW = 'keyboard_preview', // This is used by TV2
4645
PIECE_COUNTDOWN = 'piece_countdown',
4746
NEXT_INFO = 'next_info',
4847
PLAYLIST_START_TIMER = 'playlist_start_timer',
@@ -256,10 +255,6 @@ export interface RundownLayoutFilter extends RundownLayoutFilterBase {
256255
default: boolean
257256
}
258257

259-
export interface RundownLayoutKeyboardPreview extends RundownLayoutElementBase {
260-
type: RundownLayoutElementType.KEYBOARD_PREVIEW
261-
}
262-
263258
export enum DashboardPanelUnit {
264259
/** Dashboard panels are defined in absolute (em) units */
265260
EM = 'em',
@@ -304,7 +299,6 @@ export type DashboardLayoutShowStyleDisplay = DashboardPanel<RundownLayoutShowSt
304299
export type DashboardLayoutSegmentName = DashboardPanel<RundownLayoutSegmentName>
305300
export type DashboardLayoutPartName = DashboardPanel<RundownLayoutPartName>
306301
export type DashboardLayoutColoredBox = DashboardPanel<RundownLayoutColoredBox>
307-
export type DashboardLayoutKeyboardPreview = DashboardPanel<RundownLayoutKeyboardPreview>
308302
export type DashboardLayoutMiniRundown = DashboardPanel<RundownLayoutMiniRundown>
309303
export type DashboardLayoutFilter = DashboardPanel<
310304
RundownLayoutFilterBase & {

packages/meteor-lib/src/tv2/AHKkeyboardMap.ts

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

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
RundownLayoutEndWords,
2323
RundownLayoutExternalFrame,
2424
RundownLayoutFilterBase,
25-
RundownLayoutKeyboardPreview,
2625
RundownLayoutMiniRundown,
2726
RundownLayoutNextBreakTiming,
2827
RundownLayoutNextInfo,
@@ -55,7 +54,6 @@ import { PieceInstances } from '../collections'
5554
import { ReadonlyDeep } from 'type-fest'
5655
import { TFunction } from 'i18next'
5756
import _ from 'underscore'
58-
import { Settings } from './Settings'
5957
import { UIPartInstances } from '../ui/Collections'
6058

6159
export interface LayoutDescriptor {
@@ -309,9 +307,6 @@ export namespace RundownLayoutsAPI {
309307
RundownLayoutElementType.PIECE_COUNTDOWN,
310308
RundownLayoutElementType.NEXT_INFO,
311309
]
312-
if (Settings.enableKeyboardPreview) {
313-
rundownLayoutSupportedFilters.push(RundownLayoutElementType.KEYBOARD_PREVIEW)
314-
}
315310
registry.registerShelfLayout(RundownLayoutType.RUNDOWN_LAYOUT, {
316311
filtersTitle: 'Tabs',
317312
supportedFilters: rundownLayoutSupportedFilters,
@@ -325,9 +320,6 @@ export namespace RundownLayoutsAPI {
325320
RundownLayoutElementType.TEXT_LABEL,
326321
RundownLayoutElementType.MINI_RUNDOWN,
327322
]
328-
if (Settings.enableKeyboardPreview) {
329-
rundownLayoutSupportedFilters.push(RundownLayoutElementType.KEYBOARD_PREVIEW)
330-
}
331323
registry.registerShelfLayout(RundownLayoutType.DASHBOARD_LAYOUT, {
332324
filtersTitle: 'Panels',
333325
supportedFilters: dashboardLayoutSupportedFilters,
@@ -452,10 +444,6 @@ export namespace RundownLayoutsAPI {
452444
return element.type === RundownLayoutElementType.FILTER
453445
}
454446

455-
export function isKeyboardMap(element: RundownLayoutElementBase): element is RundownLayoutKeyboardPreview {
456-
return element.type === RundownLayoutElementType.KEYBOARD_PREVIEW
457-
}
458-
459447
export function isNextInfo(element: RundownLayoutElementBase): element is RundownLayoutNextInfo {
460448
return element.type === RundownLayoutElementType.NEXT_INFO
461449
}

0 commit comments

Comments
 (0)