forked from open-webui/open-webui
main #2
2 changed files with 1 additions and 4 deletions
|
@ -16,8 +16,6 @@
|
||||||
// General
|
// General
|
||||||
let themes = ['dark', 'light', 'rose-pine dark', 'rose-pine-dawn light'];
|
let themes = ['dark', 'light', 'rose-pine dark', 'rose-pine-dawn light'];
|
||||||
let selectedTheme = 'system';
|
let selectedTheme = 'system';
|
||||||
let actualTheme: string;
|
|
||||||
$: actualTheme = $theme;
|
|
||||||
|
|
||||||
let languages = [];
|
let languages = [];
|
||||||
let lang = $i18n.language;
|
let lang = $i18n.language;
|
||||||
|
@ -72,7 +70,6 @@
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
selectedTheme = localStorage.getItem('theme') ?? 'system';
|
selectedTheme = localStorage.getItem('theme') ?? 'system';
|
||||||
applyTheme(selectedTheme);
|
|
||||||
|
|
||||||
let settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
|
let settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
|
||||||
languages = await getLanguages();
|
languages = await getLanguages();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { APP_NAME } from '$lib/constants';
|
import { APP_NAME } from '$lib/constants';
|
||||||
import { writable, derived } from 'svelte/store';
|
import { writable } from 'svelte/store';
|
||||||
|
|
||||||
// Backend
|
// Backend
|
||||||
export const WEBUI_NAME = writable(APP_NAME);
|
export const WEBUI_NAME = writable(APP_NAME);
|
||||||
|
|
Loading…
Reference in a new issue