mirror of
https://github.com/open-webui/open-webui
synced 2025-02-23 05:38:41 +00:00
refac: styling
This commit is contained in:
parent
05af00305d
commit
b850b8a5a4
@ -138,8 +138,8 @@
|
|||||||
|
|
||||||
<hr class=" border-gray-100 dark:border-gray-850 my-2" />
|
<hr class=" border-gray-100 dark:border-gray-850 my-2" />
|
||||||
|
|
||||||
<div>
|
<div class="mb-2.5">
|
||||||
<div class=" py-0.5 flex w-full justify-between">
|
<div class=" flex w-full justify-between">
|
||||||
<div class=" self-center text-xs font-medium">
|
<div class=" self-center text-xs font-medium">
|
||||||
{$i18n.t('Enable Code Interpreter')}
|
{$i18n.t('Enable Code Interpreter')}
|
||||||
</div>
|
</div>
|
||||||
@ -149,27 +149,37 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if config.ENABLE_CODE_INTERPRETER}
|
{#if config.ENABLE_CODE_INTERPRETER}
|
||||||
<div class=" py-0.5 flex w-full justify-between">
|
<div class="mb-2.5">
|
||||||
<div class=" self-center text-xs font-medium">
|
<div class=" flex w-full justify-between">
|
||||||
{$i18n.t('Code Interpreter Engine')}
|
<div class=" self-center text-xs font-medium">
|
||||||
</div>
|
{$i18n.t('Code Interpreter Engine')}
|
||||||
<div class="flex items-center relative">
|
</div>
|
||||||
<select
|
<div class="flex items-center relative">
|
||||||
class="dark:bg-gray-900 w-fit pr-8 rounded-sm px-2 p-1 text-xs bg-transparent outline-hidden text-right"
|
<select
|
||||||
bind:value={config.CODE_INTERPRETER_ENGINE}
|
class="dark:bg-gray-900 w-fit pr-8 rounded-sm px-2 p-1 text-xs bg-transparent outline-hidden text-right"
|
||||||
placeholder={$i18n.t('Select a engine')}
|
bind:value={config.CODE_INTERPRETER_ENGINE}
|
||||||
required
|
placeholder={$i18n.t('Select a engine')}
|
||||||
>
|
required
|
||||||
<option disabled selected value="">{$i18n.t('Select a engine')}</option>
|
>
|
||||||
{#each engines as engine}
|
<option disabled selected value="">{$i18n.t('Select a engine')}</option>
|
||||||
<option value={engine}>{engine}</option>
|
{#each engines as engine}
|
||||||
{/each}
|
<option value={engine}>{engine}</option>
|
||||||
</select>
|
{/each}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{#if config.CODE_EXECUTION_ENGINE === 'jupyter'}
|
||||||
|
<div class="text-gray-500 text-xs">
|
||||||
|
{$i18n.t(
|
||||||
|
'Warning: Jupyter execution enables arbitrary code execution, posing severe security risks—proceed with extreme caution.'
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if config.CODE_INTERPRETER_ENGINE === 'jupyter'}
|
{#if config.CODE_INTERPRETER_ENGINE === 'jupyter'}
|
||||||
<div class="mt-1 flex flex-col gap-1.5 mb-1 w-full">
|
<div class="mb-2.5 flex flex-col gap-1.5 w-full">
|
||||||
<div class="text-xs font-medium">
|
<div class="text-xs font-medium">
|
||||||
{$i18n.t('Jupyter URL')}
|
{$i18n.t('Jupyter URL')}
|
||||||
</div>
|
</div>
|
||||||
@ -187,7 +197,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-1 flex gap-2 mb-1 w-full items-center justify-between">
|
<div class="flex gap-2 w-full items-center justify-between">
|
||||||
<div class="text-xs font-medium">
|
<div class="text-xs font-medium">
|
||||||
{$i18n.t('Jupyter Auth')}
|
{$i18n.t('Jupyter Auth')}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user