mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 04:43:35 +00:00
feat: event cue (#473)
* feat: parse cue * refactor: get delay from backend * feat: add cue to UI * refactor: remove deprecated delay logic * refactor: extract studio clock specific logic * refactor: extract utilities * refactor: fix issue with missing key * style: prevent cue overflow * style: prevent whitespace wrap * feat: add support for cues in integrations
This commit is contained in:
@@ -26,6 +26,7 @@ export type OntimeBlock = OntimeBaseEvent & {
|
||||
|
||||
export type OntimeEvent = OntimeBaseEvent & {
|
||||
type: SupportedEvent.Event;
|
||||
cue: string;
|
||||
title: string;
|
||||
subtitle: string;
|
||||
presenter: string;
|
||||
|
||||
+28
-53
@@ -1,75 +1,50 @@
|
||||
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, TimerMessage } from './definitions/runtime/MessageControl.type.js';
|
||||
import {
|
||||
OntimeBaseEvent,
|
||||
OntimeBlock,
|
||||
OntimeDelay,
|
||||
OntimeEvent,
|
||||
SupportedEvent,
|
||||
} from './definitions/core/OntimeEvent.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, 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';
|
||||
import { TimerState } from './definitions/runtime/TimerState.type.js';
|
||||
import { TimerType } from './definitions/TimerType.type.js';
|
||||
import { TitleBlock } from './definitions/runtime/TitleBlock.type.js';
|
||||
import { UserFields } from './definitions/core/UserFields.type.js';
|
||||
import { ViewSettings } from './definitions/core/Views.type.js';
|
||||
import { MaybeNumber } from './utils/utils.type.js';
|
||||
|
||||
// DATA MODEL
|
||||
export type { DatabaseModel };
|
||||
export type { DatabaseModel } from './definitions/DataModel.type.js';
|
||||
|
||||
// ---> Rundown
|
||||
export { TimerType };
|
||||
export { EndAction };
|
||||
export { SupportedEvent };
|
||||
export type { OntimeBaseEvent, OntimeBlock, OntimeDelay, OntimeEvent };
|
||||
export type { OntimeEntryCommonKeys, OntimeRundown, OntimeRundownEntry };
|
||||
export { EndAction } from './definitions/EndAction.type.js';
|
||||
export {
|
||||
type OntimeBaseEvent,
|
||||
type OntimeBlock,
|
||||
type OntimeDelay,
|
||||
type OntimeEvent,
|
||||
SupportedEvent,
|
||||
} from './definitions/core/OntimeEvent.type.js';
|
||||
export type { OntimeEntryCommonKeys, OntimeRundown, OntimeRundownEntry } from './definitions/core/Rundown.type.js';
|
||||
export { TimerType } from './definitions/TimerType.type.js';
|
||||
|
||||
// ---> Event
|
||||
export type { EventData };
|
||||
// ---> Event Data
|
||||
export type { EventData } from './definitions/core/EventData.type.js';
|
||||
|
||||
// ---> Settings
|
||||
export type { Settings };
|
||||
export type { Settings } from './definitions/core/Settings.type.js';
|
||||
|
||||
// ---> Views
|
||||
export type { ViewSettings };
|
||||
export type { ViewSettings } from './definitions/core/Views.type.js';
|
||||
|
||||
// ---> Aliases
|
||||
export type { Alias };
|
||||
export type { Alias } from './definitions/core/Alias.type.js';
|
||||
|
||||
// ---> User Fields
|
||||
export type { UserFields };
|
||||
export type { UserFields } from './definitions/core/UserFields.type.js';
|
||||
|
||||
// ---> OSC
|
||||
export type { OscSubscription, OSCSettings, OscSubscriptionOptions };
|
||||
export type { OSCSettings, OscSubscription, OscSubscriptionOptions } from './definitions/core/OscSettings.type.js';
|
||||
|
||||
// ---> HTTP
|
||||
|
||||
// SERVER RUNTIME
|
||||
export { LogLevel };
|
||||
export type { Log, LogMessage };
|
||||
export { LogOrigin };
|
||||
export { Playback };
|
||||
export { TimerLifeCycle };
|
||||
export { type Log, LogLevel, type LogMessage, LogOrigin } from './definitions/runtime/Logger.type.js';
|
||||
export { Playback } from './definitions/runtime/Playback.type.js';
|
||||
export { TimerLifeCycle } from './definitions/core/TimerLifecycle.type.js';
|
||||
export type { Message, TimerMessage } from './definitions/runtime/MessageControl.type.js';
|
||||
|
||||
export type { Message };
|
||||
export type { TimerMessage };
|
||||
export type { Loaded };
|
||||
export type { RuntimeStore };
|
||||
export type { TimerState };
|
||||
export type { TitleBlock };
|
||||
export type { Loaded } from './definitions/runtime/Playlist.type.js';
|
||||
export type { RuntimeStore } from './definitions/runtime/RuntimeStore.type.js';
|
||||
export type { TimerState } from './definitions/runtime/TimerState.type.js';
|
||||
export type { TitleBlock } from './definitions/runtime/TitleBlock.type.js';
|
||||
|
||||
// CLIENT
|
||||
|
||||
// UTILITIES
|
||||
export type { MaybeNumber };
|
||||
// UTILITY TYPES
|
||||
export type { MaybeNumber } from './utils/utils.type.js';
|
||||
|
||||
Reference in New Issue
Block a user