diff --git a/src/api/serverService.ts b/src/api/serverService.ts index 9644ea6..6e29a55 100644 --- a/src/api/serverService.ts +++ b/src/api/serverService.ts @@ -17,6 +17,10 @@ export const getServers = async (event: RequestEvent): Promise => { return fetchAPIEvent(event, '/server'); }; +export const getServerById = async (event: RequestEvent, serverId: string): Promise => { + return fetchAPIEvent(event, `/server/${serverId}`); +}; + export const getConfigFiles = async ( event: RequestEvent, serverId: string diff --git a/src/components/EditorAssistRules.svelte b/src/components/EditorAssistRules.svelte new file mode 100644 index 0000000..63e215c --- /dev/null +++ b/src/components/EditorAssistRules.svelte @@ -0,0 +1,199 @@ + + +
{ + formLoading = true; + }} +> + +
+
+

Assist Rules

+
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+
+
+
+ + +
+
+
+ + diff --git a/src/components/EditorConfiguration.svelte b/src/components/EditorConfiguration.svelte new file mode 100644 index 0000000..714e8e4 --- /dev/null +++ b/src/components/EditorConfiguration.svelte @@ -0,0 +1,119 @@ + + +
{ + formLoading = true; + }} +> + +
+
+

Configuration

+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+
+
+ + +
+
+
+ + diff --git a/src/components/ConfigEditor.svelte b/src/components/EditorEvent.svelte similarity index 56% rename from src/components/ConfigEditor.svelte rename to src/components/EditorEvent.svelte index 7bede4f..22b6f1c 100644 --- a/src/components/ConfigEditor.svelte +++ b/src/components/EditorEvent.svelte @@ -5,7 +5,7 @@ const { config, tracks, id }: { config: EventConfig; tracks: Track[]; id: string } = $props(); const editedConfig = $state({ ...config }); - let sessions = $state(JSON.stringify(editedConfig.sessions)); + if (!editedConfig.sessions) editedConfig.sessions = []; let formLoading = $state(false); @@ -187,36 +187,156 @@
+
+ +
+
+
diff --git a/src/components/EditorEventRules.svelte b/src/components/EditorEventRules.svelte new file mode 100644 index 0000000..922e0a1 --- /dev/null +++ b/src/components/EditorEventRules.svelte @@ -0,0 +1,235 @@ + + +
{ + formLoading = true; + }} +> + +
+
+

Event Rules

+
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+
+
+
+ + +
+
+
+ + diff --git a/src/components/EditorSettings.svelte b/src/components/EditorSettings.svelte new file mode 100644 index 0000000..52906da --- /dev/null +++ b/src/components/EditorSettings.svelte @@ -0,0 +1,348 @@ + + +
{ + formLoading = true; + }} +> + +
+
+

Settings

+
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+
+
+
+ + +
+
+
+ + diff --git a/src/components/Sidebar.svelte b/src/components/Sidebar.svelte index 297f1ac..29a6f8a 100644 --- a/src/components/Sidebar.svelte +++ b/src/components/Sidebar.svelte @@ -1,9 +1,7 @@ -