* chore: upgrade relevant deps

* fix: electron app to tray

* chore: cleanup dictionary

* feat: handle several messages in a event

* ux: disable irrelevant buttons in browser

* feat: parse and validate subscriptions

* feat: create UI for OSC Integration

* fix: cleanup logger behaviour

* feat: allow OSC settings to be changed at runtime
This commit is contained in:
Carlos Valente
2023-03-23 08:33:22 +01:00
committed by GitHub
parent 73533600a0
commit e937af62b1
36 changed files with 925 additions and 765 deletions
@@ -1,7 +1,7 @@
import { TimerLifeCycle } from './TimerLifecycle.type';
import { TimerLifeCycleKey } from './TimerLifecycle.type.js';
export type TimerLifeCycleKey = keyof typeof TimerLifeCycle;
export type OscSubscription = { [key in TimerLifeCycleKey]?: { message: string; enabled: boolean } };
export type OscSubscriptionOptions = { id: string; message: string; enabled: boolean };
export type OscSubscription = { [key in TimerLifeCycleKey]: OscSubscriptionOptions[] };
export interface OSCSettings {
portIn: number;
@@ -6,3 +6,5 @@ export enum TimerLifeCycle {
onUpdate = 'onUpdate',
onFinish = 'onFinish',
}
export type TimerLifeCycleKey = keyof typeof TimerLifeCycle;
+2 -2
View File
@@ -11,7 +11,7 @@ import {
SupportedEvent,
} from './definitions/core/OntimeEvent.type.js';
import { OntimeRundown, OntimeRundownEntry } from './definitions/core/Rundown.type.js';
import { OSCSettings, OscSubscription } from './definitions/core/OscSettings.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';
@@ -50,7 +50,7 @@ export type { Alias };
export type { UserFields };
// ---> OSC
export type { OscSubscription, OSCSettings };
export type { OscSubscription, OSCSettings, OscSubscriptionOptions };
// ---> HTTP