Spaces:
Runtime error
Runtime error
fix type errors
Browse files
frontend/src/lib/components/PipelineOptions.svelte
CHANGED
@@ -53,19 +53,27 @@
|
|
53 |
{#if advanceOptions}
|
54 |
{#each advanceOptions as params (params.id)}
|
55 |
{#if params.field === FieldType.RANGE}
|
56 |
-
<InputRange
|
|
|
|
|
57 |
></InputRange>
|
58 |
{:else if params.field === FieldType.SEED}
|
59 |
-
<SeedInput
|
|
|
|
|
60 |
></SeedInput>
|
61 |
{:else if params.field === FieldType.TEXTAREA}
|
62 |
-
<TextArea {params} bind:value={$pipelineValues[params.id]}
|
63 |
></TextArea>
|
64 |
{:else if params.field === FieldType.CHECKBOX}
|
65 |
-
<Checkbox
|
|
|
|
|
66 |
></Checkbox>
|
67 |
{:else if params.field === FieldType.SELECT}
|
68 |
-
<Selectlist
|
|
|
|
|
69 |
></Selectlist>
|
70 |
{/if}
|
71 |
{/each}
|
|
|
53 |
{#if advanceOptions}
|
54 |
{#each advanceOptions as params (params.id)}
|
55 |
{#if params.field === FieldType.RANGE}
|
56 |
+
<InputRange
|
57 |
+
{params}
|
58 |
+
bind:value={$pipelineValues[params.id] as number}
|
59 |
></InputRange>
|
60 |
{:else if params.field === FieldType.SEED}
|
61 |
+
<SeedInput
|
62 |
+
{params}
|
63 |
+
bind:value={$pipelineValues[params.id] as number}
|
64 |
></SeedInput>
|
65 |
{:else if params.field === FieldType.TEXTAREA}
|
66 |
+
<TextArea {params} bind:value={$pipelineValues[params.id] as string}
|
67 |
></TextArea>
|
68 |
{:else if params.field === FieldType.CHECKBOX}
|
69 |
+
<Checkbox
|
70 |
+
{params}
|
71 |
+
bind:value={$pipelineValues[params.id] as boolean}
|
72 |
></Checkbox>
|
73 |
{:else if params.field === FieldType.SELECT}
|
74 |
+
<Selectlist
|
75 |
+
{params}
|
76 |
+
bind:value={$pipelineValues[params.id] as string}
|
77 |
></Selectlist>
|
78 |
{/if}
|
79 |
{/each}
|
frontend/src/lib/lcmLive.ts
CHANGED
@@ -16,7 +16,7 @@ export const lcmLiveStatus = writable<LCMLiveStatus>(initStatus);
|
|
16 |
export const streamId = writable<string | null>(null);
|
17 |
|
18 |
// WebSocket connection
|
19 |
-
let websocket: WebSocket;
|
20 |
|
21 |
// Register browser unload event listener to properly close WebSockets
|
22 |
if (typeof window !== "undefined") {
|
|
|
16 |
export const streamId = writable<string | null>(null);
|
17 |
|
18 |
// WebSocket connection
|
19 |
+
let websocket: WebSocket | null;
|
20 |
|
21 |
// Register browser unload event listener to properly close WebSockets
|
22 |
if (typeof window !== "undefined") {
|