From 1f0958a0d1922f10d55deb6bb033b618a46ca12b Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Sat, 13 Jul 2024 13:17:03 +0000 Subject: [PATCH] web/settings: move to state folder --- web/src/components/buttons/SettingsButton.svelte | 2 +- web/src/components/buttons/SettingsToggle.svelte | 2 +- web/src/components/save/Omnibox.svelte | 2 +- web/src/components/settings/LanguageAutoToggle.svelte | 4 ++-- web/src/components/settings/LanguageDropdown.svelte | 2 +- web/src/lib/api.ts | 2 +- web/src/lib/{ => state}/settings.ts | 6 +++--- web/src/lib/state/theme.ts | 2 +- web/src/routes/+layout.svelte | 2 +- web/src/routes/+layout.ts | 2 +- web/src/routes/settings/+layout.svelte | 2 +- web/src/routes/settings/advanced/debug/+page.svelte | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) rename web/src/lib/{ => state}/settings.ts (92%) diff --git a/web/src/components/buttons/SettingsButton.svelte b/web/src/components/buttons/SettingsButton.svelte index ca3be280..871c2fa0 100644 --- a/web/src/components/buttons/SettingsButton.svelte +++ b/web/src/components/buttons/SettingsButton.svelte @@ -6,7 +6,7 @@ Value extends CobaltSettings[Context][Id] " > - import settings, { updateSetting } from "$lib/settings"; + import settings, { updateSetting } from "$lib/state/settings"; import type { CobaltSettings } from "$lib/types/settings"; export let settingContext: Context; diff --git a/web/src/components/buttons/SettingsToggle.svelte b/web/src/components/buttons/SettingsToggle.svelte index 8995da90..1e37aa3e 100644 --- a/web/src/components/buttons/SettingsToggle.svelte +++ b/web/src/components/buttons/SettingsToggle.svelte @@ -5,7 +5,7 @@ Id extends keyof CobaltSettings[Context] " > - import settings, { updateSetting } from "$lib/settings"; + import settings, { updateSetting } from "$lib/state/settings"; import type { CobaltSettings } from "$lib/types/settings"; import Toggle from "$components/misc/Toggle.svelte"; diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte index bbe98070..b8ba01b1 100644 --- a/web/src/components/save/Omnibox.svelte +++ b/web/src/components/save/Omnibox.svelte @@ -12,7 +12,7 @@ import ActionButton from "$components/buttons/ActionButton.svelte"; import SettingsButton from "$components/buttons/SettingsButton.svelte"; - import { updateSetting } from "$lib/settings"; + import { updateSetting } from "$lib/state/settings"; import type { DownloadModeOption } from "$lib/types/settings"; import IconSparkles from "$lib/icons/Sparkles.svelte"; diff --git a/web/src/components/settings/LanguageAutoToggle.svelte b/web/src/components/settings/LanguageAutoToggle.svelte index 0de00d62..aa896c9f 100644 --- a/web/src/components/settings/LanguageAutoToggle.svelte +++ b/web/src/components/settings/LanguageAutoToggle.svelte @@ -1,7 +1,7 @@