update dbmData and Subscription so it is reactive

new save load scenes
This commit is contained in:
Adrian Zürcher
2025-06-19 19:30:28 +02:00
parent fd970b6d1f
commit 3e2b95c1c3
19 changed files with 761 additions and 188 deletions

9
src/models/Scene.ts Normal file
View File

@@ -0,0 +1,9 @@
import type { Value } from './Value';
export interface Scene {
name: string;
description?: string;
movingHead: boolean;
lightBar: boolean;
values?: Value[];
}

View File

@@ -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;
};

View File

@@ -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
View File

@@ -0,0 +1,7 @@
import type { UUID } from 'crypto';
export interface Value {
uuid?: UUID;
path: string;
value: number | string | undefined;
}