隐藏了设置modal中一些不重要的细节

This commit is contained in:
Gaofeng 2025-11-30 21:02:49 +08:00
parent 5db691fd7b
commit 95300e4743
2 changed files with 14 additions and 15 deletions

View file

@ -217,7 +217,7 @@
</div>
</div>
<div class=" flex w-full justify-between">
<!-- <div class=" flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Language')}</div>
<div class="flex items-center relative">
<select
@ -235,8 +235,8 @@
{/each}
</select>
</div>
</div>
{#if $i18n.language === 'en-US' && !($config?.license_metadata ?? false)}
</div> -->
<!-- {#if $i18n.language === 'en-US' && !($config?.license_metadata ?? false)}
<div
class="mb-2 text-xs {($settings?.highContrastMode ?? false)
? 'text-gray-800 dark:text-gray-100'
@ -253,9 +253,8 @@
Help us translate CyberLover!
</a>
</div>
{/if}
<div>
{/if} -->
<!-- <div>
<div class=" py-0.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Notifications')}</div>
@ -273,10 +272,10 @@
{/if}
</button>
</div>
</div>
</div> -->
</div>
{#if $user?.role === 'admin' || (($user?.permissions.chat?.controls ?? true) && ($user?.permissions.chat?.system_prompt ?? true))}
<!-- {#if $user?.role === 'admin' || (($user?.permissions.chat?.controls ?? true) && ($user?.permissions.chat?.system_prompt ?? true))}
<hr class="border-gray-100/50 dark:border-gray-850 my-3" />
<div>
@ -291,9 +290,9 @@
placeholder={$i18n.t('Enter system prompt here')}
/>
</div>
{/if}
{/if} -->
{#if $user?.role === 'admin' || (($user?.permissions.chat?.controls ?? true) && ($user?.permissions.chat?.params ?? true))}
<!-- {#if $user?.role === 'admin' || (($user?.permissions.chat?.controls ?? true) && ($user?.permissions.chat?.params ?? true))}
<div class="mt-2 space-y-3 pr-1.5">
<div class="flex justify-between items-center text-sm">
<div class=" font-medium">{$i18n.t('Advanced Parameters')}</div>
@ -312,7 +311,7 @@
<AdvancedParams admin={$user?.role === 'admin'} bind:params />
{/if}
</div>
{/if}
{/if} -->
</div>
<div class="flex justify-end pt-3 text-sm font-medium">

View file

@ -639,7 +639,7 @@
</div>
<div class=" self-center">{$i18n.t('General')}</div>
</button>
{:else if tabId === 'interface'}
<!-- {:else if tabId === 'interface'}
<button
role="tab"
aria-controls="tab-interface"
@ -662,7 +662,7 @@
<AppNotification strokeWidth="2" />
</div>
<div class=" self-center">{$i18n.t('Interface')}</div>
</button>
</button> -->
{:else if tabId === 'connections'}
{#if $user?.role === 'admin' || ($user?.role === 'user' && $config?.features?.enable_direct_connections)}
<button
@ -742,7 +742,7 @@
<div class=" self-center">{$i18n.t('Personalization')}</div>
</button>
{/if}
{:else if tabId === 'audio'}
<!-- {:else if tabId === 'audio'}
<button
role="tab"
aria-controls="tab-audio"
@ -765,7 +765,7 @@
<SoundHigh strokeWidth="2" />
</div>
<div class=" self-center">{$i18n.t('Audio')}</div>
</button>
</button> -->
{:else if tabId === 'data_controls'}
<button
role="tab"