Timer/blinking and blackout buttons (#406)

*feat: timer blink

*feat: blackout

---------

Co-authored-by: Fabian Posenau <fabian@fphome.de>
Co-authored-by: cv <34649812+cpvalente@users.noreply.github.com>
This commit is contained in:
Fabian Posenau
2023-06-04 21:25:56 +02:00
committed by GitHub
parent 07737cc8b3
commit 5cb8020ab9
24 changed files with 196 additions and 66 deletions
@@ -2,3 +2,8 @@ export type Message = {
text: string;
visible: boolean;
};
export type TimerMessage = Message & {
timerBlink: boolean;
timerBlackout: boolean;
}
@@ -1,5 +1,5 @@
import { Playback } from './Playback.type.js';
import { Message } from './MessageControl.type.js';
import { Message, TimerMessage } from './MessageControl.type.js';
import { TimerState } from './TimerState.type.js';
import { TitleBlock } from './TitleBlock.type.js';
import { Loaded } from './Playlist.type.js';
@@ -10,7 +10,7 @@ export type RuntimeStore = {
playback: Playback;
// messages service
timerMessage: Message;
timerMessage: TimerMessage;
publicMessage: Message;
lowerMessage: Message;
onAir: boolean;
+2 -1
View File
@@ -2,7 +2,7 @@ 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 } from './definitions/runtime/MessageControl.type.js';
import { Message, TimerMessage } from './definitions/runtime/MessageControl.type.js';
import {
OntimeBaseEvent,
OntimeBlock,
@@ -61,6 +61,7 @@ export { Playback };
export { TimerLifeCycle };
export type { Message };
export type { TimerMessage };
export type { Loaded };
export type { RuntimeStore };
export type { TimerState };