From 19fc83a12b89cedd43b3c5d38f30f7a6f13cbfc9 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 10 Nov 2024 18:48:54 -0800 Subject: [PATCH] refac: styling --- .../components/chat/Settings/Account.svelte | 2 +- src/lib/components/chat/Settings/Audio.svelte | 2 +- src/lib/components/chat/Settings/Chats.svelte | 2 +- .../components/chat/Settings/General.svelte | 2 +- .../components/chat/Settings/Interface.svelte | 24 +- .../components/chat/Settings/Models.svelte | 1075 ----------------- .../chat/Settings/Personalization.svelte | 2 +- src/lib/components/chat/SettingsModal.svelte | 2 +- 8 files changed, 7 insertions(+), 1104 deletions(-) delete mode 100644 src/lib/components/chat/Settings/Models.svelte diff --git a/src/lib/components/chat/Settings/Account.svelte b/src/lib/components/chat/Settings/Account.svelte index e76a54679..52b9f51da 100644 --- a/src/lib/components/chat/Settings/Account.svelte +++ b/src/lib/components/chat/Settings/Account.svelte @@ -70,7 +70,7 @@
-
+
-
+
{$i18n.t('STT Settings')}
diff --git a/src/lib/components/chat/Settings/Chats.svelte b/src/lib/components/chat/Settings/Chats.svelte index 709d3d24a..32408c521 100644 --- a/src/lib/components/chat/Settings/Chats.svelte +++ b/src/lib/components/chat/Settings/Chats.svelte @@ -97,7 +97,7 @@ }; -
+
-
+
{$i18n.t('WebUI Settings')}
diff --git a/src/lib/components/chat/Settings/Interface.svelte b/src/lib/components/chat/Settings/Interface.svelte index 1900328b9..106bccb83 100644 --- a/src/lib/components/chat/Settings/Interface.svelte +++ b/src/lib/components/chat/Settings/Interface.svelte @@ -242,29 +242,7 @@ }} /> -
-
-
-
-
{$i18n.t('Default Model')}
-
-
- -
- -
-
-
- +
{$i18n.t('UI')}
diff --git a/src/lib/components/chat/Settings/Models.svelte b/src/lib/components/chat/Settings/Models.svelte deleted file mode 100644 index 3a81effe3..000000000 --- a/src/lib/components/chat/Settings/Models.svelte +++ /dev/null @@ -1,1075 +0,0 @@ - - -
-
- {#if ollamaEnabled} - {#if ollamaVersion !== null} -
-
{$i18n.t('Manage Ollama Models')}
- - {#if OLLAMA_URLS.length > 0} -
-
- -
- -
-
- - - -
-
-
- - {#if updateModelId} - Updating "{updateModelId}" {updateProgress ? `(${updateProgress}%)` : ''} - {/if} - {/if} - -
-
-
{$i18n.t('Pull a model from Ollama.com')}
-
-
- -
- -
- -
- {$i18n.t('To access the available model names for downloading,')} - {$i18n.t('click here.')} -
- - {#if Object.keys($MODEL_DOWNLOAD_POOL).length > 0} - {#each Object.keys($MODEL_DOWNLOAD_POOL) as model} - {#if 'pullProgress' in $MODEL_DOWNLOAD_POOL[model]} -
-
{model}
-
-
-
-
- {$MODEL_DOWNLOAD_POOL[model].pullProgress ?? 0}% -
-
- - - - -
- {#if 'digest' in $MODEL_DOWNLOAD_POOL[model]} -
- {$MODEL_DOWNLOAD_POOL[model].digest} -
- {/if} -
-
- {/if} - {/each} - {/if} -
- -
-
{$i18n.t('Delete a model')}
-
-
- -
- -
-
- -
-
{$i18n.t('Create a model')}
-
-
- - -