mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 03:43:50 +00:00
70e8fbf327
* setup detection of TImerPhase changes * add integration event for transition to warning * add integration event for transition to danger --------- Co-authored-by: Carlos Valente <34649812+cpvalente@users.noreply.github.com>
20 lines
648 B
TypeScript
20 lines
648 B
TypeScript
import { TimerLifeCycle } from 'ontime-types';
|
|
|
|
type CycleLabel = {
|
|
id: number;
|
|
label: string;
|
|
value: keyof typeof TimerLifeCycle;
|
|
};
|
|
|
|
export const cycles: CycleLabel[] = [
|
|
{ id: 1, label: 'On Load', value: 'onLoad' },
|
|
{ id: 2, label: 'On Start', value: 'onStart' },
|
|
{ id: 3, label: 'On Pause', value: 'onPause' },
|
|
{ id: 4, label: 'On Stop', value: 'onStop' },
|
|
{ id: 5, label: 'Every second', value: 'onClock' },
|
|
{ id: 5, label: 'On Timer Update', value: 'onUpdate' },
|
|
{ id: 6, label: 'On Finish', value: 'onFinish' },
|
|
{ id: 7, label: 'On Warning', value: 'onWarning' },
|
|
{ id: 8, label: 'On Danger', value: 'onDanger' },
|
|
];
|