update dbmData and Subscription so it is reactive
new save load scenes
This commit is contained in:
9
src/models/Scene.ts
Normal file
9
src/models/Scene.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { Value } from './Value';
|
||||
|
||||
export interface Scene {
|
||||
name: string;
|
||||
description?: string;
|
||||
movingHead: boolean;
|
||||
lightBar: boolean;
|
||||
values?: Value[];
|
||||
}
|
@@ -2,7 +2,7 @@ export type Set = {
|
||||
uuid?: string | undefined;
|
||||
path: string;
|
||||
type?: string;
|
||||
value: number | boolean | undefined;
|
||||
value: string | number | boolean | undefined;
|
||||
create?: boolean;
|
||||
};
|
||||
|
||||
|
@@ -1,8 +1,9 @@
|
||||
// API type (from backend)
|
||||
export type Subscribe = {
|
||||
uuid?: string | undefined;
|
||||
path?: string | undefined;
|
||||
uuid?: string;
|
||||
path?: string;
|
||||
depth?: number;
|
||||
value?: string | number | boolean | undefined;
|
||||
value?: string | number | boolean;
|
||||
hasChild?: boolean;
|
||||
};
|
||||
|
||||
|
7
src/models/Value.ts
Normal file
7
src/models/Value.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { UUID } from 'crypto';
|
||||
|
||||
export interface Value {
|
||||
uuid?: UUID;
|
||||
path: string;
|
||||
value: number | string | undefined;
|
||||
}
|
Reference in New Issue
Block a user