mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 14:14:17 +00:00
Feat/end action (#308)
* feat: end action --------- Co-authored-by: Fabian Posenau <fabian@fphome.de> Co-authored-by: cv <34649812+cpvalente@users.noreply.github.com> Co-authored-by: Fabian Posenau <19673098+kellhogs@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export enum EndAction {
|
||||
Continue = 'continue',
|
||||
Stop = 'stop',
|
||||
LoadNext = 'load-next',
|
||||
PlayNext = 'play-next',
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import { EndAction } from '../EndAction.type.js';
|
||||
import { TimerType } from '../TimerType.type.js';
|
||||
|
||||
export enum SupportedEvent {
|
||||
@@ -28,7 +29,7 @@ export type OntimeEvent = OntimeBaseEvent & {
|
||||
subtitle: string;
|
||||
presenter: string;
|
||||
note: string;
|
||||
timerBehaviour: 'start-end',
|
||||
endAction: EndAction,
|
||||
timerType: TimerType,
|
||||
timeStart: number;
|
||||
timeEnd: number;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { TimerType } from '../TimerType.type.js';
|
||||
import { EndAction } from '../EndAction.type.js';
|
||||
|
||||
export type TimerState = {
|
||||
clock: number; // realtime clock
|
||||
@@ -12,4 +13,5 @@ export type TimerState = {
|
||||
selectedEventId: string | null;
|
||||
duration: number | null;
|
||||
timerType: TimerType | null;
|
||||
endAction: EndAction | null;
|
||||
};
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Alias } from './definitions/core/Alias.type.js';
|
||||
import { DatabaseModel } from './definitions/DataModel.type.js';
|
||||
import { EndAction } from './definitions/EndAction.type.js';
|
||||
import { EventData } from './definitions/core/EventData.type.js';
|
||||
import { Message } from './definitions/runtime/MessageControl.type.js';
|
||||
import {
|
||||
@@ -28,6 +29,7 @@ export type { DatabaseModel };
|
||||
|
||||
// ---> Rundown
|
||||
export { TimerType };
|
||||
export { EndAction };
|
||||
export { SupportedEvent };
|
||||
export type { OntimeBaseEvent, OntimeBlock, OntimeDelay, OntimeEvent };
|
||||
export type { OntimeRundown, OntimeRundownEntry };
|
||||
|
||||
Reference in New Issue
Block a user