mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-03 18:17:56 -05:00
refac
This commit is contained in:
1 parent
84e0c9d308
commit
1d14aa89d2
2 files changed
+41
-38
No files matched your search
@@ -576,43 +576,6 @@
|
||||
</AdminSettingSection>
|
||||
|
||||
<AdminSettingSection title={$i18n.t('settings.admin.interface.sections.tools.title')}>
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('settings.admin.general.skillLazyLoading.label')}
|
||||
description={$i18n.t('settings.admin.general.skillLazyLoading.description')}
|
||||
let:labelId
|
||||
>
|
||||
<Switch bind:state={adminConfig.ENABLE_SKILL_LAZY_LOADING} ariaLabelledbyId={labelId} />
|
||||
</AdminSettingRow>
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('settings.admin.general.skillContentMaxChars.label')}
|
||||
description={$i18n.t('settings.admin.general.skillContentMaxChars.description')}
|
||||
let:labelId
|
||||
>
|
||||
<input
|
||||
id={`${labelId}-control`}
|
||||
class="{inputClass} w-28!"
|
||||
type="number"
|
||||
min="1"
|
||||
step="1"
|
||||
placeholder={$i18n.t('Default')}
|
||||
bind:value={adminConfig.SKILL_CONTENT_MAX_CHARS}
|
||||
/>
|
||||
</AdminSettingRow>
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('settings.admin.general.skillPreviewMaxChars.label')}
|
||||
description={$i18n.t('settings.admin.general.skillPreviewMaxChars.description')}
|
||||
let:labelId
|
||||
>
|
||||
<input
|
||||
id={`${labelId}-control`}
|
||||
class="{inputClass} w-28!"
|
||||
type="number"
|
||||
min="1"
|
||||
step="1"
|
||||
placeholder={$i18n.t('Default')}
|
||||
bind:value={adminConfig.SKILL_PREVIEW_MAX_CHARS}
|
||||
/>
|
||||
</AdminSettingRow>
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('settings.admin.general.toolOutputMaxChars.label')}
|
||||
description={$i18n.t('settings.admin.general.toolOutputMaxChars.description')}
|
||||
@@ -989,6 +952,46 @@
|
||||
</AdminSettingField>
|
||||
{/if}
|
||||
</AdminSettingSection>
|
||||
|
||||
<AdminSettingSection title={$i18n.t('Skills')}>
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('settings.admin.general.skillLazyLoading.label')}
|
||||
description={$i18n.t('settings.admin.general.skillLazyLoading.description')}
|
||||
let:labelId
|
||||
>
|
||||
<Switch bind:state={adminConfig.ENABLE_SKILL_LAZY_LOADING} ariaLabelledbyId={labelId} />
|
||||
</AdminSettingRow>
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('settings.admin.general.skillContentMaxChars.label')}
|
||||
description={$i18n.t('settings.admin.general.skillContentMaxChars.description')}
|
||||
let:labelId
|
||||
>
|
||||
<input
|
||||
id={`${labelId}-control`}
|
||||
class="{inputClass} w-28!"
|
||||
type="number"
|
||||
min="1"
|
||||
step="1"
|
||||
placeholder={$i18n.t('Default')}
|
||||
bind:value={adminConfig.SKILL_CONTENT_MAX_CHARS}
|
||||
/>
|
||||
</AdminSettingRow>
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('settings.admin.general.skillPreviewMaxChars.label')}
|
||||
description={$i18n.t('settings.admin.general.skillPreviewMaxChars.description')}
|
||||
let:labelId
|
||||
>
|
||||
<input
|
||||
id={`${labelId}-control`}
|
||||
class="{inputClass} w-28!"
|
||||
type="number"
|
||||
min="1"
|
||||
step="1"
|
||||
placeholder={$i18n.t('Default')}
|
||||
bind:value={adminConfig.SKILL_PREVIEW_MAX_CHARS}
|
||||
/>
|
||||
</AdminSettingRow>
|
||||
</AdminSettingSection>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end pt-3 text-sm font-normal">
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<div class="flex-1 min-h-0 overflow-y-auto scrollbar-hover pr-1.5">
|
||||
<UserSettingSection title={$i18n.t('settings.personal.about.title')} first>
|
||||
<UserSettingRow description={$i18n.t('settings.personal.about.seeWhatSNew.description')}>
|
||||
<div slot="label" class="flex flex-col text-xs text-base-800 dark:text-base-200">
|
||||
<div slot="label" class="flex flex-col gap-1 text-xs text-base-800 dark:text-base-200">
|
||||
<!-- LICENSE covers this Open WebUI About identifier.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
|
||||
Reference in new issue
Block a user