web/settings: move to state folder
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { get } from 'svelte/store';
|
||||
import settings from "$lib/settings";
|
||||
import settings from "$lib/state/settings";
|
||||
import type { CobaltAPIResponse } from "$lib/types/api";
|
||||
|
||||
const apiURL = "https://api.cobalt.tools";
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { derived, readable, type Updater } from 'svelte/store';
|
||||
import { merge } from 'ts-deepmerge';
|
||||
|
||||
import type { RecursivePartial } from './types/generic';
|
||||
import type { CobaltSettings } from './types/settings';
|
||||
import type { RecursivePartial } from '../types/generic';
|
||||
import type { CobaltSettings } from '../types/settings';
|
||||
|
||||
import defaultSettings from './settings/defaults';
|
||||
import defaultSettings from '../settings/defaults';
|
||||
|
||||
type PartialSettings = RecursivePartial<CobaltSettings>;
|
||||
type PartialSettingsWithSchema = RecursivePartial<CobaltSettings> & { schemaVersion: number };
|
||||
@@ -1,6 +1,6 @@
|
||||
import { readable, derived, type Readable } from 'svelte/store';
|
||||
|
||||
import settings from '$lib/settings';
|
||||
import settings from '$lib/state/settings';
|
||||
import { themeOptions } from '$lib/types/settings';
|
||||
|
||||
type Theme = typeof themeOptions[number];
|
||||
|
||||
Reference in New Issue
Block a user