diff --git a/schemas/graphicsSettings.json b/schemas/graphicsSettings.json new file mode 100644 index 0000000..44af791 --- /dev/null +++ b/schemas/graphicsSettings.json @@ -0,0 +1,15 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "properties": { + "scoreboardSkin": { + "type": "string", + "default": "scoreboard/main.html" + } + }, + "required": ["scoreboardSkin"], + "default": { + "scoreboardSkin": "scoreboard/main.html" + } +} diff --git a/src/browser_shared/replicants.ts b/src/browser_shared/replicants.ts index d986f9c..a161499 100644 --- a/src/browser_shared/replicants.ts +++ b/src/browser_shared/replicants.ts @@ -12,5 +12,6 @@ const thisBundle = 'scoreko-dev'; export const exampleReplicant = useReplicant('exampleReplicant', thisBundle); export const playersReplicant = useReplicant('players', thisBundle); export const scoreboardReplicant = useReplicant('scoreboard', thisBundle); +export const graphicsSettingsReplicant = useReplicant('graphicsSettings', thisBundle); export const commentaryReplicant = useReplicant('commentary', thisBundle); diff --git a/src/dashboard/scoreko-dev/views/Graphics.vue b/src/dashboard/scoreko-dev/views/Graphics.vue index 79483f2..4cfc4de 100644 --- a/src/dashboard/scoreko-dev/views/Graphics.vue +++ b/src/dashboard/scoreko-dev/views/Graphics.vue @@ -1,6 +1,7 @@