Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
8f8a68e0
Commit
8f8a68e0
authored
Mar 18, 2024
by
Timothy J. Baek
Browse files
refac: unnecessary code
parent
94c845d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
src/lib/components/chat/Settings/General.svelte
src/lib/components/chat/Settings/General.svelte
+0
-3
src/lib/stores/index.ts
src/lib/stores/index.ts
+1
-1
No files found.
src/lib/components/chat/Settings/General.svelte
View file @
8f8a68e0
...
...
@@ -16,8 +16,6 @@
// General
let themes = ['dark', 'light', 'rose-pine dark', 'rose-pine-dawn light'];
let selectedTheme = 'system';
let actualTheme: string;
$: actualTheme = $theme;
let languages = [];
let lang = $i18n.language;
...
...
@@ -72,7 +70,6 @@
onMount(async () => {
selectedTheme = localStorage.getItem('theme') ?? 'system';
applyTheme(selectedTheme);
let settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
languages = await getLanguages();
...
...
src/lib/stores/index.ts
View file @
8f8a68e0
import
{
APP_NAME
}
from
'
$lib/constants
'
;
import
{
writable
,
derived
}
from
'
svelte/store
'
;
import
{
writable
}
from
'
svelte/store
'
;
// Backend
export
const
WEBUI_NAME
=
writable
(
APP_NAME
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment