mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 08:53:51 +00:00
3603b836f6
* refactor: typescript migration * chore: remove prop-types package * refactor: file structure * refactor: migrate ontime table to tanstack table 8 * refactor: rundown controller uses service as data source * refactor: convert to typescript * feat: caching store * refactor: add delay values to rundown * feat: toggle past visibility * chore: update tests * refactor: add extra fields to CSV * style: show skipped events * chore: add route to navigation menu * style: allow jumping to bottom * chore: add tests
40 lines
766 B
TypeScript
40 lines
766 B
TypeScript
import { EndAction, OntimeBlock, OntimeDelay, OntimeEvent, SupportedEvent, TimerType } from 'ontime-types';
|
|
|
|
export const event: Omit<OntimeEvent, 'id' | 'delay'> = {
|
|
title: '',
|
|
subtitle: '',
|
|
presenter: '',
|
|
note: '',
|
|
endAction: EndAction.None,
|
|
timerType: TimerType.CountDown,
|
|
timeStart: 0,
|
|
timeEnd: 0,
|
|
duration: 0,
|
|
isPublic: false,
|
|
skip: false,
|
|
colour: '',
|
|
user0: '',
|
|
user1: '',
|
|
user2: '',
|
|
user3: '',
|
|
user4: '',
|
|
user5: '',
|
|
user6: '',
|
|
user7: '',
|
|
user8: '',
|
|
user9: '',
|
|
type: SupportedEvent.Event,
|
|
revision: 0,
|
|
};
|
|
|
|
export const delay: Omit<OntimeDelay, 'id'> = {
|
|
duration: 0,
|
|
type: SupportedEvent.Delay,
|
|
revision: 0,
|
|
};
|
|
|
|
export const block: Omit<OntimeBlock, 'id'> = {
|
|
title: '',
|
|
type: SupportedEvent.Block,
|
|
};
|