This commit is contained in:
2026-10-19 02:34:50 +07:00
parent 06af1e047d
commit e2f8a3302e
15 changed files with 109 additions and 32 deletions
+4 -2
View File
@@ -93,15 +93,17 @@ export function parseRemote(value: unknown): RemoteState {
'UNSPECIFIED',
'COVER',
'INTRO',
'INTRO_DONE',
'',
'CONCLUSION',
'CONCLUSION_DONE',
'',
'RESULTS',
'TIMER',
'TEXT',
],
'state.mode',
) || 1
if (![1, 2, 4, 6, 7, 8].includes(mode))
throw fieldError('state.mode', 'актуальный режим экрана', s.mode, 'Некорректный режим экрана')
const duration = integer(s.timerDurationSeconds ?? 600, 1, 86400, 'state.timerDurationSeconds')
const remaining = integer(
s.timerRemainingSeconds ?? 0,