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/i18n.ts b/src/dashboard/scoreko-dev/i18n.ts index e904a3f..cceb8ef 100644 --- a/src/dashboard/scoreko-dev/i18n.ts +++ b/src/dashboard/scoreko-dev/i18n.ts @@ -46,8 +46,9 @@ type Translations = { graphicsNoConfigured: string; graphicsCopyUrl: string; graphicsDragObs: string; - graphicsOverlayPreview: string; - graphicsPreviewTitle: string; + graphicsScoreboard: string; + graphicsCommentary: string; + graphicsSkinLabel: string; commentaryTitle: string; commentaryCommentator1: string; commentaryCommentator2: string; @@ -120,8 +121,9 @@ const messages: Record = { graphicsNoConfigured: 'There are no graphics configured in this bundle.', graphicsCopyUrl: 'Copy URL', graphicsDragObs: 'Drag into OBS', - graphicsOverlayPreview: 'Overlay preview (real)', - graphicsPreviewTitle: 'Graphic preview', + graphicsScoreboard: 'Scoreboard', + graphicsCommentary: 'Commentary', + graphicsSkinLabel: 'Skin', commentaryTitle: 'Commentary', commentaryCommentator1: 'Commentator #1', commentaryCommentator2: 'Commentator #2', @@ -190,8 +192,9 @@ const messages: Record = { graphicsNoConfigured: 'No hay gráficos configurados en este bundle.', graphicsCopyUrl: 'Copiar URL', graphicsDragObs: 'Arrastrar a OBS', - graphicsOverlayPreview: 'Vista previa del overlay (real)', - graphicsPreviewTitle: 'Vista previa del gráfico', + graphicsScoreboard: 'Scoreboard', + graphicsCommentary: 'Comentario', + graphicsSkinLabel: 'Skin', commentaryTitle: 'Comentario', commentaryCommentator1: 'Comentarista #1', commentaryCommentator2: 'Comentarista #2', diff --git a/src/dashboard/scoreko-dev/views/Graphics.vue b/src/dashboard/scoreko-dev/views/Graphics.vue index f994bef..efe9edb 100644 --- a/src/dashboard/scoreko-dev/views/Graphics.vue +++ b/src/dashboard/scoreko-dev/views/Graphics.vue @@ -1,6 +1,7 @@