From e681ce32049f107c96dee0e3d831189b31eaa9c4 Mon Sep 17 00:00:00 2001 From: justin tucker <129927578+jtuckerfubo@users.noreply.github.com> Date: Thu, 10 Oct 2024 19:29:11 -0700 Subject: [PATCH] Replaced ConfigControls with AutoRunsEditor, adding expanded set of autorun management functions in a dialog. Functions include adding, copying, removing, and managing order of autoruns. --- .../RokuAutomationView/AutoRunsEditor.svelte | 223 ++++++++++++++++++ .../RokuAutomationView/ConfigControls.svelte | 141 ----------- .../RokuAutomationView.svelte | 54 +++-- 3 files changed, 261 insertions(+), 157 deletions(-) create mode 100644 webviews/src/views/RokuAutomationView/AutoRunsEditor.svelte delete mode 100644 webviews/src/views/RokuAutomationView/ConfigControls.svelte diff --git a/webviews/src/views/RokuAutomationView/AutoRunsEditor.svelte b/webviews/src/views/RokuAutomationView/AutoRunsEditor.svelte new file mode 100644 index 00000000..dd78e6e9 --- /dev/null +++ b/webviews/src/views/RokuAutomationView/AutoRunsEditor.svelte @@ -0,0 +1,223 @@ + + + + + +
+
+

Manage Autoruns

+
+
+
+
+ selectedRun = e.target.value}> + {#each runs as run} + {run.name} + {/each} + +
+
+
+ Create + Copy + Delete + Move up + Move down +
+
+
+
+ +
+
+ + +

Enter Run Name

+
+ +
+
+ + +
+
diff --git a/webviews/src/views/RokuAutomationView/ConfigControls.svelte b/webviews/src/views/RokuAutomationView/ConfigControls.svelte deleted file mode 100644 index 7e50bf60..00000000 --- a/webviews/src/views/RokuAutomationView/ConfigControls.svelte +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - - - - - - - (showModal = false)} - on:click|self={() => dialog.close()}> - -
-

Create a new configuration

- - - -
- - -
- - - -
-
diff --git a/webviews/src/views/RokuAutomationView/RokuAutomationView.svelte b/webviews/src/views/RokuAutomationView/RokuAutomationView.svelte index 51f5eae8..509aa0a2 100644 --- a/webviews/src/views/RokuAutomationView/RokuAutomationView.svelte +++ b/webviews/src/views/RokuAutomationView/RokuAutomationView.svelte @@ -1,11 +1,11 @@