From 59fde80edb178c01b88a8ff6d7dbf818e2daeedd Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Fri, 21 Jul 2023 18:49:54 +0300 Subject: [PATCH] improve settings page --- frontend/src/components/ChipBar.svelte | 59 ++ frontend/src/components/StoredSwitch.svelte | 23 + frontend/src/components/Switch.svelte | 46 ++ .../src/components/overlays/Settings.svelte | 108 +++- frontend/src/stores.js | 3 +- yarn.lock | 526 +++++++++--------- 6 files changed, 466 insertions(+), 299 deletions(-) create mode 100644 frontend/src/components/ChipBar.svelte create mode 100644 frontend/src/components/StoredSwitch.svelte create mode 100644 frontend/src/components/Switch.svelte diff --git a/frontend/src/components/ChipBar.svelte b/frontend/src/components/ChipBar.svelte new file mode 100644 index 0000000..3bbff22 --- /dev/null +++ b/frontend/src/components/ChipBar.svelte @@ -0,0 +1,59 @@ + + + + + +
+ {#each options as option (option.id)} + + {/each} +
\ No newline at end of file diff --git a/frontend/src/components/StoredSwitch.svelte b/frontend/src/components/StoredSwitch.svelte new file mode 100644 index 0000000..aeea2d1 --- /dev/null +++ b/frontend/src/components/StoredSwitch.svelte @@ -0,0 +1,23 @@ + + + diff --git a/frontend/src/components/Switch.svelte b/frontend/src/components/Switch.svelte new file mode 100644 index 0000000..cfc81b6 --- /dev/null +++ b/frontend/src/components/Switch.svelte @@ -0,0 +1,46 @@ + + + + +
{checked = !checked; onUpdated(checked); }}> +
+ +
diff --git a/frontend/src/components/overlays/Settings.svelte b/frontend/src/components/overlays/Settings.svelte index 44b1601..cc827ba 100644 --- a/frontend/src/components/overlays/Settings.svelte +++ b/frontend/src/components/overlays/Settings.svelte @@ -1,13 +1,17 @@ + +