web/settings: move to state folder
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import "@fontsource/ibm-plex-mono/400.css";
|
||||
import "@fontsource/ibm-plex-mono/500.css";
|
||||
|
||||
import settings from "$lib/settings";
|
||||
import settings from "$lib/state/settings";
|
||||
import { device, app } from "$lib/device";
|
||||
import currentTheme, { statusBarColors } from "$lib/state/theme";
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ export const load: Load = async ({ url }) => {
|
||||
|
||||
if (browser) {
|
||||
const device = (await import('$lib/device')).device;
|
||||
const settings = get((await import('$lib/settings')).default);
|
||||
const settings = get((await import('$lib/state/settings')).default);
|
||||
const deviceLanguage = device.prefers.language;
|
||||
const settingsLanguage = settings.appearance.language;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { page } from "$app/stores";
|
||||
|
||||
import settings from "$lib/settings";
|
||||
import settings from "$lib/state/settings";
|
||||
|
||||
import { t } from "$lib/i18n/translations";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { device, app } from "$lib/device";
|
||||
import { version } from "$lib/version";
|
||||
import settings, { storedSettings } from "$lib/settings";
|
||||
import settings, { storedSettings } from "$lib/state/settings";
|
||||
|
||||
import { goto } from "$app/navigation";
|
||||
import { defaultSettingsPage } from "$lib/settings/defaults";
|
||||
|
||||
Reference in New Issue
Block a user