enh: warning

This commit is contained in:
Timothy Jaeryang Baek 2025-02-17 16:30:13 -08:00
parent 2f75eef499
commit 05af00305d

View File

@ -45,7 +45,8 @@
<hr class=" border-gray-100 dark:border-gray-850 my-2" /> <hr class=" border-gray-100 dark:border-gray-850 my-2" />
<div class=" py-0.5 flex w-full justify-between"> <div class="mb-2.5">
<div class="flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Code Execution Engine')}</div> <div class=" self-center text-xs font-medium">{$i18n.t('Code Execution Engine')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<select <select
@ -63,7 +64,16 @@
</div> </div>
{#if config.CODE_EXECUTION_ENGINE === 'jupyter'} {#if config.CODE_EXECUTION_ENGINE === 'jupyter'}
<div class="mt-1 flex flex-col gap-1.5 mb-1 w-full"> <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>
{#if config.CODE_EXECUTION_ENGINE === 'jupyter'}
<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>
@ -81,7 +91,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>