mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 21:24:11 +00:00
feat: improve preset building
This commit is contained in:
committed by
Carlos Valente
parent
5bc286145d
commit
a1fab10bfd
@@ -1,5 +1,22 @@
|
||||
/**
|
||||
* Describes all views in Ontime
|
||||
*/
|
||||
export enum OntimeView {
|
||||
Editor = 'editor',
|
||||
Cuesheet = 'cuesheet',
|
||||
Operator = 'op',
|
||||
Timer = 'timer',
|
||||
Backstage = 'backstage',
|
||||
Timeline = 'timeline',
|
||||
StudioClock = 'studio',
|
||||
Countdown = 'countdown',
|
||||
ProjectInfo = 'info',
|
||||
}
|
||||
|
||||
export type URLPreset = {
|
||||
// presets cannot target the editor view
|
||||
target: Omit<OntimeView, 'editor'>;
|
||||
enabled: boolean;
|
||||
alias: string;
|
||||
pathAndParams: string;
|
||||
search: string;
|
||||
};
|
||||
|
||||
@@ -52,7 +52,7 @@ export type { ViewSettings } from './definitions/core/Views.type.js';
|
||||
export type { TimeFormat } from './definitions/core/TimeFormat.type.js';
|
||||
|
||||
// ---> URL Presets
|
||||
export type { URLPreset } from './definitions/core/UrlPreset.type.js';
|
||||
export { OntimeView, type URLPreset } from './definitions/core/UrlPreset.type.js';
|
||||
|
||||
// ---> Custom Fields
|
||||
export type {
|
||||
|
||||
Reference in New Issue
Block a user