mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 02:43:50 +00:00
refactor: cuesheet v2 (#435)
* 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
This commit is contained in:
@@ -30,8 +30,8 @@ export type OntimeEvent = OntimeBaseEvent & {
|
||||
subtitle: string;
|
||||
presenter: string;
|
||||
note: string;
|
||||
endAction: EndAction,
|
||||
timerType: TimerType,
|
||||
endAction: EndAction;
|
||||
timerType: TimerType;
|
||||
timeStart: number;
|
||||
timeEnd: number;
|
||||
duration: number;
|
||||
@@ -49,4 +49,5 @@ export type OntimeEvent = OntimeBaseEvent & {
|
||||
user8: string;
|
||||
user9: string;
|
||||
revision: number;
|
||||
delay?: number; // calculated at runtime
|
||||
};
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import { OntimeBlock, OntimeDelay, OntimeEvent } from './OntimeEvent.type';
|
||||
import { OntimeBlock, OntimeDelay, OntimeEvent } from './OntimeEvent.type.js';
|
||||
|
||||
export type OntimeRundownEntry = OntimeDelay | OntimeBlock | OntimeEvent;
|
||||
export type OntimeRundown = OntimeRundownEntry[];
|
||||
|
||||
// we need to create a manual union type since keys cannot be used in type unions
|
||||
export type OntimeEntryCommonKeys = keyof OntimeEvent | keyof OntimeDelay | keyof OntimeBlock;
|
||||
|
||||
@@ -16,3 +16,12 @@ export type LogMessage = {
|
||||
type: 'ontime-log';
|
||||
payload: Log;
|
||||
};
|
||||
|
||||
export enum LogOrigin {
|
||||
Client = 'CLIENT',
|
||||
Playback = 'PLAYBACK',
|
||||
Rx = 'RX',
|
||||
Server = 'SERVER',
|
||||
Tx = 'TX',
|
||||
User = 'USER'
|
||||
}
|
||||
|
||||
@@ -10,11 +10,11 @@ import {
|
||||
OntimeEvent,
|
||||
SupportedEvent,
|
||||
} from './definitions/core/OntimeEvent.type.js';
|
||||
import { OntimeRundown, OntimeRundownEntry } from './definitions/core/Rundown.type.js';
|
||||
import { OntimeEntryCommonKeys, OntimeRundown, OntimeRundownEntry } from './definitions/core/Rundown.type.js';
|
||||
import { OSCSettings, OscSubscription, OscSubscriptionOptions } from './definitions/core/OscSettings.type.js';
|
||||
import { Playback } from './definitions/runtime/Playback.type.js';
|
||||
import { Loaded } from './definitions/runtime/Playlist.type.js';
|
||||
import { Log, LogLevel, LogMessage } from './definitions/runtime/Logger.type.js';
|
||||
import { Log, LogLevel, LogMessage, LogOrigin } from './definitions/runtime/Logger.type.js';
|
||||
import { RuntimeStore } from './definitions/runtime/RuntimeStore.type.js';
|
||||
import { Settings } from './definitions/core/Settings.type.js';
|
||||
import { TimerLifeCycle } from './definitions/core/TimerLifecycle.type.js';
|
||||
@@ -32,7 +32,7 @@ export { TimerType };
|
||||
export { EndAction };
|
||||
export { SupportedEvent };
|
||||
export type { OntimeBaseEvent, OntimeBlock, OntimeDelay, OntimeEvent };
|
||||
export type { OntimeRundown, OntimeRundownEntry };
|
||||
export type { OntimeEntryCommonKeys, OntimeRundown, OntimeRundownEntry };
|
||||
|
||||
// ---> Event
|
||||
export type { EventData };
|
||||
@@ -57,6 +57,7 @@ export type { OscSubscription, OSCSettings, OscSubscriptionOptions };
|
||||
// SERVER RUNTIME
|
||||
export { LogLevel };
|
||||
export type { Log, LogMessage };
|
||||
export { LogOrigin };
|
||||
export { Playback };
|
||||
export { TimerLifeCycle };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user