From bd5d7b2e879511882429075d804d9222956f4a1a Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 24 Jul 2026 01:47:11 -0400 Subject: [PATCH] refac --- .../components/chat/Settings/Account.svelte | 77 +++++++++---------- .../Settings/Account/UpdatePassword.svelte | 6 +- .../chat/Settings/UserSettingSection.svelte | 3 +- 3 files changed, 39 insertions(+), 47 deletions(-) diff --git a/src/lib/components/chat/Settings/Account.svelte b/src/lib/components/chat/Settings/Account.svelte index 1800aad8e4..1f44085cd1 100644 --- a/src/lib/components/chat/Settings/Account.svelte +++ b/src/lib/components/chat/Settings/Account.svelte @@ -304,51 +304,46 @@ - - {variableRows.length} - -
-
-
- {$i18n.t('Use these in model system prompts as {{example}}.', { - example: '{{user.variables.key_name}}' - })} -
- -
- +
+
+ {#each variableRows as row, idx} +
+
+ {row.key || $i18n.t('key_name')} +
+
+ {row.value || $i18n.t('Empty')} +
+
-
+ {/each} -
- {#each variableRows as row, idx} -
-
- {row.key || $i18n.t('key_name')} -
-
- {row.value || $i18n.t('Empty')} -
- -
- {/each} - - {#if variableRows.length === 0} -
- {$i18n.t('No user variables configured.')} -
- {/if} -
+ {#if variableRows.length === 0} +
+ {$i18n.t('No user variables configured.')} +
+ {/if}
- + +
+ {$i18n.t('Use these in model system prompts as {{example}}.', { + example: '{{user.variables.key_name}}' + })} +
+ {#if $config?.features.enable_login_form && $config?.features.enable_password_change_form} diff --git a/src/lib/components/chat/Settings/Account/UpdatePassword.svelte b/src/lib/components/chat/Settings/Account/UpdatePassword.svelte index a9e045bad7..4c112f4c66 100644 --- a/src/lib/components/chat/Settings/Account/UpdatePassword.svelte +++ b/src/lib/components/chat/Settings/Account/UpdatePassword.svelte @@ -113,10 +113,8 @@
-
-
diff --git a/src/lib/components/chat/Settings/UserSettingSection.svelte b/src/lib/components/chat/Settings/UserSettingSection.svelte index ab5593802d..c6358f9055 100644 --- a/src/lib/components/chat/Settings/UserSettingSection.svelte +++ b/src/lib/components/chat/Settings/UserSettingSection.svelte @@ -6,9 +6,8 @@
{#if title} -

+

{title} -

{/if}