This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-14 04:15:20 -04:00
1 parent a7fbf66269
commit aedb6bef4e
208 files changed
+1056 -1066

No files matched your search

+6 -16
View File
@@ -6,12 +6,6 @@
font-display: swap; font-display: swap;
} }
@font-face {
font-family: 'Archivo';
src: url('/assets/fonts/Archivo-Variable.ttf');
font-display: swap;
}
@font-face { @font-face {
font-family: 'Mona Sans'; font-family: 'Mona Sans';
src: url('/assets/fonts/Mona-Sans.woff2'); src: url('/assets/fonts/Mona-Sans.woff2');
@@ -95,33 +89,29 @@ textarea::placeholder {
} }
.input-prose { .input-prose {
@apply prose dark:prose-invert prose-headings:font-semibold prose-hr:my-4 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-1 prose-img:my-1 prose-headings:my-2 prose-pre:my-0 prose-table:my-1 prose-blockquote:my-0 prose-ul:my-1 prose-ol:my-1 prose-li:my-0.5 whitespace-pre-line; @apply prose dark:prose-invert prose-headings:font-normal prose-hr:my-4 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-1 prose-img:my-1 prose-headings:my-2 prose-pre:my-0 prose-table:my-1 prose-blockquote:my-0 prose-ul:my-1 prose-ol:my-1 prose-li:my-0.5 whitespace-pre-line;
} }
.input-prose-sm { .input-prose-sm {
@apply prose dark:prose-invert prose-headings:font-medium prose-h1:text-2xl prose-h2:text-xl prose-h3:text-lg prose-hr:my-4 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-1 prose-img:my-1 prose-headings:my-2 prose-pre:my-0 prose-table:my-1 prose-blockquote:my-0 prose-ul:my-1 prose-ol:my-1 prose-li:my-1 whitespace-pre-line text-sm; @apply prose dark:prose-invert prose-headings:font-normal prose-h1:text-2xl prose-h2:text-xl prose-h3:text-lg prose-hr:my-4 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-1 prose-img:my-1 prose-headings:my-2 prose-pre:my-0 prose-table:my-1 prose-blockquote:my-0 prose-ul:my-1 prose-ol:my-1 prose-li:my-1 whitespace-pre-line text-sm;
} }
.markdown-prose { .markdown-prose {
@apply prose dark:prose-invert prose-blockquote:border-s-gray-100 prose-blockquote:dark:border-gray-800 prose-blockquote:border-s-2 prose-blockquote:not-italic prose-blockquote:font-normal prose-headings:font-semibold prose-hr:my-4 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-0 prose-img:my-1 prose-headings:my-1 prose-pre:my-0 prose-table:my-0 prose-blockquote:my-0 prose-ul:-my-0 prose-ol:-my-0 prose-li:-my-0 whitespace-pre-line; @apply prose dark:prose-invert prose-blockquote:border-s-gray-100 prose-blockquote:dark:border-gray-800 prose-blockquote:border-s-2 prose-blockquote:not-italic prose-blockquote:font-normal prose-headings:font-normal prose-hr:my-4 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-0 prose-img:my-1 prose-headings:my-1 prose-pre:my-0 prose-table:my-0 prose-blockquote:my-0 prose-ul:-my-0 prose-ol:-my-0 prose-li:-my-0 whitespace-pre-line;
} }
.markdown-prose-sm { .markdown-prose-sm {
@apply text-sm prose dark:prose-invert prose-blockquote:border-s-gray-100 prose-blockquote:dark:border-gray-800 prose-blockquote:border-s-2 prose-blockquote:not-italic prose-blockquote:font-normal prose-headings:font-semibold prose-hr:my-2 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-0 prose-img:my-1 prose-headings:my-1 prose-pre:my-0 prose-table:my-0 prose-blockquote:my-0 prose-ul:-my-0 prose-ol:-my-0 prose-li:-my-0 whitespace-pre-line; @apply text-sm prose dark:prose-invert prose-blockquote:border-s-gray-100 prose-blockquote:dark:border-gray-800 prose-blockquote:border-s-2 prose-blockquote:not-italic prose-blockquote:font-normal prose-headings:font-normal prose-hr:my-2 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-0 prose-img:my-1 prose-headings:my-1 prose-pre:my-0 prose-table:my-0 prose-blockquote:my-0 prose-ul:-my-0 prose-ol:-my-0 prose-li:-my-0 whitespace-pre-line;
} }
.markdown-prose-xs { .markdown-prose-xs {
@apply text-xs prose dark:prose-invert prose-blockquote:border-s-gray-100 prose-blockquote:dark:border-gray-800 prose-blockquote:border-s-2 prose-blockquote:not-italic prose-blockquote:font-normal prose-headings:font-semibold prose-hr:my-0.5 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-0 prose-img:my-1 prose-headings:my-1 prose-pre:my-0 prose-table:my-0 prose-blockquote:my-0 prose-ul:-my-0 prose-ol:-my-0 prose-li:-my-0 whitespace-pre-line; @apply text-xs prose dark:prose-invert prose-blockquote:border-s-gray-100 prose-blockquote:dark:border-gray-800 prose-blockquote:border-s-2 prose-blockquote:not-italic prose-blockquote:font-normal prose-headings:font-normal prose-hr:my-0.5 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-0 prose-img:my-1 prose-headings:my-1 prose-pre:my-0 prose-table:my-0 prose-blockquote:my-0 prose-ul:-my-0 prose-ol:-my-0 prose-li:-my-0 whitespace-pre-line;
} }
.markdown a { .markdown a {
@apply underline; @apply underline;
} }
.font-primary {
font-family: 'Archivo', 'Vazirmatn', sans-serif;
}
.drag-region { .drag-region {
-webkit-app-region: drag; -webkit-app-region: drag;
} }
@@ -673,7 +663,7 @@ input[type='number'] {
} }
.tiptap th { .tiptap th {
@apply cursor-pointer text-start text-xs text-gray-700 dark:text-gray-400 font-semibold uppercase bg-gray-50 dark:bg-gray-850; @apply cursor-pointer text-start text-xs text-gray-700 dark:text-gray-400 font-normal uppercase bg-gray-50 dark:bg-gray-850;
} }
.tiptap td { .tiptap td {
+4 -4
View File
@@ -249,7 +249,7 @@
<Modal size="sm" bind:show> <Modal size="sm" bind:show>
<div> <div>
<div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-1.5"> <div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-1.5">
<h1 class="text-lg font-medium self-center font-primary"> <h1 class="text-lg font-normal self-center ">
{#if edit} {#if edit}
{$i18n.t('Edit Connection')} {$i18n.t('Edit Connection')}
{:else} {:else}
@@ -691,11 +691,11 @@
</div> </div>
</div> </div>
<div class="flex justify-between items-center pt-3 text-sm font-medium"> <div class="flex justify-between items-center pt-3 text-sm font-normal">
<div> <div>
{#if edit} {#if edit}
<button <button
class="px-1 py-1.5 text-sm font-medium text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:underline transition" class="px-1 py-1.5 text-sm font-normal text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:underline transition"
type="button" type="button"
on:click={() => { on:click={() => {
showDeleteConfirmDialog = true; showDeleteConfirmDialog = true;
@@ -707,7 +707,7 @@
</div> </div>
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed' ? ' cursor-not-allowed'
: ''}" : ''}"
type="submit" type="submit"
@@ -7,7 +7,7 @@
</script> </script>
<div class="px-3"> <div class="px-3">
<div class="text-center dark:text-white text-2xl font-medium z-50" role="heading" aria-level="2"> <div class="text-center dark:text-white text-2xl font-normal z-50" role="heading" aria-level="2">
{#if title} {#if title}
{title} {title}
{:else} {:else}
@@ -359,7 +359,7 @@
<Modal size="sm" bind:show> <Modal size="sm" bind:show>
<div> <div>
<div class="flex justify-between dark:text-gray-100 px-5 pt-4 pb-2"> <div class="flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
<h1 class="text-lg font-medium self-center font-primary"> <h1 class="text-lg font-normal self-center ">
{#if edit} {#if edit}
{$i18n.t('Edit Terminal Connection')} {$i18n.t('Edit Terminal Connection')}
{:else} {:else}
@@ -731,7 +731,7 @@
</div> </div>
<button <button
type="button" type="button"
class="px-2 py-1 text-xs font-medium rounded-full bg-gray-100 hover:bg-gray-200 dark:bg-gray-850 dark:hover:bg-gray-800 transition" class="px-2 py-1 text-xs font-normal rounded-full bg-gray-100 hover:bg-gray-200 dark:bg-gray-850 dark:hover:bg-gray-800 transition"
disabled={refreshing} disabled={refreshing}
on:click={refreshHandler} on:click={refreshHandler}
> >
@@ -771,7 +771,7 @@
> >
<LockClosed strokeWidth="2.5" className="size-3.5 shrink-0" /> <LockClosed strokeWidth="2.5" className="size-3.5 shrink-0" />
<div class="text-xs font-medium shrink-0"> <div class="text-xs font-normal shrink-0">
{$i18n.t('Access')} {$i18n.t('Access')}
</div> </div>
</button> </button>
@@ -881,11 +881,11 @@
</div> </div>
</div> </div>
<div class="flex justify-between items-center pt-3 text-sm font-medium"> <div class="flex justify-between items-center pt-3 text-sm font-normal">
<div> <div>
{#if edit} {#if edit}
<button <button
class="px-1 py-1.5 text-sm font-medium text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:underline transition" class="px-1 py-1.5 text-sm font-normal text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:underline transition"
type="button" type="button"
on:click={() => { on:click={() => {
showDeleteConfirmDialog = true; showDeleteConfirmDialog = true;
@@ -897,7 +897,7 @@
</div> </div>
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 disabled:opacity-50 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 disabled:opacity-50 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center"
type="submit" type="submit"
disabled={loadingPolicy || !!policyLoadError} disabled={loadingPolicy || !!policyLoadError}
> >
+9 -9
View File
@@ -445,7 +445,7 @@
<Modal size="sm" bind:show> <Modal size="sm" bind:show>
<div> <div>
<div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-2"> <div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
<h1 class=" text-lg font-medium self-center font-primary"> <h1 class=" text-lg font-normal self-center ">
{#if edit} {#if edit}
{$i18n.t('Edit Connection')} {$i18n.t('Edit Connection')}
{:else} {:else}
@@ -686,13 +686,13 @@
{#if !oauthClientInfo} {#if !oauthClientInfo}
<div <div
class="text-xs font-medium px-1.5 rounded-md bg-yellow-500/20 text-yellow-700 dark:text-yellow-200" class="text-xs font-normal px-1.5 rounded-md bg-yellow-500/20 text-yellow-700 dark:text-yellow-200"
> >
{$i18n.t('Not Registered')} {$i18n.t('Not Registered')}
</div> </div>
{:else} {:else}
<div <div
class="text-xs font-medium px-1.5 rounded-md bg-green-500/20 text-green-700 dark:text-green-200" class="text-xs font-normal px-1.5 rounded-md bg-green-500/20 text-green-700 dark:text-green-200"
> >
{$i18n.t('Registered')} {$i18n.t('Registered')}
</div> </div>
@@ -813,7 +813,7 @@
> >
<LockClosed strokeWidth="2.5" className="size-3.5 shrink-0" /> <LockClosed strokeWidth="2.5" className="size-3.5 shrink-0" />
<div class="text-xs font-medium shrink-0"> <div class="text-xs font-normal shrink-0">
{$i18n.t('Access')} {$i18n.t('Access')}
</div> </div>
</button> </button>
@@ -999,24 +999,24 @@
<div <div
class=" bg-yellow-500/20 text-yellow-700 dark:text-yellow-200 rounded-2xl text-xs px-4 py-3 mb-2 mt-1" class=" bg-yellow-500/20 text-yellow-700 dark:text-yellow-200 rounded-2xl text-xs px-4 py-3 mb-2 mt-1"
> >
<span class="font-medium"> <span class="font-normal">
{$i18n.t('Warning')}: {$i18n.t('Warning')}:
</span> </span>
{$i18n.t( {$i18n.t(
'MCP support is experimental and its specification changes often, which can lead to incompatibilities. OpenAPI specification support is directly maintained by the Open WebUI team, making it the more reliable option for compatibility.' 'MCP support is experimental and its specification changes often, which can lead to incompatibilities. OpenAPI specification support is directly maintained by the Open WebUI team, making it the more reliable option for compatibility.'
)} )}
<a class="font-medium underline" href="https://docs.openwebui.com/" target="_blank" <a class="font-normal underline" href="https://docs.openwebui.com/" target="_blank"
>{$i18n.t('Read more →')}</a >{$i18n.t('Read more →')}</a
> >
</div> </div>
{/if} {/if}
<div class="flex justify-between items-center pt-3 text-sm font-medium"> <div class="flex justify-between items-center pt-3 text-sm font-normal">
<div> <div>
{#if edit} {#if edit}
<button <button
class="px-1 py-1.5 text-sm font-medium text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:underline transition" class="px-1 py-1.5 text-sm font-normal text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:underline transition"
type="button" type="button"
on:click={() => { on:click={() => {
showDeleteConfirmDialog = true; showDeleteConfirmDialog = true;
@@ -1028,7 +1028,7 @@
</div> </div>
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed' ? ' cursor-not-allowed'
: ''}" : ''}"
type="submit" type="submit"
+2 -2
View File
@@ -112,7 +112,7 @@
<!-- Header --> <!-- Header -->
<div class="flex justify-between dark:text-gray-100 px-5 pt-4 pb-2"> <div class="flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
<input <input
class="w-full text-lg font-medium bg-transparent outline-hidden font-primary placeholder:text-gray-300 dark:placeholder:text-gray-700" class="w-full text-lg font-normal bg-transparent outline-hidden placeholder:text-gray-300 dark:placeholder:text-gray-700"
type="text" type="text"
bind:value={name} bind:value={name}
placeholder={$i18n.t('Automation title')} placeholder={$i18n.t('Automation title')}
@@ -154,7 +154,7 @@
{$i18n.t('Cancel')} {$i18n.t('Cancel')}
</button> </button>
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 {loading class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 {loading
? 'cursor-not-allowed' ? 'cursor-not-allowed'
: ''}" : ''}"
on:click={submitHandler} on:click={submitHandler}
+5 -5
View File
@@ -38,7 +38,7 @@
<Modal bind:show size="xl"> <Modal bind:show size="xl">
<div class="px-6 pt-5 dark:text-white text-black"> <div class="px-6 pt-5 dark:text-white text-black">
<div class="flex justify-between items-start"> <div class="flex justify-between items-start">
<h2 class="text-xl font-medium m-0"> <h2 class="text-xl font-normal m-0">
{$i18n.t("What's New in")} {$i18n.t("What's New in")}
{$WEBUI_NAME} {$WEBUI_NAME}
<Confetti x={[-1, -0.25]} y={[0, 0.5]} /> <Confetti x={[-1, -0.25]} y={[0, 0.5]} />
@@ -62,7 +62,7 @@
{#if changelog} {#if changelog}
{#each Object.keys(changelog) as version} {#each Object.keys(changelog) as version}
<div class=" mb-3 pr-2"> <div class=" mb-3 pr-2">
<h3 class="font-semibold text-xl mb-1 dark:text-white m-0"> <h3 class="font-normal text-xl mb-1 dark:text-white m-0">
v{version} - {changelog[version].date} v{version} - {changelog[version].date}
</h3> </h3>
@@ -71,7 +71,7 @@
{#each Object.keys(changelog[version]).filter((section) => section !== 'date') as section} {#each Object.keys(changelog[version]).filter((section) => section !== 'date') as section}
<div class="w-full"> <div class="w-full">
<div <div
class="font-semibold uppercase text-xs {section === 'added' class="font-normal uppercase text-xs {section === 'added'
? 'bg-blue-500/20 text-blue-700 dark:text-blue-200' ? 'bg-blue-500/20 text-blue-700 dark:text-blue-200'
: section === 'fixed' : section === 'fixed'
? 'bg-green-500/20 text-green-700 dark:text-green-200' ? 'bg-green-500/20 text-green-700 dark:text-green-200'
@@ -98,10 +98,10 @@
{/if} {/if}
</div> </div>
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
on:click={closeModal} on:click={closeModal}
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
> >
<span class="relative">{$i18n.t("Okay, Let's Go!")}</span> <span class="relative">{$i18n.t("Okay, Let's Go!")}</span>
</button> </button>
+3 -3
View File
@@ -64,7 +64,7 @@
<Modal size="sm" bind:show> <Modal size="sm" bind:show>
<div> <div>
<div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2"> <div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2">
<div class=" text-lg font-medium self-center">{$i18n.t('Import')}</div> <div class=" text-lg font-normal self-center">{$i18n.t('Import')}</div>
<button <button
class="self-center" class="self-center"
aria-label={$i18n.t('Close')} aria-label={$i18n.t('Close')}
@@ -102,9 +102,9 @@
</div> </div>
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed' ? ' cursor-not-allowed'
: ''}" : ''}"
type="submit" type="submit"
+1 -1
View File
@@ -114,7 +114,7 @@
<div> <div>
{#if title} {#if title}
<div class=" text-[13px] font-medium mb-0.5 line-clamp-1">{title}</div> <div class=" text-[13px] font-normal mb-0.5 line-clamp-1">{title}</div>
{/if} {/if}
<div class=" line-clamp-2 text-xs self-center dark:text-gray-300 font-normal"> <div class=" line-clamp-2 text-xs self-center dark:text-gray-300 font-normal">
+2 -2
View File
@@ -88,14 +88,14 @@
<div class="flex flex-col justify-center items-center"> <div class="flex flex-col justify-center items-center">
<button <button
aria-label={$i18n.t('Get started')} aria-label={$i18n.t('Get started')}
class="relative z-20 flex p-1 rounded-full bg-white/5 hover:bg-white/10 transition font-medium text-sm" class="relative z-20 flex p-1 rounded-full bg-white/5 hover:bg-white/10 transition font-normal text-sm"
on:click={() => { on:click={() => {
getStartedHandler(); getStartedHandler();
}} }}
> >
<ArrowRightCircle className="size-6" aria-hidden="true" /> <ArrowRightCircle className="size-6" aria-hidden="true" />
</button> </button>
<div class="mt-1.5 font-primary text-base font-medium" aria-hidden="true"> <div class="mt-1.5 text-base font-normal" aria-hidden="true">
{$i18n.t(`Get started`)} {$i18n.t(`Get started`)}
</div> </div>
</div> </div>
@@ -180,7 +180,7 @@
{#if model} {#if model}
<div class="flex justify-between dark:text-gray-300 px-5 pt-4 pb-2"> <div class="flex justify-between dark:text-gray-300 px-5 pt-4 pb-2">
<Tooltip content={`${model.name} (${model.id})`} placement="top-start"> <Tooltip content={`${model.name} (${model.id})`} placement="top-start">
<div class="text-lg font-medium self-center line-clamp-1"> <div class="text-lg font-normal self-center line-clamp-1">
{model.name} {model.name}
</div> </div>
</Tooltip> </Tooltip>
@@ -193,7 +193,7 @@
<div class="px-5 border-b border-gray-100 dark:border-gray-850"> <div class="px-5 border-b border-gray-100 dark:border-gray-850">
<div class="flex gap-4"> <div class="flex gap-4">
<button <button
class="py-2 text-sm font-medium border-b-2 transition-colors {selectedTab === 'overview' class="py-2 text-sm font-normal border-b-2 transition-colors {selectedTab === 'overview'
? 'border-black dark:border-white text-gray-900 dark:text-white' ? 'border-black dark:border-white text-gray-900 dark:text-white'
: 'border-transparent text-gray-500 hover:text-gray-700 dark:hover:text-gray-300'}" : 'border-transparent text-gray-500 hover:text-gray-700 dark:hover:text-gray-300'}"
on:click={() => selectTab('overview')} on:click={() => selectTab('overview')}
@@ -202,7 +202,7 @@
</button> </button>
{#if $config?.features?.enable_admin_chat_access} {#if $config?.features?.enable_admin_chat_access}
<button <button
class="py-2 text-sm font-medium border-b-2 transition-colors {selectedTab === 'chats' class="py-2 text-sm font-normal border-b-2 transition-colors {selectedTab === 'chats'
? 'border-black dark:border-white text-gray-900 dark:text-white' ? 'border-black dark:border-white text-gray-900 dark:text-white'
: 'border-transparent text-gray-500 hover:text-gray-700 dark:hover:text-gray-300'}" : 'border-transparent text-gray-500 hover:text-gray-700 dark:hover:text-gray-300'}"
on:click={() => selectTab('chats')} on:click={() => selectTab('chats')}
@@ -219,7 +219,7 @@
<div class="mb-4 mt-3"> <div class="mb-4 mt-3">
<div class="flex items-center justify-between mb-2"> <div class="flex items-center justify-between mb-2">
<Tooltip content={$i18n.t('Thumbs up/down ratings from users on model responses')}> <Tooltip content={$i18n.t('Thumbs up/down ratings from users on model responses')}>
<div class="text-xs text-gray-500 font-medium uppercase tracking-wide cursor-help"> <div class="text-xs text-gray-500 font-normal uppercase tracking-wide cursor-help">
{$i18n.t('Feedback Activity')} {$i18n.t('Feedback Activity')}
</div> </div>
</Tooltip> </Tooltip>
@@ -229,7 +229,7 @@
{#each TIME_RANGES as range} {#each TIME_RANGES as range}
<button <button
type="button" type="button"
class="rounded-full transition-all duration-200 px-2.5 py-0.5 text-xs font-medium {selectedRange === class="rounded-full transition-all duration-200 px-2.5 py-0.5 text-xs font-normal {selectedRange ===
range.key range.key
? 'bg-white text-gray-900 shadow-sm dark:bg-gray-700 dark:text-white' ? 'bg-white text-gray-900 shadow-sm dark:bg-gray-700 dark:text-white'
: 'text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200'}" : 'text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200'}"
@@ -249,14 +249,14 @@
<!-- Tags --> <!-- Tags -->
<div class="mb-4"> <div class="mb-4">
<div class="text-xs text-gray-500 mb-2 font-medium uppercase tracking-wide"> <div class="text-xs text-gray-500 mb-2 font-normal uppercase tracking-wide">
{$i18n.t('Tags')} {$i18n.t('Tags')}
</div> </div>
{#if tags.length} {#if tags.length}
<div class="flex flex-wrap gap-1 -mx-1"> <div class="flex flex-wrap gap-1 -mx-1">
{#each tags as tagInfo} {#each tags as tagInfo}
<span class="px-2 py-0.5 rounded-full bg-gray-100 dark:bg-gray-850 text-xs"> <span class="px-2 py-0.5 rounded-full bg-gray-100 dark:bg-gray-850 text-xs">
{tagInfo.tag} <span class="text-gray-500 font-medium">{tagInfo.count}</span> {tagInfo.tag} <span class="text-gray-500 font-normal">{tagInfo.count}</span>
</span> </span>
{/each} {/each}
</div> </div>
@@ -283,7 +283,7 @@
<div class="flex justify-end pt-4"> <div class="flex justify-end pt-4">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="button" type="button"
on:click={close} on:click={close}
> >
@@ -234,7 +234,7 @@
<div <div
class="pt-0.5 pb-1 gap-1 flex flex-row justify-between items-center sticky top-0 z-10 bg-white dark:bg-gray-900" class="pt-0.5 pb-1 gap-1 flex flex-row justify-between items-center sticky top-0 z-10 bg-white dark:bg-gray-900"
> >
<div class="text-lg font-medium px-0.5 shrink-0"> <div class="text-lg font-normal px-0.5 shrink-0">
{$i18n.t('Analytics')} {$i18n.t('Analytics')}
</div> </div>
<div class="flex items-center gap-2 flex-wrap justify-end min-w-0"> <div class="flex items-center gap-2 flex-wrap justify-end min-w-0">
@@ -287,27 +287,27 @@
{#if !loading} {#if !loading}
<div class="flex gap-3 text-xs text-gray-500 dark:text-gray-400 px-0.5 pb-2"> <div class="flex gap-3 text-xs text-gray-500 dark:text-gray-400 px-0.5 pb-2">
<span <span
><span class="font-medium text-gray-900 dark:text-gray-300" ><span class="font-normal text-gray-900 dark:text-gray-300"
>{summary.total_messages.toLocaleString()}</span >{summary.total_messages.toLocaleString()}</span
> >
{$i18n.t('messages')}</span {$i18n.t('messages')}</span
> >
<Tooltip content={$i18n.t('Token counts are estimates and may not reflect actual API usage')}> <Tooltip content={$i18n.t('Token counts are estimates and may not reflect actual API usage')}>
<span class="cursor-help" <span class="cursor-help"
><span class="font-medium text-gray-900 dark:text-gray-300" ><span class="font-normal text-gray-900 dark:text-gray-300"
>{formatNumber(totalTokens.total)}</span >{formatNumber(totalTokens.total)}</span
> >
{$i18n.t('tokens')}</span {$i18n.t('tokens')}</span
> >
</Tooltip> </Tooltip>
<span <span
><span class="font-medium text-gray-900 dark:text-gray-300" ><span class="font-normal text-gray-900 dark:text-gray-300"
>{summary.total_chats.toLocaleString()}</span >{summary.total_chats.toLocaleString()}</span
> >
{$i18n.t('chats')}</span {$i18n.t('chats')}</span
> >
<span <span
><span class="font-medium text-gray-900 dark:text-gray-300">{summary.total_users}</span> ><span class="font-normal text-gray-900 dark:text-gray-300">{summary.total_users}</span>
{$i18n.t('users')}</span {$i18n.t('users')}</span
> >
</div> </div>
@@ -328,7 +328,7 @@
]} ]}
{@const periodMap = { '24h': 'hour', '7d': 'week', '30d': 'month', '90d': 'year', all: 'all' }} {@const periodMap = { '24h': 'hour', '7d': 'week', '30d': 'month', '90d': 'year', all: 'all' }}
<div class="mb-4"> <div class="mb-4">
<div class="text-xs font-medium text-gray-600 dark:text-gray-400 mb-2 px-0.5"> <div class="text-xs font-normal text-gray-600 dark:text-gray-400 mb-2 px-0.5">
{selectedPeriod === '24h' ? $i18n.t('Hourly Messages') : $i18n.t('Daily Messages')} {selectedPeriod === '24h' ? $i18n.t('Hourly Messages') : $i18n.t('Daily Messages')}
</div> </div>
<ChartLine <ChartLine
@@ -350,7 +350,7 @@
<div class="grid md:grid-cols-2 gap-4"> <div class="grid md:grid-cols-2 gap-4">
<!-- Model Usage Table --> <!-- Model Usage Table -->
<div> <div>
<div class="text-xs font-medium text-gray-700 dark:text-gray-300 mb-1 px-0.5"> <div class="text-xs font-normal text-gray-700 dark:text-gray-300 mb-1 px-0.5">
{$i18n.t('Model Usage')} {$i18n.t('Model Usage')}
</div> </div>
<div class="scrollbar-hidden relative whitespace-nowrap overflow-x-auto max-w-full"> <div class="scrollbar-hidden relative whitespace-nowrap overflow-x-auto max-w-full">
@@ -478,7 +478,7 @@
}} }}
> >
<td class="px-3 py-1 text-gray-400">{idx + 1}</td> <td class="px-3 py-1 text-gray-400">{idx + 1}</td>
<td class="px-3 py-1 font-medium text-gray-900 dark:text-white"> <td class="px-3 py-1 font-normal text-gray-900 dark:text-white">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<img <img
src="{WEBUI_API_BASE_URL}/models/model/profile/image?id={model.model_id}" src="{WEBUI_API_BASE_URL}/models/model/profile/image?id={model.model_id}"
@@ -518,7 +518,7 @@
<!-- User Activity Table --> <!-- User Activity Table -->
<div> <div>
<div class="text-xs font-medium text-gray-700 dark:text-gray-300 mb-1 px-0.5"> <div class="text-xs font-normal text-gray-700 dark:text-gray-300 mb-1 px-0.5">
{$i18n.t('User Activity')} {$i18n.t('User Activity')}
</div> </div>
<div class="scrollbar-hidden relative whitespace-nowrap overflow-x-auto max-w-full"> <div class="scrollbar-hidden relative whitespace-nowrap overflow-x-auto max-w-full">
@@ -586,7 +586,7 @@
{#each sortedUsers as user, idx (user.user_id)} {#each sortedUsers as user, idx (user.user_id)}
<tr class="bg-white dark:bg-gray-900 dark:border-gray-850 text-xs"> <tr class="bg-white dark:bg-gray-900 dark:border-gray-850 text-xs">
<td class="px-3 py-1 text-gray-400">{idx + 1}</td> <td class="px-3 py-1 text-gray-400">{idx + 1}</td>
<td class="px-3 py-1 font-medium text-gray-900 dark:text-white"> <td class="px-3 py-1 font-normal text-gray-900 dark:text-white">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<img <img
src="{WEBUI_API_BASE_URL}/users/{user.user_id}/profile/image" src="{WEBUI_API_BASE_URL}/users/{user.user_id}/profile/image"
@@ -54,7 +54,7 @@
<div <div
class="pt-0.5 pb-1 gap-1 flex flex-col md:flex-row justify-between sticky top-0 z-10 bg-white dark:bg-gray-900" class="pt-0.5 pb-1 gap-1 flex flex-col md:flex-row justify-between sticky top-0 z-10 bg-white dark:bg-gray-900"
> >
<div class="flex items-center text-xl font-medium px-0.5 gap-2 shrink-0"> <div class="flex items-center text-xl font-normal px-0.5 gap-2 shrink-0">
{$i18n.t('Model Usage')} {$i18n.t('Model Usage')}
<span class="text-lg text-gray-500">{totalMessages} {$i18n.t('messages')}</span> <span class="text-lg text-gray-500">{totalMessages} {$i18n.t('messages')}</span>
</div> </div>
@@ -137,7 +137,7 @@
<tr <tr
class="bg-white dark:bg-gray-900 text-xs hover:bg-gray-50 dark:hover:bg-gray-850/50 transition" class="bg-white dark:bg-gray-900 text-xs hover:bg-gray-50 dark:hover:bg-gray-850/50 transition"
> >
<td class="px-3 py-1.5 font-medium text-gray-900 dark:text-white"> <td class="px-3 py-1.5 font-normal text-gray-900 dark:text-white">
{idx + 1} {idx + 1}
</td> </td>
<td class="px-3 py-1.5"> <td class="px-3 py-1.5">
@@ -150,13 +150,13 @@
e.target.src = '/favicon.png'; e.target.src = '/favicon.png';
}} }}
/> />
<span class="font-medium text-gray-800 dark:text-gray-200">{model.name}</span> <span class="font-normal text-gray-800 dark:text-gray-200">{model.name}</span>
</div> </div>
</td> </td>
<td class="px-3 py-1.5 text-right font-medium text-gray-900 dark:text-white"> <td class="px-3 py-1.5 text-right font-normal text-gray-900 dark:text-white">
{model.count.toLocaleString()} {model.count.toLocaleString()}
</td> </td>
<td class="px-3 py-1.5 text-right font-medium text-blue-500"> <td class="px-3 py-1.5 text-right font-normal text-blue-500">
{((model.count / totalMessages) * 100).toFixed(1)}% {((model.count / totalMessages) * 100).toFixed(1)}%
</td> </td>
</tr> </tr>
@@ -49,7 +49,7 @@
<div <div
class="pt-0.5 pb-1 gap-1 flex flex-col md:flex-row justify-between sticky top-0 z-10 bg-white dark:bg-gray-900" class="pt-0.5 pb-1 gap-1 flex flex-col md:flex-row justify-between sticky top-0 z-10 bg-white dark:bg-gray-900"
> >
<div class="flex items-center text-xl font-medium px-0.5 gap-2 shrink-0"> <div class="flex items-center text-xl font-normal px-0.5 gap-2 shrink-0">
{$i18n.t('User Activity')} {$i18n.t('User Activity')}
<span class="text-lg text-gray-500">{userStats.length} {$i18n.t('users')}</span> <span class="text-lg text-gray-500">{userStats.length} {$i18n.t('users')}</span>
</div> </div>
@@ -132,18 +132,18 @@
<tr <tr
class="bg-white dark:bg-gray-900 text-xs hover:bg-gray-50 dark:hover:bg-gray-850/50 transition" class="bg-white dark:bg-gray-900 text-xs hover:bg-gray-50 dark:hover:bg-gray-850/50 transition"
> >
<td class="px-3 py-1.5 font-medium text-gray-900 dark:text-white"> <td class="px-3 py-1.5 font-normal text-gray-900 dark:text-white">
{idx + 1} {idx + 1}
</td> </td>
<td class="px-3 py-1.5"> <td class="px-3 py-1.5">
<span class="font-medium text-gray-800 dark:text-gray-200 font-mono text-xs"> <span class="font-normal text-gray-800 dark:text-gray-200 font-mono text-xs">
{user.user_id.substring(0, 8)}... {user.user_id.substring(0, 8)}...
</span> </span>
</td> </td>
<td class="px-3 py-1.5 text-right font-medium text-gray-900 dark:text-white"> <td class="px-3 py-1.5 text-right font-normal text-gray-900 dark:text-white">
{user.count.toLocaleString()} {user.count.toLocaleString()}
</td> </td>
<td class="px-3 py-1.5 text-right font-medium text-blue-500"> <td class="px-3 py-1.5 text-right font-normal text-blue-500">
{((user.count / totalMessages) * 100).toFixed(1)}% {((user.count / totalMessages) * 100).toFixed(1)}%
</td> </td>
</tr> </tr>
+1 -1
View File
@@ -52,7 +52,7 @@
<div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4"> <div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4">
<div <div
id="users-tabs-container" id="users-tabs-container"
class="tabs mx-[16px] lg:mx-0 lg:px-[16px] flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-50 dark:text-gray-200 text-sm font-medium text-left scrollbar-none" class="tabs mx-[16px] lg:mx-0 lg:px-[16px] flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-50 dark:text-gray-200 text-sm font-normal text-left scrollbar-none"
> >
<a <a
id="leaderboard" id="leaderboard"
@@ -43,7 +43,7 @@
{#if selectedFeedback} {#if selectedFeedback}
<div> <div>
<div class="flex justify-between dark:text-gray-300 px-5 pt-4 pb-2"> <div class="flex justify-between dark:text-gray-300 px-5 pt-4 pb-2">
<div class="text-lg font-medium self-center"> <div class="text-lg font-normal self-center">
{$i18n.t('Feedback Details')} {$i18n.t('Feedback Details')}
</div> </div>
<button class="self-center" on:click={close} aria-label="Close"> <button class="self-center" on:click={close} aria-label="Close">
@@ -131,7 +131,7 @@
<div class="flex justify-end pt-2"> <div class="flex justify-end pt-2">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="button" type="button"
on:click={close} on:click={close}
> >
@@ -218,12 +218,12 @@
{:else} {:else}
<div class="flex flex-col gap-1 mt-0.5 mb-3"> <div class="flex flex-col gap-1 mt-0.5 mb-3">
<div class="flex justify-between items-center"> <div class="flex justify-between items-center">
<div class="flex items-center md:self-center text-xl font-medium px-0.5 gap-2 shrink-0"> <div class="flex items-center md:self-center text-xl font-normal px-0.5 gap-2 shrink-0">
<div> <div>
{$i18n.t('Feedback History')} {$i18n.t('Feedback History')}
</div> </div>
<div class="text-lg font-medium text-gray-500 dark:text-gray-500"> <div class="text-lg font-normal text-gray-500 dark:text-gray-500">
{total} {total}
</div> </div>
</div> </div>
@@ -234,7 +234,7 @@
<button <button
class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 dark:text-gray-200 transition" class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 dark:text-gray-200 transition"
> >
<div class="self-center font-medium line-clamp-1"> <div class="self-center font-normal line-clamp-1">
{$i18n.t('Export')} {$i18n.t('Export')}
</div> </div>
<ChevronDown className="size-3" strokeWidth="2.5" /> <ChevronDown className="size-3" strokeWidth="2.5" />
@@ -319,7 +319,7 @@
<div class="w-full h-full flex flex-col justify-center items-center my-16 mb-24"> <div class="w-full h-full flex flex-col justify-center items-center my-16 mb-24">
<div class="max-w-md text-center"> <div class="max-w-md text-center">
<div class="text-3xl mb-3">😕</div> <div class="text-3xl mb-3">😕</div>
<div class="text-lg font-medium mb-1">{$i18n.t('No feedback found')}</div> <div class="text-lg font-normal mb-1">{$i18n.t('No feedback found')}</div>
<div class="text-gray-500 text-center text-xs"> <div class="text-gray-500 text-center text-xs">
{$i18n.t('Try adjusting your search or filter to find what you are looking for.')} {$i18n.t('Try adjusting your search or filter to find what you are looking for.')}
</div> </div>
@@ -432,7 +432,7 @@
class="bg-white dark:bg-gray-900 dark:border-gray-850 text-xs cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-850/50 transition rounded-xl" class="bg-white dark:bg-gray-900 dark:border-gray-850 text-xs cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-850/50 transition rounded-xl"
on:click={() => openFeedbackModal(feedback)} on:click={() => openFeedbackModal(feedback)}
> >
<td class=" py-0.5 text-right font-medium"> <td class=" py-0.5 text-right font-normal">
<div class="flex justify-center"> <div class="flex justify-center">
<Tooltip content={feedback?.user?.name}> <Tooltip content={feedback?.user?.name}>
<div class="shrink-0"> <div class="shrink-0">
@@ -452,7 +452,7 @@
{#if feedback.data?.sibling_model_ids} {#if feedback.data?.sibling_model_ids}
<Tooltip content={feedback.data?.model_id} placement="top-start"> <Tooltip content={feedback.data?.model_id} placement="top-start">
<div <div
class="font-medium text-gray-600 dark:text-gray-400 flex-1 line-clamp-1" class="font-normal text-gray-600 dark:text-gray-400 flex-1 line-clamp-1"
> >
{feedback.data?.model_id} {feedback.data?.model_id}
</div> </div>
@@ -476,7 +476,7 @@
{:else} {:else}
<Tooltip content={feedback.data?.model_id} placement="top-start"> <Tooltip content={feedback.data?.model_id} placement="top-start">
<div <div
class="text-sm font-medium text-gray-600 dark:text-gray-400 flex-1 py-1.5 line-clamp-1" class="text-sm font-normal text-gray-600 dark:text-gray-400 flex-1 py-1.5 line-clamp-1"
> >
{feedback.data?.model_id} {feedback.data?.model_id}
</div> </div>
@@ -487,7 +487,7 @@
</td> </td>
{#if feedback?.data?.rating} {#if feedback?.data?.rating}
<td class="px-3 py-1 text-right font-medium text-gray-900 dark:text-white w-max"> <td class="px-3 py-1 text-right font-normal text-gray-900 dark:text-white w-max">
<div class=" flex justify-end"> <div class=" flex justify-end">
{#if feedback?.data?.rating.toString() === '1'} {#if feedback?.data?.rating.toString() === '1'}
<Badge type="info" content={$i18n.t('Won')} /> <Badge type="info" content={$i18n.t('Won')} />
@@ -500,11 +500,11 @@
</td> </td>
{/if} {/if}
<td class=" px-3 py-1 text-right font-medium"> <td class=" px-3 py-1 text-right font-normal">
{dayjs(feedback.updated_at * 1000).fromNow()} {dayjs(feedback.updated_at * 1000).fromNow()}
</td> </td>
<td class=" px-3 py-1 text-right font-medium" on:click={(e) => e.stopPropagation()}> <td class=" px-3 py-1 text-right font-normal" on:click={(e) => e.stopPropagation()}>
<FeedbackMenu <FeedbackMenu
on:delete={(e) => { on:delete={(e) => {
deleteFeedbackHandler(feedback.id); deleteFeedbackHandler(feedback.id);
@@ -123,7 +123,7 @@
<div <div
class="pt-0.5 pb-1 gap-1 flex flex-col md:flex-row justify-between sticky top-0 z-10 bg-white dark:bg-gray-900" class="pt-0.5 pb-1 gap-1 flex flex-col md:flex-row justify-between sticky top-0 z-10 bg-white dark:bg-gray-900"
> >
<div class="flex items-center text-xl font-medium px-0.5 gap-2 shrink-0"> <div class="flex items-center text-xl font-normal px-0.5 gap-2 shrink-0">
{$i18n.t('Leaderboard')} {$i18n.t('Leaderboard')}
<span class="text-lg text-gray-500">{rankedModels.length}</span> <span class="text-lg text-gray-500">{rankedModels.length}</span>
</div> </div>
@@ -188,7 +188,7 @@
class="bg-white dark:bg-gray-900 text-xs group cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-850/50 transition" class="bg-white dark:bg-gray-900 text-xs group cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-850/50 transition"
on:click={() => openModal(model)} on:click={() => openModal(model)}
> >
<td class="px-3 py-1.5 font-medium text-gray-900 dark:text-white"> <td class="px-3 py-1.5 font-normal text-gray-900 dark:text-white">
{model.rating !== '-' ? idx + 1 : '-'} {model.rating !== '-' ? idx + 1 : '-'}
</td> </td>
<td class="px-3 py-1.5"> <td class="px-3 py-1.5">
@@ -202,16 +202,16 @@
}} }}
/> />
<Tooltip content={`${model.name} (${model.id})`} placement="top-start"> <Tooltip content={`${model.name} (${model.id})`} placement="top-start">
<span class="font-medium text-gray-800 dark:text-gray-200 line-clamp-1" <span class="font-normal text-gray-800 dark:text-gray-200 line-clamp-1"
>{model.name}</span >{model.name}</span
> >
</Tooltip> </Tooltip>
</div> </div>
</td> </td>
<td class="px-3 py-1.5 text-right font-medium text-gray-900 dark:text-white"> <td class="px-3 py-1.5 text-right font-normal text-gray-900 dark:text-white">
{model.rating} {model.rating}
</td> </td>
<td class="px-3 py-1.5 text-right font-medium text-green-500 w-10"> <td class="px-3 py-1.5 text-right font-normal text-green-500 w-10">
{#if model.stats.won === '-'}-{:else} {#if model.stats.won === '-'}-{:else}
<span class="hidden group-hover:inline" <span class="hidden group-hover:inline"
>{((Number(model.stats.won) / model.stats.count) * 100).toFixed(1)}%</span >{((Number(model.stats.won) / model.stats.count) * 100).toFixed(1)}%</span
@@ -219,7 +219,7 @@
<span class="group-hover:hidden">{model.stats.won}</span> <span class="group-hover:hidden">{model.stats.won}</span>
{/if} {/if}
</td> </td>
<td class="px-3 py-1.5 text-right font-medium text-red-500 w-10"> <td class="px-3 py-1.5 text-right font-normal text-red-500 w-10">
{#if model.stats.lost === '-'}-{:else} {#if model.stats.lost === '-'}-{:else}
<span class="hidden group-hover:inline" <span class="hidden group-hover:inline"
>{((Number(model.stats.lost) / model.stats.count) * 100).toFixed(1)}%</span >{((Number(model.stats.lost) / model.stats.count) * 100).toFixed(1)}%</span
@@ -63,7 +63,7 @@
{#if model} {#if model}
<div class="flex justify-between dark:text-gray-300 px-5 pt-4 pb-2"> <div class="flex justify-between dark:text-gray-300 px-5 pt-4 pb-2">
<Tooltip content={`${model.name} (${model.id})`} placement="top-start"> <Tooltip content={`${model.name} (${model.id})`} placement="top-start">
<div class="text-lg font-medium self-center line-clamp-1"> <div class="text-lg font-normal self-center line-clamp-1">
{model.name} {model.name}
</div> </div>
</Tooltip> </Tooltip>
@@ -75,7 +75,7 @@
<!-- Activity Chart --> <!-- Activity Chart -->
<div class="mb-4"> <div class="mb-4">
<div class="flex items-center justify-between mb-2"> <div class="flex items-center justify-between mb-2">
<div class="text-xs text-gray-500 font-medium uppercase tracking-wide"> <div class="text-xs text-gray-500 font-normal uppercase tracking-wide">
{$i18n.t('Activity')} {$i18n.t('Activity')}
</div> </div>
<div <div
@@ -84,7 +84,7 @@
{#each TIME_RANGES as range} {#each TIME_RANGES as range}
<button <button
type="button" type="button"
class="rounded-full transition-all duration-200 px-2.5 py-0.5 text-xs font-medium {selectedRange === class="rounded-full transition-all duration-200 px-2.5 py-0.5 text-xs font-normal {selectedRange ===
range.key range.key
? 'bg-white text-gray-900 shadow-sm dark:bg-gray-700 dark:text-white' ? 'bg-white text-gray-900 shadow-sm dark:bg-gray-700 dark:text-white'
: 'text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200'}" : 'text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200'}"
@@ -103,14 +103,14 @@
</div> </div>
<div class="mb-4"> <div class="mb-4">
<div class="text-xs text-gray-500 mb-2 font-medium uppercase tracking-wide"> <div class="text-xs text-gray-500 mb-2 font-normal uppercase tracking-wide">
{$i18n.t('Tags')} {$i18n.t('Tags')}
</div> </div>
{#if topTags.length} {#if topTags.length}
<div class="flex flex-wrap gap-1 -mx-1"> <div class="flex flex-wrap gap-1 -mx-1">
{#each topTags as tagInfo} {#each topTags as tagInfo}
<span class="px-2 py-0.5 rounded-full bg-gray-100 dark:bg-gray-850 text-xs"> <span class="px-2 py-0.5 rounded-full bg-gray-100 dark:bg-gray-850 text-xs">
{tagInfo.tag} <span class="text-gray-500 font-medium">{tagInfo.count}</span> {tagInfo.tag} <span class="text-gray-500 font-normal">{tagInfo.count}</span>
</span> </span>
{/each} {/each}
</div> </div>
@@ -121,7 +121,7 @@
<div class="flex justify-end pt-2"> <div class="flex justify-end pt-2">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="button" type="button"
on:click={close} on:click={close}
> >
+9 -9
View File
@@ -285,12 +285,12 @@
/> />
<div class="flex justify-between items-center w-full"> <div class="flex justify-between items-center w-full">
<div class="flex items-center md:self-center text-xl font-medium px-0.5 gap-2 shrink-0"> <div class="flex items-center md:self-center text-xl font-normal px-0.5 gap-2 shrink-0">
<div> <div>
{$i18n.t('Functions')} {$i18n.t('Functions')}
</div> </div>
<div class="text-lg font-medium text-gray-500 dark:text-gray-500"> <div class="text-lg font-normal text-gray-500 dark:text-gray-500">
{filteredItems.length} {filteredItems.length}
</div> </div>
</div> </div>
@@ -303,7 +303,7 @@
functionsImportInputElement.click(); functionsImportInputElement.click();
}} }}
> >
<div class=" self-center font-medium line-clamp-1"> <div class=" self-center font-normal line-clamp-1">
{$i18n.t('Import')} {$i18n.t('Import')}
</div> </div>
</button> </button>
@@ -325,7 +325,7 @@
} }
}} }}
> >
<div class=" self-center font-medium line-clamp-1"> <div class=" self-center font-normal line-clamp-1">
{$i18n.t('Export')} {$i18n.t('Export')}
</div> </div>
</button> </button>
@@ -340,7 +340,7 @@
}} }}
> >
<div <div
class="cursor-pointer px-2 py-1.5 rounded-xl bg-black text-white dark:bg-white dark:text-black transition font-medium text-sm flex items-center" class="cursor-pointer px-2 py-1.5 rounded-xl bg-black text-white dark:bg-white dark:text-black transition font-normal text-sm flex items-center"
> >
<Plus className="size-3" strokeWidth="2.5" /> <Plus className="size-3" strokeWidth="2.5" />
@@ -432,7 +432,7 @@
<Tooltip content={func.id} placement="top-start"> <Tooltip content={func.id} placement="top-start">
<div class=" flex items-center gap-1.5"> <div class=" flex items-center gap-1.5">
<div <div
class=" text-xs font-semibold px-1 rounded-sm uppercase line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200" class=" text-xs font-normal px-1 rounded-sm uppercase line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
> >
{func.type} {func.type}
</div> </div>
@@ -441,7 +441,7 @@
{func.name} {func.name}
</div> </div>
{#if func?.meta?.manifest?.version} {#if func?.meta?.manifest?.version}
<div class=" text-gray-500 text-xs font-medium shrink-0"> <div class=" text-gray-500 text-xs font-normal shrink-0">
v{func?.meta?.manifest?.version ?? ''} v{func?.meta?.manifest?.version ?? ''}
</div> </div>
{/if} {/if}
@@ -590,7 +590,7 @@
<div class=" w-full h-full flex flex-col justify-center items-center my-16 mb-24"> <div class=" w-full h-full flex flex-col justify-center items-center my-16 mb-24">
<div class="max-w-md text-center"> <div class="max-w-md text-center">
<div class=" text-3xl mb-3">😕</div> <div class=" text-3xl mb-3">😕</div>
<div class=" text-lg font-medium mb-1">{$i18n.t('No functions found')}</div> <div class=" text-lg font-normal mb-1">{$i18n.t('No functions found')}</div>
<div class=" text-gray-500 text-center text-xs"> <div class=" text-gray-500 text-center text-xs">
{$i18n.t('Try adjusting your search or filter to find what you are looking for.')} {$i18n.t('Try adjusting your search or filter to find what you are looking for.')}
</div> </div>
@@ -622,7 +622,7 @@
}} }}
> >
<div class=" text-sm text-gray-500 truncate"> <div class=" text-sm text-gray-500 truncate">
{$i18n.t('This will delete')} <span class=" font-semibold">{selectedFunction.name}</span>. {$i18n.t('This will delete')} <span class=" font-normal">{selectedFunction.name}</span>.
</div> </div>
</DeleteConfirmDialog> </DeleteConfirmDialog>
@@ -366,7 +366,7 @@ class Pipe:
<div class="flex-1"> <div class="flex-1">
<Tooltip content={$i18n.t('e.g. My Filter')} placement="top-start"> <Tooltip content={$i18n.t('e.g. My Filter')} placement="top-start">
<input <input
class="w-full text-2xl font-medium bg-transparent outline-hidden font-primary" class="w-full text-2xl font-normal bg-transparent outline-hidden "
type="text" type="text"
placeholder={$i18n.t('Function Name')} placeholder={$i18n.t('Function Name')}
bind:value={name} bind:value={name}
@@ -455,16 +455,16 @@ class Pipe:
<div class="pb-3 flex justify-between"> <div class="pb-3 flex justify-between">
<div class="flex-1 pr-3"> <div class="flex-1 pr-3">
<div class="text-xs text-gray-500 line-clamp-2"> <div class="text-xs text-gray-500 line-clamp-2">
<span class=" font-semibold dark:text-gray-200">{$i18n.t('Warning:')}</span> <span class=" font-normal dark:text-gray-200">{$i18n.t('Warning:')}</span>
{$i18n.t('Functions allow arbitrary code execution.')} <br />— {$i18n.t('Functions allow arbitrary code execution.')} <br />—
<span class=" font-medium dark:text-gray-400" <span class=" font-normal dark:text-gray-400"
>{$i18n.t(`don't install random functions from sources you don't trust.`)}</span >{$i18n.t(`don't install random functions from sources you don't trust.`)}</span
> >
</div> </div>
</div> </div>
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
+1 -1
View File
@@ -331,7 +331,7 @@
<div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4"> <div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4">
<div <div
id="admin-settings-tabs-container" id="admin-settings-tabs-container"
class="tabs mx-[16px] lg:mx-0 lg:px-[16px] flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-50 dark:text-gray-200 text-sm font-medium text-left scrollbar-none" class="tabs mx-[16px] lg:mx-0 lg:px-[16px] flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-50 dark:text-gray-200 text-sm font-normal text-left scrollbar-none"
> >
<div <div
class="hidden lg:flex w-full rounded-full px-2.5 gap-2 bg-gray-100/80 dark:bg-gray-850/80 backdrop-blur-2xl my-1 -mx-1 mt-1.5" class="hidden lg:flex w-full rounded-full px-2.5 gap-2 bg-gray-100/80 dark:bg-gray-850/80 backdrop-blur-2xl my-1 -mx-1 mt-1.5"
+31 -31
View File
@@ -236,13 +236,13 @@
<div class=" space-y-3 overflow-y-scroll scrollbar-hidden h-full"> <div class=" space-y-3 overflow-y-scroll scrollbar-hidden h-full">
<div class="flex flex-col gap-3"> <div class="flex flex-col gap-3">
<div> <div>
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Speech-to-Text')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Speech-to-Text')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
{#if STT_ENGINE !== 'web'} {#if STT_ENGINE !== 'web'}
<div class="mb-2"> <div class="mb-2">
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('Supported MIME Types')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('Supported MIME Types')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -258,7 +258,7 @@
{/if} {/if}
<div class="mb-2 py-0.5 flex w-full justify-between"> <div class="mb-2 py-0.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Speech-to-Text Engine')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Speech-to-Text Engine')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<select <select
class="cursor-pointer w-fit pr-8 rounded-sm px-2 p-1 text-xs bg-transparent outline-hidden text-right" class="cursor-pointer w-fit pr-8 rounded-sm px-2 p-1 text-xs bg-transparent outline-hidden text-right"
@@ -292,7 +292,7 @@
<hr class="border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class="border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class="mb-2 py-0.5 flex w-full justify-between"> <div class="mb-2 py-0.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Request Format')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Request Format')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<select <select
class="cursor-pointer w-fit pr-8 rounded-sm px-2 p-1 text-xs bg-transparent outline-hidden text-right" class="cursor-pointer w-fit pr-8 rounded-sm px-2 p-1 text-xs bg-transparent outline-hidden text-right"
@@ -307,7 +307,7 @@
<hr class="border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class="border-gray-100/30 dark:border-gray-850/30 my-2" />
<div> <div>
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('STT Model')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('STT Model')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -333,7 +333,7 @@
<hr class="border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class="border-gray-100/30 dark:border-gray-850/30 my-2" />
<div> <div>
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('STT Model')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('STT Model')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -367,7 +367,7 @@
<hr class="border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class="border-gray-100/30 dark:border-gray-850/30 my-2" />
<div> <div>
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('Azure Region')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('Azure Region')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -380,7 +380,7 @@
</div> </div>
<div> <div>
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('Language Locales')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('Language Locales')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -393,7 +393,7 @@
</div> </div>
<div> <div>
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('Endpoint URL')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('Endpoint URL')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -406,7 +406,7 @@
</div> </div>
<div> <div>
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('Max Speakers')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('Max Speakers')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -435,7 +435,7 @@
<hr class="border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class="border-gray-100/30 dark:border-gray-850/30 my-2" />
<div> <div>
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('STT Model')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('STT Model')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -461,7 +461,7 @@
<div> <div>
<div class="flex items-center justify-between mb-2"> <div class="flex items-center justify-between mb-2">
<div class="text-xs font-medium">{$i18n.t('Use Chat Completions API')}</div> <div class="text-xs font-normal">{$i18n.t('Use Chat Completions API')}</div>
<label class="relative inline-flex items-center cursor-pointer"> <label class="relative inline-flex items-center cursor-pointer">
<input <input
type="checkbox" type="checkbox"
@@ -481,7 +481,7 @@
</div> </div>
{:else if STT_ENGINE === ''} {:else if STT_ENGINE === ''}
<div> <div>
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('STT Model')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('STT Model')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1 mr-2"> <div class="flex-1 mr-2">
@@ -539,12 +539,12 @@
</div> </div>
<div> <div>
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Text-to-Speech')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Text-to-Speech')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class="mb-2 py-0.5 flex w-full justify-between"> <div class="mb-2 py-0.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Text-to-Speech Engine')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Text-to-Speech Engine')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<select <select
class="w-fit pr-8 cursor-pointer rounded-sm px-2 p-1 text-xs bg-transparent outline-hidden text-right" class="w-fit pr-8 cursor-pointer rounded-sm px-2 p-1 text-xs bg-transparent outline-hidden text-right"
@@ -605,7 +605,7 @@
<hr class="border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class="border-gray-100/30 dark:border-gray-850/30 my-2" />
<div> <div>
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('Azure Region')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('Azure Region')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -618,7 +618,7 @@
</div> </div>
<div> <div>
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('Endpoint URL')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('Endpoint URL')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -648,7 +648,7 @@
<div class="mb-2"> <div class="mb-2">
{#if TTS_ENGINE === ''} {#if TTS_ENGINE === ''}
<div> <div>
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('TTS Voice')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('TTS Voice')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<select <select
@@ -669,7 +669,7 @@
</div> </div>
{:else if TTS_ENGINE === 'transformers'} {:else if TTS_ENGINE === 'transformers'}
<div> <div>
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('TTS Model')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('TTS Model')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -711,7 +711,7 @@
{:else if TTS_ENGINE === 'openai'} {:else if TTS_ENGINE === 'openai'}
<div class=" flex gap-2"> <div class=" flex gap-2">
<div class="w-full"> <div class="w-full">
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('TTS Voice')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('TTS Voice')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<TTSVoiceInput <TTSVoiceInput
@@ -724,7 +724,7 @@
</div> </div>
</div> </div>
<div class="w-full"> <div class="w-full">
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('TTS Model')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('TTS Model')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -746,7 +746,7 @@
<div class="mt-2 mb-1 text-xs text-gray-400 dark:text-gray-500"> <div class="mt-2 mb-1 text-xs text-gray-400 dark:text-gray-500">
<div class="w-full"> <div class="w-full">
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('Additional Parameters')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('Additional Parameters')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<Textarea <Textarea
@@ -762,7 +762,7 @@
{:else if TTS_ENGINE === 'elevenlabs'} {:else if TTS_ENGINE === 'elevenlabs'}
<div class=" flex gap-2"> <div class=" flex gap-2">
<div class="w-full"> <div class="w-full">
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('TTS Voice')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('TTS Voice')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<TTSVoiceInput <TTSVoiceInput
@@ -775,7 +775,7 @@
</div> </div>
</div> </div>
<div class="w-full"> <div class="w-full">
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('TTS Model')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('TTS Model')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -797,7 +797,7 @@
{:else if TTS_ENGINE === 'azure'} {:else if TTS_ENGINE === 'azure'}
<div class=" flex gap-2"> <div class=" flex gap-2">
<div class="w-full"> <div class="w-full">
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('TTS Voice')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('TTS Voice')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<TTSVoiceInput <TTSVoiceInput
@@ -810,7 +810,7 @@
</div> </div>
</div> </div>
<div class="w-full"> <div class="w-full">
<div class=" mb-1.5 text-xs font-medium"> <div class=" mb-1.5 text-xs font-normal">
{$i18n.t('Output format')} {$i18n.t('Output format')}
<a <a
href="https://learn.microsoft.com/en-us/azure/ai-services/speech-service/rest-text-to-speech?tabs=streaming#audio-outputs" href="https://learn.microsoft.com/en-us/azure/ai-services/speech-service/rest-text-to-speech?tabs=streaming#audio-outputs"
@@ -834,7 +834,7 @@
{:else if TTS_ENGINE === 'mistral'} {:else if TTS_ENGINE === 'mistral'}
<div class=" flex gap-2"> <div class=" flex gap-2">
<div class="w-full"> <div class="w-full">
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('TTS Voice')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('TTS Voice')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<TTSVoiceInput <TTSVoiceInput
@@ -847,7 +847,7 @@
</div> </div>
</div> </div>
<div class="w-full"> <div class="w-full">
<div class=" mb-1.5 text-xs font-medium">{$i18n.t('TTS Model')}</div> <div class=" mb-1.5 text-xs font-normal">{$i18n.t('TTS Model')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1"> <div class="flex-1">
<input <input
@@ -870,7 +870,7 @@
</div> </div>
<div class="pt-0.5 flex w-full justify-between"> <div class="pt-0.5 flex w-full justify-between">
<div class="self-center text-xs font-medium">{$i18n.t('Response splitting')}</div> <div class="self-center text-xs font-normal">{$i18n.t('Response splitting')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<select <select
class="w-fit pr-8 cursor-pointer rounded-sm px-2 p-1 text-xs bg-transparent outline-hidden text-right" class="w-fit pr-8 cursor-pointer rounded-sm px-2 p-1 text-xs bg-transparent outline-hidden text-right"
@@ -893,9 +893,9 @@
</div> </div>
</div> </div>
</div> </div>
<div class="flex justify-end text-sm font-medium"> <div class="flex justify-end text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
@@ -114,12 +114,12 @@
<div class="space-y-3 overflow-y-scroll scrollbar-hidden h-full"> <div class="space-y-3 overflow-y-scroll scrollbar-hidden h-full">
{#if adminConfig !== null} {#if adminConfig !== null}
<div class="mb-3"> <div class="mb-3">
<div class="mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('User Access')}</div> <div class="mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('User Access')}</div>
<hr class="border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class="border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Default User Role')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Default User Role')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<select <select
class="w-fit pr-8 rounded-sm px-2 text-xs bg-transparent outline-hidden text-right" class="w-fit pr-8 rounded-sm px-2 text-xs bg-transparent outline-hidden text-right"
@@ -134,7 +134,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Default Group')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Default Group')}</div>
<div class="flex items-center relative max-w-48"> <div class="flex items-center relative max-w-48">
<select <select
class="w-full pr-8 rounded-sm px-2 text-xs bg-transparent outline-hidden text-right truncate" class="w-full pr-8 rounded-sm px-2 text-xs bg-transparent outline-hidden text-right truncate"
@@ -150,20 +150,20 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between pr-2"> <div class=" mb-2.5 flex w-full justify-between pr-2">
<div class=" self-center text-xs font-medium">{$i18n.t('Enable New Sign Ups')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Enable New Sign Ups')}</div>
<Switch bind:state={adminConfig.ENABLE_SIGNUP} /> <Switch bind:state={adminConfig.ENABLE_SIGNUP} />
</div> </div>
<div class="mb-2.5 flex w-full justify-between pr-2"> <div class="mb-2.5 flex w-full justify-between pr-2">
<div class=" self-center text-xs font-medium">{$i18n.t('Enable API Keys')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Enable API Keys')}</div>
<Switch bind:state={adminConfig.ENABLE_API_KEYS} /> <Switch bind:state={adminConfig.ENABLE_API_KEYS} />
</div> </div>
{#if adminConfig?.ENABLE_API_KEYS} {#if adminConfig?.ENABLE_API_KEYS}
<div class="mb-2.5 flex w-full justify-between pr-2"> <div class="mb-2.5 flex w-full justify-between pr-2">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('API Key Endpoint Restrictions')} {$i18n.t('API Key Endpoint Restrictions')}
</div> </div>
@@ -172,7 +172,7 @@
{#if adminConfig?.ENABLE_API_KEYS_ENDPOINT_RESTRICTIONS} {#if adminConfig?.ENABLE_API_KEYS_ENDPOINT_RESTRICTIONS}
<div class=" flex w-full flex-col pr-2 mb-2.5"> <div class=" flex w-full flex-col pr-2 mb-2.5">
<div class=" text-xs font-medium"> <div class=" text-xs font-normal">
{$i18n.t('Allowed Endpoints')} {$i18n.t('Allowed Endpoints')}
</div> </div>
@@ -187,7 +187,7 @@
<a <a
href="https://docs.openwebui.com/reference/api-endpoints" href="https://docs.openwebui.com/reference/api-endpoints"
target="_blank" target="_blank"
class=" text-gray-300 font-medium underline" class=" text-gray-300 font-normal underline"
> >
{$i18n.t('To learn more about available endpoints, visit our documentation.')} {$i18n.t('To learn more about available endpoints, visit our documentation.')}
</a> </a>
@@ -198,7 +198,7 @@
<div class=" mb-2.5 w-full justify-between"> <div class=" mb-2.5 w-full justify-between">
<div class="flex w-full justify-between"> <div class="flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('JWT Expiration')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('JWT Expiration')}</div>
</div> </div>
<div class="flex mt-2 space-x-2"> <div class="flex mt-2 space-x-2">
@@ -212,7 +212,7 @@
<div class="mt-2 text-xs text-gray-400 dark:text-gray-500"> <div class="mt-2 text-xs text-gray-400 dark:text-gray-500">
{$i18n.t('Valid time units:')} {$i18n.t('Valid time units:')}
<span class=" text-gray-300 font-medium" <span class=" text-gray-300 font-normal"
>{$i18n.t("'s', 'm', 'h', 'd', 'w' or '-1' for no expiration.")}</span >{$i18n.t("'s', 'm', 'h', 'd', 'w' or '-1' for no expiration.")}</span
> >
</div> </div>
@@ -223,7 +223,7 @@
class=" bg-yellow-500/20 text-yellow-700 dark:text-yellow-200 rounded-lg px-3 py-2" class=" bg-yellow-500/20 text-yellow-700 dark:text-yellow-200 rounded-lg px-3 py-2"
> >
<div> <div>
<span class=" font-medium">{$i18n.t('Warning')}:</span> <span class=" font-normal">{$i18n.t('Warning')}:</span>
<span <span
><a ><a
href="https://docs.openwebui.com/reference/env-configuration#jwt_expires_in" href="https://docs.openwebui.com/reference/env-configuration#jwt_expires_in"
@@ -237,12 +237,12 @@
</div> </div>
{/if} {/if}
</div> </div>
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Pending Accounts')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Pending Accounts')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class="mb-2.5 flex w-full items-center justify-between pr-2"> <div class="mb-2.5 flex w-full items-center justify-between pr-2">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Show Admin Details in Account Pending Overlay')} {$i18n.t('Show Admin Details in Account Pending Overlay')}
</div> </div>
@@ -252,7 +252,7 @@
{#if adminConfig.SHOW_ADMIN_DETAILS} {#if adminConfig.SHOW_ADMIN_DETAILS}
<div class="mb-2.5 w-full justify-between"> <div class="mb-2.5 w-full justify-between">
<div class="flex w-full justify-between"> <div class="flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Admin Contact Email')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Admin Contact Email')}</div>
</div> </div>
<div class="flex mt-2 space-x-2"> <div class="flex mt-2 space-x-2">
@@ -267,7 +267,7 @@
{/if} {/if}
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" self-center text-xs font-medium mb-2"> <div class=" self-center text-xs font-normal mb-2">
{$i18n.t('Pending User Overlay Title')} {$i18n.t('Pending User Overlay Title')}
</div> </div>
<Textarea <Textarea
@@ -279,7 +279,7 @@
</div> </div>
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" self-center text-xs font-medium mb-2"> <div class=" self-center text-xs font-normal mb-2">
{$i18n.t('Pending User Overlay Content')} {$i18n.t('Pending User Overlay Content')}
</div> </div>
<Textarea <Textarea
@@ -295,7 +295,7 @@
<div class=" space-y-3"> <div class=" space-y-3">
<div class="mt-2 space-y-2 pr-1.5"> <div class="mt-2 space-y-2 pr-1.5">
<div class="flex justify-between items-center text-sm"> <div class="flex justify-between items-center text-sm">
<div class=" font-medium">{$i18n.t('LDAP')}</div> <div class=" font-normal">{$i18n.t('LDAP')}</div>
<div class="mt-1"> <div class="mt-1">
<Switch bind:state={ENABLE_LDAP} /> <Switch bind:state={ENABLE_LDAP} />
@@ -306,7 +306,7 @@
<div class="flex flex-col gap-1"> <div class="flex flex-col gap-1">
<div class="flex w-full gap-2"> <div class="flex w-full gap-2">
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1"> <div class=" self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Label')} {$i18n.t('Label')}
</div> </div>
<input <input
@@ -320,7 +320,7 @@
</div> </div>
<div class="flex w-full gap-2"> <div class="flex w-full gap-2">
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1"> <div class=" self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Host')} {$i18n.t('Host')}
</div> </div>
<input <input
@@ -331,7 +331,7 @@
/> />
</div> </div>
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1"> <div class=" self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Port')} {$i18n.t('Port')}
</div> </div>
<Tooltip <Tooltip
@@ -350,7 +350,7 @@
</div> </div>
<div class="flex w-full gap-2"> <div class="flex w-full gap-2">
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1"> <div class=" self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Application DN')} {$i18n.t('Application DN')}
</div> </div>
<Tooltip <Tooltip
@@ -365,7 +365,7 @@
</Tooltip> </Tooltip>
</div> </div>
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1"> <div class=" self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Application DN Password')} {$i18n.t('Application DN Password')}
</div> </div>
<SensitiveInput <SensitiveInput
@@ -377,7 +377,7 @@
</div> </div>
<div class="flex w-full gap-2"> <div class="flex w-full gap-2">
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1"> <div class=" self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Attribute for Mail')} {$i18n.t('Attribute for Mail')}
</div> </div>
<Tooltip <Tooltip
@@ -397,7 +397,7 @@
</div> </div>
<div class="flex w-full gap-2"> <div class="flex w-full gap-2">
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1"> <div class=" self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Attribute for Username')} {$i18n.t('Attribute for Username')}
</div> </div>
<Tooltip <Tooltip
@@ -417,7 +417,7 @@
</div> </div>
<div class="flex w-full gap-2"> <div class="flex w-full gap-2">
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1"> <div class=" self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Search Base')} {$i18n.t('Search Base')}
</div> </div>
<Tooltip content={$i18n.t('The base to search for users')} placement="top-start"> <Tooltip content={$i18n.t('The base to search for users')} placement="top-start">
@@ -432,7 +432,7 @@
</div> </div>
<div class="flex w-full gap-2"> <div class="flex w-full gap-2">
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1"> <div class=" self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Search Filters')} {$i18n.t('Search Filters')}
</div> </div>
<input <input
@@ -444,7 +444,7 @@
</div> </div>
<div class="text-xs text-gray-400 dark:text-gray-500"> <div class="text-xs text-gray-400 dark:text-gray-500">
<a <a
class=" text-gray-300 font-medium underline" class=" text-gray-300 font-normal underline"
href="https://ldap.com/ldap-filters/" href="https://ldap.com/ldap-filters/"
target="_blank" target="_blank"
> >
@@ -453,7 +453,7 @@
</div> </div>
<div> <div>
<div class="flex justify-between items-center text-sm"> <div class="flex justify-between items-center text-sm">
<div class=" font-medium">{$i18n.t('TLS')}</div> <div class=" font-normal">{$i18n.t('TLS')}</div>
<div class="mt-1"> <div class="mt-1">
<Switch bind:state={LDAP_SERVER.use_tls} /> <Switch bind:state={LDAP_SERVER.use_tls} />
@@ -462,7 +462,7 @@
{#if LDAP_SERVER.use_tls} {#if LDAP_SERVER.use_tls}
<div class="flex w-full gap-2"> <div class="flex w-full gap-2">
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1 mt-1"> <div class=" self-center text-xs font-normal min-w-fit mb-1 mt-1">
{$i18n.t('Certificate Path')} {$i18n.t('Certificate Path')}
</div> </div>
<input <input
@@ -473,7 +473,7 @@
</div> </div>
</div> </div>
<div class="flex justify-between items-center text-xs"> <div class="flex justify-between items-center text-xs">
<div class=" font-medium">{$i18n.t('Validate certificate')}</div> <div class=" font-normal">{$i18n.t('Validate certificate')}</div>
<div class="mt-1"> <div class="mt-1">
<Switch bind:state={LDAP_SERVER.validate_cert} /> <Switch bind:state={LDAP_SERVER.validate_cert} />
@@ -481,7 +481,7 @@
</div> </div>
<div class="flex w-full gap-2"> <div class="flex w-full gap-2">
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1"> <div class=" self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Ciphers')} {$i18n.t('Ciphers')}
</div> </div>
<Tooltip content={$i18n.t('Default to ALL')} placement="top-start"> <Tooltip content={$i18n.t('Default to ALL')} placement="top-start">
@@ -502,7 +502,7 @@
</div> </div>
{#if oauthConfig} {#if oauthConfig}
<div class="mb-3"> <div class="mb-3">
<div class="mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('OAuth / OIDC')}</div> <div class="mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('OAuth / OIDC')}</div>
<hr class="border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class="border-gray-100/30 dark:border-gray-850/30 my-2" />
@@ -510,7 +510,7 @@
<div class="space-y-3"> <div class="space-y-3">
<div class="grid grid-cols-1 sm:grid-cols-2 gap-2"> <div class="grid grid-cols-1 sm:grid-cols-2 gap-2">
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Provider Name')} {$i18n.t('Provider Name')}
</div> </div>
<input <input
@@ -520,7 +520,7 @@
/> />
</div> </div>
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Provider URL')} {$i18n.t('Provider URL')}
</div> </div>
<input <input
@@ -533,7 +533,7 @@
<div class="grid grid-cols-1 sm:grid-cols-2 gap-2"> <div class="grid grid-cols-1 sm:grid-cols-2 gap-2">
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Client ID')} {$i18n.t('Client ID')}
</div> </div>
<input <input
@@ -543,7 +543,7 @@
/> />
</div> </div>
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Client Secret')} {$i18n.t('Client Secret')}
</div> </div>
<SensitiveInput <SensitiveInput
@@ -558,7 +558,7 @@
<div class="grid grid-cols-1 sm:grid-cols-2 gap-2"> <div class="grid grid-cols-1 sm:grid-cols-2 gap-2">
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Redirect URI')} {$i18n.t('Redirect URI')}
</div> </div>
<input <input
@@ -568,7 +568,7 @@
/> />
</div> </div>
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Scopes')} {$i18n.t('Scopes')}
</div> </div>
<input <input
@@ -581,7 +581,7 @@
<div class="grid grid-cols-1 sm:grid-cols-2 gap-2"> <div class="grid grid-cols-1 sm:grid-cols-2 gap-2">
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Email Claim')} {$i18n.t('Email Claim')}
</div> </div>
<input <input
@@ -591,7 +591,7 @@
/> />
</div> </div>
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Username Claim')} {$i18n.t('Username Claim')}
</div> </div>
<input <input
@@ -604,7 +604,7 @@
<div class="grid grid-cols-1 sm:grid-cols-2 gap-2"> <div class="grid grid-cols-1 sm:grid-cols-2 gap-2">
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Picture Claim')} {$i18n.t('Picture Claim')}
</div> </div>
<input <input
@@ -614,7 +614,7 @@
/> />
</div> </div>
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Sub Claim')} {$i18n.t('Sub Claim')}
</div> </div>
<input <input
@@ -626,28 +626,28 @@
</div> </div>
<div class="flex w-full justify-between pr-2"> <div class="flex w-full justify-between pr-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('Enable OAuth Signup')} {$i18n.t('Enable OAuth Signup')}
</div> </div>
<Switch bind:state={oauthConfig.ENABLE_OAUTH_SIGNUP} /> <Switch bind:state={oauthConfig.ENABLE_OAUTH_SIGNUP} />
</div> </div>
<div class="flex w-full justify-between pr-2"> <div class="flex w-full justify-between pr-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('Merge Accounts by Email')} {$i18n.t('Merge Accounts by Email')}
</div> </div>
<Switch bind:state={oauthConfig.OAUTH_MERGE_ACCOUNTS_BY_EMAIL} /> <Switch bind:state={oauthConfig.OAUTH_MERGE_ACCOUNTS_BY_EMAIL} />
</div> </div>
<div class="flex w-full justify-between pr-2"> <div class="flex w-full justify-between pr-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('Auto Redirect')} {$i18n.t('Auto Redirect')}
</div> </div>
<Switch bind:state={oauthConfig.OAUTH_AUTO_REDIRECT} /> <Switch bind:state={oauthConfig.OAUTH_AUTO_REDIRECT} />
</div> </div>
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Allowed Domains')} {$i18n.t('Allowed Domains')}
</div> </div>
<input <input
@@ -658,7 +658,7 @@
</div> </div>
<div class="flex w-full justify-between pr-2"> <div class="flex w-full justify-between pr-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('Enable Role Mapping')} {$i18n.t('Enable Role Mapping')}
</div> </div>
<Switch bind:state={oauthConfig.ENABLE_OAUTH_ROLE_MANAGEMENT} /> <Switch bind:state={oauthConfig.ENABLE_OAUTH_ROLE_MANAGEMENT} />
@@ -667,7 +667,7 @@
{#if oauthConfig.ENABLE_OAUTH_ROLE_MANAGEMENT} {#if oauthConfig.ENABLE_OAUTH_ROLE_MANAGEMENT}
<div class="grid grid-cols-1 sm:grid-cols-2 gap-2"> <div class="grid grid-cols-1 sm:grid-cols-2 gap-2">
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Roles Claim')} {$i18n.t('Roles Claim')}
</div> </div>
<input <input
@@ -677,7 +677,7 @@
/> />
</div> </div>
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Admin Roles')} {$i18n.t('Admin Roles')}
</div> </div>
<input <input
@@ -689,7 +689,7 @@
</div> </div>
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Allowed Roles')} {$i18n.t('Allowed Roles')}
</div> </div>
<input <input
@@ -701,7 +701,7 @@
{/if} {/if}
<div class="flex w-full justify-between pr-2"> <div class="flex w-full justify-between pr-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('Enable Group Mapping')} {$i18n.t('Enable Group Mapping')}
</div> </div>
<Switch bind:state={oauthConfig.ENABLE_OAUTH_GROUP_MANAGEMENT} /> <Switch bind:state={oauthConfig.ENABLE_OAUTH_GROUP_MANAGEMENT} />
@@ -709,7 +709,7 @@
{#if oauthConfig.ENABLE_OAUTH_GROUP_MANAGEMENT} {#if oauthConfig.ENABLE_OAUTH_GROUP_MANAGEMENT}
<div class="flex w-full justify-between pr-2"> <div class="flex w-full justify-between pr-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('Auto-Create Groups')} {$i18n.t('Auto-Create Groups')}
</div> </div>
<Switch bind:state={oauthConfig.ENABLE_OAUTH_GROUP_CREATION} /> <Switch bind:state={oauthConfig.ENABLE_OAUTH_GROUP_CREATION} />
@@ -717,7 +717,7 @@
<div class="grid grid-cols-1 sm:grid-cols-2 gap-2"> <div class="grid grid-cols-1 sm:grid-cols-2 gap-2">
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Group Claim')} {$i18n.t('Group Claim')}
</div> </div>
<input <input
@@ -727,7 +727,7 @@
/> />
</div> </div>
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Blocked Groups')} {$i18n.t('Blocked Groups')}
</div> </div>
<input <input
@@ -740,21 +740,21 @@
{/if} {/if}
<div class="flex w-full justify-between pr-2"> <div class="flex w-full justify-between pr-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('Update Email')} {$i18n.t('Update Email')}
</div> </div>
<Switch bind:state={oauthConfig.OAUTH_UPDATE_EMAIL_ON_LOGIN} /> <Switch bind:state={oauthConfig.OAUTH_UPDATE_EMAIL_ON_LOGIN} />
</div> </div>
<div class="flex w-full justify-between pr-2"> <div class="flex w-full justify-between pr-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('Update Name')} {$i18n.t('Update Name')}
</div> </div>
<Switch bind:state={oauthConfig.OAUTH_UPDATE_NAME_ON_LOGIN} /> <Switch bind:state={oauthConfig.OAUTH_UPDATE_NAME_ON_LOGIN} />
</div> </div>
<div class="flex w-full justify-between pr-2"> <div class="flex w-full justify-between pr-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('Update Picture')} {$i18n.t('Update Picture')}
</div> </div>
<Switch bind:state={oauthConfig.OAUTH_UPDATE_PICTURE_ON_LOGIN} /> <Switch bind:state={oauthConfig.OAUTH_UPDATE_PICTURE_ON_LOGIN} />
@@ -765,9 +765,9 @@
{/if} {/if}
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
@@ -41,13 +41,13 @@
{#if config} {#if config}
<div> <div>
<div class="mb-3.5"> <div class="mb-3.5">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Code Execution')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Code Execution')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" 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-normal">
{$i18n.t('Enable Code Execution')} {$i18n.t('Enable Code Execution')}
</div> </div>
@@ -58,7 +58,7 @@
{#if config.ENABLE_CODE_EXECUTION} {#if config.ENABLE_CODE_EXECUTION}
<div class="mb-2.5"> <div class="mb-2.5">
<div class="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-normal">
{$i18n.t('Code Execution Engine')} {$i18n.t('Code Execution Engine')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -89,7 +89,7 @@
{#if config.CODE_EXECUTION_ENGINE === 'jupyter'} {#if config.CODE_EXECUTION_ENGINE === 'jupyter'}
<div class="mb-2.5 flex flex-col gap-1.5 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-normal">
{$i18n.t('Jupyter URL')} {$i18n.t('Jupyter URL')}
</div> </div>
@@ -108,7 +108,7 @@
<div class="mb-2.5 flex flex-col gap-1.5 w-full"> <div class="mb-2.5 flex flex-col gap-1.5 w-full">
<div class=" flex gap-2 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-normal">
{$i18n.t('Jupyter Auth')} {$i18n.t('Jupyter Auth')}
</div> </div>
@@ -149,7 +149,7 @@
</div> </div>
<div class="flex gap-2 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-normal">
{$i18n.t('Code Execution Timeout')} {$i18n.t('Code Execution Timeout')}
</div> </div>
@@ -170,13 +170,13 @@
</div> </div>
<div class="mb-3.5"> <div class="mb-3.5">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Code Interpreter')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Code Interpreter')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" 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-normal">
{$i18n.t('Enable Code Interpreter')} {$i18n.t('Enable Code Interpreter')}
</div> </div>
@@ -187,7 +187,7 @@
{#if config.ENABLE_CODE_INTERPRETER} {#if config.ENABLE_CODE_INTERPRETER}
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" 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-normal">
{$i18n.t('Code Interpreter Engine')} {$i18n.t('Code Interpreter Engine')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -218,7 +218,7 @@
{#if config.CODE_INTERPRETER_ENGINE === 'jupyter'} {#if config.CODE_INTERPRETER_ENGINE === 'jupyter'}
<div class="mb-2.5 flex flex-col gap-1.5 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-normal">
{$i18n.t('Jupyter URL')} {$i18n.t('Jupyter URL')}
</div> </div>
@@ -237,7 +237,7 @@
<div class="mb-2.5 flex flex-col gap-1.5 w-full"> <div class="mb-2.5 flex flex-col gap-1.5 w-full">
<div class="flex gap-2 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-normal">
{$i18n.t('Jupyter Auth')} {$i18n.t('Jupyter Auth')}
</div> </div>
@@ -278,7 +278,7 @@
</div> </div>
<div class="flex gap-2 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-normal">
{$i18n.t('Code Execution Timeout')} {$i18n.t('Code Execution Timeout')}
</div> </div>
@@ -300,7 +300,7 @@
<div> <div>
<div class="py-0.5 w-full"> <div class="py-0.5 w-full">
<div class=" mb-2.5 text-xs font-medium"> <div class=" mb-2.5 text-xs font-normal">
{$i18n.t('Code Interpreter Prompt Template')} {$i18n.t('Code Interpreter Prompt Template')}
</div> </div>
@@ -324,9 +324,9 @@
</div> </div>
{/if} {/if}
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
@@ -219,14 +219,14 @@
<div class=" overflow-y-scroll scrollbar-hidden h-full"> <div class=" overflow-y-scroll scrollbar-hidden h-full">
{#if ENABLE_OPENAI_API !== null && ENABLE_OLLAMA_API !== null && connectionsConfig !== null} {#if ENABLE_OPENAI_API !== null && ENABLE_OLLAMA_API !== null && connectionsConfig !== null}
<div class="mb-3.5"> <div class="mb-3.5">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('General')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('General')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class="my-2"> <div class="my-2">
<div class="mt-2 space-y-2"> <div class="mt-2 space-y-2">
<div class="flex justify-between items-center text-sm"> <div class="flex justify-between items-center text-sm">
<div class=" font-medium">{$i18n.t('OpenAI API')}</div> <div class=" font-normal">{$i18n.t('OpenAI API')}</div>
<div class="flex items-center"> <div class="flex items-center">
<div class=""> <div class="">
@@ -243,7 +243,7 @@
{#if ENABLE_OPENAI_API} {#if ENABLE_OPENAI_API}
<div class=""> <div class="">
<div class="flex justify-between items-center"> <div class="flex justify-between items-center">
<div class="font-medium text-xs">{$i18n.t('Manage OpenAI API Connections')}</div> <div class="font-normal text-xs">{$i18n.t('Manage OpenAI API Connections')}</div>
<Tooltip content={$i18n.t(`Add Connection`)}> <Tooltip content={$i18n.t(`Add Connection`)}>
<button <button
@@ -292,7 +292,7 @@
<div class=" my-2"> <div class=" my-2">
<div class="flex justify-between items-center text-sm mb-2"> <div class="flex justify-between items-center text-sm mb-2">
<div class=" font-medium">{$i18n.t('Ollama API')}</div> <div class=" font-normal">{$i18n.t('Ollama API')}</div>
<div class="mt-1"> <div class="mt-1">
<Switch <Switch
@@ -307,7 +307,7 @@
{#if ENABLE_OLLAMA_API} {#if ENABLE_OLLAMA_API}
<div class=""> <div class="">
<div class="flex justify-between items-center"> <div class="flex justify-between items-center">
<div class="font-medium text-xs">{$i18n.t('Manage Ollama API Connections')}</div> <div class="font-normal text-xs">{$i18n.t('Manage Ollama API Connections')}</div>
<Tooltip content={$i18n.t(`Add Connection`)}> <Tooltip content={$i18n.t(`Add Connection`)}>
<button <button
@@ -350,7 +350,7 @@
<div class="mt-1 text-xs text-gray-400 dark:text-gray-500"> <div class="mt-1 text-xs text-gray-400 dark:text-gray-500">
{$i18n.t('Trouble accessing Ollama?')} {$i18n.t('Trouble accessing Ollama?')}
<a <a
class=" text-gray-300 font-medium underline" class=" text-gray-300 font-normal underline"
href="https://github.com/open-webui/open-webui#troubleshooting" href="https://github.com/open-webui/open-webui#troubleshooting"
target="_blank" target="_blank"
> >
@@ -363,7 +363,7 @@
<div class="my-2"> <div class="my-2">
<div class="flex justify-between items-center text-sm"> <div class="flex justify-between items-center text-sm">
<div class=" font-medium">{$i18n.t('Direct Connections')}</div> <div class=" font-normal">{$i18n.t('Direct Connections')}</div>
<div class="flex items-center"> <div class="flex items-center">
<div class=""> <div class="">
@@ -388,7 +388,7 @@
<div class="my-2"> <div class="my-2">
<div class="flex justify-between items-center text-sm"> <div class="flex justify-between items-center text-sm">
<div class=" text-xs font-medium">{$i18n.t('Cache Base Model List')}</div> <div class=" text-xs font-normal">{$i18n.t('Cache Base Model List')}</div>
<div class="flex items-center"> <div class="flex items-center">
<div class=""> <div class="">
@@ -418,9 +418,9 @@
{/if} {/if}
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
@@ -15,7 +15,7 @@
<div> <div>
<div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-2"> <div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
<div <div
class="flex w-full justify-between items-center text-lg font-medium self-center font-primary" class="flex w-full justify-between items-center text-lg font-normal self-center "
> >
<div class=" shrink-0"> <div class=" shrink-0">
{$i18n.t('Manage Ollama')} {$i18n.t('Manage Ollama')}
@@ -78,7 +78,7 @@
/> />
<div> <div>
<div class="mb-1 text-sm font-medium">{$i18n.t('Config')}</div> <div class="mb-1 text-sm font-normal">{$i18n.t('Config')}</div>
<div> <div>
<div class="py-0.5 flex w-full justify-between"> <div class="py-0.5 flex w-full justify-between">
@@ -117,7 +117,7 @@
{#if $config?.features.enable_admin_export ?? true} {#if $config?.features.enable_admin_export ?? true}
<div> <div>
<div class="mb-1 text-sm font-medium">{$i18n.t('Database')}</div> <div class="mb-1 text-sm font-normal">{$i18n.t('Database')}</div>
<div> <div>
<div class="py-0.5 flex w-full justify-between"> <div class="py-0.5 flex w-full justify-between">
@@ -376,13 +376,13 @@
<div class=" space-y-2.5 overflow-y-scroll scrollbar-hidden h-full pr-1.5"> <div class=" space-y-2.5 overflow-y-scroll scrollbar-hidden h-full pr-1.5">
<div class=""> <div class="">
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('General')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('General')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class="mb-2.5 flex flex-col w-full justify-between"> <div class="mb-2.5 flex flex-col w-full justify-between">
<div class="flex w-full justify-between mb-1"> <div class="flex w-full justify-between mb-1">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('Content Extraction Engine')} {$i18n.t('Content Extraction Engine')}
</div> </div>
<div class=""> <div class="">
@@ -406,7 +406,7 @@
{#if RAGConfig.CONTENT_EXTRACTION_ENGINE === ''} {#if RAGConfig.CONTENT_EXTRACTION_ENGINE === ''}
<div class="flex w-full mt-1"> <div class="flex w-full mt-1">
<div class="flex-1 flex justify-between"> <div class="flex-1 flex justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('PDF Extract Images (OCR)')} {$i18n.t('PDF Extract Images (OCR)')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -417,7 +417,7 @@
<div class="flex w-full mt-2"> <div class="flex w-full mt-2">
<div class="flex-1 flex justify-between"> <div class="flex-1 flex justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Page mode creates one document per page. Single mode combines all pages into one document for better chunking across page boundaries.' 'Page mode creates one document per page. Single mode combines all pages into one document for better chunking across page boundaries.'
@@ -464,7 +464,7 @@
<div class="flex flex-col gap-2 mt-2"> <div class="flex flex-col gap-2 mt-2">
<div class=" flex flex-col w-full justify-between"> <div class=" flex flex-col w-full justify-between">
<div class=" mb-1 text-xs font-medium"> <div class=" mb-1 text-xs font-normal">
{$i18n.t('Additional Config')} {$i18n.t('Additional Config')}
</div> </div>
<div class="flex w-full items-center relative"> <div class="flex w-full items-center relative">
@@ -485,7 +485,7 @@
</div> </div>
<div class="flex justify-between w-full mt-2"> <div class="flex justify-between w-full mt-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Significantly improves accuracy by using an LLM to enhance tables, forms, inline math, and layout detection. Will increase latency. Defaults to False.' 'Significantly improves accuracy by using an LLM to enhance tables, forms, inline math, and layout detection. Will increase latency. Defaults to False.'
@@ -500,7 +500,7 @@
</div> </div>
</div> </div>
<div class="flex justify-between w-full mt-2"> <div class="flex justify-between w-full mt-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
<Tooltip <Tooltip
content={$i18n.t('Skip the cache and re-run the inference. Defaults to False.')} content={$i18n.t('Skip the cache and re-run the inference. Defaults to False.')}
placement="top-start" placement="top-start"
@@ -513,7 +513,7 @@
</div> </div>
</div> </div>
<div class="flex justify-between w-full mt-2"> <div class="flex justify-between w-full mt-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Force OCR on all pages of the PDF. This can lead to worse results if you have good text in your PDFs. Defaults to False.' 'Force OCR on all pages of the PDF. This can lead to worse results if you have good text in your PDFs. Defaults to False.'
@@ -528,7 +528,7 @@
</div> </div>
</div> </div>
<div class="flex justify-between w-full mt-2"> <div class="flex justify-between w-full mt-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Whether to paginate the output. Each page will be separated by a horizontal rule and page number. Defaults to False.' 'Whether to paginate the output. Each page will be separated by a horizontal rule and page number. Defaults to False.'
@@ -543,7 +543,7 @@
</div> </div>
</div> </div>
<div class="flex justify-between w-full mt-2"> <div class="flex justify-between w-full mt-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Strip existing OCR text from the PDF and re-run OCR. Ignored if Force OCR is enabled. Defaults to False.' 'Strip existing OCR text from the PDF and re-run OCR. Ignored if Force OCR is enabled. Defaults to False.'
@@ -558,7 +558,7 @@
</div> </div>
</div> </div>
<div class="flex justify-between w-full mt-2"> <div class="flex justify-between w-full mt-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Disable image extraction from the PDF. If Use LLM is enabled, images will be automatically captioned. Defaults to False.' 'Disable image extraction from the PDF. If Use LLM is enabled, images will be automatically captioned. Defaults to False.'
@@ -573,7 +573,7 @@
</div> </div>
</div> </div>
<div class="flex justify-between w-full mt-2"> <div class="flex justify-between w-full mt-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Format the lines in the output. Defaults to False. If set to True, the lines will be formatted to detect inline math and styles.' 'Format the lines in the output. Defaults to False. If set to True, the lines will be formatted to detect inline math and styles.'
@@ -588,7 +588,7 @@
</div> </div>
</div> </div>
<div class="flex justify-between w-full mt-2"> <div class="flex justify-between w-full mt-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
"The output format for the text. Can be 'json', 'markdown', or 'html'. Defaults to 'markdown'." "The output format for the text. Can be 'json', 'markdown', or 'html'. Defaults to 'markdown'."
@@ -709,7 +709,7 @@
<div class="flex flex-col gap-2 mt-2"> <div class="flex flex-col gap-2 mt-2">
<div class=" flex flex-col w-full justify-between"> <div class=" flex flex-col w-full justify-between">
<div class=" mb-1 text-xs font-medium"> <div class=" mb-1 text-xs font-normal">
{$i18n.t('Parameters')} {$i18n.t('Parameters')}
</div> </div>
<div class="flex w-full items-center relative"> <div class="flex w-full items-center relative">
@@ -735,7 +735,7 @@
/> />
</div> </div>
<div class="my-0.5 flex flex-col w-full"> <div class="my-0.5 flex flex-col w-full">
<div class=" mb-1 text-xs font-medium"> <div class=" mb-1 text-xs font-normal">
{$i18n.t('Document Intelligence Model')} {$i18n.t('Document Intelligence Model')}
</div> </div>
<div class="flex w-full"> <div class="flex w-full">
@@ -761,7 +761,7 @@
/> />
</div> </div>
<div class="flex justify-between w-full mt-2 pr-2"> <div class="flex justify-between w-full mt-2 pr-2">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Send the PDF as a base64 data URL instead of uploading it first.' 'Send the PDF as a base64 data URL instead of uploading it first.'
@@ -792,7 +792,7 @@
<!-- API Mode Selection --> <!-- API Mode Selection -->
<div class="flex w-full mt-2"> <div class="flex w-full mt-2">
<div class="flex-1 flex justify-between"> <div class="flex-1 flex justify-between">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('API Mode')} {$i18n.t('API Mode')}
</div> </div>
<select <select
@@ -840,7 +840,7 @@
<div class="flex w-full mt-2"> <div class="flex w-full mt-2">
<div class="flex-1 flex justify-between"> <div class="flex-1 flex justify-between">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('API Timeout')} {$i18n.t('API Timeout')}
</div> </div>
<input <input
@@ -855,7 +855,7 @@
<!-- Parameters --> <!-- Parameters -->
<div class="flex flex-col justify-between w-full mt-2"> <div class="flex flex-col justify-between w-full mt-2">
<div class="text-xs font-medium"> <div class="text-xs font-normal">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Advanced parameters for MinerU parsing (enable_ocr, enable_formula, enable_table, language, model_version, page_ranges)' 'Advanced parameters for MinerU parsing (enable_ocr, enable_formula, enable_table, language, model_version, page_ranges)'
@@ -876,7 +876,7 @@
<!-- File Extensions --> <!-- File Extensions -->
<div class="flex flex-col justify-between w-full mt-2"> <div class="flex flex-col justify-between w-full mt-2">
<div class="text-xs font-medium mb-1"> <div class="text-xs font-normal mb-1">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Comma-separated list of file extensions MinerU will handle (e.g. pdf, docx, pptx, xlsx)' 'Comma-separated list of file extensions MinerU will handle (e.g. pdf, docx, pptx, xlsx)'
@@ -896,7 +896,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
<Tooltip content={$i18n.t('Full Context Mode')} placement="top-start"> <Tooltip content={$i18n.t('Full Context Mode')} placement="top-start">
{$i18n.t('Bypass Embedding and Retrieval')} {$i18n.t('Bypass Embedding and Retrieval')}
</Tooltip> </Tooltip>
@@ -918,7 +918,7 @@
{#if !RAGConfig.BYPASS_EMBEDDING_AND_RETRIEVAL} {#if !RAGConfig.BYPASS_EMBEDDING_AND_RETRIEVAL}
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Text Splitter')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Text Splitter')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<select <select
class="w-fit pr-8 rounded-sm px-2 text-xs bg-transparent outline-hidden text-right" class="w-fit pr-8 rounded-sm px-2 text-xs bg-transparent outline-hidden text-right"
@@ -935,7 +935,7 @@
{#if RAGConfig.TEXT_SPLITTER === 'token_transformers'} {#if RAGConfig.TEXT_SPLITTER === 'token_transformers'}
<div class="mb-2.5 flex flex-col w-full justify-between"> <div class="mb-2.5 flex flex-col w-full justify-between">
<div class="self-center text-xs font-medium min-w-fit mb-1 w-full"> <div class="self-center text-xs font-normal min-w-fit mb-1 w-full">
{$i18n.t('Tokenizer Model')} {$i18n.t('Tokenizer Model')}
</div> </div>
<div class="self-center w-full"> <div class="self-center w-full">
@@ -951,7 +951,7 @@
{/if} {/if}
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
<Tooltip <Tooltip
placement="top-start" placement="top-start"
content={$i18n.t( content={$i18n.t(
@@ -969,7 +969,7 @@
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" flex gap-1.5 w-full"> <div class=" flex gap-1.5 w-full">
<div class=" w-full justify-between"> <div class=" w-full justify-between">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Chunk Size')} {$i18n.t('Chunk Size')}
</div> </div>
<div class="self-center"> <div class="self-center">
@@ -985,7 +985,7 @@
</div> </div>
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1"> <div class=" self-center text-xs font-normal min-w-fit mb-1">
{$i18n.t('Chunk Overlap')} {$i18n.t('Chunk Overlap')}
</div> </div>
@@ -1007,7 +1007,7 @@
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" flex gap-1.5 w-full"> <div class=" flex gap-1.5 w-full">
<div class="w-full"> <div class="w-full">
<div class="self-center text-xs font-medium min-w-fit mb-1"> <div class="self-center text-xs font-normal min-w-fit mb-1">
<Tooltip <Tooltip
placement="top-start" placement="top-start"
content={$i18n.t( content={$i18n.t(
@@ -1036,13 +1036,13 @@
{#if !RAGConfig.BYPASS_EMBEDDING_AND_RETRIEVAL} {#if !RAGConfig.BYPASS_EMBEDDING_AND_RETRIEVAL}
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Embedding')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Embedding')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class=" mb-2.5 flex flex-col w-full justify-between"> <div class=" mb-2.5 flex flex-col w-full justify-between">
<div class="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-normal">
{$i18n.t('Embedding Model Engine')} {$i18n.t('Embedding Model Engine')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -1124,7 +1124,7 @@
</div> </div>
<div class=" mb-2.5 flex flex-col w-full"> <div class=" mb-2.5 flex flex-col w-full">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Embedding Model')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Embedding Model')}</div>
<div class=""> <div class="">
{#if RAG_EMBEDDING_ENGINE === 'ollama'} {#if RAG_EMBEDDING_ENGINE === 'ollama'}
@@ -1191,7 +1191,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Embedding Batch Size')} {$i18n.t('Embedding Batch Size')}
</div> </div>
@@ -1209,7 +1209,7 @@
{#if RAG_EMBEDDING_ENGINE === 'ollama' || RAG_EMBEDDING_ENGINE === 'openai' || RAG_EMBEDDING_ENGINE === 'azure_openai'} {#if RAG_EMBEDDING_ENGINE === 'ollama' || RAG_EMBEDDING_ENGINE === 'openai' || RAG_EMBEDDING_ENGINE === 'azure_openai'}
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.' 'Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.'
@@ -1225,7 +1225,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Limits the number of concurrent embedding requests. Set to 0 for unlimited.' 'Limits the number of concurrent embedding requests. Set to 0 for unlimited.'
@@ -1250,13 +1250,13 @@
{/if} {/if}
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Retrieval')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Retrieval')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
{#if !RAGConfig.BYPASS_EMBEDDING_AND_RETRIEVAL} {#if !RAGConfig.BYPASS_EMBEDDING_AND_RETRIEVAL}
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Full Context Mode')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Full Context Mode')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<Tooltip <Tooltip
content={RAGConfig.RAG_FULL_CONTEXT content={RAGConfig.RAG_FULL_CONTEXT
@@ -1274,7 +1274,7 @@
{#if !RAGConfig.RAG_FULL_CONTEXT} {#if !RAGConfig.RAG_FULL_CONTEXT}
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Hybrid Search')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Hybrid Search')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<Switch bind:state={RAGConfig.ENABLE_RAG_HYBRID_SEARCH} /> <Switch bind:state={RAGConfig.ENABLE_RAG_HYBRID_SEARCH} />
</div> </div>
@@ -1282,7 +1282,7 @@
{#if RAGConfig.ENABLE_RAG_HYBRID_SEARCH === true} {#if RAGConfig.ENABLE_RAG_HYBRID_SEARCH === true}
<div class="mb-2.5 flex w-full justify-between"> <div class="mb-2.5 flex w-full justify-between">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('Enrich Hybrid Search Text')} {$i18n.t('Enrich Hybrid Search Text')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -1298,7 +1298,7 @@
<div class=" mb-2.5 flex flex-col w-full justify-between"> <div class=" mb-2.5 flex flex-col w-full justify-between">
<div class="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-normal">
{$i18n.t('Reranking Engine')} {$i18n.t('Reranking Engine')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -1339,7 +1339,7 @@
</div> </div>
<div class=" mb-2.5 flex flex-col w-full"> <div class=" mb-2.5 flex flex-col w-full">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Reranking Model')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Reranking Model')}</div>
<div class=""> <div class="">
<div class="flex w-full"> <div class="flex w-full">
@@ -1358,7 +1358,7 @@
{/if} {/if}
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Reranking Batch Size')} {$i18n.t('Reranking Batch Size')}
</div> </div>
@@ -1375,7 +1375,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Top K')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Top K')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<input <input
class="flex-1 w-full text-sm bg-transparent outline-hidden" class="flex-1 w-full text-sm bg-transparent outline-hidden"
@@ -1390,7 +1390,7 @@
{#if RAGConfig.ENABLE_RAG_HYBRID_SEARCH === true} {#if RAGConfig.ENABLE_RAG_HYBRID_SEARCH === true}
<div class="mb-2.5 flex w-full justify-between"> <div class="mb-2.5 flex w-full justify-between">
<div class="self-center text-xs font-medium">{$i18n.t('Top K Reranker')}</div> <div class="self-center text-xs font-normal">{$i18n.t('Top K Reranker')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<input <input
class="flex-1 w-full text-sm bg-transparent outline-hidden" class="flex-1 w-full text-sm bg-transparent outline-hidden"
@@ -1407,7 +1407,7 @@
{#if RAGConfig.ENABLE_RAG_HYBRID_SEARCH === true} {#if RAGConfig.ENABLE_RAG_HYBRID_SEARCH === true}
<div class=" mb-2.5 flex flex-col w-full justify-between"> <div class=" mb-2.5 flex flex-col w-full justify-between">
<div class=" 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-normal">
{$i18n.t('Relevance Threshold')} {$i18n.t('Relevance Threshold')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -1443,7 +1443,7 @@
className="inline-tooltip" className="inline-tooltip"
> >
<div class="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-normal">
{$i18n.t('BM25 Weight')} {$i18n.t('BM25 Weight')}
</div> </div>
<button <button
@@ -1505,7 +1505,7 @@
{/if} {/if}
<div class=" mb-2.5 flex flex-col w-full justify-between"> <div class=" mb-2.5 flex flex-col w-full justify-between">
<div class=" mb-1 text-xs font-medium">{$i18n.t('RAG Template')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('RAG Template')}</div>
<div class="flex w-full items-center relative"> <div class="flex w-full items-center relative">
<Tooltip <Tooltip
content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')} content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')}
@@ -1532,12 +1532,12 @@
</div> </div>
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Files')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Files')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Allowed File Extensions')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Allowed File Extensions')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
@@ -1557,7 +1557,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Max Upload Size')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Max Upload Size')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
@@ -1578,7 +1578,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Max Upload Count')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Max Upload Count')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
@@ -1599,7 +1599,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Image Compression Width')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Image Compression Width')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
@@ -1620,7 +1620,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Image Compression Height')} {$i18n.t('Image Compression Height')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -1644,19 +1644,19 @@
</div> </div>
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Integration')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Integration')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Google Drive')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Google Drive')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<Switch bind:state={RAGConfig.ENABLE_GOOGLE_DRIVE_INTEGRATION} /> <Switch bind:state={RAGConfig.ENABLE_GOOGLE_DRIVE_INTEGRATION} />
</div> </div>
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('OneDrive')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('OneDrive')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<Switch bind:state={RAGConfig.ENABLE_ONEDRIVE_INTEGRATION} /> <Switch bind:state={RAGConfig.ENABLE_ONEDRIVE_INTEGRATION} />
</div> </div>
@@ -1664,12 +1664,12 @@
</div> </div>
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Danger Zone')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Danger Zone')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('Reset Upload Directory')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Reset Upload Directory')}</div>
<div class="flex items-center relative"> <div class="flex items-center relative">
<button <button
class="text-xs" class="text-xs"
@@ -1684,7 +1684,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Reset Vector Storage/Knowledge')} {$i18n.t('Reset Vector Storage/Knowledge')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -1700,7 +1700,7 @@
</div> </div>
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Reindex Knowledge Base Vectors')} {$i18n.t('Reindex Knowledge Base Vectors')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -1718,9 +1718,9 @@
</div> </div>
</div> </div>
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
@@ -104,12 +104,12 @@
{#if evaluationConfig !== null} {#if evaluationConfig !== null}
<div class=""> <div class="">
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('General')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('General')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class="mb-2.5 flex w-full justify-between"> <div class="mb-2.5 flex w-full justify-between">
<div class=" text-xs font-medium">{$i18n.t('Arena Models')}</div> <div class=" text-xs font-normal">{$i18n.t('Arena Models')}</div>
<Tooltip content={$i18n.t(`Message rating should be enabled to use this feature`)}> <Tooltip content={$i18n.t(`Message rating should be enabled to use this feature`)}>
<Switch bind:state={evaluationConfig.ENABLE_EVALUATION_ARENA_MODELS} /> <Switch bind:state={evaluationConfig.ENABLE_EVALUATION_ARENA_MODELS} />
@@ -119,7 +119,7 @@
{#if evaluationConfig.ENABLE_EVALUATION_ARENA_MODELS} {#if evaluationConfig.ENABLE_EVALUATION_ARENA_MODELS}
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium flex justify-between items-center"> <div class=" mt-0.5 mb-2.5 text-base font-normal flex justify-between items-center">
<div> <div>
{$i18n.t('Manage')} {$i18n.t('Manage')}
</div> </div>
@@ -174,9 +174,9 @@
{/if} {/if}
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
@@ -131,7 +131,7 @@
<Modal size="sm" bind:show> <Modal size="sm" bind:show>
<div> <div>
<div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-2"> <div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
<div class=" text-lg font-medium self-center font-primary"> <div class=" text-lg font-normal self-center ">
{#if edit} {#if edit}
{$i18n.t('Edit Arena Model')} {$i18n.t('Edit Arena Model')}
{:else} {:else}
@@ -374,10 +374,10 @@
</div> </div>
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium gap-1.5"> <div class="flex justify-end pt-3 text-sm font-normal gap-1.5">
{#if edit} {#if edit}
<button <button
class="px-3.5 py-1.5 text-sm font-medium dark:bg-black dark:hover:bg-gray-950 dark:text-white bg-white text-black hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center" class="px-3.5 py-1.5 text-sm font-normal dark:bg-black dark:hover:bg-gray-950 dark:text-white bg-white text-black hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center"
type="button" type="button"
on:click={() => { on:click={() => {
showDeleteConfirmDialog = true; showDeleteConfirmDialog = true;
@@ -388,7 +388,7 @@
{/if} {/if}
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-950 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center {loading class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-950 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center {loading
? ' cursor-not-allowed' ? ' cursor-not-allowed'
: ''}" : ''}"
type="submit" type="submit"
@@ -392,7 +392,7 @@
<Modal bind:show={showWebhookModal} size="sm"> <Modal bind:show={showWebhookModal} size="sm">
<div> <div>
<div class="flex justify-between dark:text-gray-100 px-5 pt-4 pb-2"> <div class="flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
<h1 class="text-lg font-medium self-center font-primary"> <h1 class="text-lg font-normal self-center ">
{editing ? $i18n.t('Edit webhook') : $i18n.t('Add webhook')} {editing ? $i18n.t('Edit webhook') : $i18n.t('Add webhook')}
</h1> </h1>
@@ -651,11 +651,11 @@
{/if} {/if}
</div> </div>
<div class="flex justify-between items-center pt-4 text-sm font-medium"> <div class="flex justify-between items-center pt-4 text-sm font-normal">
<div> <div>
{#if editing} {#if editing}
<button <button
class="px-1 py-1.5 text-sm font-medium text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:underline transition" class="px-1 py-1.5 text-sm font-normal text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:underline transition"
type="button" type="button"
on:click={() => { on:click={() => {
showDeleteConfirmDialog = true; showDeleteConfirmDialog = true;
@@ -668,7 +668,7 @@
<button <button
type="submit" type="submit"
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
</button> </button>
@@ -688,12 +688,12 @@
/> />
<div class="mb-3"> <div class="mb-3">
<div class="mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Events')}</div> <div class="mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Events')}</div>
<hr class="border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class="border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class="mb-2.5 flex flex-col w-full justify-between"> <div class="mb-2.5 flex flex-col w-full justify-between">
<div class="flex justify-between items-center mb-1"> <div class="flex justify-between items-center mb-1">
<div class="font-medium text-xs">{$i18n.t('Webhooks')}</div> <div class="font-normal text-xs">{$i18n.t('Webhooks')}</div>
<Tooltip content={$i18n.t('Add webhook')}> <Tooltip content={$i18n.t('Add webhook')}>
<button class="px-1" on:click={newWebhook} type="button"> <button class="px-1" on:click={newWebhook} type="button">
@@ -709,7 +709,7 @@
class="flex-1 min-w-0 flex gap-1.5 items-center {webhook.enabled ? '' : 'opacity-50'}" class="flex-1 min-w-0 flex gap-1.5 items-center {webhook.enabled ? '' : 'opacity-50'}"
> >
<div class="outline-hidden w-full bg-transparent text-sm truncate"> <div class="outline-hidden w-full bg-transparent text-sm truncate">
<span class="font-medium"> <span class="font-normal">
{webhook.id === 'default' ? $i18n.t('Default webhook') : webhook.name} {webhook.id === 'default' ? $i18n.t('Default webhook') : webhook.name}
</span> </span>
<span class="text-xs text-gray-500"> <span class="text-xs text-gray-500">
@@ -411,7 +411,7 @@
<Modal bind:show={showSourceModal} size="sm"> <Modal bind:show={showSourceModal} size="sm">
<div> <div>
<div class="flex justify-between dark:text-gray-100 px-5 pt-4 pb-2"> <div class="flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
<h1 class="text-lg font-medium self-center font-primary"> <h1 class="text-lg font-normal self-center ">
{editingItem ? $i18n.t('Edit Knowledge Connection') : $i18n.t('Add Knowledge Connection')} {editingItem ? $i18n.t('Edit Knowledge Connection') : $i18n.t('Add Knowledge Connection')}
</h1> </h1>
@@ -769,11 +769,11 @@
shareUsers={true} shareUsers={true}
/> />
<div class="flex justify-between items-center pt-3 text-sm font-medium"> <div class="flex justify-between items-center pt-3 text-sm font-normal">
<div></div> <div></div>
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed"
type="submit" type="submit"
disabled={creating || !sourceFormIsValid() || !testResult?.documents?.length} disabled={creating || !sourceFormIsValid() || !testResult?.documents?.length}
> >
@@ -791,9 +791,9 @@
<div class="mb-2.5 flex flex-col w-full justify-between text-sm"> <div class="mb-2.5 flex flex-col w-full justify-between text-sm">
<div class="flex justify-between items-center mb-1"> <div class="flex justify-between items-center mb-1">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<div class="font-medium">{$i18n.t('External Knowledge Sources')}</div> <div class="font-normal">{$i18n.t('External Knowledge Sources')}</div>
<span <span
class="text-[0.65rem] font-medium uppercase px-1.5 py-0.5 rounded-full bg-gray-100 dark:bg-gray-800 text-gray-500 dark:text-gray-400" class="text-[0.65rem] font-normal uppercase px-1.5 py-0.5 rounded-full bg-gray-100 dark:bg-gray-800 text-gray-500 dark:text-gray-400"
>{$i18n.t('Experimental')}</span >{$i18n.t('Experimental')}</span
> >
</div> </div>
@@ -81,12 +81,12 @@
{#if adminConfig !== null} {#if adminConfig !== null}
<div class=""> <div class="">
<div class="mb-3.5"> <div class="mb-3.5">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('General')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('General')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium flex space-x-2 items-center"> <div class=" mb-1 text-xs font-normal flex space-x-2 items-center">
<div> <div>
{$i18n.t('Version')} {$i18n.t('Version')}
</div> </div>
@@ -125,7 +125,7 @@
{#if $config?.features?.enable_version_update_check} {#if $config?.features?.enable_version_update_check}
<button <button
class=" text-xs px-3 py-1.5 bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 transition rounded-lg font-medium" class=" text-xs px-3 py-1.5 bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 transition rounded-lg font-normal"
type="button" type="button"
on:click={() => { on:click={() => {
checkForVersionUpdates(); checkForVersionUpdates();
@@ -149,7 +149,7 @@
</div> </div>
<a <a
class="flex-shrink-0 text-xs font-medium underline" class="flex-shrink-0 text-xs font-normal underline"
href="https://docs.openwebui.com/" href="https://docs.openwebui.com/"
target="_blank" target="_blank"
> >
@@ -205,7 +205,7 @@
>{$config?.license_metadata?.organization_name}</span >{$config?.license_metadata?.organization_name}</span
> >
for for
<span class=" font-medium text-black dark:text-white" <span class=" font-normal text-black dark:text-white"
>{$config?.license_metadata?.seats ?? 'Unlimited'} users.</span >{$config?.license_metadata?.seats ?? 'Unlimited'} users.</span
> >
</a> </a>
@@ -230,7 +230,7 @@
</div> </div>
<!-- <button <!-- <button
class="flex-shrink-0 text-xs px-3 py-1.5 bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 transition rounded-lg font-medium" class="flex-shrink-0 text-xs px-3 py-1.5 bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 transition rounded-lg font-normal"
> >
{$i18n.t('Activate')} {$i18n.t('Activate')}
</button> --> </button> -->
@@ -239,12 +239,12 @@
</div> </div>
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Features')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Features')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class="mb-2.5 flex w-full items-center justify-between pr-2"> <div class="mb-2.5 flex w-full items-center justify-between pr-2">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Enable Community Sharing')} {$i18n.t('Enable Community Sharing')}
</div> </div>
@@ -252,13 +252,13 @@
</div> </div>
<div class="mb-2.5 flex w-full items-center justify-between pr-2"> <div class="mb-2.5 flex w-full items-center justify-between pr-2">
<div class=" self-center text-xs font-medium">{$i18n.t('Enable Message Rating')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('Enable Message Rating')}</div>
<Switch bind:state={adminConfig.ENABLE_MESSAGE_RATING} /> <Switch bind:state={adminConfig.ENABLE_MESSAGE_RATING} />
</div> </div>
<div class="mb-2.5 flex w-full items-center justify-between pr-2"> <div class="mb-2.5 flex w-full items-center justify-between pr-2">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Folders')} {$i18n.t('Folders')}
</div> </div>
@@ -268,7 +268,7 @@
{#if adminConfig.ENABLE_FOLDERS} {#if adminConfig.ENABLE_FOLDERS}
<div class="mb-2.5 w-full justify-between"> <div class="mb-2.5 w-full justify-between">
<div class="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-normal">
{$i18n.t('Folder Max File Count')} {$i18n.t('Folder Max File Count')}
</div> </div>
</div> </div>
@@ -290,7 +290,7 @@
{/if} {/if}
<div class="mb-2.5 flex w-full items-center justify-between pr-2"> <div class="mb-2.5 flex w-full items-center justify-between pr-2">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Memories')} {$i18n.t('Memories')}
</div> </div>
@@ -299,7 +299,7 @@
{#if adminConfig.ENABLE_MEMORIES} {#if adminConfig.ENABLE_MEMORIES}
<div class="mb-2.5 flex w-full items-center justify-between pr-2 pl-4"> <div class="mb-2.5 flex w-full items-center justify-between pr-2 pl-4">
<div class=" self-center text-xs font-medium text-gray-500 dark:text-gray-400"> <div class=" self-center text-xs font-normal text-gray-500 dark:text-gray-400">
{$i18n.t('Memory System Context')} {$i18n.t('Memory System Context')}
</div> </div>
@@ -308,7 +308,7 @@
{/if} {/if}
<div class="mb-2.5 flex w-full items-center justify-between pr-2"> <div class="mb-2.5 flex w-full items-center justify-between pr-2">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Notes')} {$i18n.t('Notes')}
</div> </div>
@@ -316,7 +316,7 @@
</div> </div>
<div class="mb-2.5 flex w-full items-center justify-between pr-2"> <div class="mb-2.5 flex w-full items-center justify-between pr-2">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Channels')} {$i18n.t('Channels')}
</div> </div>
@@ -324,7 +324,7 @@
</div> </div>
<div class="mb-2.5 flex w-full items-center justify-between pr-2"> <div class="mb-2.5 flex w-full items-center justify-between pr-2">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Calendar')} {$i18n.t('Calendar')}
</div> </div>
@@ -332,7 +332,7 @@
</div> </div>
<div class="mb-2.5 flex w-full items-center justify-between pr-2"> <div class="mb-2.5 flex w-full items-center justify-between pr-2">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Automations')} {$i18n.t('Automations')}
</div> </div>
@@ -340,7 +340,7 @@
</div> </div>
<div class="mb-2.5 flex w-full items-center justify-between pr-2"> <div class="mb-2.5 flex w-full items-center justify-between pr-2">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('User Webhooks')} {$i18n.t('User Webhooks')}
</div> </div>
@@ -348,7 +348,7 @@
</div> </div>
<div class="mb-2.5 flex w-full items-center justify-between pr-2"> <div class="mb-2.5 flex w-full items-center justify-between pr-2">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('User Status')} {$i18n.t('User Status')}
</div> </div>
@@ -356,7 +356,7 @@
</div> </div>
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" self-center text-xs font-medium mb-2"> <div class=" self-center text-xs font-normal mb-2">
{$i18n.t('Response Watermark')} {$i18n.t('Response Watermark')}
</div> </div>
<Textarea <Textarea
@@ -367,7 +367,7 @@
<div class="mb-2.5 w-full justify-between"> <div class="mb-2.5 w-full justify-between">
<div class="flex w-full justify-between"> <div class="flex w-full justify-between">
<div class=" self-center text-xs font-medium">{$i18n.t('WebUI URL')}</div> <div class=" self-center text-xs font-normal">{$i18n.t('WebUI URL')}</div>
</div> </div>
<div class="flex mt-2 space-x-2"> <div class="flex mt-2 space-x-2">
@@ -390,7 +390,7 @@
<Events /> <Events />
<div class="mb-3.5"> <div class="mb-3.5">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('UI')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('UI')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
@@ -439,9 +439,9 @@
{/if} {/if}
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
@@ -293,7 +293,7 @@
{#if config} {#if config}
<div> <div>
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('General')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('General')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
@@ -311,7 +311,7 @@
</div> </div>
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Create Image')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Create Image')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
@@ -551,7 +551,7 @@
<div class="mt-1 text-xs text-gray-400 dark:text-gray-500"> <div class="mt-1 text-xs text-gray-400 dark:text-gray-500">
{$i18n.t('Include `--api` flag when running stable-diffusion-webui')} {$i18n.t('Include `--api` flag when running stable-diffusion-webui')}
<a <a
class=" text-gray-300 font-medium" class=" text-gray-300 font-normal"
href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/3734" href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/3734"
target="_blank" target="_blank"
> >
@@ -583,7 +583,7 @@
<div class="mt-1 text-xs text-gray-400 dark:text-gray-500"> <div class="mt-1 text-xs text-gray-400 dark:text-gray-500">
{$i18n.t('Include `--api-auth` flag when running stable-diffusion-webui')} {$i18n.t('Include `--api-auth` flag when running stable-diffusion-webui')}
<a <a
class=" text-gray-300 font-medium" class=" text-gray-300 font-normal"
href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/13993" href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/13993"
target="_blank" target="_blank"
> >
@@ -884,7 +884,7 @@
</div> </div>
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Edit Image')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Edit Image')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
@@ -1272,9 +1272,9 @@
{/if} {/if}
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed' ? ' cursor-not-allowed'
: ''}" : ''}"
type="submit" type="submit"
@@ -164,13 +164,13 @@
{#if servers !== null} {#if servers !== null}
<div class=""> <div class="">
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Tools')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Tools')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class="mb-2.5 flex flex-col w-full justify-between"> <div class="mb-2.5 flex flex-col w-full justify-between">
<div class="flex justify-between items-center mb-0.5"> <div class="flex justify-between items-center mb-0.5">
<div class="font-medium">{$i18n.t('External Tool Servers')}</div> <div class="font-normal">{$i18n.t('External Tool Servers')}</div>
<Tooltip content={$i18n.t(`Add Connection`)}> <Tooltip content={$i18n.t(`Add Connection`)}>
<button <button
@@ -215,7 +215,7 @@
<div class="mt-4 mb-2.5 flex flex-col w-full"> <div class="mt-4 mb-2.5 flex flex-col w-full">
<div class="flex justify-between items-center mb-1"> <div class="flex justify-between items-center mb-1">
<div class="font-medium">{$i18n.t('Open Terminal')}</div> <div class="font-normal">{$i18n.t('Open Terminal')}</div>
<Tooltip content={$i18n.t('Add Connection')}> <Tooltip content={$i18n.t('Add Connection')}>
<button <button
@@ -309,7 +309,7 @@
</div> </div>
</div> </div>
<div class="mt-8 mb-2.5 text-base font-medium">{$i18n.t('Knowledge')}</div> <div class="mt-8 mb-2.5 text-base font-normal">{$i18n.t('Knowledge')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
@@ -325,9 +325,9 @@
{/if} {/if}
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
@@ -108,11 +108,11 @@
> >
<div class=" overflow-y-scroll scrollbar-hidden h-full pr-1.5"> <div class=" overflow-y-scroll scrollbar-hidden h-full pr-1.5">
<div class="mb-3.5"> <div class="mb-3.5">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Tasks')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Tasks')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class=" mb-2 font-medium flex items-center"> <div class=" mb-2 font-normal flex items-center">
<div class=" text-xs mr-1">{$i18n.t('Task Model')}</div> <div class=" text-xs mr-1">{$i18n.t('Task Model')}</div>
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
@@ -227,7 +227,7 @@
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-3" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-3" />
<div class="mb-2.5 flex w-full items-center justify-between"> <div class="mb-2.5 flex w-full items-center justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Context Compaction')} {$i18n.t('Context Compaction')}
</div> </div>
@@ -236,7 +236,7 @@
{#if chatConfig.ENABLE_CONTEXT_COMPACTION} {#if chatConfig.ENABLE_CONTEXT_COMPACTION}
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Token Threshold')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Token Threshold')}</div>
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
@@ -255,7 +255,7 @@
</div> </div>
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Token Cap')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Token Cap')}</div>
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
@@ -274,7 +274,7 @@
</div> </div>
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Context Compaction Prompt')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Context Compaction Prompt')}</div>
<Tooltip <Tooltip
content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')} content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')}
@@ -301,7 +301,7 @@
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-3" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-3" />
<div class="mb-2.5 flex w-full items-center justify-between"> <div class="mb-2.5 flex w-full items-center justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Title Generation')} {$i18n.t('Title Generation')}
</div> </div>
@@ -310,7 +310,7 @@
{#if taskConfig.ENABLE_TITLE_GENERATION} {#if taskConfig.ENABLE_TITLE_GENERATION}
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Title Generation Prompt')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Title Generation Prompt')}</div>
<Tooltip <Tooltip
content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')} content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')}
@@ -327,7 +327,7 @@
{/if} {/if}
<div class="mb-2.5 flex w-full items-center justify-between"> <div class="mb-2.5 flex w-full items-center justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Voice Mode Prompt')} {$i18n.t('Voice Mode Prompt')}
</div> </div>
@@ -336,7 +336,7 @@
{#if taskConfig.ENABLE_VOICE_MODE_PROMPT} {#if taskConfig.ENABLE_VOICE_MODE_PROMPT}
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Prompt Template')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Prompt Template')}</div>
<Tooltip <Tooltip
content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')} content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')}
@@ -353,7 +353,7 @@
{/if} {/if}
<div class="mb-2.5 flex w-full items-center justify-between"> <div class="mb-2.5 flex w-full items-center justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Follow Up Generation')} {$i18n.t('Follow Up Generation')}
</div> </div>
@@ -362,7 +362,7 @@
{#if taskConfig.ENABLE_FOLLOW_UP_GENERATION} {#if taskConfig.ENABLE_FOLLOW_UP_GENERATION}
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Follow Up Generation Prompt')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Follow Up Generation Prompt')}</div>
<Tooltip <Tooltip
content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')} content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')}
@@ -379,7 +379,7 @@
{/if} {/if}
<div class="mb-2.5 flex w-full items-center justify-between"> <div class="mb-2.5 flex w-full items-center justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Tags Generation')} {$i18n.t('Tags Generation')}
</div> </div>
@@ -388,7 +388,7 @@
{#if taskConfig.ENABLE_TAGS_GENERATION} {#if taskConfig.ENABLE_TAGS_GENERATION}
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Tags Generation Prompt')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Tags Generation Prompt')}</div>
<Tooltip <Tooltip
content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')} content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')}
@@ -405,7 +405,7 @@
{/if} {/if}
<div class="mb-2.5 flex w-full items-center justify-between"> <div class="mb-2.5 flex w-full items-center justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Retrieval Query Generation')} {$i18n.t('Retrieval Query Generation')}
</div> </div>
@@ -413,7 +413,7 @@
</div> </div>
<div class="mb-2.5 flex w-full items-center justify-between"> <div class="mb-2.5 flex w-full items-center justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Web Search Query Generation')} {$i18n.t('Web Search Query Generation')}
</div> </div>
@@ -421,7 +421,7 @@
</div> </div>
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Query Generation Prompt')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Query Generation Prompt')}</div>
<Tooltip <Tooltip
content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')} content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')}
@@ -437,7 +437,7 @@
</div> </div>
<div class="mb-2.5 flex w-full items-center justify-between"> <div class="mb-2.5 flex w-full items-center justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Autocomplete Generation')} {$i18n.t('Autocomplete Generation')}
</div> </div>
@@ -448,7 +448,7 @@
{#if taskConfig.ENABLE_AUTOCOMPLETE_GENERATION} {#if taskConfig.ENABLE_AUTOCOMPLETE_GENERATION}
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium"> <div class=" mb-1 text-xs font-normal">
{$i18n.t('Autocomplete Generation Input Max Length')} {$i18n.t('Autocomplete Generation Input Max Length')}
</div> </div>
@@ -464,7 +464,7 @@
</Tooltip> </Tooltip>
</div> </div>
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Autocomplete Generation Prompt')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Autocomplete Generation Prompt')}</div>
<Tooltip <Tooltip
content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')} content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')}
@@ -481,7 +481,7 @@
{/if} {/if}
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Image Prompt Generation Prompt')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Image Prompt Generation Prompt')}</div>
<Tooltip <Tooltip
content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')} content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')}
@@ -497,7 +497,7 @@
</div> </div>
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Tools Function Calling Prompt')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Tools Function Calling Prompt')}</div>
<Tooltip <Tooltip
content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')} content={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')}
@@ -514,9 +514,9 @@
</div> </div>
</div> </div>
<div class="flex justify-end text-sm font-medium"> <div class="flex justify-end text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
@@ -382,12 +382,12 @@
{#if selectedModelId === null} {#if selectedModelId === null}
<div class="flex flex-col gap-1 mt-1.5 mb-2"> <div class="flex flex-col gap-1 mt-1.5 mb-2">
<div class="flex justify-between items-center"> <div class="flex justify-between items-center">
<div class="flex items-center md:self-center text-xl font-medium px-0.5 gap-2 shrink-0"> <div class="flex items-center md:self-center text-xl font-normal px-0.5 gap-2 shrink-0">
<div> <div>
{$i18n.t('Models')} {$i18n.t('Models')}
</div> </div>
<div class="text-lg font-medium text-gray-500 dark:text-gray-500"> <div class="text-lg font-normal text-gray-500 dark:text-gray-500">
{filteredModels.length} {filteredModels.length}
</div> </div>
</div> </div>
@@ -439,7 +439,7 @@
{#if modelsImportInProgress} {#if modelsImportInProgress}
<Spinner className="size-3" /> <Spinner className="size-3" />
{/if} {/if}
<div class=" self-center font-medium line-clamp-1"> <div class=" self-center font-normal line-clamp-1">
{$i18n.t('Import')} {$i18n.t('Import')}
</div> </div>
</button> </button>
@@ -450,7 +450,7 @@
downloadModels(models); downloadModels(models);
}} }}
> >
<div class=" self-center font-medium line-clamp-1"> <div class=" self-center font-normal line-clamp-1">
{$i18n.t('Export')} {$i18n.t('Export')}
</div> </div>
</button> </button>
@@ -463,19 +463,19 @@
showManageModal = true; showManageModal = true;
}} }}
> >
<div class=" self-center font-medium line-clamp-1"> <div class=" self-center font-normal line-clamp-1">
{$i18n.t('Manage')} {$i18n.t('Manage')}
</div> </div>
</button> </button>
<button <button
class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-black hover:bg-gray-900 text-white dark:bg-white dark:hover:bg-gray-100 dark:text-black transition font-medium" class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-black hover:bg-gray-900 text-white dark:bg-white dark:hover:bg-gray-100 dark:text-black transition font-normal"
type="button" type="button"
on:click={() => { on:click={() => {
showConfigModal = true; showConfigModal = true;
}} }}
> >
<div class=" self-center font-medium line-clamp-1"> <div class=" self-center font-normal line-clamp-1">
{$i18n.t('Settings')} {$i18n.t('Settings')}
</div> </div>
</button> </button>
@@ -640,7 +640,7 @@
className=" w-fit" className=" w-fit"
placement="top-start" placement="top-start"
> >
<div class="font-medium line-clamp-1 flex items-center gap-2"> <div class="font-normal line-clamp-1 flex items-center gap-2">
{model.name} {model.name}
<Badge <Badge
@@ -767,7 +767,7 @@
<div class=" w-full h-full flex flex-col justify-center items-center my-16 mb-24"> <div class=" w-full h-full flex flex-col justify-center items-center my-16 mb-24">
<div class="max-w-md text-center"> <div class="max-w-md text-center">
<div class=" text-3xl mb-3">😕</div> <div class=" text-3xl mb-3">😕</div>
<div class=" text-lg font-medium mb-1">{$i18n.t('No models found')}</div> <div class=" text-lg font-normal mb-1">{$i18n.t('No models found')}</div>
<div class=" text-gray-500 text-center text-xs"> <div class=" text-gray-500 text-center text-xs">
{$i18n.t('Try adjusting your search or filter to find what you are looking for.')} {$i18n.t('Try adjusting your search or filter to find what you are looking for.')}
</div> </div>
@@ -608,7 +608,7 @@
<div> <div>
<div class="space-y-2"> <div class="space-y-2">
<div> <div>
<div class=" mb-2 text-sm font-medium flex items-center gap-1.5"> <div class=" mb-2 text-sm font-normal flex items-center gap-1.5">
<div> <div>
{$i18n.t('Pull a model from Ollama.com')} {$i18n.t('Pull a model from Ollama.com')}
</div> </div>
@@ -708,7 +708,7 @@
<div class="mt-2 mb-1 text-xs text-gray-400 dark:text-gray-500"> <div class="mt-2 mb-1 text-xs text-gray-400 dark:text-gray-500">
{$i18n.t('To access the available model names for downloading,')} {$i18n.t('To access the available model names for downloading,')}
<a <a
class=" text-gray-500 dark:text-gray-300 font-medium underline" class=" text-gray-500 dark:text-gray-300 font-normal underline"
href="https://ollama.com/library" href="https://ollama.com/library"
target="_blank">{$i18n.t('click here.')}</a target="_blank">{$i18n.t('click here.')}</a
> >
@@ -751,12 +751,12 @@
{#each Object.keys($MODEL_DOWNLOAD_POOL) as model} {#each Object.keys($MODEL_DOWNLOAD_POOL) as model}
{#if 'pullProgress' in $MODEL_DOWNLOAD_POOL[model]} {#if 'pullProgress' in $MODEL_DOWNLOAD_POOL[model]}
<div class="flex flex-col"> <div class="flex flex-col">
<div class="font-medium mb-1">{model}</div> <div class="font-normal mb-1">{model}</div>
<div class=""> <div class="">
<div class="flex flex-row justify-between space-x-4 pr-2"> <div class="flex flex-row justify-between space-x-4 pr-2">
<div class=" flex-1"> <div class=" flex-1">
<div <div
class="dark:bg-gray-600 bg-gray-500 text-xs font-medium text-gray-100 text-center p-0.5 leading-none rounded-full" class="dark:bg-gray-600 bg-gray-500 text-xs font-normal text-gray-100 text-center p-0.5 leading-none rounded-full"
style="width: {Math.max( style="width: {Math.max(
15, 15,
$MODEL_DOWNLOAD_POOL[model].pullProgress ?? 0 $MODEL_DOWNLOAD_POOL[model].pullProgress ?? 0
@@ -806,7 +806,7 @@
</div> </div>
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Delete a model')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Delete a model')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div <div
class="flex-1 mr-2 pr-1.5 rounded-lg bg-gray-50 dark:text-gray-300 dark:bg-gray-850" class="flex-1 mr-2 pr-1.5 rounded-lg bg-gray-50 dark:text-gray-300 dark:bg-gray-850"
@@ -851,7 +851,7 @@
</div> </div>
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Create a model')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Create a model')}</div>
<div class="flex w-full"> <div class="flex w-full">
<div class="flex-1 mr-2 flex flex-col gap-2"> <div class="flex-1 mr-2 flex flex-col gap-2">
<input <input
@@ -903,12 +903,12 @@
{#if createModelDigest !== ''} {#if createModelDigest !== ''}
<div class="flex flex-col mt-1"> <div class="flex flex-col mt-1">
<div class="font-medium mb-1">{createModelTag}</div> <div class="font-normal mb-1">{createModelTag}</div>
<div class=""> <div class="">
<div class="flex flex-row justify-between space-x-4 pr-2"> <div class="flex flex-row justify-between space-x-4 pr-2">
<div class=" flex-1"> <div class=" flex-1">
<div <div
class="dark:bg-gray-600 bg-gray-500 text-xs font-medium text-gray-100 text-center p-0.5 leading-none rounded-full" class="dark:bg-gray-600 bg-gray-500 text-xs font-normal text-gray-100 text-center p-0.5 leading-none rounded-full"
style="width: {Math.max(15, createModelPullProgress ?? 0)}%" style="width: {Math.max(15, createModelPullProgress ?? 0)}%"
> >
{createModelPullProgress ?? 0}% {createModelPullProgress ?? 0}%
@@ -927,9 +927,9 @@
<div class="pt-1"> <div class="pt-1">
<div class="flex justify-between items-center text-xs"> <div class="flex justify-between items-center text-xs">
<div class=" text-sm font-medium">{$i18n.t('Experimental')}</div> <div class=" text-sm font-normal">{$i18n.t('Experimental')}</div>
<button <button
class=" text-xs font-medium text-gray-500" class=" text-xs font-normal text-gray-500"
type="button" type="button"
on:click={() => { on:click={() => {
showExperimentalOllama = !showExperimentalOllama; showExperimentalOllama = !showExperimentalOllama;
@@ -945,7 +945,7 @@
}} }}
> >
<div class=" mb-2 flex w-full justify-between"> <div class=" mb-2 flex w-full justify-between">
<div class=" text-sm font-medium">{$i18n.t('Upload a GGUF model')}</div> <div class=" text-sm font-normal">{$i18n.t('Upload a GGUF model')}</div>
<button <button
class="p-1 px-3 text-xs flex rounded-sm transition" class="p-1 px-3 text-xs flex rounded-sm transition"
@@ -1073,7 +1073,7 @@
{#if (modelUploadMode === 'file' && modelInputFile && modelInputFile.length > 0) || (modelUploadMode === 'url' && modelFileUrl !== '')} {#if (modelUploadMode === 'file' && modelInputFile && modelInputFile.length > 0) || (modelUploadMode === 'url' && modelFileUrl !== '')}
<div> <div>
<div> <div>
<div class=" my-2.5 text-sm font-medium"> <div class=" my-2.5 text-sm font-normal">
{$i18n.t('Modelfile Content')} {$i18n.t('Modelfile Content')}
</div> </div>
<textarea <textarea
@@ -1087,7 +1087,7 @@
<div class=" mt-1 text-xs text-gray-400 dark:text-gray-500"> <div class=" mt-1 text-xs text-gray-400 dark:text-gray-500">
{$i18n.t('To access the GGUF models available for downloading,')} {$i18n.t('To access the GGUF models available for downloading,')}
<a <a
class=" text-gray-500 dark:text-gray-300 font-medium underline" class=" text-gray-500 dark:text-gray-300 font-normal underline"
href="https://huggingface.co/models?search=gguf" href="https://huggingface.co/models?search=gguf"
target="_blank">{$i18n.t('click here.')}</a target="_blank">{$i18n.t('click here.')}</a
> >
@@ -1099,7 +1099,7 @@
<div class="w-full rounded-full dark:bg-gray-800"> <div class="w-full rounded-full dark:bg-gray-800">
<div <div
class="dark:bg-gray-600 bg-gray-500 text-xs font-medium text-gray-100 text-center p-0.5 leading-none rounded-full" class="dark:bg-gray-600 bg-gray-500 text-xs font-normal text-gray-100 text-center p-0.5 leading-none rounded-full"
style="width: 100%" style="width: 100%"
> >
{uploadMessage} {uploadMessage}
@@ -1115,7 +1115,7 @@
<div class="w-full rounded-full dark:bg-gray-800"> <div class="w-full rounded-full dark:bg-gray-800">
<div <div
class="dark:bg-gray-600 bg-gray-500 text-xs font-medium text-gray-100 text-center p-0.5 leading-none rounded-full" class="dark:bg-gray-600 bg-gray-500 text-xs font-normal text-gray-100 text-center p-0.5 leading-none rounded-full"
style="width: {Math.max(15, uploadProgress ?? 0)}%" style="width: {Math.max(15, uploadProgress ?? 0)}%"
> >
{uploadProgress ?? 0}% {uploadProgress ?? 0}%
@@ -40,7 +40,7 @@
<Modal size="sm" bind:show> <Modal size="sm" bind:show>
<div> <div>
<div class=" flex justify-between dark:text-gray-100 px-5 pt-4"> <div class=" flex justify-between dark:text-gray-100 px-5 pt-4">
<div class=" text-lg font-medium self-center font-primary"> <div class=" text-lg font-normal self-center ">
{$i18n.t('Manage Models')} {$i18n.t('Manage Models')}
</div> </div>
<button <button
@@ -64,7 +64,7 @@
{:else if selected !== null} {:else if selected !== null}
<div class=" flex w-full flex-col"> <div class=" flex w-full flex-col">
<div <div
class="flex gap-1 scrollbar-none overflow-x-auto w-fit text-center text-sm font-medium rounded-full bg-transparent dark:text-gray-200" class="flex gap-1 scrollbar-none overflow-x-auto w-fit text-center text-sm font-normal rounded-full bg-transparent dark:text-gray-200"
> >
<button <button
class="min-w-fit p-1.5 {selected === 'ollama' class="min-w-fit p-1.5 {selected === 'ollama'
@@ -166,7 +166,7 @@
<Modal size="lg" bind:show> <Modal size="lg" bind:show>
<div> <div>
<div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-2"> <div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
<div class=" text-lg font-medium self-center font-primary"> <div class=" text-lg font-normal self-center ">
{$i18n.t('Settings')} {$i18n.t('Settings')}
</div> </div>
<button <button
@@ -191,7 +191,7 @@
<div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4"> <div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4">
<div <div
id="admin-settings-tabs-container" id="admin-settings-tabs-container"
class="tabs flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-40 dark:text-gray-200 text-sm font-medium text-left scrollbar-none" class="tabs flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-40 dark:text-gray-200 text-sm font-normal text-left scrollbar-none"
> >
<button <button
class="px-0.5 py-1 max-w-fit w-fit rounded-lg flex-1 lg:flex-none flex text-right transition {selectedTab === class="px-0.5 py-1 max-w-fit w-fit rounded-lg flex-1 lg:flex-none flex text-right transition {selectedTab ===
@@ -259,7 +259,7 @@
showDefaultPromptSuggestions = !showDefaultPromptSuggestions; showDefaultPromptSuggestions = !showDefaultPromptSuggestions;
}} }}
> >
<div class="text-xs text-gray-500 font-medium"> <div class="text-xs text-gray-500 font-normal">
{$i18n.t('Prompt Suggestions')} {$i18n.t('Prompt Suggestions')}
</div> </div>
<div> <div>
@@ -296,7 +296,7 @@
showDefaultCapabilities = !showDefaultCapabilities; showDefaultCapabilities = !showDefaultCapabilities;
}} }}
> >
<div class="text-xs text-gray-500 font-medium"> <div class="text-xs text-gray-500 font-normal">
{$i18n.t('Model Capabilities')} {$i18n.t('Model Capabilities')}
</div> </div>
<div> <div>
@@ -352,7 +352,7 @@
showDefaultParams = !showDefaultParams; showDefaultParams = !showDefaultParams;
}} }}
> >
<div class="text-xs text-gray-500 font-medium"> <div class="text-xs text-gray-500 font-normal">
{$i18n.t('Model Parameters')} {$i18n.t('Model Parameters')}
</div> </div>
<div> <div>
@@ -419,7 +419,7 @@
{/if} {/if}
</div> </div>
<div class="flex justify-between items-center pt-3 text-sm font-medium gap-1.5"> <div class="flex justify-between items-center pt-3 text-sm font-normal gap-1.5">
<div> <div>
<Tooltip <Tooltip
content={$i18n.t('This will delete all models including custom models')} content={$i18n.t('This will delete all models including custom models')}
@@ -436,7 +436,7 @@
</Tooltip> </Tooltip>
</div> </div>
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed' ? ' cursor-not-allowed'
: ''}" : ''}"
type="submit" type="submit"
@@ -224,7 +224,7 @@
<div class="overflow-y-scroll scrollbar-hidden h-full"> <div class="overflow-y-scroll scrollbar-hidden h-full">
{#if PIPELINES_LIST !== null} {#if PIPELINES_LIST !== null}
<div class="flex w-full justify-between mb-2"> <div class="flex w-full justify-between mb-2">
<div class=" self-center text-sm font-medium"> <div class=" self-center text-sm font-normal">
{$i18n.t('Manage Pipelines')} {$i18n.t('Manage Pipelines')}
</div> </div>
</div> </div>
@@ -257,7 +257,7 @@
</div> </div>
<div class=" my-2"> <div class=" my-2">
<div class=" mb-2 text-sm font-medium"> <div class=" mb-2 text-sm font-normal">
{$i18n.t('Upload Pipeline')} {$i18n.t('Upload Pipeline')}
</div> </div>
<div class="flex w-full"> <div class="flex w-full">
@@ -271,7 +271,7 @@
/> />
<button <button
class="w-full text-sm font-medium py-2 bg-transparent hover:bg-gray-100 border border-dashed dark:border-gray-850 dark:hover:bg-gray-850 text-center rounded-xl" class="w-full text-sm font-normal py-2 bg-transparent hover:bg-gray-100 border border-dashed dark:border-gray-850 dark:hover:bg-gray-850 text-center rounded-xl"
type="button" type="button"
on:click={() => { on:click={() => {
document.getElementById('pipelines-upload-input')?.click(); document.getElementById('pipelines-upload-input')?.click();
@@ -342,7 +342,7 @@
</div> </div>
<div class=" my-2"> <div class=" my-2">
<div class=" mb-2 text-sm font-medium"> <div class=" mb-2 text-sm font-normal">
{$i18n.t('Install from Github URL')} {$i18n.t('Install from Github URL')}
</div> </div>
<div class="flex w-full"> <div class="flex w-full">
@@ -410,9 +410,9 @@
</div> </div>
<div class="mt-2 text-xs text-gray-500"> <div class="mt-2 text-xs text-gray-500">
<span class=" font-medium dark:text-gray-200">{$i18n.t('Warning:')}</span> <span class=" font-normal dark:text-gray-200">{$i18n.t('Warning:')}</span>
{$i18n.t('Pipelines are a plugin system with arbitrary code execution —')} {$i18n.t('Pipelines are a plugin system with arbitrary code execution —')}
<span class=" font-medium dark:text-gray-400" <span class=" font-normal dark:text-gray-400"
>{$i18n.t("don't fetch random pipelines from sources you don't trust.")}</span >{$i18n.t("don't fetch random pipelines from sources you don't trust.")}</span
> >
</div> </div>
@@ -423,7 +423,7 @@
{#if pipelines !== null} {#if pipelines !== null}
{#if pipelines.length > 0} {#if pipelines.length > 0}
<div class="flex w-full justify-between mb-2"> <div class="flex w-full justify-between mb-2">
<div class=" self-center text-sm font-medium"> <div class=" self-center text-sm font-normal">
{$i18n.t('Pipelines Valves')} {$i18n.t('Pipelines Valves')}
</div> </div>
</div> </div>
@@ -477,7 +477,7 @@
{#each Object.keys(valves_spec.properties) as property, idx} {#each Object.keys(valves_spec.properties) as property, idx}
<div class=" py-0.5 w-full justify-between"> <div class=" py-0.5 w-full justify-between">
<div class="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-normal">
{valves_spec.properties[property].title} {valves_spec.properties[property].title}
</div> </div>
@@ -567,9 +567,9 @@
</div> </div>
{#if PIPELINES_LIST !== null && PIPELINES_LIST.length > 0} {#if PIPELINES_LIST !== null && PIPELINES_LIST.length > 0}
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
@@ -58,7 +58,7 @@
<form class="flex h-full flex-col justify-between text-sm" on:submit|preventDefault={save}> <form class="flex h-full flex-col justify-between text-sm" on:submit|preventDefault={save}>
<div class="h-full overflow-y-auto scrollbar-hidden"> <div class="h-full overflow-y-auto scrollbar-hidden">
<div class="mt-0.5 mb-4 text-base font-medium">{$i18n.t('Sub-agents')}</div> <div class="mt-0.5 mb-4 text-base font-normal">{$i18n.t('Sub-agents')}</div>
{#if loading} {#if loading}
<div class="flex justify-center py-8"><Spinner className="size-6" /></div> <div class="flex justify-center py-8"><Spinner className="size-6" /></div>
@@ -187,9 +187,9 @@
</div> </div>
{#if !loading} {#if !loading}
<div class="flex justify-end pt-6 text-sm font-medium"> <div class="flex justify-end pt-6 text-sm font-normal">
<button <button
class="rounded-full bg-black px-3.5 py-1.5 text-sm font-medium text-white transition hover:bg-gray-900 disabled:opacity-50 dark:bg-white dark:text-black dark:hover:bg-gray-100" class="rounded-full bg-black px-3.5 py-1.5 text-sm font-normal text-white transition hover:bg-gray-900 disabled:opacity-50 dark:bg-white dark:text-black dark:hover:bg-gray-100"
type="submit" type="submit"
disabled={saving} disabled={saving}
> >
@@ -154,12 +154,12 @@
{#if webConfig} {#if webConfig}
<div class=""> <div class="">
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('General')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('General')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Web Search')} {$i18n.t('Web Search')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -168,7 +168,7 @@
</div> </div>
<div class="mb-2.5 flex w-full justify-between"> <div class="mb-2.5 flex w-full justify-between">
<div class="self-center text-xs font-medium"> <div class="self-center text-xs font-normal">
{$i18n.t('Web Search Confirmation')} {$i18n.t('Web Search Confirmation')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -180,7 +180,7 @@
{#if webConfig.ENABLE_WEB_SEARCH_CONFIRMATION} {#if webConfig.ENABLE_WEB_SEARCH_CONFIRMATION}
<div class="mb-2.5"> <div class="mb-2.5">
<div class="self-center text-xs font-medium mb-2"> <div class="self-center text-xs font-normal mb-2">
{$i18n.t('Web Search Confirmation Content')} {$i18n.t('Web Search Confirmation Content')}
</div> </div>
<Textarea <Textarea
@@ -193,7 +193,7 @@
{/if} {/if}
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Web Search Engine')} {$i18n.t('Web Search Engine')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -221,7 +221,7 @@
{#if webConfig.WEB_SEARCH_ENGINE === 'ollama_cloud'} {#if webConfig.WEB_SEARCH_ENGINE === 'ollama_cloud'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Ollama Cloud API Key')} {$i18n.t('Ollama Cloud API Key')}
</div> </div>
@@ -238,7 +238,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'perplexity_search'} {:else if webConfig.WEB_SEARCH_ENGINE === 'perplexity_search'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Perplexity Search API URL')} {$i18n.t('Perplexity Search API URL')}
</div> </div>
@@ -258,7 +258,7 @@
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Perplexity API Key')} {$i18n.t('Perplexity API Key')}
</div> </div>
@@ -275,7 +275,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'searxng'} {:else if webConfig.WEB_SEARCH_ENGINE === 'searxng'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-left text-xs font-medium mb-1"> <div class=" self-left text-xs font-normal mb-1">
{$i18n.t('Searxng Query URL')} {$i18n.t('Searxng Query URL')}
</div> </div>
@@ -293,7 +293,7 @@
</div> </div>
</div> </div>
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div class=" self-left text-xs font-medium mb-1"> <div class=" self-left text-xs font-normal mb-1">
{$i18n.t('Searxng search language (all, en, es, de, fr, etc.)')} {$i18n.t('Searxng search language (all, en, es, de, fr, etc.)')}
</div> </div>
@@ -314,7 +314,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'yacy'} {:else if webConfig.WEB_SEARCH_ENGINE === 'yacy'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Yacy Instance URL')} {$i18n.t('Yacy Instance URL')}
</div> </div>
@@ -334,7 +334,7 @@
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div class="flex gap-2"> <div class="flex gap-2">
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Yacy Username')} {$i18n.t('Yacy Username')}
</div> </div>
@@ -347,7 +347,7 @@
</div> </div>
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Yacy Password')} {$i18n.t('Yacy Password')}
</div> </div>
@@ -361,7 +361,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'google_pse'} {:else if webConfig.WEB_SEARCH_ENGINE === 'google_pse'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Google PSE API Key')} {$i18n.t('Google PSE API Key')}
</div> </div>
@@ -371,7 +371,7 @@
/> />
</div> </div>
<div class="mt-1.5"> <div class="mt-1.5">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Google PSE Engine Id')} {$i18n.t('Google PSE Engine Id')}
</div> </div>
@@ -391,7 +391,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'brave'} {:else if webConfig.WEB_SEARCH_ENGINE === 'brave'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Brave Search API Key')} {$i18n.t('Brave Search API Key')}
</div> </div>
@@ -404,7 +404,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'brave_llm_context'} {:else if webConfig.WEB_SEARCH_ENGINE === 'brave_llm_context'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Brave Search API Key')} {$i18n.t('Brave Search API Key')}
</div> </div>
@@ -414,7 +414,7 @@
/> />
</div> </div>
<div class="mt-1.5"> <div class="mt-1.5">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Context Tokens')} {$i18n.t('Context Tokens')}
</div> </div>
@@ -437,7 +437,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'kagi'} {:else if webConfig.WEB_SEARCH_ENGINE === 'kagi'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Kagi Search API Key')} {$i18n.t('Kagi Search API Key')}
</div> </div>
@@ -450,7 +450,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'mojeek'} {:else if webConfig.WEB_SEARCH_ENGINE === 'mojeek'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Mojeek Search API Key')} {$i18n.t('Mojeek Search API Key')}
</div> </div>
@@ -463,7 +463,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'bocha'} {:else if webConfig.WEB_SEARCH_ENGINE === 'bocha'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Bocha Search API Key')} {$i18n.t('Bocha Search API Key')}
</div> </div>
@@ -476,7 +476,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'serpstack'} {:else if webConfig.WEB_SEARCH_ENGINE === 'serpstack'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Serpstack API Key')} {$i18n.t('Serpstack API Key')}
</div> </div>
@@ -489,7 +489,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'serper'} {:else if webConfig.WEB_SEARCH_ENGINE === 'serper'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Serper API Key')} {$i18n.t('Serper API Key')}
</div> </div>
@@ -502,7 +502,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'serphouse'} {:else if webConfig.WEB_SEARCH_ENGINE === 'serphouse'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('SERPHouse API Key')} {$i18n.t('SERPHouse API Key')}
</div> </div>
@@ -512,7 +512,7 @@
/> />
</div> </div>
<div class="mt-1.5"> <div class="mt-1.5">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('SERPHouse Domain')} {$i18n.t('SERPHouse Domain')}
</div> </div>
@@ -532,7 +532,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'serply'} {:else if webConfig.WEB_SEARCH_ENGINE === 'serply'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Serply API Key')} {$i18n.t('Serply API Key')}
</div> </div>
@@ -545,7 +545,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'tavily'} {:else if webConfig.WEB_SEARCH_ENGINE === 'tavily'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Tavily API Key')} {$i18n.t('Tavily API Key')}
</div> </div>
@@ -558,7 +558,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'searchapi'} {:else if webConfig.WEB_SEARCH_ENGINE === 'searchapi'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('SearchApi API Key')} {$i18n.t('SearchApi API Key')}
</div> </div>
@@ -568,7 +568,7 @@
/> />
</div> </div>
<div class="mt-1.5"> <div class="mt-1.5">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('SearchApi Engine')} {$i18n.t('SearchApi Engine')}
</div> </div>
@@ -588,7 +588,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'serpapi'} {:else if webConfig.WEB_SEARCH_ENGINE === 'serpapi'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('SerpApi API Key')} {$i18n.t('SerpApi API Key')}
</div> </div>
@@ -598,7 +598,7 @@
/> />
</div> </div>
<div class="mt-1.5"> <div class="mt-1.5">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('SerpApi Engine')} {$i18n.t('SerpApi Engine')}
</div> </div>
@@ -618,7 +618,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'jina'} {:else if webConfig.WEB_SEARCH_ENGINE === 'jina'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Jina API Base URL')} {$i18n.t('Jina API Base URL')}
</div> </div>
@@ -636,7 +636,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Jina API Key')} {$i18n.t('Jina API Key')}
</div> </div>
@@ -649,7 +649,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'bing'} {:else if webConfig.WEB_SEARCH_ENGINE === 'bing'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Bing Search V7 Endpoint')} {$i18n.t('Bing Search V7 Endpoint')}
</div> </div>
@@ -667,7 +667,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Bing Search V7 Subscription Key')} {$i18n.t('Bing Search V7 Subscription Key')}
</div> </div>
@@ -680,7 +680,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'exa'} {:else if webConfig.WEB_SEARCH_ENGINE === 'exa'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Exa API Key')} {$i18n.t('Exa API Key')}
</div> </div>
@@ -693,7 +693,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'perplexity'} {:else if webConfig.WEB_SEARCH_ENGINE === 'perplexity'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Perplexity API Key')} {$i18n.t('Perplexity API Key')}
</div> </div>
@@ -706,7 +706,7 @@
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class="self-center text-xs font-medium mb-1"> <div class="self-center text-xs font-normal mb-1">
{$i18n.t('Perplexity Model')} {$i18n.t('Perplexity Model')}
</div> </div>
<input <input
@@ -727,7 +727,7 @@
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Perplexity Search Context Usage')} {$i18n.t('Perplexity Search Context Usage')}
</div> </div>
<select <select
@@ -743,7 +743,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'microsoft_web_iq'} {:else if webConfig.WEB_SEARCH_ENGINE === 'microsoft_web_iq'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Microsoft Web IQ API Base URL')} {$i18n.t('Microsoft Web IQ API Base URL')}
</div> </div>
@@ -761,7 +761,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Microsoft Web IQ API Key')} {$i18n.t('Microsoft Web IQ API Key')}
</div> </div>
@@ -772,7 +772,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Language')} {$i18n.t('Language')}
</div> </div>
@@ -788,7 +788,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'sougou'} {:else if webConfig.WEB_SEARCH_ENGINE === 'sougou'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Sougou Search API sID')} {$i18n.t('Sougou Search API sID')}
</div> </div>
@@ -800,7 +800,7 @@
</div> </div>
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Sougou Search API SK')} {$i18n.t('Sougou Search API SK')}
</div> </div>
@@ -813,7 +813,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'firecrawl'} {:else if webConfig.WEB_SEARCH_ENGINE === 'firecrawl'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Firecrawl API Base URL')} {$i18n.t('Firecrawl API Base URL')}
</div> </div>
@@ -831,7 +831,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Firecrawl API Key')} {$i18n.t('Firecrawl API Key')}
</div> </div>
@@ -842,7 +842,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Firecrawl Timeout (s)')} {$i18n.t('Firecrawl Timeout (s)')}
</div> </div>
@@ -862,7 +862,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'external'} {:else if webConfig.WEB_SEARCH_ENGINE === 'external'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('External Web Search URL')} {$i18n.t('External Web Search URL')}
</div> </div>
@@ -880,7 +880,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('External Web Search API Key')} {$i18n.t('External Web Search API Key')}
</div> </div>
@@ -893,7 +893,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'yandex'} {:else if webConfig.WEB_SEARCH_ENGINE === 'yandex'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Yandex Web Search URL')} {$i18n.t('Yandex Web Search URL')}
</div> </div>
@@ -911,7 +911,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Yandex Web Search API Key')} {$i18n.t('Yandex Web Search API Key')}
</div> </div>
@@ -922,7 +922,7 @@
</div> </div>
<div class="mb-2.5"> <div class="mb-2.5">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Yandex Web Search config')}</div> <div class=" mb-1 text-xs font-normal">{$i18n.t('Yandex Web Search config')}</div>
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
@@ -942,7 +942,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'youcom'} {:else if webConfig.WEB_SEARCH_ENGINE === 'youcom'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('You.com API Key')} {$i18n.t('You.com API Key')}
</div> </div>
@@ -955,7 +955,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'linkup'} {:else if webConfig.WEB_SEARCH_ENGINE === 'linkup'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Linkup API Key')} {$i18n.t('Linkup API Key')}
</div> </div>
@@ -966,7 +966,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Parameters')} {$i18n.t('Parameters')}
</div> </div>
@@ -981,7 +981,7 @@
{#if webConfig.WEB_SEARCH_ENGINE === 'duckduckgo'} {#if webConfig.WEB_SEARCH_ENGINE === 'duckduckgo'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('DDGS Backend')} {$i18n.t('DDGS Backend')}
</div> </div>
@@ -1013,7 +1013,7 @@
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div class="flex gap-2"> <div class="flex gap-2">
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Search Result Count')} {$i18n.t('Search Result Count')}
</div> </div>
@@ -1026,7 +1026,7 @@
</div> </div>
<div class="w-full"> <div class="w-full">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Limit concurrent search queries. 0 = unlimited (default). Set to 1 for sequential execution (recommended for APIs with strict rate limits like Brave free tier).' 'Limit concurrent search queries. 0 = unlimited (default). Set to 1 for sequential execution (recommended for APIs with strict rate limits like Brave free tier).'
@@ -1049,7 +1049,7 @@
</div> </div>
<div class="mb-2.5 w-full"> <div class="mb-2.5 w-full">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
<Tooltip <Tooltip
content={$i18n.t( content={$i18n.t(
'Maximum characters to return from fetched URLs. Leave empty for no limit.' 'Maximum characters to return from fetched URLs. Leave empty for no limit.'
@@ -1070,7 +1070,7 @@
</div> </div>
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div class=" text-xs font-medium mb-1"> <div class=" text-xs font-normal mb-1">
{$i18n.t('Domain Filter List')} {$i18n.t('Domain Filter List')}
</div> </div>
@@ -1085,7 +1085,7 @@
{/if} {/if}
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
<Tooltip content={$i18n.t('Full Context Mode')} placement="top-start"> <Tooltip content={$i18n.t('Full Context Mode')} placement="top-start">
{$i18n.t('Bypass Embedding and Retrieval')} {$i18n.t('Bypass Embedding and Retrieval')}
</Tooltip> </Tooltip>
@@ -1106,7 +1106,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
<Tooltip content={$i18n.t('Bypass Web Loader')} placement="top-start"> <Tooltip content={$i18n.t('Bypass Web Loader')} placement="top-start">
{$i18n.t('Bypass Web Loader')} {$i18n.t('Bypass Web Loader')}
</Tooltip> </Tooltip>
@@ -1119,7 +1119,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Trust Proxy Environment')} {$i18n.t('Trust Proxy Environment')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -1137,12 +1137,12 @@
</div> </div>
<div class="mb-3"> <div class="mb-3">
<div class=" mt-0.5 mb-2.5 text-base font-medium">{$i18n.t('Loader')}</div> <div class=" mt-0.5 mb-2.5 text-base font-normal">{$i18n.t('Loader')}</div>
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Web Loader Engine')} {$i18n.t('Web Loader Engine')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -1161,7 +1161,7 @@
{#if webConfig.WEB_LOADER_ENGINE === '' || webConfig.WEB_LOADER_ENGINE === 'safe_web'} {#if webConfig.WEB_LOADER_ENGINE === '' || webConfig.WEB_LOADER_ENGINE === 'safe_web'}
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Timeout')} {$i18n.t('Timeout')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -1174,7 +1174,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Verify SSL Certificate')} {$i18n.t('Verify SSL Certificate')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -1184,7 +1184,7 @@
{:else if webConfig.WEB_LOADER_ENGINE === 'playwright'} {:else if webConfig.WEB_LOADER_ENGINE === 'playwright'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Playwright WebSocket URL')} {$i18n.t('Playwright WebSocket URL')}
</div> </div>
@@ -1202,7 +1202,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Playwright Timeout (ms)')} {$i18n.t('Playwright Timeout (ms)')}
</div> </div>
@@ -1221,7 +1221,7 @@
{:else if webConfig.WEB_LOADER_ENGINE === 'firecrawl' && webConfig.WEB_SEARCH_ENGINE !== 'firecrawl'} {:else if webConfig.WEB_LOADER_ENGINE === 'firecrawl' && webConfig.WEB_SEARCH_ENGINE !== 'firecrawl'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Firecrawl API Base URL')} {$i18n.t('Firecrawl API Base URL')}
</div> </div>
@@ -1239,7 +1239,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Firecrawl API Key')} {$i18n.t('Firecrawl API Key')}
</div> </div>
@@ -1252,7 +1252,7 @@
{:else if webConfig.WEB_LOADER_ENGINE === 'tavily'} {:else if webConfig.WEB_LOADER_ENGINE === 'tavily'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Tavily Extract Depth')} {$i18n.t('Tavily Extract Depth')}
</div> </div>
@@ -1271,7 +1271,7 @@
{#if webConfig.WEB_SEARCH_ENGINE !== 'tavily'} {#if webConfig.WEB_SEARCH_ENGINE !== 'tavily'}
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Tavily API Key')} {$i18n.t('Tavily API Key')}
</div> </div>
@@ -1286,7 +1286,7 @@
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
{#if webConfig.WEB_SEARCH_ENGINE !== 'microsoft_web_iq'} {#if webConfig.WEB_SEARCH_ENGINE !== 'microsoft_web_iq'}
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Microsoft Web IQ API Base URL')} {$i18n.t('Microsoft Web IQ API Base URL')}
</div> </div>
@@ -1304,7 +1304,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Microsoft Web IQ API Key')} {$i18n.t('Microsoft Web IQ API Key')}
</div> </div>
@@ -1315,7 +1315,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Language')} {$i18n.t('Language')}
</div> </div>
@@ -1332,7 +1332,7 @@
{:else if webConfig.WEB_LOADER_ENGINE === 'external'} {:else if webConfig.WEB_LOADER_ENGINE === 'external'}
<div class="mb-2.5 flex w-full flex-col"> <div class="mb-2.5 flex w-full flex-col">
<div> <div>
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('External Web Loader URL')} {$i18n.t('External Web Loader URL')}
</div> </div>
@@ -1350,7 +1350,7 @@
</div> </div>
<div class="mt-2"> <div class="mt-2">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('External Web Loader API Key')} {$i18n.t('External Web Loader API Key')}
</div> </div>
@@ -1363,7 +1363,7 @@
{/if} {/if}
<div class="mb-2.5 w-full"> <div class="mb-2.5 w-full">
<div class=" self-center text-xs font-medium mb-1"> <div class=" self-center text-xs font-normal mb-1">
{$i18n.t('Concurrent Requests')} {$i18n.t('Concurrent Requests')}
</div> </div>
@@ -1376,7 +1376,7 @@
</div> </div>
<div class=" mb-2.5 flex w-full justify-between"> <div class=" mb-2.5 flex w-full justify-between">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Youtube Language')} {$i18n.t('Youtube Language')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -1391,7 +1391,7 @@
</div> </div>
<div class=" mb-2.5 flex flex-col w-full justify-between"> <div class=" mb-2.5 flex flex-col w-full justify-between">
<div class=" mb-1 text-xs font-medium"> <div class=" mb-1 text-xs font-normal">
{$i18n.t('Youtube Proxy URL')} {$i18n.t('Youtube Proxy URL')}
</div> </div>
<div class="flex items-center relative"> <div class="flex items-center relative">
@@ -1408,9 +1408,9 @@
</div> </div>
{/if} {/if}
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
@@ -35,7 +35,7 @@
<Modal size="md" bind:show> <Modal size="md" bind:show>
<div> <div>
<div class=" flex justify-between dark:text-gray-100 px-5 pt-4 mb-1.5"> <div class=" flex justify-between dark:text-gray-100 px-5 pt-4 mb-1.5">
<div class=" text-lg font-medium self-center font-primary min-w-0 truncate"> <div class=" text-lg font-normal self-center min-w-0 truncate">
{$i18n.t('User Preview')} {$i18n.t('User Preview')}
{#if userName} {#if userName}
<span class="text-sm font-normal text-gray-500 ml-1">{userName}</span> <span class="text-sm font-normal text-gray-500 ml-1">{userName}</span>
@@ -62,11 +62,11 @@
<div class="space-y-2"> <div class="space-y-2">
{#if preview.groups.length > 0} {#if preview.groups.length > 0}
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Groups')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Groups')}</div>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
{#each preview.groups as group} {#each preview.groups as group}
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium">{group.name}</div> <div class=" self-center text-xs font-normal">{group.name}</div>
</div> </div>
{/each} {/each}
</div> </div>
@@ -76,7 +76,7 @@
{/if} {/if}
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Models')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Models')}</div>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
{#if preview.models.items.length === 0} {#if preview.models.items.length === 0}
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
@@ -87,7 +87,7 @@
{:else} {:else}
{#each preview.models.items as model} {#each preview.models.items as model}
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium">{model.name}</div> <div class=" self-center text-xs font-normal">{model.name}</div>
</div> </div>
{/each} {/each}
@@ -108,7 +108,7 @@
<hr class="border-gray-50 dark:border-gray-850/30 my-1" /> <hr class="border-gray-50 dark:border-gray-850/30 my-1" />
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Knowledge')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Knowledge')}</div>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
{#if preview.knowledge.items.length === 0} {#if preview.knowledge.items.length === 0}
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
@@ -119,7 +119,7 @@
{:else} {:else}
{#each preview.knowledge.items as kb} {#each preview.knowledge.items as kb}
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium">{kb.name}</div> <div class=" self-center text-xs font-normal">{kb.name}</div>
</div> </div>
{/each} {/each}
@@ -140,7 +140,7 @@
<hr class="border-gray-50 dark:border-gray-850/30 my-1" /> <hr class="border-gray-50 dark:border-gray-850/30 my-1" />
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Tools')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Tools')}</div>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
{#if preview.tools.items.length === 0} {#if preview.tools.items.length === 0}
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
@@ -151,7 +151,7 @@
{:else} {:else}
{#each preview.tools.items as tool} {#each preview.tools.items as tool}
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium">{tool.name}</div> <div class=" self-center text-xs font-normal">{tool.name}</div>
</div> </div>
{/each} {/each}
+1 -1
View File
@@ -58,7 +58,7 @@
<div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4"> <div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4">
<div <div
id="users-tabs-container" id="users-tabs-container"
class="mx-[16px] lg:mx-0 lg:px-[16px] flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-50 dark:text-gray-200 text-sm font-medium text-left scrollbar-none" class="mx-[16px] lg:mx-0 lg:px-[16px] flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-50 dark:text-gray-200 text-sm font-normal text-left scrollbar-none"
> >
<a <a
id="overview" id="overview"
+5 -5
View File
@@ -121,19 +121,19 @@
<div class="flex flex-col gap-1 px-1 mt-1.5 mb-3"> <div class="flex flex-col gap-1 px-1 mt-1.5 mb-3">
<div class="flex justify-between items-center"> <div class="flex justify-between items-center">
<div class="flex items-center md:self-center text-xl font-medium px-0.5 gap-2 shrink-0"> <div class="flex items-center md:self-center text-xl font-normal px-0.5 gap-2 shrink-0">
<div> <div>
{$i18n.t('Groups')} {$i18n.t('Groups')}
</div> </div>
<div class="text-lg font-medium text-gray-500 dark:text-gray-500"> <div class="text-lg font-normal text-gray-500 dark:text-gray-500">
{filteredGroups.length} {filteredGroups.length}
</div> </div>
</div> </div>
<div class="flex w-full justify-end gap-1.5"> <div class="flex w-full justify-end gap-1.5">
<button <button
class="px-2 py-1.5 rounded-xl bg-black text-white dark:bg-white dark:text-black transition font-medium text-sm flex items-center" class="px-2 py-1.5 rounded-xl bg-black text-white dark:bg-white dark:text-black transition font-normal text-sm flex items-center"
on:click={() => { on:click={() => {
showAddGroupModal = !showAddGroupModal; showAddGroupModal = !showAddGroupModal;
}} }}
@@ -212,7 +212,7 @@
<div class="w-full h-full flex flex-col justify-center items-center my-16 mb-24"> <div class="w-full h-full flex flex-col justify-center items-center my-16 mb-24">
<div class="max-w-md text-center"> <div class="max-w-md text-center">
<div class="text-3xl mb-3">👥</div> <div class="text-3xl mb-3">👥</div>
<div class="text-lg font-medium mb-1">{$i18n.t('No groups found')}</div> <div class="text-lg font-normal mb-1">{$i18n.t('No groups found')}</div>
<div class="text-gray-500 text-center text-xs"> <div class="text-gray-500 text-center text-xs">
{$i18n.t('Use groups to organize your users and assign permissions.')} {$i18n.t('Use groups to organize your users and assign permissions.')}
</div> </div>
@@ -244,7 +244,7 @@
</div> </div>
<div class="text-left"> <div class="text-left">
<div class=" text-sm font-medium">{$i18n.t('Default permissions')}</div> <div class=" text-sm font-normal">{$i18n.t('Default permissions')}</div>
<div class="flex text-xs mt-0.5"> <div class="flex text-xs mt-0.5">
{$i18n.t('applies to all users with the "user" role')} {$i18n.t('applies to all users with the "user" role')}
@@ -134,7 +134,7 @@
<Modal size="lg" bind:show> <Modal size="lg" bind:show>
<div> <div>
<div class=" flex justify-between dark:text-gray-100 px-5 pt-4 mb-1.5"> <div class=" flex justify-between dark:text-gray-100 px-5 pt-4 mb-1.5">
<div class=" text-lg font-medium self-center font-primary"> <div class=" text-lg font-normal self-center ">
{#if custom} {#if custom}
{#if edit} {#if edit}
{$i18n.t('Edit User Group')} {$i18n.t('Edit User Group')}
@@ -167,7 +167,7 @@
<div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4"> <div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4">
<div <div
id="admin-settings-tabs-container" id="admin-settings-tabs-container"
class="tabs flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-40 dark:text-gray-200 text-sm font-medium text-left scrollbar-none" class="tabs flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-40 dark:text-gray-200 text-sm font-normal text-left scrollbar-none"
> >
{#if tabs.includes('general')} {#if tabs.includes('general')}
<button <button
@@ -287,7 +287,7 @@
</div> </div>
{#if ['general', 'permissions'].includes(selectedTab)} {#if ['general', 'permissions'].includes(selectedTab)}
<div class="flex justify-between items-center pt-3 text-sm font-medium gap-1.5"> <div class="flex justify-between items-center pt-3 text-sm font-normal gap-1.5">
<div> <div>
{#if selectedTab === 'permissions'} {#if selectedTab === 'permissions'}
<Tooltip <Tooltip
@@ -311,7 +311,7 @@
</div> </div>
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed' ? ' cursor-not-allowed'
: ''}" : ''}"
type="submit" type="submit"
@@ -331,7 +331,7 @@
</div> </div>
<!-- <div <!-- <div
class=" tabs flex flex-row overflow-x-auto gap-2.5 text-sm font-medium border-b border-b-gray-800 scrollbar-hidden" class=" tabs flex flex-row overflow-x-auto gap-2.5 text-sm font-normal border-b border-b-gray-800 scrollbar-hidden"
> >
{#if tabs.includes('display')} {#if tabs.includes('display')}
<button <button
@@ -72,7 +72,7 @@
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<div class="flex-1"> <div class="flex-1">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<div class="text-sm font-medium line-clamp-1">{group.name}</div> <div class="text-sm font-normal line-clamp-1">{group.name}</div>
</div> </div>
<div class="flex items-center gap-2 mt-0.5 line-clamp-1"> <div class="flex items-center gap-2 mt-0.5 line-clamp-1">
@@ -37,7 +37,7 @@
<div class="text-red-500 text-xs text-center py-4">{error}</div> <div class="text-red-500 text-xs text-center py-4">{error}</div>
{:else if preview} {:else if preview}
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Models')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Models')}</div>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
{#if preview.models.items.length === 0} {#if preview.models.items.length === 0}
@@ -49,7 +49,7 @@
{:else} {:else}
{#each preview.models.items as model} {#each preview.models.items as model}
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium">{model.name}</div> <div class=" self-center text-xs font-normal">{model.name}</div>
</div> </div>
{/each} {/each}
@@ -70,7 +70,7 @@
<hr class="border-gray-50 dark:border-gray-850/30 my-1" /> <hr class="border-gray-50 dark:border-gray-850/30 my-1" />
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Knowledge')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Knowledge')}</div>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
{#if preview.knowledge.items.length === 0} {#if preview.knowledge.items.length === 0}
@@ -82,7 +82,7 @@
{:else} {:else}
{#each preview.knowledge.items as kb} {#each preview.knowledge.items as kb}
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium">{kb.name}</div> <div class=" self-center text-xs font-normal">{kb.name}</div>
</div> </div>
{/each} {/each}
@@ -103,7 +103,7 @@
<hr class="border-gray-50 dark:border-gray-850/30 my-1" /> <hr class="border-gray-50 dark:border-gray-850/30 my-1" />
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Tools')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Tools')}</div>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
{#if preview.tools.items.length === 0} {#if preview.tools.items.length === 0}
@@ -115,7 +115,7 @@
{:else} {:else}
{#each preview.tools.items as tool} {#each preview.tools.items as tool}
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium">{tool.name}</div> <div class=" self-center text-xs font-normal">{tool.name}</div>
</div> </div>
{/each} {/each}
@@ -41,11 +41,11 @@
{$i18n.t('No model IDs')} --> {$i18n.t('No model IDs')} -->
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Workspace Permissions')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Workspace Permissions')}</div>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Models Access')} {$i18n.t('Models Access')}
</div> </div>
<Switch bind:state={permissions.workspace.models} /> <Switch bind:state={permissions.workspace.models} />
@@ -77,7 +77,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Knowledge Access')} {$i18n.t('Knowledge Access')}
</div> </div>
<Switch bind:state={permissions.workspace.knowledge} /> <Switch bind:state={permissions.workspace.knowledge} />
@@ -93,7 +93,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Prompts Access')} {$i18n.t('Prompts Access')}
</div> </div>
<Switch bind:state={permissions.workspace.prompts} /> <Switch bind:state={permissions.workspace.prompts} />
@@ -132,7 +132,7 @@
)} )}
placement="top-start" placement="top-start"
> >
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Tools Access')} {$i18n.t('Tools Access')}
</div> </div>
<Switch bind:state={permissions.workspace.tools} /> <Switch bind:state={permissions.workspace.tools} />
@@ -171,7 +171,7 @@
)} )}
placement="top-start" placement="top-start"
> >
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Skills Access')} {$i18n.t('Skills Access')}
</div> </div>
<Switch bind:state={permissions.workspace.skills} /> <Switch bind:state={permissions.workspace.skills} />
@@ -205,11 +205,11 @@
<hr class=" border-gray-100/30 dark:border-gray-850/30" /> <hr class=" border-gray-100/30 dark:border-gray-850/30" />
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Sharing Permissions')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Sharing Permissions')}</div>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Models Sharing')} {$i18n.t('Models Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.models} /> <Switch bind:state={permissions.sharing.models} />
@@ -226,7 +226,7 @@
{#if permissions.sharing.models} {#if permissions.sharing.models}
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Models Public Sharing')} {$i18n.t('Models Public Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.public_models} /> <Switch bind:state={permissions.sharing.public_models} />
@@ -243,7 +243,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Knowledge Sharing')} {$i18n.t('Knowledge Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.knowledge} /> <Switch bind:state={permissions.sharing.knowledge} />
@@ -260,7 +260,7 @@
{#if permissions.sharing.knowledge} {#if permissions.sharing.knowledge}
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Knowledge Public Sharing')} {$i18n.t('Knowledge Public Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.public_knowledge} /> <Switch bind:state={permissions.sharing.public_knowledge} />
@@ -277,7 +277,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Prompts Sharing')} {$i18n.t('Prompts Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.prompts} /> <Switch bind:state={permissions.sharing.prompts} />
@@ -294,7 +294,7 @@
{#if permissions.sharing.prompts} {#if permissions.sharing.prompts}
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Prompts Public Sharing')} {$i18n.t('Prompts Public Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.public_prompts} /> <Switch bind:state={permissions.sharing.public_prompts} />
@@ -311,7 +311,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Tools Sharing')} {$i18n.t('Tools Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.tools} /> <Switch bind:state={permissions.sharing.tools} />
@@ -328,7 +328,7 @@
{#if permissions.sharing.tools} {#if permissions.sharing.tools}
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Tools Public Sharing')} {$i18n.t('Tools Public Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.public_tools} /> <Switch bind:state={permissions.sharing.public_tools} />
@@ -345,7 +345,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Skills Sharing')} {$i18n.t('Skills Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.skills} /> <Switch bind:state={permissions.sharing.skills} />
@@ -362,7 +362,7 @@
{#if permissions.sharing.skills} {#if permissions.sharing.skills}
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Skills Public Sharing')} {$i18n.t('Skills Public Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.public_skills} /> <Switch bind:state={permissions.sharing.public_skills} />
@@ -379,7 +379,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Notes Sharing')} {$i18n.t('Notes Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.notes} /> <Switch bind:state={permissions.sharing.notes} />
@@ -396,7 +396,7 @@
{#if permissions.sharing.notes} {#if permissions.sharing.notes}
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Notes Public Sharing')} {$i18n.t('Notes Public Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.public_notes} /> <Switch bind:state={permissions.sharing.public_notes} />
@@ -413,7 +413,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Folders Sharing')} {$i18n.t('Folders Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.folders} /> <Switch bind:state={permissions.sharing.folders} />
@@ -430,7 +430,7 @@
{#if permissions.chat.share} {#if permissions.chat.share}
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Chats Public Sharing')} {$i18n.t('Chats Public Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.public_chats} /> <Switch bind:state={permissions.sharing.public_chats} />
@@ -448,7 +448,7 @@
{#if permissions.features.calendar} {#if permissions.features.calendar}
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Calendars Public Sharing')} {$i18n.t('Calendars Public Sharing')}
</div> </div>
<Switch bind:state={permissions.sharing.public_calendars} /> <Switch bind:state={permissions.sharing.public_calendars} />
@@ -467,11 +467,11 @@
<hr class=" border-gray-100/30 dark:border-gray-850/30" /> <hr class=" border-gray-100/30 dark:border-gray-850/30" />
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Access Grants')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Access Grants')}</div>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Sharing With Users')} {$i18n.t('Allow Sharing With Users')}
</div> </div>
<Switch bind:state={permissions.access_grants.allow_users} /> <Switch bind:state={permissions.access_grants.allow_users} />
@@ -487,7 +487,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Sharing With Groups')} {$i18n.t('Allow Sharing With Groups')}
</div> </div>
<Switch bind:state={permissions.access_grants.allow_groups} /> <Switch bind:state={permissions.access_grants.allow_groups} />
@@ -505,11 +505,11 @@
<hr class=" border-gray-100/30 dark:border-gray-850/30" /> <hr class=" border-gray-100/30 dark:border-gray-850/30" />
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Chat Permissions')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Chat Permissions')}</div>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow File Upload')} {$i18n.t('Allow File Upload')}
</div> </div>
<Switch bind:state={permissions.chat.file_upload} /> <Switch bind:state={permissions.chat.file_upload} />
@@ -525,7 +525,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Web Upload')} {$i18n.t('Allow Web Upload')}
</div> </div>
<Switch bind:state={permissions.chat.web_upload} /> <Switch bind:state={permissions.chat.web_upload} />
@@ -541,7 +541,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Chat Controls')} {$i18n.t('Allow Chat Controls')}
</div> </div>
<Switch bind:state={permissions.chat.controls} /> <Switch bind:state={permissions.chat.controls} />
@@ -558,7 +558,7 @@
{#if permissions.chat.controls} {#if permissions.chat.controls}
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Chat Valves')} {$i18n.t('Allow Chat Valves')}
</div> </div>
<Switch bind:state={permissions.chat.valves} /> <Switch bind:state={permissions.chat.valves} />
@@ -574,7 +574,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Chat System Prompt')} {$i18n.t('Allow Chat System Prompt')}
</div> </div>
<Switch bind:state={permissions.chat.system_prompt} /> <Switch bind:state={permissions.chat.system_prompt} />
@@ -590,7 +590,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Chat Params')} {$i18n.t('Allow Chat Params')}
</div> </div>
<Switch bind:state={permissions.chat.params} /> <Switch bind:state={permissions.chat.params} />
@@ -607,7 +607,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Chat Edit')} {$i18n.t('Allow Chat Edit')}
</div> </div>
<Switch bind:state={permissions.chat.edit} /> <Switch bind:state={permissions.chat.edit} />
@@ -623,7 +623,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Chat Delete')} {$i18n.t('Allow Chat Delete')}
</div> </div>
<Switch bind:state={permissions.chat.delete} /> <Switch bind:state={permissions.chat.delete} />
@@ -639,7 +639,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Delete Messages')} {$i18n.t('Allow Delete Messages')}
</div> </div>
<Switch bind:state={permissions.chat.delete_message} /> <Switch bind:state={permissions.chat.delete_message} />
@@ -655,7 +655,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Continue Response')} {$i18n.t('Allow Continue Response')}
</div> </div>
<Switch bind:state={permissions.chat.continue_response} /> <Switch bind:state={permissions.chat.continue_response} />
@@ -671,7 +671,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Regenerate Response')} {$i18n.t('Allow Regenerate Response')}
</div> </div>
<Switch bind:state={permissions.chat.regenerate_response} /> <Switch bind:state={permissions.chat.regenerate_response} />
@@ -687,7 +687,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Rate Response')} {$i18n.t('Allow Rate Response')}
</div> </div>
<Switch bind:state={permissions.chat.rate_response} /> <Switch bind:state={permissions.chat.rate_response} />
@@ -703,7 +703,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Chat Share')} {$i18n.t('Allow Chat Share')}
</div> </div>
<Switch bind:state={permissions.chat.share} /> <Switch bind:state={permissions.chat.share} />
@@ -719,7 +719,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Chat Export')} {$i18n.t('Allow Chat Export')}
</div> </div>
<Switch bind:state={permissions.chat.export} /> <Switch bind:state={permissions.chat.export} />
@@ -735,7 +735,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Chat Import')} {$i18n.t('Allow Chat Import')}
</div> </div>
<Switch bind:state={permissions.chat['import']} /> <Switch bind:state={permissions.chat['import']} />
@@ -751,7 +751,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Speech to Text')} {$i18n.t('Allow Speech to Text')}
</div> </div>
<Switch bind:state={permissions.chat.stt} /> <Switch bind:state={permissions.chat.stt} />
@@ -767,7 +767,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Text to Speech')} {$i18n.t('Allow Text to Speech')}
</div> </div>
<Switch bind:state={permissions.chat.tts} /> <Switch bind:state={permissions.chat.tts} />
@@ -783,7 +783,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Call')} {$i18n.t('Allow Call')}
</div> </div>
<Switch bind:state={permissions.chat.call} /> <Switch bind:state={permissions.chat.call} />
@@ -799,7 +799,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Multiple Models in Chat')} {$i18n.t('Allow Multiple Models in Chat')}
</div> </div>
<Switch bind:state={permissions.chat.multiple_models} /> <Switch bind:state={permissions.chat.multiple_models} />
@@ -815,7 +815,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Allow Temporary Chat')} {$i18n.t('Allow Temporary Chat')}
</div> </div>
<Switch bind:state={permissions.chat.temporary} /> <Switch bind:state={permissions.chat.temporary} />
@@ -832,7 +832,7 @@
{#if permissions.chat.temporary} {#if permissions.chat.temporary}
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Enforce Temporary Chat')} {$i18n.t('Enforce Temporary Chat')}
</div> </div>
<Switch bind:state={permissions.chat.temporary_enforced} /> <Switch bind:state={permissions.chat.temporary_enforced} />
@@ -851,11 +851,11 @@
<hr class=" border-gray-100/30 dark:border-gray-850/30" /> <hr class=" border-gray-100/30 dark:border-gray-850/30" />
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Features Permissions')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Features Permissions')}</div>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('API Keys')} {$i18n.t('API Keys')}
</div> </div>
<Switch bind:state={permissions.features.api_keys} /> <Switch bind:state={permissions.features.api_keys} />
@@ -871,7 +871,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Notes')} {$i18n.t('Notes')}
</div> </div>
<Switch bind:state={permissions.features.notes} /> <Switch bind:state={permissions.features.notes} />
@@ -887,7 +887,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Channels')} {$i18n.t('Channels')}
</div> </div>
<Switch bind:state={permissions.features.channels} /> <Switch bind:state={permissions.features.channels} />
@@ -903,7 +903,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Folders')} {$i18n.t('Folders')}
</div> </div>
<Switch bind:state={permissions.features.folders} /> <Switch bind:state={permissions.features.folders} />
@@ -919,7 +919,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Direct Tool Servers')} {$i18n.t('Direct Tool Servers')}
</div> </div>
<Switch bind:state={permissions.features.direct_tool_servers} /> <Switch bind:state={permissions.features.direct_tool_servers} />
@@ -935,7 +935,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Web Search')} {$i18n.t('Web Search')}
</div> </div>
<Switch bind:state={permissions.features.web_search} /> <Switch bind:state={permissions.features.web_search} />
@@ -951,7 +951,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Image Generation')} {$i18n.t('Image Generation')}
</div> </div>
<Switch bind:state={permissions.features.image_generation} /> <Switch bind:state={permissions.features.image_generation} />
@@ -967,7 +967,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Code Interpreter')} {$i18n.t('Code Interpreter')}
</div> </div>
<Switch bind:state={permissions.features.code_interpreter} /> <Switch bind:state={permissions.features.code_interpreter} />
@@ -983,7 +983,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Memories')} {$i18n.t('Memories')}
</div> </div>
<Switch bind:state={permissions.features.memories} /> <Switch bind:state={permissions.features.memories} />
@@ -1005,7 +1005,7 @@
)} )}
placement="top-start" placement="top-start"
> >
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Automations')} {$i18n.t('Automations')}
</div> </div>
<Switch bind:state={permissions.features.automations} /> <Switch bind:state={permissions.features.automations} />
@@ -1021,7 +1021,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Calendar')} {$i18n.t('Calendar')}
</div> </div>
<Switch bind:state={permissions.features.calendar} /> <Switch bind:state={permissions.features.calendar} />
@@ -1037,7 +1037,7 @@
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('User Webhooks')} {$i18n.t('User Webhooks')}
</div> </div>
<Switch bind:state={permissions.features.webhooks} /> <Switch bind:state={permissions.features.webhooks} />
@@ -1055,11 +1055,11 @@
<hr class=" border-gray-100/30 dark:border-gray-850/30" /> <hr class=" border-gray-100/30 dark:border-gray-850/30" />
<div> <div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Settings Permissions')}</div> <div class=" mb-2 text-sm font-normal">{$i18n.t('Settings Permissions')}</div>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<div class="flex w-full justify-between my-1"> <div class="flex w-full justify-between my-1">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{$i18n.t('Interface Settings Access')} {$i18n.t('Interface Settings Access')}
</div> </div>
<Switch bind:state={permissions.settings.interface} /> <Switch bind:state={permissions.settings.interface} />
@@ -248,7 +248,7 @@
/> />
</div> </div>
</td> </td>
<td class="px-3 py-1 font-medium text-gray-900 dark:text-white max-w-48"> <td class="px-3 py-1 font-normal text-gray-900 dark:text-white max-w-48">
<Tooltip content={user.email} placement="top-start"> <Tooltip content={user.email} placement="top-start">
<div class="flex items-center"> <div class="flex items-center">
<img <img
@@ -257,7 +257,7 @@
alt="user" alt="user"
/> />
<div class="font-medium truncate">{user.name}</div> <div class="font-normal truncate">{user.name}</div>
</div> </div>
</Tooltip> </Tooltip>
</td> </td>
@@ -169,7 +169,7 @@
<div <div
class="pt-0.5 pb-1 gap-1 flex flex-col md:flex-row justify-between sticky top-0 z-10 bg-white dark:bg-gray-900" class="pt-0.5 pb-1 gap-1 flex flex-col md:flex-row justify-between sticky top-0 z-10 bg-white dark:bg-gray-900"
> >
<div class="flex md:self-center text-lg font-medium px-0.5 gap-2"> <div class="flex md:self-center text-lg font-normal px-0.5 gap-2">
<div class="flex-shrink-0"> <div class="flex-shrink-0">
{$i18n.t('Users')} {$i18n.t('Users')}
</div> </div>
@@ -177,18 +177,18 @@
<div> <div>
{#if ($config?.license_metadata?.seats ?? null) !== null} {#if ($config?.license_metadata?.seats ?? null) !== null}
{#if total > $config?.license_metadata?.seats} {#if total > $config?.license_metadata?.seats}
<span class="text-lg font-medium text-red-500" <span class="text-lg font-normal text-red-500"
>{total} of {$config?.license_metadata?.seats} >{total} of {$config?.license_metadata?.seats}
<span class="text-sm font-normal">{$i18n.t('available users')}</span></span <span class="text-sm font-normal">{$i18n.t('available users')}</span></span
> >
{:else} {:else}
<span class="text-lg font-medium text-gray-500 dark:text-gray-300" <span class="text-lg font-normal text-gray-500 dark:text-gray-300"
>{total} of {$config?.license_metadata?.seats} >{total} of {$config?.license_metadata?.seats}
<span class="text-sm font-normal">{$i18n.t('available users')}</span></span <span class="text-sm font-normal">{$i18n.t('available users')}</span></span
> >
{/if} {/if}
{:else} {:else}
<span class="text-lg font-medium text-gray-500 dark:text-gray-300">{total}</span> <span class="text-lg font-normal text-gray-500 dark:text-gray-300">{total}</span>
{/if} {/if}
</div> </div>
</div> </div>
@@ -222,7 +222,7 @@
<div> <div>
<Tooltip content={$i18n.t('Add User')}> <Tooltip content={$i18n.t('Add User')}>
<button <button
class=" p-2 rounded-xl hover:bg-gray-100 dark:bg-gray-900 dark:hover:bg-gray-850 transition font-medium text-sm flex items-center space-x-1" class=" p-2 rounded-xl hover:bg-gray-100 dark:bg-gray-900 dark:hover:bg-gray-850 transition font-normal text-sm flex items-center space-x-1"
on:click={() => { on:click={() => {
showAddUserModal = !showAddUserModal; showAddUserModal = !showAddUserModal;
}} }}
@@ -377,7 +377,7 @@
/> />
</button> </button>
</td> </td>
<td class="px-3 py-1 font-medium text-gray-900 dark:text-white max-w-48"> <td class="px-3 py-1 font-normal text-gray-900 dark:text-white max-w-48">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<ProfilePreview {user} side="right" align="center" sideOffset={6}> <ProfilePreview {user} side="right" align="center" sideOffset={6}>
<img <img
@@ -390,7 +390,7 @@
/> />
</ProfilePreview> </ProfilePreview>
<div class="font-medium truncate">{user.name}</div> <div class="font-normal truncate">{user.name}</div>
{#if user?.last_active_at && Date.now() / 1000 - user.last_active_at < 180} {#if user?.last_active_at && Date.now() / 1000 - user.last_active_at < 180}
<div> <div>
@@ -144,7 +144,7 @@
<Modal size="sm" bind:show> <Modal size="sm" bind:show>
<div> <div>
<div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2"> <div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2">
<div class=" text-lg font-medium self-center">{$i18n.t('Add User')}</div> <div class=" text-lg font-normal self-center">{$i18n.t('Add User')}</div>
<button <button
class="self-center" class="self-center"
aria-label={$i18n.t('Close')} aria-label={$i18n.t('Close')}
@@ -165,7 +165,7 @@
}} }}
> >
<div <div
class="flex -mt-2 mb-1.5 gap-1 scrollbar-none overflow-x-auto w-fit text-center text-sm font-medium rounded-full bg-transparent dark:text-gray-200" class="flex -mt-2 mb-1.5 gap-1 scrollbar-none overflow-x-auto w-fit text-center text-sm font-normal rounded-full bg-transparent dark:text-gray-200"
> >
<button <button
class="min-w-fit p-1.5 {tab === '' class="min-w-fit p-1.5 {tab === ''
@@ -268,7 +268,7 @@
/> />
<button <button
class="w-full text-sm font-medium py-3 bg-transparent hover:bg-gray-100 border border-dashed dark:border-gray-850 dark:hover:bg-gray-850 text-center rounded-xl" class="w-full text-sm font-normal py-3 bg-transparent hover:bg-gray-100 border border-dashed dark:border-gray-850 dark:hover:bg-gray-850 text-center rounded-xl"
type="button" type="button"
on:click={() => { on:click={() => {
document.getElementById('upload-user-csv-input')?.click(); document.getElementById('upload-user-csv-input')?.click();
@@ -297,9 +297,9 @@
{/if} {/if}
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed' ? ' cursor-not-allowed'
: ''}" : ''}"
type="submit" type="submit"
@@ -69,7 +69,7 @@
<Modal size="sm" bind:show> <Modal size="sm" bind:show>
<div> <div>
<div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2"> <div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2">
<div class=" text-lg font-medium self-center">{$i18n.t('Edit User')}</div> <div class=" text-lg font-normal self-center">{$i18n.t('Edit User')}</div>
<button <button
class="self-center" class="self-center"
aria-label={$i18n.t('Close')} aria-label={$i18n.t('Close')}
@@ -101,7 +101,7 @@
<div class=" flex-1 min-w-0"> <div class=" flex-1 min-w-0">
<div class="overflow-hidden w-ful mb-2"> <div class="overflow-hidden w-ful mb-2">
<div class=" self-center capitalize font-medium truncate"> <div class=" self-center capitalize font-normal truncate">
{selectedUser.name} {selectedUser.name}
</div> </div>
@@ -218,9 +218,9 @@
</div> </div>
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
@@ -191,7 +191,7 @@
<!-- Header --> <!-- Header -->
<div class="flex justify-between dark:text-gray-100 px-5 pt-4 pb-2"> <div class="flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
<input <input
class="w-full text-lg bg-transparent outline-hidden font-primary placeholder:text-gray-300 dark:placeholder:text-gray-700" class="w-full text-lg bg-transparent outline-hidden placeholder:text-gray-300 dark:placeholder:text-gray-700"
type="text" type="text"
bind:value={title} bind:value={title}
placeholder={$i18n.t('Event title')} placeholder={$i18n.t('Event title')}
@@ -106,7 +106,7 @@
<!-- Mini Month Calendar --> <!-- Mini Month Calendar -->
<div> <div>
<div class="flex items-center justify-between px-1 mb-1.5 mt-1.5"> <div class="flex items-center justify-between px-1 mb-1.5 mt-1.5">
<div class="text-[11px] font-medium">{miniMonthNames[miniMonth]} {miniYear}</div> <div class="text-[11px] font-normal">{miniMonthNames[miniMonth]} {miniYear}</div>
<div class="flex items-center gap-0.5"> <div class="flex items-center gap-0.5">
<button <button
class="p-0.5 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition" class="p-0.5 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition"
@@ -65,7 +65,7 @@
<div> <div>
<!-- Header --> <!-- Header -->
<div class="flex justify-between items-center dark:text-gray-100 px-5 pt-4 pb-2"> <div class="flex justify-between items-center dark:text-gray-100 px-5 pt-4 pb-2">
<h3 class="text-base font-medium">{$i18n.t('New Calendar')}</h3> <h3 class="text-base font-normal">{$i18n.t('New Calendar')}</h3>
<button <button
class="self-center shrink-0 ml-2" class="self-center shrink-0 ml-2"
aria-label={$i18n.t('Close')} aria-label={$i18n.t('Close')}
@@ -81,7 +81,7 @@
<div> <div>
<div class="mb-1 text-xs text-gray-500">{$i18n.t('Name')}</div> <div class="mb-1 text-xs text-gray-500">{$i18n.t('Name')}</div>
<input <input
class="w-full text-sm bg-transparent outline-hidden font-primary placeholder:text-gray-300 dark:placeholder:text-gray-700" class="w-full text-sm bg-transparent outline-hidden placeholder:text-gray-300 dark:placeholder:text-gray-700"
type="text" type="text"
bind:value={name} bind:value={name}
placeholder={$i18n.t('Calendar name')} placeholder={$i18n.t('Calendar name')}
@@ -81,9 +81,9 @@
<MemberSelector bind:userIds bind:groupIds includeGroups={true} /> <MemberSelector bind:userIds bind:groupIds includeGroups={true} />
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium gap-1.5"> <div class="flex justify-end pt-3 text-sm font-normal gap-1.5">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-950 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center {loading class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-950 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center {loading
? ' cursor-not-allowed' ? ' cursor-not-allowed'
: ''}" : ''}"
type="submit" type="submit"
@@ -111,7 +111,7 @@
<div class=""> <div class="">
<button <button
type="button" type="button"
class=" px-3 py-1.5 gap-1 rounded-xl bg-gray-100/50 dark:text-white dark:bg-gray-850/50 text-black transition font-medium text-xs flex items-center justify-center" class=" px-3 py-1.5 gap-1 rounded-xl bg-gray-100/50 dark:text-white dark:bg-gray-850/50 text-black transition font-normal text-xs flex items-center justify-center"
on:click={onAdd} on:click={onAdd}
> >
<Plus className="size-3.5 " /> <Plus className="size-3.5 " />
@@ -212,7 +212,7 @@
<div class="w-full"> <div class="w-full">
{#each users as user, userIdx (user.id)} {#each users as user, userIdx (user.id)}
<div class=" dark:border-gray-850 text-xs flex items-center justify-between"> <div class=" dark:border-gray-850 text-xs flex items-center justify-between">
<div class="px-2 py-1.5 font-medium text-gray-900 dark:text-white flex-1"> <div class="px-2 py-1.5 font-normal text-gray-900 dark:text-white flex-1">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<ProfilePreview {user} side="right" align="center" sideOffset={6}> <ProfilePreview {user} side="right" align="center" sideOffset={6}>
<img <img
@@ -222,7 +222,7 @@
/> />
</ProfilePreview> </ProfilePreview>
<Tooltip content={user.email} placement="top-start"> <Tooltip content={user.email} placement="top-start">
<div class="font-medium truncate">{user.name}</div> <div class="font-normal truncate">{user.name}</div>
</Tooltip> </Tooltip>
{#if user?.is_active} {#if user?.is_active}
+1 -1
View File
@@ -91,7 +91,7 @@
</div> </div>
{/if} {/if}
<div class="text-2xl font-medium capitalize"> <div class="text-2xl font-normal capitalize">
{#if channel?.name} {#if channel?.name}
{channel.name} {channel.name}
{:else} {:else}
@@ -402,7 +402,7 @@
{#if message.created_at} {#if message.created_at}
<div <div
class="mt-1.5 flex shrink-0 items-center text-xs self-center invisible group-hover:visible text-gray-500 font-medium first-letter:capitalize" class="mt-1.5 flex shrink-0 items-center text-xs self-center invisible group-hover:visible text-gray-500 font-normal first-letter:capitalize"
> >
<Tooltip content={dayjs(message.created_at / 1000000).format('LLLL')}> <Tooltip content={dayjs(message.created_at / 1000000).format('LLLL')}>
{dayjs(message.created_at / 1000000).format('HH:mm')} {dayjs(message.created_at / 1000000).format('HH:mm')}
@@ -415,7 +415,7 @@
<div class="flex-auto w-0 pl-2"> <div class="flex-auto w-0 pl-2">
{#if showUserProfile} {#if showUserProfile}
<Name> <Name>
<div class=" self-end text-base shrink-0 font-medium truncate"> <div class=" self-end text-base shrink-0 font-normal truncate">
{#if message?.meta?.model_id} {#if message?.meta?.model_id}
{message?.meta?.model_name ?? message?.meta?.model_id} {message?.meta?.model_name ?? message?.meta?.model_id}
{:else} {:else}
@@ -425,7 +425,7 @@
{#if message.created_at} {#if message.created_at}
<div <div
class=" self-center text-xs text-gray-400 font-medium first-letter:capitalize ml-0.5 translate-y-[1px]" class=" self-center text-xs text-gray-400 font-normal first-letter:capitalize ml-0.5 translate-y-[1px]"
> >
<Tooltip content={dayjs(message.created_at / 1000000).format('LLLL')}> <Tooltip content={dayjs(message.created_at / 1000000).format('LLLL')}>
<span class="line-clamp-1"> <span class="line-clamp-1">
@@ -497,7 +497,7 @@
} }
}} }}
/> />
<div class=" mt-2 mb-1 flex justify-end text-sm font-medium"> <div class=" mt-2 mb-1 flex justify-end text-sm font-normal">
<div class="flex space-x-1.5"> <div class="flex space-x-1.5">
<button <button
id="close-edit-message-button" id="close-edit-message-button"
@@ -593,7 +593,7 @@
<Emoji shortCode={reaction.name} /> <Emoji shortCode={reaction.name} />
{#if reaction.users.length > 0} {#if reaction.users.length > 0}
<div class="text-xs font-medium text-gray-500 dark:text-gray-400"> <div class="text-xs font-normal text-gray-500 dark:text-gray-400">
{reaction.users?.length} {reaction.users?.length}
</div> </div>
{/if} {/if}
@@ -628,7 +628,7 @@
onThread(message.id); onThread(message.id);
}} }}
> >
<span class="font-medium mr-1"> <span class="font-normal mr-1">
{$i18n.t('{{COUNT}} Replies', { COUNT: message.reply_count })}</span {$i18n.t('{{COUNT}} Replies', { COUNT: message.reply_count })}</span
><span> ><span>
{' - '}{$i18n.t('Last reply')} {' - '}{$i18n.t('Last reply')}
@@ -44,7 +44,7 @@
</div> </div>
<div class=" flex flex-col w-full flex-1"> <div class=" flex flex-col w-full flex-1">
<div class="mb-0.5 font-medium line-clamp-1 pr-2"> <div class="mb-0.5 font-normal line-clamp-1 pr-2">
{user.name} {user.name}
</div> </div>
@@ -129,7 +129,7 @@
<ChatBubbleOval className="size-4" /> <ChatBubbleOval className="size-4" />
</div> </div>
<div class="font-medium"> <div class="font-normal">
{$i18n.t('Message')} {$i18n.t('Message')}
</div> </div>
</button> </button>
+1 -1
View File
@@ -174,7 +174,7 @@
{#if channel} {#if channel}
<div class="flex flex-col w-full h-full bg-gray-50 dark:bg-gray-850"> <div class="flex flex-col w-full h-full bg-gray-50 dark:bg-gray-850">
<div class="sticky top-0 flex items-center justify-between px-3.5 py-3"> <div class="sticky top-0 flex items-center justify-between px-3.5 py-3">
<div class=" font-medium text-lg">{$i18n.t('Thread')}</div> <div class=" font-normal text-lg">{$i18n.t('Thread')}</div>
<div> <div>
<button <button
@@ -95,7 +95,7 @@
alt="" alt=""
/> />
<div class="flex-1 text-left min-w-0"> <div class="flex-1 text-left min-w-0">
<div class="font-medium text-gray-900 dark:text-white truncate"> <div class="font-normal text-gray-900 dark:text-white truncate">
{name} {name}
</div> </div>
<div class="text-gray-500 text-xs"> <div class="text-gray-500 text-xs">
@@ -108,7 +108,7 @@
<button <button
type="button" type="button"
class="px-3 py-1.5 gap-1 rounded-xl bg-gray-100/50 dark:bg-gray-850/50 text-black dark:text-white transition font-medium text-xs flex items-center justify-center" class="px-3 py-1.5 gap-1 rounded-xl bg-gray-100/50 dark:bg-gray-850/50 text-black dark:text-white transition font-normal text-xs flex items-center justify-center"
on:click={createHandler} on:click={createHandler}
disabled={isSaving} disabled={isSaving}
> >
@@ -158,9 +158,9 @@
</div> </div>
{/if} {/if}
<div class="flex justify-end text-sm font-medium gap-1.5"> <div class="flex justify-end text-sm font-normal gap-1.5">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {isSaving class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {isSaving
? 'cursor-not-allowed' ? 'cursor-not-allowed'
: ''}" : ''}"
type="submit" type="submit"
+1 -1
View File
@@ -264,7 +264,7 @@
{/if} {/if}
</div> </div>
{:else} {:else}
<div class="m-auto font-medium text-xs text-gray-900 dark:text-white"> <div class="m-auto font-normal text-xs text-gray-900 dark:text-white">
{$i18n.t('No HTML, CSS, or JavaScript content found.')} {$i18n.t('No HTML, CSS, or JavaScript content found.')}
</div> </div>
{/if} {/if}
+1 -1
View File
@@ -3108,7 +3108,7 @@
}} }}
> >
<div class=" text-sm text-gray-500 flex-1 line-clamp-3"> <div class=" text-sm text-gray-500 flex-1 line-clamp-3">
{$i18n.t('This will delete')} <span class=" font-semibold">{$chatTitle}</span>. {$i18n.t('This will delete')} <span class=" font-normal">{$chatTitle}</span>.
</div> </div>
</DeleteConfirmDialog> </DeleteConfirmDialog>
+6 -6
View File
@@ -309,7 +309,7 @@
<button <button
class="px-2.5 py-1 text-sm rounded-lg transition whitespace-nowrap {activeTab === class="px-2.5 py-1 text-sm rounded-lg transition whitespace-nowrap {activeTab ===
'controls' 'controls'
? 'bg-gray-100/40 dark:bg-gray-800/25 font-medium text-gray-700 dark:text-gray-200' ? 'bg-gray-100/40 dark:bg-gray-800/25 font-normal text-gray-700 dark:text-gray-200'
: 'text-gray-500 dark:text-gray-400 hover:bg-gray-100/30 dark:hover:bg-gray-800/20 hover:text-gray-600 dark:hover:text-gray-300'}" : 'text-gray-500 dark:text-gray-400 hover:bg-gray-100/30 dark:hover:bg-gray-800/20 hover:text-gray-600 dark:hover:text-gray-300'}"
on:click={() => (activeTab = 'controls')} on:click={() => (activeTab = 'controls')}
> >
@@ -320,7 +320,7 @@
<button <button
class="px-2.5 py-1 text-sm rounded-lg transition whitespace-nowrap {activeTab === class="px-2.5 py-1 text-sm rounded-lg transition whitespace-nowrap {activeTab ===
'files' 'files'
? 'bg-gray-100/40 dark:bg-gray-800/25 font-medium text-gray-700 dark:text-gray-200' ? 'bg-gray-100/40 dark:bg-gray-800/25 font-normal text-gray-700 dark:text-gray-200'
: 'text-gray-500 dark:text-gray-400 hover:bg-gray-100/30 dark:hover:bg-gray-800/20 hover:text-gray-600 dark:hover:text-gray-300'}" : 'text-gray-500 dark:text-gray-400 hover:bg-gray-100/30 dark:hover:bg-gray-800/20 hover:text-gray-600 dark:hover:text-gray-300'}"
on:click={() => (activeTab = 'files')} on:click={() => (activeTab = 'files')}
> >
@@ -331,7 +331,7 @@
<button <button
class="px-2.5 py-1 text-sm rounded-lg transition whitespace-nowrap {activeTab === class="px-2.5 py-1 text-sm rounded-lg transition whitespace-nowrap {activeTab ===
'overview' 'overview'
? 'bg-gray-100/40 dark:bg-gray-800/25 font-medium text-gray-700 dark:text-gray-200' ? 'bg-gray-100/40 dark:bg-gray-800/25 font-normal text-gray-700 dark:text-gray-200'
: 'text-gray-500 dark:text-gray-400 hover:bg-gray-100/30 dark:hover:bg-gray-800/20 hover:text-gray-600 dark:hover:text-gray-300'}" : 'text-gray-500 dark:text-gray-400 hover:bg-gray-100/30 dark:hover:bg-gray-800/20 hover:text-gray-600 dark:hover:text-gray-300'}"
on:click={() => (activeTab = 'overview')} on:click={() => (activeTab = 'overview')}
> >
@@ -454,7 +454,7 @@
<button <button
class="px-2.5 py-1 text-sm rounded-lg transition whitespace-nowrap {activeTab === class="px-2.5 py-1 text-sm rounded-lg transition whitespace-nowrap {activeTab ===
'controls' 'controls'
? 'bg-gray-100/40 dark:bg-gray-800/25 font-medium text-gray-700 dark:text-gray-200' ? 'bg-gray-100/40 dark:bg-gray-800/25 font-normal text-gray-700 dark:text-gray-200'
: 'text-gray-500 dark:text-gray-400 hover:bg-gray-100/30 dark:hover:bg-gray-800/20 hover:text-gray-600 dark:hover:text-gray-300'}" : 'text-gray-500 dark:text-gray-400 hover:bg-gray-100/30 dark:hover:bg-gray-800/20 hover:text-gray-600 dark:hover:text-gray-300'}"
on:click={() => (activeTab = 'controls')} on:click={() => (activeTab = 'controls')}
> >
@@ -465,7 +465,7 @@
<button <button
class="px-2.5 py-1 text-sm rounded-lg transition whitespace-nowrap {activeTab === class="px-2.5 py-1 text-sm rounded-lg transition whitespace-nowrap {activeTab ===
'files' 'files'
? 'bg-gray-100/40 dark:bg-gray-800/25 font-medium text-gray-700 dark:text-gray-200' ? 'bg-gray-100/40 dark:bg-gray-800/25 font-normal text-gray-700 dark:text-gray-200'
: 'text-gray-500 dark:text-gray-400 hover:bg-gray-100/30 dark:hover:bg-gray-800/20 hover:text-gray-600 dark:hover:text-gray-300'}" : 'text-gray-500 dark:text-gray-400 hover:bg-gray-100/30 dark:hover:bg-gray-800/20 hover:text-gray-600 dark:hover:text-gray-300'}"
on:click={() => (activeTab = 'files')} on:click={() => (activeTab = 'files')}
> >
@@ -476,7 +476,7 @@
<button <button
class="px-2.5 py-1 text-sm rounded-lg transition whitespace-nowrap {activeTab === class="px-2.5 py-1 text-sm rounded-lg transition whitespace-nowrap {activeTab ===
'overview' 'overview'
? 'bg-gray-100/40 dark:bg-gray-800/25 font-medium text-gray-700 dark:text-gray-200' ? 'bg-gray-100/40 dark:bg-gray-800/25 font-normal text-gray-700 dark:text-gray-200'
: 'text-gray-500 dark:text-gray-400 hover:bg-gray-100/30 dark:hover:bg-gray-800/20 hover:text-gray-600 dark:hover:text-gray-300'}" : 'text-gray-500 dark:text-gray-400 hover:bg-gray-100/30 dark:hover:bg-gray-800/20 hover:text-gray-600 dark:hover:text-gray-300'}"
on:click={() => (activeTab = 'overview')} on:click={() => (activeTab = 'overview')}
> >
@@ -83,7 +83,7 @@
{/if} {/if}
<div <div
class=" mt-2 mb-4 text-3xl text-gray-800 dark:text-gray-100 text-left flex items-center gap-4 font-primary" class=" mt-2 mb-4 text-3xl text-gray-800 dark:text-gray-100 text-left flex items-center gap-4 "
> >
<div> <div>
<div class=" capitalize line-clamp-1" in:fade={{ duration: 200 }}> <div class=" capitalize line-clamp-1" in:fade={{ duration: 200 }}>
@@ -132,7 +132,7 @@
</div> </div>
</div> </div>
<div class=" w-full font-primary" in:fade={{ duration: 200, delay: 300 }}> <div class=" w-full " in:fade={{ duration: 200, delay: 300 }}>
<Suggestions <Suggestions
className="grid grid-cols-2" className="grid grid-cols-2"
suggestionPrompts={atSelectedModel?.info?.meta?.suggestion_prompts ?? suggestionPrompts={atSelectedModel?.info?.meta?.suggestion_prompts ??
@@ -30,13 +30,13 @@
let showAdvancedParams = getOpen('advancedParams'); let showAdvancedParams = getOpen('advancedParams');
const compactSectionButtonClass = const compactSectionButtonClass =
'w-full py-1 text-xs font-medium text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100 transition cursor-pointer select-none'; 'w-full py-1 text-xs font-normal text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100 transition cursor-pointer select-none';
</script> </script>
<div class=" dark:text-white"> <div class=" dark:text-white">
{#if !embed} {#if !embed}
<div class=" flex items-center justify-between dark:text-gray-100 mb-2"> <div class=" flex items-center justify-between dark:text-gray-100 mb-2">
<div class=" text-md self-center font-primary">{$i18n.t('Controls')}</div> <div class=" text-md self-center ">{$i18n.t('Controls')}</div>
<button <button
class="self-center" class="self-center"
aria-label={$i18n.t('Close chat controls')} aria-label={$i18n.t('Close chat controls')}
+1 -1
View File
@@ -1494,7 +1494,7 @@
clip-rule="evenodd" clip-rule="evenodd"
/> />
</svg> </svg>
<span class="font-medium">{$i18n.t('Terminal')}</span> <span class="font-normal">{$i18n.t('Terminal')}</span>
{#if terminalExpanded} {#if terminalExpanded}
<div <div
@@ -15,7 +15,7 @@
</script> </script>
<div class="flex items-center gap-2 px-3 py-1.5 bg-gray-50 dark:bg-gray-800/50 shrink-0"> <div class="flex items-center gap-2 px-3 py-1.5 bg-gray-50 dark:bg-gray-800/50 shrink-0">
<span class="text-xs font-medium text-gray-600 dark:text-gray-400 flex-1 truncate"> <span class="text-xs font-normal text-gray-600 dark:text-gray-400 flex-1 truncate">
{$i18n.t('{{count}} selected', { count })} {$i18n.t('{{count}} selected', { count })}
</span> </span>
@@ -319,7 +319,7 @@
<button <button
class="shrink-0 px-3 py-1 text-xs rounded-md transition-colors class="shrink-0 px-3 py-1 text-xs rounded-md transition-colors
{selectedExcelSheet === sheet {selectedExcelSheet === sheet
? 'bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-gray-200 font-medium' ? 'bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-gray-200 font-normal'
: 'text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800'}" : 'text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800'}"
on:click={() => onSheetChange?.(sheet)} on:click={() => onSheetChange?.(sheet)}
> >
@@ -55,7 +55,7 @@
<div class="px-2 py-1"> <div class="px-2 py-1">
<button <button
class="flex items-center gap-1 w-full text-xs font-medium text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition" class="flex items-center gap-1 w-full text-xs font-normal text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition"
on:click={() => (expanded = !expanded)} on:click={() => (expanded = !expanded)}
> >
<svg <svg
@@ -139,7 +139,7 @@
<button <button
class="shrink-0 px-2 py-1 text-xs rounded-lg transition class="shrink-0 px-2 py-1 text-xs rounded-lg transition
{table === selectedTable && !queryMode {table === selectedTable && !queryMode
? 'bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-200 font-medium' ? 'bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-200 font-normal'
: 'text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800'}" : 'text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800'}"
on:click={() => selectTable(table)} on:click={() => selectTable(table)}
> >
@@ -150,7 +150,7 @@
<button <button
class="shrink-0 px-2 py-1 text-xs rounded-lg transition font-mono class="shrink-0 px-2 py-1 text-xs rounded-lg transition font-mono
{queryMode {queryMode
? 'bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-200 font-medium' ? 'bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-200 font-normal'
: 'text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800'}" : 'text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800'}"
on:click={() => { on:click={() => {
queryMode = !queryMode; queryMode = !queryMode;
@@ -187,7 +187,7 @@
<span class="text-[0.6rem] text-gray-400 dark:text-gray-600 select-none">⌘+Enter</span> <span class="text-[0.6rem] text-gray-400 dark:text-gray-600 select-none">⌘+Enter</span>
{/if} {/if}
<button <button
class="shrink-0 px-2.5 py-0.5 text-[0.65rem] font-medium rounded hover:bg-gray-200 dark:hover:bg-gray-800 transition text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300" class="shrink-0 px-2.5 py-0.5 text-[0.65rem] font-normal rounded hover:bg-gray-200 dark:hover:bg-gray-800 transition text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300"
on:click={runQuery} on:click={runQuery}
> >
{$i18n.t('Run')} {$i18n.t('Run')}
+1 -1
View File
@@ -1233,7 +1233,7 @@
/> />
{#if loaded} {#if loaded}
<div class="w-full font-primary"> <div class="w-full ">
<div class=" mx-auto inset-x-0 bg-transparent flex justify-center"> <div class=" mx-auto inset-x-0 bg-transparent flex justify-center">
<div <div
class="flex flex-col px-3 {($settings?.widescreenMode ?? null) class="flex flex-col px-3 {($settings?.widescreenMode ?? null)
@@ -37,7 +37,7 @@
<Modal bind:show size="sm"> <Modal bind:show size="sm">
<div class="flex flex-col h-full"> <div class="flex flex-col h-full">
<div class="flex justify-between items-center dark:text-gray-100 px-5 pt-4 pb-1.5"> <div class="flex justify-between items-center dark:text-gray-100 px-5 pt-4 pb-1.5">
<h1 class="text-lg font-medium self-center font-primary"> <h1 class="text-lg font-normal self-center ">
{$i18n.t('Attach Webpage')} {$i18n.t('Attach Webpage')}
</h1> </h1>
<button <button
@@ -79,7 +79,7 @@
<div class="flex justify-end gap-2 pt-3 bg-gray-50 dark:bg-gray-900/50"> <div class="flex justify-end gap-2 pt-3 bg-gray-50 dark:bg-gray-900/50">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-800 text-white dark:bg-white dark:text-black dark:hover:bg-gray-200 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-800 text-white dark:bg-white dark:text-black dark:hover:bg-gray-200 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Add')} {$i18n.t('Add')}
@@ -959,7 +959,7 @@
} }
}} }}
> >
<div class="line-clamp-1 text-sm font-medium"> <div class="line-clamp-1 text-sm font-normal">
{#if loading} {#if loading}
{$i18n.t('Thinking...')} {$i18n.t('Thinking...')}
{:else if muted} {:else if muted}
@@ -79,7 +79,7 @@
on:focus={() => {}} on:focus={() => {}}
data-selected={promptIdx === selectedPromptIdx} data-selected={promptIdx === selectedPromptIdx}
> >
<span class=" font-medium text-black dark:text-gray-100"> <span class=" font-normal text-black dark:text-gray-100">
{promptItem.command} {promptItem.command}
</span> </span>
@@ -64,7 +64,7 @@
const description = escapeTooltipText(skill.description); const description = escapeTooltipText(skill.description);
return `<div class="max-w-80 whitespace-normal text-left leading-snug"> return `<div class="max-w-80 whitespace-normal text-left leading-snug">
<span class="break-words font-medium">${name}</span>${description ? `: <span class="break-words opacity-80">${description}</span>` : ''} <span class="break-words font-normal">${name}</span>${description ? `: <span class="break-words opacity-80">${description}</span>` : ''}
</div>`; </div>`;
}; };
</script> </script>
@@ -67,7 +67,7 @@
<Modal bind:show size="md"> <Modal bind:show size="md">
<div> <div>
<div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2"> <div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2">
<div class=" text-lg font-medium self-center">{$i18n.t('Input Variables')}</div> <div class=" text-lg font-normal self-center">{$i18n.t('Input Variables')}</div>
<button <button
class="self-center" class="self-center"
on:click={() => { on:click={() => {
@@ -94,7 +94,7 @@
<div class=" py-0.5 w-full justify-between"> <div class=" py-0.5 w-full justify-between">
<div class="flex w-full justify-between mb-1.5"> <div class="flex w-full justify-between mb-1.5">
<div class=" self-center text-xs font-medium"> <div class=" self-center text-xs font-normal">
{variable} {variable}
{#if variables[variable]?.required ?? false} {#if variables[variable]?.required ?? false}
@@ -350,9 +350,9 @@
{/if} {/if}
</div> </div>
<div class="flex justify-end pt-3 text-sm font-medium"> <div class="flex justify-end pt-3 text-sm font-normal">
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-white hover:bg-gray-100 text-black dark:bg-black dark:text-white dark:hover:bg-gray-900 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-white hover:bg-gray-100 text-black dark:bg-black dark:text-white dark:hover:bg-gray-900 transition rounded-full"
type="button" type="button"
on:click={() => { on:click={() => {
show = false; show = false;
@@ -362,7 +362,7 @@
</button> </button>
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
type="submit" type="submit"
> >
{$i18n.t('Save')} {$i18n.t('Save')}
@@ -507,7 +507,7 @@
{loading ? ' text-gray-500 dark:text-gray-400 ' : ' text-indigo-400 '} {loading ? ' text-gray-500 dark:text-gray-400 ' : ' text-indigo-400 '}
font-medium flex-1 mx-auto text-center" font-normal flex-1 mx-auto text-center"
> >
{formatSeconds(durationSeconds)} {formatSeconds(durationSeconds)}
</div> </div>
@@ -162,7 +162,7 @@
{@const urlCitations = citations.filter((c) => c?.source?.name?.startsWith('http'))} {@const urlCitations = citations.filter((c) => c?.source?.name?.startsWith('http'))}
<div class=" py-1 -mx-0.5 w-full flex gap-1 items-center flex-wrap"> <div class=" py-1 -mx-0.5 w-full flex gap-1 items-center flex-wrap">
<button <button
class="text-xs font-medium text-gray-600 dark:text-gray-300 px-3.5 h-8 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition flex items-center gap-1 border border-gray-50 dark:border-gray-850/30" class="text-xs font-normal text-gray-600 dark:text-gray-300 px-3.5 h-8 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition flex items-center gap-1 border border-gray-50 dark:border-gray-850/30"
aria-label={citations.length === 1 aria-label={citations.length === 1
? $i18n.t('Toggle 1 source') ? $i18n.t('Toggle 1 source')
: $i18n.t('Toggle {{COUNT}} sources', { COUNT: citations.length })} : $i18n.t('Toggle {{COUNT}} sources', { COUNT: citations.length })}
@@ -185,7 +185,7 @@
{/each} {/each}
{#if citations.length > 3} {#if citations.length > 3}
<div <div
class="size-4 rounded-full shrink-0 border border-white dark:border-gray-850 bg-gray-100 dark:bg-gray-800 flex items-center justify-center text-[8px] font-semibold text-gray-500 dark:text-gray-400 whitespace-nowrap tracking-tighter" class="size-4 rounded-full shrink-0 border border-white dark:border-gray-850 bg-gray-100 dark:bg-gray-800 flex items-center justify-center text-[8px] font-normal text-gray-500 dark:text-gray-400 whitespace-nowrap tracking-tighter"
aria-hidden="true" aria-hidden="true"
> >
+{citations.length - Math.min(urlCitations.length, 3)} +{citations.length - Math.min(urlCitations.length, 3)}
@@ -221,7 +221,7 @@
selectedCitation = citation; selectedCitation = citation;
}} }}
> >
<div class=" font-medium bg-gray-50 dark:bg-gray-850 rounded-md px-1"> <div class=" font-normal bg-gray-50 dark:bg-gray-850 rounded-md px-1">
{idx + 1} {idx + 1}
</div> </div>
<div <div
@@ -98,7 +98,7 @@
<Modal size="lg" bind:show> <Modal size="lg" bind:show>
<div> <div>
<div class=" flex justify-between dark:text-gray-300 px-4.5 pt-3 pb-2"> <div class=" flex justify-between dark:text-gray-300 px-4.5 pt-3 pb-2">
<div class=" text-lg font-medium self-center flex items-center"> <div class=" text-lg font-normal self-center flex items-center">
{#if citation?.source?.name} {#if citation?.source?.name}
{@const document = mergedDocuments?.[0]} {@const document = mergedDocuments?.[0]}
{#if document?.metadata?.file_id || document.source?.url?.includes('http')} {#if document?.metadata?.file_id || document.source?.url?.includes('http')}
@@ -148,7 +148,7 @@
<div class="flex flex-col w-full gap-2"> <div class="flex flex-col w-full gap-2">
{#if document.metadata?.parameters} {#if document.metadata?.parameters}
<div> <div>
<div class="text-sm font-medium dark:text-gray-300 mb-1"> <div class="text-sm font-normal dark:text-gray-300 mb-1">
{$i18n.t('Parameters')} {$i18n.t('Parameters')}
</div> </div>
@@ -159,7 +159,7 @@
<div> <div>
<div <div
class=" text-sm font-medium dark:text-gray-300 flex items-center gap-2 w-fit mb-1" class=" text-sm font-normal dark:text-gray-300 flex items-center gap-2 w-fit mb-1"
> >
{#if document.source?.url?.includes('http')} {#if document.source?.url?.includes('http')}
{@const snippetUrl = getTextFragmentUrl(document)} {@const snippetUrl = getTextFragmentUrl(document)}
@@ -190,7 +190,7 @@
{#if typeof percentage === 'number'} {#if typeof percentage === 'number'}
<span <span
class={`px-1 rounded-sm font-medium ${getRelevanceColor(percentage)}`} class={`px-1 rounded-sm font-normal ${getRelevanceColor(percentage)}`}
> >
{percentage.toFixed(2)}% {percentage.toFixed(2)}%
</span> </span>
@@ -40,7 +40,7 @@
<Modal size="lg" bind:show> <Modal size="lg" bind:show>
<div> <div>
<div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2"> <div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2">
<div class=" text-lg font-medium self-center capitalize"> <div class=" text-lg font-normal self-center capitalize">
{$i18n.t('Citations')} {$i18n.t('Citations')}
</div> </div>
<button <button
@@ -66,7 +66,7 @@
selectedCitation = citation; selectedCitation = citation;
}} }}
> >
<div class=" font-medium"> <div class=" font-normal">
{idx + 1}. {idx + 1}.
</div> </div>
<div <div
@@ -14,7 +14,7 @@
<Modal size="lg" bind:show> <Modal size="lg" bind:show>
<div> <div>
<div class="flex justify-between dark:text-gray-300 px-5 pt-4 pb-2"> <div class="flex justify-between dark:text-gray-300 px-5 pt-4 pb-2">
<div class="text-lg font-medium self-center flex flex-col gap-0.5 capitalize"> <div class="text-lg font-normal self-center flex flex-col gap-0.5 capitalize">
{#if codeExecution?.result} {#if codeExecution?.result}
<div> <div>
{#if codeExecution.result?.error} {#if codeExecution.result?.error}
@@ -91,7 +91,7 @@
{#if codeExecution?.result?.files && codeExecution?.result?.files.length > 0} {#if codeExecution?.result?.files && codeExecution?.result?.files.length > 0}
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<hr class="border-gray-100/30 dark:border-gray-850/30 my-2" /> <hr class="border-gray-100/30 dark:border-gray-850/30 my-2" />
<div class=" text-sm font-medium dark:text-gray-300"> <div class=" text-sm font-normal dark:text-gray-300">
{$i18n.t('Files')} {$i18n.t('Files')}
</div> </div>
<ul class="mt-1 list-disc pl-4 text-xs"> <ul class="mt-1 list-disc pl-4 text-xs">
@@ -28,7 +28,7 @@
{#if codeExecutions.length > 0} {#if codeExecutions.length > 0}
<div class="mt-1 mb-2 w-full flex gap-1 items-center flex-wrap"> <div class="mt-1 mb-2 w-full flex gap-1 items-center flex-wrap">
{#each codeExecutions as execution (execution.id)} {#each codeExecutions as execution (execution.id)}
<div class="flex gap-1 text-xs font-semibold"> <div class="flex gap-1 text-xs font-normal">
<button <button
class="flex dark:text-gray-300 py-1 px-1 bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 transition rounded-xl max-w-96" class="flex dark:text-gray-300 py-1 px-1 bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 transition rounded-xl max-w-96"
on:click={() => { on:click={() => {
@@ -102,7 +102,7 @@ Renders the following Markdown as alerts:
<div class={`border-l-4 pl-2.5 ${alertStyles[alert.type].border} my-0.5`}> <div class={`border-l-4 pl-2.5 ${alertStyles[alert.type].border} my-0.5`}>
<div class="{alertStyles[alert.type].text} items-center flex gap-1 py-1.5"> <div class="{alertStyles[alert.type].text} items-center flex gap-1 py-1.5">
<svelte:component this={alertStyles[alert.type].icon} className="inline-block size-4" /> <svelte:component this={alertStyles[alert.type].icon} className="inline-block size-4" />
<span class=" font-medium">{alert.type}</span> <span class=" font-normal">{alert.type}</span>
</div> </div>
<div class="pb-2"> <div class="pb-2">
<MarkdownTokens id={`${id}-${tokenIdx}`} tokens={alert.tokens} {onTaskClick} {onSourceClick} /> <MarkdownTokens id={`${id}-${tokenIdx}`} tokens={alert.tokens} {onTaskClick} {onSourceClick} />
@@ -36,7 +36,7 @@
<div class="relative group my-2 rounded-2xl border border-gray-100 dark:border-gray-800 px-4 py-3"> <div class="relative group my-2 rounded-2xl border border-gray-100 dark:border-gray-800 px-4 py-3">
<!-- Header row: type badge + copy button --> <!-- Header row: type badge + copy button -->
<div class="flex items-center justify-between mb-2"> <div class="flex items-center justify-between mb-2">
<span class="text-xs font-medium text-gray-500 dark:text-gray-400"> <span class="text-xs font-normal text-gray-500 dark:text-gray-400">
{label} {label}
</span> </span>
@@ -55,7 +55,7 @@
> >
<div class="flex flex-col justify-center w-full min-w-0"> <div class="flex flex-col justify-center w-full min-w-0">
<div class="dark:text-gray-100 text-sm flex justify-between items-center gap-2"> <div class="dark:text-gray-100 text-sm flex justify-between items-center gap-2">
<div class="font-medium line-clamp-1 flex-1 min-w-0"> <div class="font-normal line-clamp-1 flex-1 min-w-0">
{#if loading} {#if loading}
<span class="text-gray-400">...</span> <span class="text-gray-400">...</span>
{:else} {:else}
@@ -251,7 +251,7 @@
<div class="w-full"> <div class="w-full">
<div class=" flex w-full mb-4.5 border-b border-gray-200 dark:border-gray-850"> <div class=" flex w-full mb-4.5 border-b border-gray-200 dark:border-gray-850">
<div <div
class="flex gap-2 scrollbar-none overflow-x-auto w-fit text-center font-medium bg-transparent pt-1 text-sm" class="flex gap-2 scrollbar-none overflow-x-auto w-fit text-center font-normal bg-transparent pt-1 text-sm"
on:wheel|preventDefault={(e) => { on:wheel|preventDefault={(e) => {
e.currentTarget.scrollLeft += e.deltaY; e.currentTarget.scrollLeft += e.deltaY;
}} }}
+1 -1
View File
@@ -1,3 +1,3 @@
<div class=" self-center font-semibold line-clamp-1 flex gap-1 items-center"> <div class=" self-center font-normal line-clamp-1 flex gap-1 items-center">
<slot /> <slot />
</div> </div>
@@ -259,7 +259,7 @@
<!-- Role label --> <!-- Role label -->
<div class="flex items-start pt-1.5"> <div class="flex items-start pt-1.5">
<div <div
class="text-[11px] font-semibold uppercase tracking-wide min-w-[4.5rem] text-gray-400 dark:text-gray-500" class="text-[11px] font-normal uppercase tracking-wide min-w-[4.5rem] text-gray-400 dark:text-gray-500"
> >
{getItemLabel(di)} {getItemLabel(di)}
</div> </div>
@@ -104,7 +104,7 @@
</script> </script>
{#if message?.arena} {#if message?.arena}
<div class="text-xs font-medium pt-1.5 -mb-0.5"> <div class="text-xs font-normal pt-1.5 -mb-0.5">
{$i18n.t('This response was generated by "{{model}}"', { {$i18n.t('This response was generated by "{{model}}"', {
model: selectedModel ? (selectedModel?.name ?? selectedModel.id) : message.selectedModelId model: selectedModel ? (selectedModel?.name ?? selectedModel.id) : message.selectedModelId
})} })}
@@ -116,7 +116,7 @@
id="message-feedback-{message.id}" id="message-feedback-{message.id}"
> >
<div class="flex justify-between items-center"> <div class="flex justify-between items-center">
<div class="text-sm font-medium">{$i18n.t('How would you rate this response?')}</div> <div class="text-sm font-normal">{$i18n.t('How would you rate this response?')}</div>
<!-- <div class=" text-sm">{$i18n.t('Tell us more:')}</div> --> <!-- <div class=" text-sm">{$i18n.t('Tell us more:')}</div> -->
@@ -165,7 +165,7 @@
<div> <div>
{#if reasons.length > 0} {#if reasons.length > 0}
<div class="text-sm mt-1.5 font-medium">{$i18n.t('Why?')}</div> <div class="text-sm mt-1.5 font-normal">{$i18n.t('Why?')}</div>
<div class="flex flex-wrap gap-1.5 text-sm mt-1.5"> <div class="flex flex-wrap gap-1.5 text-sm mt-1.5">
{#each reasons as reason} {#each reasons as reason}
@@ -244,7 +244,7 @@
</div> </div>
<button <button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full" class="px-3.5 py-1.5 text-sm font-normal bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full"
on:click={() => { on:click={() => {
saveHandler(); saveHandler();
}} }}
@@ -261,7 +261,7 @@
class="flex cursor-pointer items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-850 w-full px-3 py-2 rounded-xl transition" class="flex cursor-pointer items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-850 w-full px-3 py-2 rounded-xl transition"
> >
<div class="self-center"> <div class="self-center">
<div class="text-sm font-medium"> <div class="text-sm font-normal">
{$i18n.t('Leave a public review for {{modelName}}', { modelName: message.model })} {$i18n.t('Leave a public review for {{modelName}}', { modelName: message.model })}
</div> </div>
<div class="text-xs text-gray-500"> <div class="text-xs text-gray-500">
@@ -761,7 +761,7 @@
/> />
{/if} {/if}
<div class=" mt-2 mb-1 flex justify-between text-sm font-medium"> <div class=" mt-2 mb-1 flex justify-between text-sm font-normal">
<div> <div>
<button <button
id="save-new-message-button" id="save-new-message-button"
@@ -921,7 +921,7 @@
{#if messageIndexEdit} {#if messageIndexEdit}
<div <div
class="text-sm flex justify-center font-semibold self-center dark:text-gray-100 min-w-fit" class="text-sm flex justify-center font-normal self-center dark:text-gray-100 min-w-fit"
> >
<input <input
id="message-index-input-{message.id}" id="message-index-input-{message.id}"
@@ -942,13 +942,13 @@
messageIndexEdit = false; messageIndexEdit = false;
} }
}} }}
class="bg-transparent font-semibold self-center dark:text-gray-100 min-w-fit outline-hidden" class="bg-transparent font-normal self-center dark:text-gray-100 min-w-fit outline-hidden"
/>/{siblings.length} />/{siblings.length}
</div> </div>
{:else} {:else}
<!-- svelte-ignore a11y-no-static-element-interactions --> <!-- svelte-ignore a11y-no-static-element-interactions -->
<div <div
class="text-sm tracking-widest font-semibold self-center dark:text-gray-100 min-w-fit" class="text-sm tracking-widest font-normal self-center dark:text-gray-100 min-w-fit"
on:dblclick={async () => { on:dblclick={async () => {
messageIndexEdit = true; messageIndexEdit = true;
@@ -9,7 +9,7 @@
</script> </script>
<div class="mt-4"> <div class="mt-4">
<div class="text-sm font-medium"> <div class="text-sm font-normal">
{$i18n.t('Follow up')} {$i18n.t('Follow up')}
</div> </div>
@@ -38,7 +38,7 @@
on:click={() => (expanded = !expanded)} on:click={() => (expanded = !expanded)}
> >
<span class="w-1.5 h-1.5 rounded-full bg-gray-300 dark:bg-gray-600 shrink-0"></span> <span class="w-1.5 h-1.5 rounded-full bg-gray-300 dark:bg-gray-600 shrink-0"></span>
<span class="text-[0.75rem] font-medium shrink-0"> <span class="text-[0.75rem] font-normal shrink-0">
{$i18n.t('Background sub-agent finished')} {$i18n.t('Background sub-agent finished')}
</span> </span>
{#if summary} {#if summary}
@@ -159,7 +159,7 @@
<Name> <Name>
{#if message.user} {#if message.user}
{$i18n.t('You')} {$i18n.t('You')}
<span class=" text-gray-500 text-sm font-medium">{message?.user ?? ''}</span> <span class=" text-gray-500 text-sm font-normal">{message?.user ?? ''}</span>
{:else if $settings.showUsername || $_user?.name !== user?.name} {:else if $settings.showUsername || $_user?.name !== user?.name}
{user?.name ?? $i18n.t('You')} {user?.name ?? $i18n.t('You')}
{:else} {:else}
@@ -299,7 +299,7 @@
/> />
</div> </div>
<div class=" mt-2 mb-1 flex justify-between text-sm font-medium"> <div class=" mt-2 mb-1 flex justify-between text-sm font-normal">
<div> <div>
<button <button
id="save-edit-message-button" id="save-edit-message-button"
@@ -414,7 +414,7 @@
{#if messageIndexEdit} {#if messageIndexEdit}
<div <div
class="text-sm flex justify-center font-semibold self-center dark:text-gray-100 min-w-fit" class="text-sm flex justify-center font-normal self-center dark:text-gray-100 min-w-fit"
> >
<input <input
id="message-index-input-{message.id}" id="message-index-input-{message.id}"
@@ -435,13 +435,13 @@
messageIndexEdit = false; messageIndexEdit = false;
} }
}} }}
class="bg-transparent font-semibold self-center dark:text-gray-100 min-w-fit outline-hidden" class="bg-transparent font-normal self-center dark:text-gray-100 min-w-fit outline-hidden"
/>/{siblings.length} />/{siblings.length}
</div> </div>
{:else} {:else}
<!-- svelte-ignore a11y-no-static-element-interactions --> <!-- svelte-ignore a11y-no-static-element-interactions -->
<div <div
class="text-sm tracking-widest font-semibold self-center dark:text-gray-100 min-w-fit" class="text-sm tracking-widest font-normal self-center dark:text-gray-100 min-w-fit"
on:dblclick={async () => { on:dblclick={async () => {
messageIndexEdit = true; messageIndexEdit = true;
@@ -598,7 +598,7 @@
{#if messageIndexEdit} {#if messageIndexEdit}
<div <div
class="text-sm flex justify-center font-semibold self-center dark:text-gray-100 min-w-fit" class="text-sm flex justify-center font-normal self-center dark:text-gray-100 min-w-fit"
> >
<input <input
id="message-index-input-{message.id}" id="message-index-input-{message.id}"
@@ -619,13 +619,13 @@
messageIndexEdit = false; messageIndexEdit = false;
} }
}} }}
class="bg-transparent font-semibold self-center dark:text-gray-100 min-w-fit outline-hidden" class="bg-transparent font-normal self-center dark:text-gray-100 min-w-fit outline-hidden"
/>/{siblings.length} />/{siblings.length}
</div> </div>
{:else} {:else}
<!-- svelte-ignore a11y-no-static-element-interactions --> <!-- svelte-ignore a11y-no-static-element-interactions -->
<div <div
class="text-sm tracking-widest font-semibold self-center dark:text-gray-100 min-w-fit" class="text-sm tracking-widest font-normal self-center dark:text-gray-100 min-w-fit"
on:dblclick={async () => { on:dblclick={async () => {
messageIndexEdit = true; messageIndexEdit = true;
@@ -70,7 +70,7 @@
{#each item.model?.tags.sort((a, b) => a.name.localeCompare(b.name)) as tag} {#each item.model?.tags.sort((a, b) => a.name.localeCompare(b.name)) as tag}
<Tooltip content={tag.name} className="flex-shrink-0"> <Tooltip content={tag.name} className="flex-shrink-0">
<div <div
class=" text-xs font-semibold px-1 rounded-sm uppercase bg-gray-500/20 text-gray-700 dark:text-gray-200" class=" text-xs font-normal px-1 rounded-sm uppercase bg-gray-500/20 text-gray-700 dark:text-gray-200"
> >
{tag.name} {tag.name}
</div> </div>
@@ -157,7 +157,7 @@
<div slot="tooltip" id="tags-{item.model.id}"> <div slot="tooltip" id="tags-{item.model.id}">
{#each item.model?.tags.sort((a, b) => a.name.localeCompare(b.name)) as tag} {#each item.model?.tags.sort((a, b) => a.name.localeCompare(b.name)) as tag}
<Tooltip content={tag.name} className="flex-shrink-0"> <Tooltip content={tag.name} className="flex-shrink-0">
<div class=" text-xs font-medium rounded-sm uppercase text-white"> <div class=" text-xs font-normal rounded-sm uppercase text-white">
{tag.name} {tag.name}
</div> </div>
</Tooltip> </Tooltip>
Loaded 100 of 208 files, more files were not shown because too many files have changed in this diff. Show more