This repository has been archived by the owner on Mar 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add device config manifest (#24)
* feat: add device config manifest * chore: update deps Co-authored-by: Jan Starzak <jan.starzak@gmail.com>
- Loading branch information
1 parent
41d95d0
commit 84a1e97
Showing
5 changed files
with
94 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
module.exports = { | ||
globals: { | ||
'ts-jest': { | ||
tsConfigFile: 'tsconfig.jest.json' | ||
} | ||
tsConfig: 'tsconfig.jest.json', | ||
}, | ||
}, | ||
moduleFileExtensions: [ | ||
'js', | ||
'ts', | ||
'js' | ||
], | ||
transform: { | ||
'^.+\\.(ts|tsx)$': './node_modules/ts-jest/preprocessor.js' | ||
'^.+\\.(ts|tsx)$': 'ts-jest', | ||
}, | ||
testMatch: [ | ||
'**/__tests__/**/*.spec.(ts|js)' | ||
'**/__tests__/**/*.spec.(ts|js)', | ||
], | ||
testPathIgnorePatterns: [ | ||
'integrationTests' | ||
], | ||
'integrationTests', | ||
], | ||
testEnvironment: 'node', | ||
coverageThreshold: { | ||
global: { | ||
branches: 100, | ||
functions: 100, | ||
lines: 100, | ||
statements: 100 | ||
} | ||
branches: 100, | ||
functions: 100, | ||
lines: 100, | ||
statements: 100, | ||
}, | ||
}, | ||
coverageDirectory: "./coverage/", | ||
collectCoverage: false | ||
coverageDirectory: './coverage/', | ||
collectCoverage: false, | ||
preset: 'ts-jest', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/** | ||
* This file contains the manifest for the config as displayed in the server-core | ||
* UI. | ||
*/ | ||
import { DeviceConfigManifest,ConfigManifestEntryType } from 'tv-automation-server-core-integration' | ||
|
||
export const MOS_DEVICE_CONFIG_MANIFEST: DeviceConfigManifest = { | ||
deviceConfig: [ | ||
{ | ||
id: 'mosId', | ||
name: 'MOS ID of Gateway (Sofie MOS ID)', | ||
type: ConfigManifestEntryType.STRING | ||
|
||
}, | ||
{ | ||
id: 'debugLogging', | ||
name: 'Activate Debug Logging', | ||
type: ConfigManifestEntryType.BOOLEAN | ||
}, | ||
{ | ||
id: 'devices', | ||
name: 'Attached SubDevices', | ||
type: ConfigManifestEntryType.TABLE, | ||
isSubDevices: true, | ||
defaultType: 'default', | ||
config: { | ||
'default': [ | ||
{ | ||
id: 'primary.id', | ||
name: 'Primary ID (Newsroom System MOS ID)', | ||
columnName: 'Primary ID', | ||
type: ConfigManifestEntryType.STRING | ||
}, | ||
{ | ||
id: 'primary.host', | ||
name: 'Primary Host (IP or Hostname)', | ||
columnName: 'Primary Host', | ||
type: ConfigManifestEntryType.STRING | ||
}, | ||
{ | ||
id: 'secondary.id', | ||
name: 'Secondary ID (Newsroom System MOS ID)', | ||
columnName: 'Secondary ID', | ||
type: ConfigManifestEntryType.STRING | ||
}, | ||
{ | ||
id: 'secondary.host', | ||
name: 'Secondary Host (IP or Hostname)', | ||
columnName: 'Secondary Host', | ||
type: ConfigManifestEntryType.STRING | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters