feat: many timers (#706)

* wip: create simple timer class

* refactor: service to manage extra timers

* wip:ui for controlling the extra timer

---------

Co-authored-by: arc-alex <ac@omnivox.dk>
This commit is contained in:
Carlos Valente
2024-01-25 16:51:20 +01:00
committed by GitHub
parent 74e1ae609c
commit 2df3d376ad
17 changed files with 465 additions and 7 deletions
+7 -1
View File
@@ -1,4 +1,4 @@
import { HttpSettings, LogOrigin, OSCSettings, Playback } from 'ontime-types';
import { HttpSettings, LogOrigin, OSCSettings, Playback, SimpleDirection, SimplePlayback } from 'ontime-types';
import 'dotenv/config';
import express from 'express';
@@ -168,6 +168,12 @@ export const startServer = async () => {
publicEventNow: state.publicEventNow,
eventNext: state.eventNext,
publicEventNext: state.publicEventNext,
timer1: {
duration: null,
current: null,
playback: SimplePlayback.Stop,
direction: SimpleDirection.CountDown,
},
});
// load restore point if it exists