mirror of
https://gitlab.com/openlp/web-remote.git
synced 2024-12-23 03:42:48 +00:00
Raoul Snyman
2d10b7a363
- Use a ServiceItem object rather than just slides to transfer more information at one time - Add notes to stage view - Fix CORS issue
61 lines
974 B
TypeScript
61 lines
974 B
TypeScript
export interface PluginDescription {
|
|
key: string;
|
|
name: string;
|
|
}
|
|
|
|
export class State {
|
|
isAuthorized: boolean;
|
|
version: number;
|
|
slide: number;
|
|
display: boolean;
|
|
isSecure: boolean;
|
|
blank: boolean;
|
|
twelve: boolean;
|
|
theme: boolean;
|
|
|
|
live = () => !(this.blank || this.display || this.theme);
|
|
}
|
|
|
|
export interface Slide {
|
|
selected: boolean;
|
|
html: string;
|
|
tag: string;
|
|
text: string;
|
|
chords: string;
|
|
lines: string[];
|
|
first_slide_of_tag: boolean;
|
|
}
|
|
|
|
export interface ServiceItem {
|
|
id: string;
|
|
notes: string;
|
|
plugin: string;
|
|
selected: boolean;
|
|
title: string;
|
|
is_valid: boolean;
|
|
slides: object[];
|
|
}
|
|
|
|
export interface Theme {
|
|
selected: boolean;
|
|
name: string;
|
|
}
|
|
|
|
export interface MainView {
|
|
binary_image: string;
|
|
}
|
|
|
|
export interface SystemInformation {
|
|
websocket_port: number;
|
|
login_required: boolean;
|
|
}
|
|
|
|
export interface Credentials {
|
|
username: string;
|
|
password: string;
|
|
}
|
|
|
|
export interface AuthToken {
|
|
token: string;
|
|
}
|