refactor: UI for linking events (#763)

This commit is contained in:
Carlos Valente
2024-02-11 15:18:04 +01:00
committed by GitHub
parent 12f81c63ce
commit 5355e45b80
49 changed files with 1353 additions and 596 deletions
@@ -0,0 +1,4 @@
export enum TimeStrategy {
LockEnd = 'lock-end',
LockDuration = 'lock-duration',
}
@@ -1,5 +1,7 @@
import { MaybeString } from '../../index.js';
import { EndAction } from '../EndAction.type.js';
import { TimerType } from '../TimerType.type.js';
import { TimeStrategy } from '../TimeStrategy.type.js';
export enum SupportedEvent {
Event = 'event',
@@ -32,6 +34,8 @@ export type OntimeEvent = OntimeBaseEvent & {
note: string;
endAction: EndAction;
timerType: TimerType;
linkStart: MaybeString; // ID of event to link to
timeStrategy: TimeStrategy;
timeStart: number;
timeEnd: number;
duration: number;
+1
View File
@@ -11,6 +11,7 @@ export {
SupportedEvent,
} from './definitions/core/OntimeEvent.type.js';
export type { OntimeEntryCommonKeys, OntimeRundown, OntimeRundownEntry } from './definitions/core/Rundown.type.js';
export { TimeStrategy } from './definitions/TimeStrategy.type.js';
export { TimerType } from './definitions/TimerType.type.js';
// ---> Project Data