mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-25 23:00:53 -05:00
refac
This commit is contained in:
1 parent
61301c1748
commit
a78a66e7de
315 files changed
+1164
-974
No files matched your search
+28
-30
@@ -169,16 +169,16 @@ li p {
|
||||
|
||||
:where(html:not(.native-scrollbars), html:not(.native-scrollbars) *)::-webkit-scrollbar-thumb {
|
||||
--tw-border-opacity: 1;
|
||||
background-color: rgba(215, 215, 215, 0.6);
|
||||
border-color: rgba(255, 255, 255, var(--tw-border-opacity));
|
||||
background-color: color-mix(in oklab, var(--color-base-300) 60%, transparent);
|
||||
border-color: var(--color-base-0);
|
||||
border-radius: 9999px;
|
||||
border-width: 1px;
|
||||
}
|
||||
|
||||
/* Dark theme scrollbar styles */
|
||||
:where(html:not(.native-scrollbars)).dark ::-webkit-scrollbar-thumb {
|
||||
background-color: rgba(67, 67, 67, 0.6); /* Darker color for dark theme */
|
||||
border-color: rgba(0, 0, 0, var(--tw-border-opacity));
|
||||
background-color: color-mix(in oklab, var(--color-base-700) 60%, transparent);
|
||||
border-color: var(--color-base-1000);
|
||||
}
|
||||
|
||||
:where(html:not(.native-scrollbars), html:not(.native-scrollbars) *)::-webkit-scrollbar {
|
||||
@@ -215,7 +215,7 @@ select {
|
||||
}
|
||||
|
||||
.dark select option {
|
||||
@apply bg-base-850 text-white;
|
||||
@apply bg-base-850 text-base-0;
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
@@ -231,11 +231,11 @@ select {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
clip-path: inset(0);
|
||||
-webkit-text-fill-color: #b4b4b4;
|
||||
color: #b4b4b4;
|
||||
-webkit-text-fill-color: var(--color-base-400);
|
||||
color: var(--color-base-400);
|
||||
}
|
||||
|
||||
/* Brightens #b4b4b4 text to #e8e8e8. */
|
||||
/* Brightens the base-400 text towards base-100. */
|
||||
.shimmer::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
@@ -381,11 +381,11 @@ input[type='number'] {
|
||||
}
|
||||
|
||||
.cm-gutters {
|
||||
@apply !bg-white dark:!bg-black !border-none;
|
||||
@apply !bg-base-0 dark:!bg-base-1000 !border-none;
|
||||
}
|
||||
|
||||
.cm-editor {
|
||||
@apply bg-white dark:bg-black;
|
||||
@apply bg-base-0 dark:bg-base-1000;
|
||||
}
|
||||
|
||||
.tippy-box[data-theme~='dark'] {
|
||||
@@ -416,7 +416,7 @@ input[type='number'] {
|
||||
}
|
||||
|
||||
.bg-base-950-90 {
|
||||
background-color: rgba(var(--color-base-950, #0d0d0d), 0.9);
|
||||
background-color: color-mix(in oklab, var(--color-base-950) 90%, transparent);
|
||||
}
|
||||
|
||||
.ProseMirror {
|
||||
@@ -451,15 +451,13 @@ html.high-contrast :is(input, textarea, [contenteditable='true'], .ProseMirror):
|
||||
.ProseMirror p.is-editor-empty:first-child::before {
|
||||
content: attr(data-placeholder);
|
||||
float: left;
|
||||
/* Below color is from tailwind, and has the proper contrast
|
||||
text-base-600 from: https://tailwindcss.com/docs/color */
|
||||
color: #676767;
|
||||
color: var(--color-base-600);
|
||||
pointer-events: none;
|
||||
|
||||
@apply line-clamp-1 absolute;
|
||||
}
|
||||
|
||||
/* #676767 is 3.17:1 on the dark canvas; the light value already passes. */
|
||||
/* base-600 is about 3.2:1 on the dark canvas; the light value already passes. */
|
||||
html.high-contrast.dark .ProseMirror p.is-editor-empty:first-child::before {
|
||||
color: var(--color-base-500);
|
||||
}
|
||||
@@ -554,7 +552,7 @@ html.high-contrast.dark .ProseMirror p.is-editor-empty:first-child::before {
|
||||
|
||||
.tiptap .suggestion.is-empty::after {
|
||||
content: '\00A0';
|
||||
border-bottom: 1px dotted rgba(31, 41, 55, 0.12);
|
||||
border-bottom: 1px dotted color-mix(in oklab, var(--color-base-800) 12%, transparent);
|
||||
}
|
||||
|
||||
.input-prose .tiptap ul[data-type='taskList'] {
|
||||
@@ -625,13 +623,13 @@ html.high-contrast.dark .ProseMirror p.is-editor-empty:first-child::before {
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.ProseMirror p.is-editor-empty:first-child::before {
|
||||
color: #757575;
|
||||
color: var(--color-base-600);
|
||||
}
|
||||
}
|
||||
|
||||
.ProseMirror p.is-editor-empty.ai-autocompletion:first-child::before {
|
||||
content: attr(data-suggestion);
|
||||
color: #a0a0a0;
|
||||
color: var(--color-base-500);
|
||||
}
|
||||
|
||||
.ProseMirror p.is-editor-empty.ai-autocompletion:first-child::after {
|
||||
@@ -639,7 +637,7 @@ html.high-contrast.dark .ProseMirror p.is-editor-empty:first-child::before {
|
||||
}
|
||||
|
||||
.ai-autocompletion::after {
|
||||
color: #a0a0a0;
|
||||
color: var(--color-base-500);
|
||||
|
||||
content: attr(data-suggestion);
|
||||
pointer-events: none;
|
||||
@@ -696,7 +694,7 @@ html.high-contrast.dark .ProseMirror p.is-editor-empty:first-child::before {
|
||||
}
|
||||
|
||||
.tiptap td {
|
||||
@apply text-base-900 dark:text-white w-max;
|
||||
@apply text-base-900 dark:text-base-0 w-max;
|
||||
}
|
||||
|
||||
.tiptap tr {
|
||||
@@ -852,13 +850,13 @@ html.high-contrast.dark .ProseMirror p.is-editor-empty:first-child::before {
|
||||
}
|
||||
|
||||
body {
|
||||
background: #fff;
|
||||
color: #000;
|
||||
background: var(--color-base-0);
|
||||
color: var(--color-base-1000);
|
||||
}
|
||||
|
||||
.dark body {
|
||||
background: #171717;
|
||||
color: #eee;
|
||||
background: var(--color-base-900);
|
||||
color: var(--color-base-100);
|
||||
}
|
||||
|
||||
/* Position the handle relative to each LI */
|
||||
@@ -903,7 +901,7 @@ body {
|
||||
opacity: 1;
|
||||
}
|
||||
.pm-list-drag-handle:hover {
|
||||
background: rgba(0, 0, 0, 0.06);
|
||||
background: color-mix(in oklab, var(--color-base-1000) 6%, transparent);
|
||||
}
|
||||
|
||||
:root {
|
||||
@@ -1004,7 +1002,7 @@ body {
|
||||
.dark\:hover\:text-base-300:hover,
|
||||
.dark\:hover\:text-base-400:hover
|
||||
) {
|
||||
color: #fff;
|
||||
color: var(--color-base-0);
|
||||
}
|
||||
|
||||
/* Elements that hover to a lighter grey than the new resting colour. */
|
||||
@@ -1091,7 +1089,7 @@ html.high-contrast.dark
|
||||
.dark\:group-hover\:text-base-300,
|
||||
.dark\:group-hover\:text-base-400
|
||||
) {
|
||||
color: #fff;
|
||||
color: var(--color-base-0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1115,7 +1113,7 @@ html.high-contrast:not(.dark) .shimmer::after {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.6;
|
||||
color: var(--color-base-800);
|
||||
background: #fff;
|
||||
background: var(--color-base-0);
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
.dark .office-preview {
|
||||
@@ -1193,10 +1191,10 @@ html.high-contrast:not(.dark) .shimmer::after {
|
||||
}
|
||||
/* Row hover and selection */
|
||||
.office-preview table tbody tr:nth-child(even) td:not(.excel-row-num) {
|
||||
background: rgba(0, 0, 0, 0.015);
|
||||
background: color-mix(in oklab, var(--color-base-1000) 1.5%, transparent);
|
||||
}
|
||||
.dark .office-preview table tbody tr:nth-child(even) td:not(.excel-row-num) {
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
background: color-mix(in oklab, var(--color-base-0) 2%, transparent);
|
||||
}
|
||||
.office-preview table tbody tr:hover td:not(.excel-row-num) {
|
||||
background: rgba(59, 130, 246, 0.06);
|
||||
|
||||
@@ -78,6 +78,26 @@
|
||||
metaThemeColorTag.setAttribute('content', '#171717');
|
||||
}
|
||||
|
||||
// User theme colours; keep in sync with applyThemeColors in $lib/utils/theme.
|
||||
const applyThemeColors = () => {
|
||||
const root = document.documentElement;
|
||||
let colors;
|
||||
try {
|
||||
colors = JSON.parse(localStorage.themeColors ?? '{}')[
|
||||
root.classList.contains('dark') ? 'dark' : 'light'
|
||||
];
|
||||
} catch {}
|
||||
if (colors && !root.classList.contains('her')) {
|
||||
root.style.setProperty('--app-bg', colors.bg);
|
||||
root.style.setProperty('--app-fg', colors.fg);
|
||||
metaThemeColorTag.setAttribute('content', colors.bg);
|
||||
} else {
|
||||
root.style.removeProperty('--app-bg');
|
||||
root.style.removeProperty('--app-fg');
|
||||
}
|
||||
};
|
||||
applyThemeColors();
|
||||
|
||||
// LICENSE covers these Open WebUI splash logo assets.
|
||||
// Do not alter, remove, obscure, or replace them except as LICENSE permits:
|
||||
// https://docs.openwebui.com/license.
|
||||
@@ -102,6 +122,7 @@
|
||||
document.documentElement.classList.remove('dark');
|
||||
metaThemeColorTag.setAttribute('content', '#ffffff');
|
||||
}
|
||||
applyThemeColors();
|
||||
}
|
||||
});
|
||||
const isDarkMode = document.documentElement.classList.contains('dark');
|
||||
|
||||
@@ -830,7 +830,7 @@
|
||||
</div>
|
||||
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
type="submit"
|
||||
disabled={loading}
|
||||
>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</script>
|
||||
|
||||
<div class="px-3">
|
||||
<div class="text-center dark:text-white text-2xl font-normal z-50" role="heading" aria-level="2">
|
||||
<div class="text-center dark:text-base-0 text-2xl font-normal z-50" role="heading" aria-level="2">
|
||||
{#if title}
|
||||
{title}
|
||||
{:else}
|
||||
|
||||
@@ -328,7 +328,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
<button
|
||||
class="{button} bg-base-900 text-white hover:bg-black dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="{button} bg-base-900 text-base-0 hover:bg-base-1000 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
disabled={busy || !url}
|
||||
>
|
||||
{$i18n.t('Save')}
|
||||
|
||||
@@ -1079,7 +1079,7 @@
|
||||
</div>
|
||||
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
type="submit"
|
||||
disabled={loading}
|
||||
>
|
||||
|
||||
@@ -285,14 +285,14 @@
|
||||
|
||||
<div class="flex items-center justify-end gap-2 shrink-0">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal text-base-600 transition hover:bg-base-100 hover:text-base-900 disabled:opacity-60 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal text-base-600 transition hover:bg-base-100 hover:text-base-900 disabled:opacity-60 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-base-0"
|
||||
type="button"
|
||||
on:click={() => (show = false)}
|
||||
>
|
||||
{$i18n.t('Cancel')}
|
||||
</button>
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
on:click={submitHandler}
|
||||
type="button"
|
||||
disabled={loading || modelsLoading || !initialized}
|
||||
|
||||
@@ -86,12 +86,12 @@
|
||||
ariaLabel={`${$i18n.t("What's New in")} ${$WEBUI_NAME}`}
|
||||
bind:show
|
||||
size="lg"
|
||||
className="bg-white dark:bg-base-900 rounded-3xl overflow-hidden"
|
||||
className="bg-base-0 dark:bg-base-900 rounded-3xl overflow-hidden"
|
||||
containerClassName="p-3"
|
||||
>
|
||||
<div class="flex max-h-[58vh] flex-col">
|
||||
<div
|
||||
class="flex shrink-0 items-start justify-between gap-4 px-4 pb-2.5 pt-3 dark:text-white text-black"
|
||||
class="flex shrink-0 items-start justify-between gap-4 px-4 pb-2.5 pt-3 dark:text-base-0 text-base-1000"
|
||||
>
|
||||
<div class="min-w-0">
|
||||
<!-- LICENSE covers this Open WebUI release identifier.
|
||||
@@ -125,7 +125,7 @@
|
||||
{#each Object.keys(changelog) as version}
|
||||
<section class="pr-1">
|
||||
<div class="mb-2">
|
||||
<h3 class="m-0 text-sm font-normal text-base-950 dark:text-white">v{version}</h3>
|
||||
<h3 class="m-0 text-sm font-normal text-base-950 dark:text-base-0">v{version}</h3>
|
||||
<div class="mt-0.5 text-[0.6875rem] text-base-400 dark:text-base-500">
|
||||
{formatDate(changelog[version].date)}
|
||||
</div>
|
||||
@@ -178,7 +178,7 @@
|
||||
error = false;
|
||||
init();
|
||||
}}
|
||||
class="text-sm font-normal text-base-700 transition hover:text-black dark:text-base-300 dark:hover:text-white"
|
||||
class="text-sm font-normal text-base-700 transition hover:text-base-1000 dark:text-base-300 dark:hover:text-base-0"
|
||||
>
|
||||
{$i18n.t('Retry')}
|
||||
</button>
|
||||
@@ -195,7 +195,7 @@
|
||||
<div class="flex shrink-0 justify-end px-4 pb-3.5 pt-1.5 text-xs">
|
||||
<button
|
||||
on:click={closeModal}
|
||||
class="font-normal text-base-600 transition hover:text-base-950 dark:text-base-400 dark:hover:text-white"
|
||||
class="font-normal text-base-600 transition hover:text-base-950 dark:text-base-400 dark:hover:text-base-0"
|
||||
>
|
||||
<span class="relative">{$i18n.t("Okay, Let's Go!")}</span>
|
||||
</button>
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
|
||||
<div class="flex justify-end pt-3 text-sm font-normal">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
type="submit"
|
||||
disabled={loading}
|
||||
>
|
||||
|
||||
@@ -66,8 +66,8 @@
|
||||
aria-hidden="true"
|
||||
></video>
|
||||
|
||||
<div class="absolute inset-0 bg-linear-to-t from-black/80 via-black/20 to-transparent"></div>
|
||||
<div class="absolute inset-0 bg-linear-to-r from-black/50 via-black/10 to-transparent"></div>
|
||||
<div class="absolute inset-0 bg-linear-to-t from-base-1000/80 via-base-1000/20 to-transparent"></div>
|
||||
<div class="absolute inset-0 bg-linear-to-r from-base-1000/50 via-base-1000/10 to-transparent"></div>
|
||||
|
||||
<div class="relative z-10 flex h-screen max-h-[100dvh] w-full">
|
||||
<div class="flex w-full flex-col justify-end px-6 pb-8 sm:px-10 sm:pb-10 lg:px-16 lg:pb-14">
|
||||
@@ -85,7 +85,7 @@
|
||||
{$i18n.t('Welcome to your AI home.')}
|
||||
</h1>
|
||||
|
||||
<p class="mt-6 max-w-xl text-sm leading-relaxed font-light text-white/60 lg:text-base">
|
||||
<p class="mt-6 max-w-xl text-sm leading-relaxed font-light text-base-0/60 lg:text-base">
|
||||
{$i18n.t(
|
||||
'Run AI on your own terms. Connect any model, extend with code, and protect what matters without compromise. Your models, your data, your machine, wherever you open it.'
|
||||
)}
|
||||
@@ -94,7 +94,7 @@
|
||||
<div class="mt-8 flex flex-col items-start gap-6 sm:flex-row sm:items-center sm:gap-7">
|
||||
<button
|
||||
aria-label={$i18n.t('Get started')}
|
||||
class="group relative z-20 inline-flex h-10 w-[220px] max-w-full items-center justify-between gap-2 rounded-none bg-white px-4 text-[13px] font-normal text-black transition hover:bg-white/90 focus:ring-2 focus:ring-white/50 focus:outline-hidden"
|
||||
class="group relative z-20 inline-flex h-10 w-[220px] max-w-full items-center justify-between gap-2 rounded-none bg-base-0 px-4 text-[13px] font-normal text-base-1000 transition hover:bg-base-0/90 focus:ring-2 focus:ring-base-0/50 focus:outline-hidden"
|
||||
on:click={() => {
|
||||
getStartedHandler();
|
||||
}}
|
||||
@@ -113,7 +113,7 @@
|
||||
</button>
|
||||
|
||||
<a
|
||||
class="inline-flex items-center text-sm text-white/60 transition hover:text-white"
|
||||
class="inline-flex items-center text-sm text-base-0/60 transition hover:text-white"
|
||||
href="https://docs.openwebui.com/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
|
||||
@@ -201,7 +201,7 @@
|
||||
<div class="flex gap-4">
|
||||
<button
|
||||
class="py-2 text-sm font-normal border-b-2 transition-colors {selectedTab === 'overview'
|
||||
? 'border-black dark:border-white text-base-900 dark:text-white'
|
||||
? 'border-base-1000 dark:border-base-0 text-base-900 dark:text-base-0'
|
||||
: 'border-transparent text-base-500 hover:text-base-700 dark:hover:text-base-300'}"
|
||||
on:click={() => selectTab('overview')}
|
||||
>
|
||||
@@ -210,7 +210,7 @@
|
||||
{#if $config?.features?.enable_admin_chat_access}
|
||||
<button
|
||||
class="py-2 text-sm font-normal border-b-2 transition-colors {selectedTab === 'chats'
|
||||
? 'border-black dark:border-white text-base-900 dark:text-white'
|
||||
? 'border-base-1000 dark:border-base-0 text-base-900 dark:text-base-0'
|
||||
: 'border-transparent text-base-500 hover:text-base-700 dark:hover:text-base-300'}"
|
||||
on:click={() => selectTab('chats')}
|
||||
>
|
||||
@@ -238,7 +238,7 @@
|
||||
type="button"
|
||||
class="rounded-lg transition-all duration-200 px-2.5 py-0.5 text-xs font-normal {selectedRange ===
|
||||
range.key
|
||||
? 'bg-white text-base-900 shadow-sm dark:bg-base-700 dark:text-white'
|
||||
? 'bg-base-0 text-base-900 shadow-sm dark:bg-base-700 dark:text-base-0'
|
||||
: 'text-base-500 hover:text-base-700 dark:text-base-400 dark:hover:text-base-200'}"
|
||||
on:click={() => selectRange(range.key)}
|
||||
>
|
||||
@@ -290,7 +290,7 @@
|
||||
|
||||
<div class="flex justify-end pt-4">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
type="button"
|
||||
on:click={close}
|
||||
>
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
style="left:clamp(0px, calc({(mouseX / w) * 100}% - 7rem), max(0px, calc(100% - 14rem)))"
|
||||
>
|
||||
<div
|
||||
class="rounded border border-base-100 bg-white px-2.5 py-1.5 shadow-sm dark:border-base-800 dark:bg-base-900"
|
||||
class="rounded border border-base-100 bg-base-0 px-2.5 py-1.5 shadow-sm dark:border-base-800 dark:bg-base-900"
|
||||
>
|
||||
<div class="mb-1.5 text-[0.625rem] text-base-400">
|
||||
{#if hovered.date?.includes(':')}
|
||||
@@ -128,7 +128,7 @@
|
||||
.slice(0, 5) as [n, c]}
|
||||
<div class="flex items-center justify-between gap-2 py-0.5">
|
||||
<span class="min-w-0 truncate text-base-600 dark:text-base-300">{n}</span>
|
||||
<span class="shrink-0 text-base-900 tabular-nums dark:text-white"
|
||||
<span class="shrink-0 text-base-900 tabular-nums dark:text-base-0"
|
||||
>{c.toLocaleString()}
|
||||
<span class="text-base-400">({total > 0 ? ((c / total) * 100).toFixed(0) : 0}%)</span
|
||||
></span
|
||||
|
||||
@@ -348,7 +348,7 @@
|
||||
</script>
|
||||
|
||||
<div class="flex flex-wrap items-center justify-between mb-3 gap-x-4 gap-y-2">
|
||||
<h2 class="text-sm font-normal text-base-900 dark:text-white shrink-0">
|
||||
<h2 class="text-sm font-normal text-base-900 dark:text-base-0 shrink-0">
|
||||
{$i18n.t('Analytics')}
|
||||
</h2>
|
||||
<div class="flex items-center gap-2 flex-wrap justify-end min-w-0">
|
||||
@@ -720,7 +720,7 @@
|
||||
}}
|
||||
>
|
||||
<td class="font-normal px-3 py-1.5 text-base-400">{idx + 1}</td>
|
||||
<td class="font-normal px-3 py-1.5 text-base-900 dark:text-white">
|
||||
<td class="font-normal px-3 py-1.5 text-base-900 dark:text-base-0">
|
||||
<div class="flex items-center gap-2">
|
||||
<img
|
||||
src="{WEBUI_API_BASE_URL}/models/model/profile/image?id={model.model_id}"
|
||||
@@ -901,7 +901,7 @@
|
||||
selectedMetric === 'tokens' ? (user.total_tokens ?? 0) : user.count}
|
||||
<tr class="text-xs">
|
||||
<td class="font-normal px-3 py-1.5 text-base-400">{idx + 1}</td>
|
||||
<td class="font-normal px-3 py-1.5 text-base-900 dark:text-white">
|
||||
<td class="font-normal px-3 py-1.5 text-base-900 dark:text-base-0">
|
||||
<div class="flex items-center gap-2">
|
||||
<ProfilePreview
|
||||
user={{ id: user.user_id, name: user.name || user.email }}
|
||||
|
||||
@@ -212,7 +212,7 @@
|
||||
<button
|
||||
type="button"
|
||||
aria-label={$i18n.t('Session options')}
|
||||
class="flex items-center justify-center p-1.5 text-base-500 hover:text-base-900 dark:text-base-400 dark:hover:text-white"
|
||||
class="flex items-center justify-center p-1.5 text-base-500 hover:text-base-900 dark:text-base-400 dark:hover:text-base-0"
|
||||
>
|
||||
<EllipsisHorizontal className="size-4" />
|
||||
</button>
|
||||
@@ -256,7 +256,7 @@
|
||||
{:else}
|
||||
<div class="max-h-[22rem] overflow-auto scrollbar-hover">
|
||||
<table class="session-table w-full text-left text-xs tabular-nums whitespace-nowrap">
|
||||
<thead class="sticky top-0 z-10 bg-white dark:bg-base-900 text-[0.6875rem]">
|
||||
<thead class="sticky top-0 z-10 bg-base-0 dark:bg-base-900 text-[0.6875rem]">
|
||||
<tr>
|
||||
{#each columns as column}
|
||||
<th
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
aria-label={$i18n.t('Execution timeline')}
|
||||
>
|
||||
<div
|
||||
class="grid grid-cols-[6rem_minmax(0,1fr)_3rem] sm:grid-cols-[10rem_minmax(0,1fr)_3.5rem] gap-x-2 sticky top-0 z-10 bg-white dark:bg-base-900 pb-1 text-[0.625rem] tabular-nums"
|
||||
class="grid grid-cols-[6rem_minmax(0,1fr)_3rem] sm:grid-cols-[10rem_minmax(0,1fr)_3.5rem] gap-x-2 sticky top-0 z-10 bg-base-0 dark:bg-base-900 pb-1 text-[0.625rem] tabular-nums"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<span></span>
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
class="px-0.5 py-1 min-w-fit rounded-lg lg:flex-none flex items-center gap-1.5 text-right transition select-none {selectedTab ===
|
||||
'leaderboard'
|
||||
? ''
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-white'}"
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-base-0'}"
|
||||
>
|
||||
<div class="self-center">{$i18n.t('Leaderboard')}</div>
|
||||
{#if formattedLeaderboardCount !== null}
|
||||
@@ -106,7 +106,7 @@
|
||||
class="px-0.5 py-1 min-w-fit rounded-lg lg:flex-none flex items-center gap-1.5 text-right transition select-none {selectedTab ===
|
||||
'feedback'
|
||||
? ''
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-white'}"
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-base-0'}"
|
||||
>
|
||||
<div class="self-center">{$i18n.t('Feedback')}</div>
|
||||
{#if formattedFeedbackCount !== null}
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
|
||||
<div class="flex justify-end pt-2">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
type="button"
|
||||
on:click={close}
|
||||
>
|
||||
|
||||
@@ -272,7 +272,7 @@
|
||||
{#if total > 0}
|
||||
<Dropdown align="end">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-100 px-2.5 text-xs font-normal text-base-800 transition hover:bg-base-100/70 disabled:opacity-60 dark:bg-base-850 dark:text-white dark:hover:bg-base-850/60"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-100 px-2.5 text-xs font-normal text-base-800 transition hover:bg-base-100/70 disabled:opacity-60 dark:bg-base-850 dark:text-base-0 dark:hover:bg-base-850/60"
|
||||
>
|
||||
{$i18n.t('Export')}
|
||||
<ChevronDown className="size-3" strokeWidth="2.5" />
|
||||
@@ -515,7 +515,7 @@
|
||||
</td>
|
||||
|
||||
{#if feedback?.data?.rating}
|
||||
<td class="px-3 py-1 text-right font-normal text-base-900 dark:text-white w-max">
|
||||
<td class="px-3 py-1 text-right font-normal text-base-900 dark:text-base-0 w-max">
|
||||
<div class=" flex justify-end">
|
||||
{#if feedback?.data?.rating.toString() === '1'}
|
||||
<Badge type="info" content={$i18n.t('Won')} />
|
||||
@@ -541,7 +541,7 @@
|
||||
}}
|
||||
>
|
||||
<button
|
||||
class="self-center w-fit text-sm p-1.5 dark:text-base-300 dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
||||
class="self-center w-fit text-sm p-1.5 dark:text-base-300 dark:hover:text-base-0 hover:bg-base-1000/5 dark:hover:bg-base-0/5 rounded-xl"
|
||||
aria-label={$i18n.t('More')}
|
||||
>
|
||||
<EllipsisHorizontal />
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
<ModelModal bind:show={showModal} model={selectedModel} onClose={closeModal} />
|
||||
|
||||
<div>
|
||||
<div class="sticky top-0 z-10 bg-white dark:bg-base-900">
|
||||
<div class="sticky top-0 z-10 bg-base-0 dark:bg-base-900">
|
||||
<div class="flex h-8 flex-1 items-center w-full gap-2">
|
||||
<div class="flex min-w-0 flex-1 items-center">
|
||||
<div class="self-center ml-1 mr-3">
|
||||
@@ -158,7 +158,7 @@
|
||||
>
|
||||
{#if loading}
|
||||
<div
|
||||
class="absolute inset-0 flex items-center justify-center z-10 bg-white/50 dark:bg-base-900/50"
|
||||
class="absolute inset-0 flex items-center justify-center z-10 bg-base-0/50 dark:bg-base-900/50"
|
||||
>
|
||||
<Spinner className="size-5" />
|
||||
</div>
|
||||
@@ -212,7 +212,7 @@
|
||||
class="text-xs group cursor-pointer hover:bg-base-50 dark:hover:bg-base-850/50 transition"
|
||||
on:click={() => openModal(model)}
|
||||
>
|
||||
<td class="px-3 py-1.5 font-normal text-base-900 dark:text-white">
|
||||
<td class="px-3 py-1.5 font-normal text-base-900 dark:text-base-0">
|
||||
{model.rating !== '-' ? idx + 1 : '-'}
|
||||
</td>
|
||||
<td class="px-3 py-1.5">
|
||||
@@ -237,7 +237,7 @@
|
||||
</Tooltip>
|
||||
</div>
|
||||
</td>
|
||||
<td class="px-3 py-1.5 text-right font-normal text-base-900 dark:text-white">
|
||||
<td class="px-3 py-1.5 text-right font-normal text-base-900 dark:text-base-0">
|
||||
{model.rating}
|
||||
</td>
|
||||
<td class="px-3 py-1.5 text-right font-normal text-green-500 w-10">
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
type="button"
|
||||
class="rounded-lg transition-all duration-200 px-2.5 py-0.5 text-xs font-normal {selectedRange ===
|
||||
range.key
|
||||
? 'bg-white text-base-900 shadow-sm dark:bg-base-700 dark:text-white'
|
||||
? 'bg-base-0 text-base-900 shadow-sm dark:bg-base-700 dark:text-base-0'
|
||||
: 'text-base-500 hover:text-base-700 dark:text-base-400 dark:hover:text-base-200'}"
|
||||
on:click={() => selectRange(range.key)}
|
||||
>
|
||||
@@ -125,7 +125,7 @@
|
||||
|
||||
<div class="flex justify-end pt-2">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
type="button"
|
||||
on:click={close}
|
||||
>
|
||||
|
||||
@@ -701,7 +701,7 @@ class Pipe:
|
||||
{/if}
|
||||
<button
|
||||
type="button"
|
||||
class="flex h-7 shrink-0 items-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs text-white disabled:opacity-60 dark:bg-base-100 dark:text-base-900"
|
||||
class="flex h-7 shrink-0 items-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs text-base-0 disabled:opacity-60 dark:bg-base-100 dark:text-base-900"
|
||||
disabled={promoting || selecting}
|
||||
on:click={() => historyControl?.requestPromotion()}
|
||||
>
|
||||
@@ -716,7 +716,7 @@ class Pipe:
|
||||
disabled={loading}
|
||||
/>
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
type="submit"
|
||||
disabled={loading || selecting || promoting || (edit && !changed)}
|
||||
>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<div class="flex items-center gap-2">
|
||||
{#if changedKeys.length > 0}
|
||||
<button
|
||||
class="h-7 shrink-0 rounded-lg px-2 text-xs text-base-500 transition hover:text-base-900 dark:text-base-400 dark:hover:text-white"
|
||||
class="h-7 shrink-0 rounded-lg px-2 text-xs text-base-500 transition hover:text-base-900 dark:text-base-400 dark:hover:text-base-0"
|
||||
type="button"
|
||||
{disabled}
|
||||
on:click={() => {
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
<button
|
||||
bind:this={saveButton}
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:cursor-not-allowed disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:cursor-not-allowed disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
type="submit"
|
||||
{disabled}
|
||||
on:click={(event) => {
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
><button
|
||||
type="button"
|
||||
aria-label={$i18n.t('Add app')}
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-black/5 hover:text-base-900 dark:text-base-600 dark:hover:bg-white/5 dark:hover:text-white"
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-base-1000/5 hover:text-base-900 dark:text-base-600 dark:hover:bg-base-0/5 dark:hover:text-base-0"
|
||||
on:click={() => configure(null)}><Plus /></button
|
||||
></Tooltip
|
||||
>
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
const inputClass =
|
||||
'w-full min-w-0 bg-transparent text-sm outline-hidden placeholder:text-base-300 dark:placeholder:text-base-700 disabled:text-base-400 dark:disabled:text-base-600';
|
||||
const buttonClass =
|
||||
'flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white';
|
||||
'flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0';
|
||||
// Keep the dynamic scope label visible to i18next-parser.
|
||||
// $i18n.t('Read messages and history in joined channels');
|
||||
const scopeLabels: Record<string, string> = {
|
||||
@@ -395,7 +395,7 @@
|
||||
</AdminSettingField>
|
||||
<button
|
||||
type="button"
|
||||
class="mt-2 text-xs text-base-600 hover:text-base-900 dark:text-base-400 dark:hover:text-white hover:underline"
|
||||
class="mt-2 text-xs text-base-600 hover:text-base-900 dark:text-base-400 dark:hover:text-base-0 hover:underline"
|
||||
on:click={() => {
|
||||
scopeQuery = '';
|
||||
scopeMode = 'requested';
|
||||
@@ -439,7 +439,7 @@
|
||||
<button
|
||||
type="button"
|
||||
disabled={busy}
|
||||
class="mt-2 text-xs text-base-600 hover:text-base-900 dark:text-base-400 dark:hover:text-white hover:underline"
|
||||
class="mt-2 text-xs text-base-600 hover:text-base-900 dark:text-base-400 dark:hover:text-base-0 hover:underline"
|
||||
on:click={editDetailsManually}>{$i18n.t('Edit details manually')}</button
|
||||
>
|
||||
{/if}
|
||||
@@ -479,7 +479,7 @@
|
||||
<button
|
||||
id={`${labelId}-control`}
|
||||
type="button"
|
||||
class="text-base-600 hover:text-base-900 dark:text-base-400 dark:hover:text-white hover:underline"
|
||||
class="text-base-600 hover:text-base-900 dark:text-base-400 dark:hover:text-base-0 hover:underline"
|
||||
on:click={() => {
|
||||
scopeQuery = '';
|
||||
scopeMode = 'granted';
|
||||
@@ -514,7 +514,7 @@
|
||||
>{:else if manifest && !app}<button
|
||||
type="button"
|
||||
disabled={busy}
|
||||
class="text-xs text-base-500 hover:text-base-900 dark:hover:text-white"
|
||||
class="text-xs text-base-500 hover:text-base-900 dark:hover:text-base-0"
|
||||
on:click={() => {
|
||||
manifest = null;
|
||||
manual = false;
|
||||
@@ -522,7 +522,7 @@
|
||||
>{:else if !manifest}<button
|
||||
type="button"
|
||||
disabled={busy}
|
||||
class="text-xs text-base-500 hover:text-base-900 dark:hover:text-white"
|
||||
class="text-xs text-base-500 hover:text-base-900 dark:hover:text-base-0"
|
||||
on:click={(event) => {
|
||||
if (event.currentTarget.form?.reportValidity()) editDetailsManually();
|
||||
}}>{$i18n.t('Enter details manually')}</button
|
||||
|
||||
@@ -207,9 +207,9 @@
|
||||
let providerVoices: Voice[] = [];
|
||||
let models: Awaited<ReturnType<typeof _getModels>>['models'] = [];
|
||||
const inputClass =
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
const textareaClass =
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
const linkedHelpClass =
|
||||
'text-[0.6875rem] text-base-400 dark:text-base-600 [&_a]:text-base-900 [&_a]:hover:underline dark:[&_a]:text-base-300';
|
||||
|
||||
@@ -403,7 +403,7 @@
|
||||
dispatch('save');
|
||||
}}
|
||||
>
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('settings.admin.audio.title')}
|
||||
</h2>
|
||||
{#if $config?.features?.slim === true}
|
||||
@@ -766,7 +766,7 @@
|
||||
bind:value={STT_WHISPER_MODEL}
|
||||
/>
|
||||
<button
|
||||
class="flex h-7 w-7 shrink-0 items-center justify-center rounded-lg text-base-500 transition-colors hover:bg-black/5 hover:text-base-900 aria-disabled:opacity-50 dark:text-base-500 dark:hover:bg-white/5 dark:hover:text-white"
|
||||
class="flex h-7 w-7 shrink-0 items-center justify-center rounded-lg text-base-500 transition-colors hover:bg-base-1000/5 hover:text-base-900 aria-disabled:opacity-50 dark:text-base-500 dark:hover:bg-base-0/5 dark:hover:text-base-0"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
sttModelUpdateHandler();
|
||||
|
||||
@@ -132,9 +132,9 @@
|
||||
};
|
||||
const sensitiveKeys = ['app_dn_password', 'OAUTH_CLIENT_SECRET'];
|
||||
const inputClass =
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
const textareaClass =
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
|
||||
const updateLdapServerHandler = async () => {
|
||||
await updateLdapConfig(localStorage.token, ENABLE_LDAP);
|
||||
@@ -230,7 +230,7 @@
|
||||
</script>
|
||||
|
||||
<form class="flex h-full flex-col justify-between text-sm" on:submit|preventDefault={submitHandler}>
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('settings.admin.authentication.title')}
|
||||
</h2>
|
||||
|
||||
|
||||
@@ -67,9 +67,9 @@
|
||||
'CODE_INTERPRETER_JUPYTER_AUTH_TOKEN'
|
||||
];
|
||||
const inputClass =
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
const textareaClass =
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
|
||||
const submitHandler = async () => {
|
||||
const res = await setCodeExecutionConfig(localStorage.token, config);
|
||||
@@ -95,7 +95,7 @@
|
||||
saveHandler();
|
||||
}}
|
||||
>
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('settings.admin.codeExecution.title')}
|
||||
</h2>
|
||||
|
||||
|
||||
@@ -228,7 +228,7 @@
|
||||
/>
|
||||
|
||||
<form class="flex h-full flex-col justify-between text-sm" on:submit|preventDefault={submitHandler}>
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('settings.admin.connections.title')}
|
||||
</h2>
|
||||
|
||||
@@ -255,7 +255,7 @@
|
||||
<Tooltip content={$i18n.t('settings.admin.connections.addConnection.label')}>
|
||||
<button
|
||||
aria-label={$i18n.t('settings.admin.connections.addConnection.label')}
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-black/5 hover:text-base-700 dark:text-base-600 dark:hover:bg-white/5 dark:hover:text-base-300"
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-base-1000/5 hover:text-base-700 dark:text-base-600 dark:hover:bg-base-0/5 dark:hover:text-base-300"
|
||||
on:click={() => {
|
||||
showAddOpenAIConnectionModal = true;
|
||||
}}
|
||||
@@ -315,7 +315,7 @@
|
||||
<Tooltip content={$i18n.t('settings.admin.connections.addConnection.label')}>
|
||||
<button
|
||||
aria-label={$i18n.t('settings.admin.connections.addConnection.label')}
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-black/5 hover:text-base-700 dark:text-base-600 dark:hover:bg-white/5 dark:hover:text-base-300"
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-base-1000/5 hover:text-base-700 dark:text-base-600 dark:hover:bg-base-0/5 dark:hover:text-base-300"
|
||||
on:click={() => {
|
||||
showAddOllamaConnectionModal = true;
|
||||
}}
|
||||
@@ -375,7 +375,7 @@
|
||||
{#if connectionsConfig.ENABLE_BASE_MODELS_CACHE}
|
||||
<Tooltip content={$i18n.t('settings.admin.connections.refreshModels.label')}>
|
||||
<button
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-black/5 hover:text-base-700 disabled:cursor-not-allowed disabled:opacity-50 dark:text-base-600 dark:hover:bg-white/5 dark:hover:text-base-300"
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-base-1000/5 hover:text-base-700 disabled:cursor-not-allowed disabled:opacity-50 dark:text-base-600 dark:hover:bg-base-0/5 dark:hover:text-base-300"
|
||||
type="button"
|
||||
disabled={modelListRefreshing}
|
||||
on:click={refreshModelListHandler}
|
||||
@@ -411,7 +411,7 @@
|
||||
|
||||
<div class="flex justify-end pt-6 text-sm font-normal">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
type="submit"
|
||||
>
|
||||
{$i18n.t('Save')}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
ariaLabel={$i18n.t('Manage Ollama')}
|
||||
size="sm"
|
||||
bind:show
|
||||
className="bg-white dark:bg-base-900 rounded-4xl"
|
||||
className="bg-base-0 dark:bg-base-900 rounded-4xl"
|
||||
>
|
||||
<div>
|
||||
<div class=" flex justify-between dark:text-base-100 px-4 pt-3 pb-1">
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
>
|
||||
{#if !(config?.enable ?? true)}
|
||||
<div
|
||||
class="absolute top-0 bottom-0 left-0 right-0 opacity-60 bg-white dark:bg-base-900 z-10"
|
||||
class="absolute top-0 bottom-0 left-0 right-0 opacity-60 bg-base-0 dark:bg-base-900 z-10"
|
||||
></div>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
>
|
||||
{#if !(config?.enable ?? true)}
|
||||
<div
|
||||
class="absolute top-0 bottom-0 left-0 right-0 opacity-60 bg-white dark:bg-base-900 z-10"
|
||||
class="absolute top-0 bottom-0 left-0 right-0 opacity-60 bg-base-0 dark:bg-base-900 z-10"
|
||||
></div>
|
||||
{/if}
|
||||
<div class="flex w-full gap-2">
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
let configImportInputElement: HTMLInputElement;
|
||||
const actionButtonClass =
|
||||
'text-xs text-base-500 transition-colors hover:text-base-900 dark:text-base-500 dark:hover:text-white';
|
||||
'text-xs text-base-500 transition-colors hover:text-base-900 dark:text-base-500 dark:hover:text-base-0';
|
||||
|
||||
const exportAllUserChats = async () => {
|
||||
let blob = new Blob([JSON.stringify(await getAllUserChats(localStorage.token))], {
|
||||
@@ -52,7 +52,7 @@
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col h-full justify-between text-sm">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('settings.admin.db.title')}
|
||||
</h2>
|
||||
|
||||
|
||||
@@ -214,11 +214,11 @@
|
||||
'RAG_EXTERNAL_RERANKER_API_KEY'
|
||||
];
|
||||
const inputClass =
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
const actionButtonClass =
|
||||
'shrink-0 text-xs text-base-500 transition-colors hover:text-base-900 dark:text-base-500 dark:hover:text-white';
|
||||
'shrink-0 text-xs text-base-500 transition-colors hover:text-base-900 dark:text-base-500 dark:hover:text-base-0';
|
||||
const textareaClass =
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
|
||||
const embeddingModelUpdateHandler = async () => {
|
||||
if (updateEmbeddingModelLoading) return;
|
||||
@@ -590,7 +590,7 @@
|
||||
submitHandler();
|
||||
}}
|
||||
>
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('settings.admin.documents.title')}
|
||||
</h2>
|
||||
{#if $config?.features?.slim === true}
|
||||
@@ -1095,7 +1095,7 @@
|
||||
>
|
||||
<input
|
||||
id={`${labelId}-control`}
|
||||
class="w-16 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-right text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-16 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-right text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="number"
|
||||
min="1"
|
||||
bind:value={RAGConfig.MINERU_API_TIMEOUT}
|
||||
@@ -1391,7 +1391,7 @@
|
||||
|
||||
{#if RAG_EMBEDDING_ENGINE === ''}
|
||||
<button
|
||||
class="flex size-7 shrink-0 items-center justify-center rounded-lg text-base-500 transition-colors hover:bg-black/5 hover:text-base-900 dark:text-base-500 dark:hover:bg-white/5 dark:hover:text-white"
|
||||
class="flex size-7 shrink-0 items-center justify-center rounded-lg text-base-500 transition-colors hover:bg-base-1000/5 hover:text-base-900 dark:text-base-500 dark:hover:bg-base-0/5 dark:hover:text-base-0"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
embeddingModelUpdateHandler();
|
||||
@@ -1471,7 +1471,7 @@
|
||||
<Collapsible
|
||||
title={$i18n.t('Advanced')}
|
||||
bind:open={showEmbeddingAdvanced}
|
||||
buttonClassName="w-full py-1 text-xs text-base-600 hover:text-base-900 dark:text-base-400 dark:hover:text-white transition-colors"
|
||||
buttonClassName="w-full py-1 text-xs text-base-600 hover:text-base-900 dark:text-base-400 dark:hover:text-base-0 transition-colors"
|
||||
>
|
||||
<div slot="content" class="flex flex-col gap-2.5 pt-2.5">
|
||||
<AdminSettingField
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
dispatch('save');
|
||||
}}
|
||||
>
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('settings.admin.evaluations.title')}
|
||||
</h2>
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
<Tooltip content={$i18n.t('settings.admin.evaluations.addArenaModel.label')}>
|
||||
<button
|
||||
aria-label={$i18n.t('settings.admin.evaluations.addArenaModel.label')}
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-black/5 hover:text-base-900 dark:text-base-600 dark:hover:bg-white/5 dark:hover:text-white"
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-base-1000/5 hover:text-base-900 dark:text-base-600 dark:hover:bg-base-0/5 dark:hover:text-base-0"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
showAddModel = true;
|
||||
@@ -154,7 +154,7 @@
|
||||
|
||||
<div class="flex justify-end pt-6 text-sm font-normal">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
type="submit"
|
||||
>
|
||||
{$i18n.t('Save')}
|
||||
|
||||
@@ -437,7 +437,7 @@
|
||||
<div class="flex justify-end pt-3 text-sm font-medium gap-1.5">
|
||||
{#if edit}
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal transition disabled:opacity-60 dark:bg-black dark:hover:bg-base-950 dark:text-white bg-white text-black hover:bg-base-100 flex-row"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal transition disabled:opacity-60 dark:bg-base-1000 dark:hover:bg-base-950 dark:text-base-0 bg-base-0 text-base-1000 hover:bg-base-100 flex-row"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
showDeleteConfirmDialog = true;
|
||||
@@ -448,7 +448,7 @@
|
||||
{/if}
|
||||
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
type="submit"
|
||||
disabled={loading}
|
||||
>
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<Tooltip content={$i18n.t('Clone')}>
|
||||
<button
|
||||
aria-label={$i18n.t('Clone')}
|
||||
class="self-center w-fit text-sm p-1.5 dark:text-base-300 dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
||||
class="self-center w-fit text-sm p-1.5 dark:text-base-300 dark:hover:text-base-0 hover:bg-base-1000/5 dark:hover:bg-base-0/5 rounded-xl"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
showCloneModel = true;
|
||||
@@ -79,7 +79,7 @@
|
||||
|
||||
<button
|
||||
aria-label={$i18n.t('Configure')}
|
||||
class="self-center w-fit text-sm p-1.5 dark:text-base-300 dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
||||
class="self-center w-fit text-sm p-1.5 dark:text-base-300 dark:hover:text-base-0 hover:bg-base-1000/5 dark:hover:bg-base-0/5 rounded-xl"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
showModel = true;
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
};
|
||||
|
||||
const inputClass =
|
||||
'rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
|
||||
$: events = eventItems.map((item) => item.event);
|
||||
$: eventDetails = Object.fromEntries(eventItems.map((item) => [item.event, item]));
|
||||
@@ -397,7 +397,7 @@
|
||||
ariaLabel={editing ? $i18n.t('Edit webhook') : $i18n.t('Add webhook')}
|
||||
bind:show={showWebhookModal}
|
||||
size="sm"
|
||||
className="bg-white dark:bg-base-900 rounded-4xl"
|
||||
className="bg-base-0 dark:bg-base-900 rounded-4xl"
|
||||
>
|
||||
<div>
|
||||
<div class="flex justify-between dark:text-base-100 px-4 pt-3 pb-1">
|
||||
@@ -487,7 +487,7 @@
|
||||
<div class="flex flex-wrap gap-1 mb-2">
|
||||
{#each targetGroupIds as id}
|
||||
<div
|
||||
class="flex items-center gap-1 rounded-full bg-base-100 dark:bg-white/[0.03] px-2 py-1 text-xs"
|
||||
class="flex items-center gap-1 rounded-full bg-base-100 dark:bg-base-0/[0.03] px-2 py-1 text-xs"
|
||||
>
|
||||
<span class="truncate max-w-36">{selectedGroups[id]?.name ?? id}</span>
|
||||
<span class="text-base-500">{$i18n.t('group')}</span>
|
||||
@@ -503,7 +503,7 @@
|
||||
|
||||
{#each targetUserIds as id}
|
||||
<div
|
||||
class="flex items-center gap-1 rounded-full bg-base-100 dark:bg-white/[0.03] px-2 py-1 text-xs"
|
||||
class="flex items-center gap-1 rounded-full bg-base-100 dark:bg-base-0/[0.03] px-2 py-1 text-xs"
|
||||
>
|
||||
<span class="truncate max-w-36">{selectedUsers[id]?.name ?? id}</span>
|
||||
<span class="text-base-500">{$i18n.t('user')}</span>
|
||||
@@ -532,7 +532,7 @@
|
||||
|
||||
{#if targetQuery.trim() && (targetGroupResults.length > 0 || targetUserResults.length > 0)}
|
||||
<div
|
||||
class="absolute z-10 mt-1 w-full rounded-lg bg-white dark:bg-base-900 border border-base-100 dark:border-base-850 shadow-lg py-1 max-h-48 overflow-y-auto"
|
||||
class="absolute z-10 mt-1 w-full rounded-lg bg-base-0 dark:bg-base-900 border border-base-100 dark:border-base-850 shadow-lg py-1 max-h-48 overflow-y-auto"
|
||||
>
|
||||
{#each targetGroupResults as group}
|
||||
<button
|
||||
@@ -589,7 +589,7 @@
|
||||
<div class="flex flex-wrap gap-1">
|
||||
{#each form.events as event}
|
||||
<div
|
||||
class="flex items-center gap-1 rounded-full bg-base-100 dark:bg-white/[0.03] px-2 py-1 text-xs"
|
||||
class="flex items-center gap-1 rounded-full bg-base-100 dark:bg-base-0/[0.03] px-2 py-1 text-xs"
|
||||
>
|
||||
<span class="font-mono break-all">{event}</span>
|
||||
<button
|
||||
@@ -675,7 +675,7 @@
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
>
|
||||
{$i18n.t('Save')}
|
||||
</button>
|
||||
@@ -712,7 +712,7 @@
|
||||
<Tooltip content={$i18n.t('Add webhook')}>
|
||||
<button
|
||||
aria-label={$i18n.t('Add webhook')}
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-black/5 hover:text-base-900 dark:text-base-600 dark:hover:bg-white/5 dark:hover:text-white"
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-base-1000/5 hover:text-base-900 dark:text-base-600 dark:hover:bg-base-0/5 dark:hover:text-base-0"
|
||||
on:click={newWebhook}
|
||||
type="button"
|
||||
>
|
||||
|
||||
@@ -578,7 +578,7 @@
|
||||
: $i18n.t('Add Knowledge Connection')}
|
||||
bind:show={showSourceModal}
|
||||
size="sm"
|
||||
className="bg-white dark:bg-base-900 rounded-4xl"
|
||||
className="bg-base-0 dark:bg-base-900 rounded-4xl"
|
||||
>
|
||||
<div>
|
||||
<div class="flex justify-between dark:text-base-100 px-4 pt-3 pb-1">
|
||||
@@ -816,7 +816,7 @@
|
||||
>{storeOptions.find((store) => store.id === id)?.name ?? id}</span
|
||||
>
|
||||
<button
|
||||
class="text-base-400 hover:text-base-900 dark:hover:text-white transition"
|
||||
class="text-base-400 hover:text-base-900 dark:hover:text-base-0 transition"
|
||||
type="button"
|
||||
aria-label={$i18n.t('Remove')}
|
||||
on:click={() => removeStoreId(id)}
|
||||
@@ -1094,7 +1094,7 @@
|
||||
{/if}
|
||||
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
type="submit"
|
||||
disabled={creating ||
|
||||
(connectionMode
|
||||
@@ -1134,7 +1134,7 @@
|
||||
<Tooltip content={$i18n.t('settings.admin.integrations.externalKnowledge.addConnection.label')}>
|
||||
<button
|
||||
aria-label={$i18n.t('settings.admin.integrations.externalKnowledge.addConnection.label')}
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-black/5 hover:text-base-900 dark:text-base-600 dark:hover:bg-white/5 dark:hover:text-white"
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-base-1000/5 hover:text-base-900 dark:text-base-600 dark:hover:bg-base-0/5 dark:hover:text-base-0"
|
||||
on:click={openCreateSource}
|
||||
type="button"
|
||||
>
|
||||
|
||||
@@ -84,9 +84,9 @@
|
||||
BANNERS: $i18n.t('settings.admin.general.banners.label')
|
||||
};
|
||||
const inputClass =
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
const textareaClass =
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
const checkForVersionUpdates = async () => {
|
||||
updateAvailable = null;
|
||||
version = await getVersionUpdates(localStorage.token).catch((error) => {
|
||||
@@ -175,7 +175,7 @@
|
||||
updateHandler();
|
||||
}}
|
||||
>
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('settings.admin.general.title')}
|
||||
</h2>
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
|
||||
{#if WEBUI_BUILD_CHANNEL === 'main' && $config?.features?.enable_version_update_check}
|
||||
<button
|
||||
class="shrink-0 text-xs text-base-500 transition-colors hover:text-base-900 dark:text-base-500 dark:hover:text-white"
|
||||
class="shrink-0 text-xs text-base-500 transition-colors hover:text-base-900 dark:text-base-500 dark:hover:text-base-0"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
checkForVersionUpdates();
|
||||
@@ -250,7 +250,7 @@
|
||||
</div>
|
||||
|
||||
<a
|
||||
class="shrink-0 text-base-500 transition-colors hover:text-base-900 dark:text-base-500 dark:hover:text-white"
|
||||
class="shrink-0 text-base-500 transition-colors hover:text-base-900 dark:text-base-500 dark:hover:text-base-0"
|
||||
href="https://docs.openwebui.com/"
|
||||
target="_blank"
|
||||
>
|
||||
@@ -291,15 +291,15 @@
|
||||
target="_blank"
|
||||
class="mt-0.5 block text-base-500"
|
||||
>
|
||||
<span class="capitalize text-black dark:text-white"
|
||||
<span class="capitalize text-base-1000 dark:text-base-0"
|
||||
>{$config?.license_metadata?.type} license</span
|
||||
>
|
||||
{$i18n.t('registered to')}
|
||||
<span class="capitalize text-black dark:text-white"
|
||||
<span class="capitalize text-base-1000 dark:text-base-0"
|
||||
>{$config?.license_metadata?.organization_name}</span
|
||||
>
|
||||
for
|
||||
<span class="text-black dark:text-white"
|
||||
<span class="text-base-1000 dark:text-base-0"
|
||||
>{$config?.license_metadata?.seats ?? 'Unlimited'} users.</span
|
||||
>
|
||||
</a>
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
/>
|
||||
|
||||
<form class="flex h-full flex-col justify-between text-sm" on:submit|preventDefault={saveHandler}>
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('Images & Videos')}
|
||||
</h2>
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
<Tooltip content={$i18n.t('settings.admin.images.addConnection.label')}>
|
||||
<button
|
||||
aria-label={$i18n.t('settings.admin.images.addConnection.label')}
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-black/5 hover:text-base-700 dark:text-base-600 dark:hover:bg-white/5 dark:hover:text-base-300"
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-base-1000/5 hover:text-base-700 dark:text-base-600 dark:hover:bg-base-0/5 dark:hover:text-base-300"
|
||||
on:click={() => {
|
||||
showAddConnectionModal = true;
|
||||
}}
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<div class="flex items-center gap-2 shrink-0">
|
||||
<!-- Always available, so a workflow can be pasted in as well as uploaded. -->
|
||||
<button
|
||||
class="text-xs text-base-500 transition-colors hover:text-base-900 hover:underline dark:hover:text-white"
|
||||
class="text-xs text-base-500 transition-colors hover:text-base-900 hover:underline dark:hover:text-base-0"
|
||||
type="button"
|
||||
aria-label={$i18n.t('settings.admin.images.editWorkflowJsonContent.label')}
|
||||
on:click={() => {
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
<Tooltip content={$i18n.t('settings.admin.images.clickHereToUploadAWorkflowJsonFile.label')}>
|
||||
<button
|
||||
class="text-xs text-base-500 transition-colors hover:text-base-900 hover:underline dark:hover:text-white"
|
||||
class="text-xs text-base-500 transition-colors hover:text-base-900 hover:underline dark:hover:text-base-0"
|
||||
type="button"
|
||||
aria-label={$i18n.t('settings.admin.images.clickHereToUploadAWorkflowJsonFile.label')}
|
||||
on:click={() => {
|
||||
|
||||
@@ -853,7 +853,7 @@
|
||||
</div>
|
||||
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
type="submit"
|
||||
disabled={loading}
|
||||
>
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
updateHandler();
|
||||
}}
|
||||
>
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('settings.admin.integrations.title')}
|
||||
</h2>
|
||||
|
||||
@@ -190,7 +190,7 @@
|
||||
<Tooltip content={$i18n.t('settings.admin.integrations.addConnection.label')}>
|
||||
<button
|
||||
aria-label={$i18n.t('settings.admin.integrations.addConnection.label')}
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-black/5 hover:text-base-900 dark:text-base-600 dark:hover:bg-white/5 dark:hover:text-white"
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-base-1000/5 hover:text-base-900 dark:text-base-600 dark:hover:bg-base-0/5 dark:hover:text-base-0"
|
||||
on:click={() => {
|
||||
showConnectionModal = true;
|
||||
}}
|
||||
@@ -255,7 +255,7 @@
|
||||
<Tooltip content={$i18n.t('settings.admin.integrations.addConnection.label')}>
|
||||
<button
|
||||
aria-label={$i18n.t('settings.admin.integrations.addConnection.label')}
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-black/5 hover:text-base-900 dark:text-base-600 dark:hover:bg-white/5 dark:hover:text-white"
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-base-1000/5 hover:text-base-900 dark:text-base-600 dark:hover:bg-base-0/5 dark:hover:text-base-0"
|
||||
on:click={() => {
|
||||
editTerminalIdx = null;
|
||||
showAddTerminalModal = true;
|
||||
@@ -298,7 +298,7 @@
|
||||
<Tooltip content={$i18n.t('Configure')}>
|
||||
<button
|
||||
aria-label={$i18n.t('Configure')}
|
||||
class="self-center p-1 bg-transparent hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition"
|
||||
class="self-center p-1 bg-transparent hover:bg-base-1000/5 dark:hover:bg-base-0/5 rounded-lg transition"
|
||||
on:click={() => {
|
||||
editTerminalIdx = idx;
|
||||
showAddTerminalModal = true;
|
||||
@@ -357,7 +357,7 @@
|
||||
|
||||
<div class="flex justify-end pt-6 text-sm font-normal">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
type="submit"
|
||||
>
|
||||
{$i18n.t('Save')}
|
||||
|
||||
@@ -295,9 +295,9 @@
|
||||
return model.id;
|
||||
};
|
||||
const inputClass =
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
const textareaClass =
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
|
||||
const init = async () => {
|
||||
try {
|
||||
@@ -356,7 +356,7 @@
|
||||
updateInterfaceHandler();
|
||||
}}
|
||||
>
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('settings.admin.interface.title')}
|
||||
</h2>
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<button
|
||||
id={`${labelId}-control`}
|
||||
type="button"
|
||||
class="focus-ring text-xs text-base-500 hover:text-base-900 dark:text-base-400 dark:hover:text-white"
|
||||
class="focus-ring text-xs text-base-500 hover:text-base-900 dark:text-base-400 dark:hover:text-base-0"
|
||||
aria-expanded={expanded}
|
||||
aria-controls="interface-visible-controls"
|
||||
on:click={() => (expanded = !expanded)}
|
||||
|
||||
@@ -764,7 +764,7 @@
|
||||
{#if selectedModelId === null}
|
||||
<div class="flex h-full min-h-0 flex-col text-sm">
|
||||
<div class="mb-0.5 flex items-center justify-between">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0">
|
||||
{$i18n.t('settings.admin.models.title')}
|
||||
<span class="ml-2 font-normal text-base-500 dark:text-base-500">
|
||||
{filteredModels.length}
|
||||
@@ -1112,7 +1112,7 @@
|
||||
<Tooltip content={model?.meta?.hidden ? $i18n.t('Show') : $i18n.t('Hide')}>
|
||||
<button
|
||||
aria-label={model?.meta?.hidden ? $i18n.t('Show') : $i18n.t('Hide')}
|
||||
class="self-center w-fit text-sm p-1.5 dark:text-base-300 dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
||||
class="self-center w-fit text-sm p-1.5 dark:text-base-300 dark:hover:text-base-0 hover:bg-base-1000/5 dark:hover:bg-base-0/5 rounded-xl"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
hideModelHandler(model);
|
||||
@@ -1132,11 +1132,11 @@
|
||||
: $i18n.t('Set as Selected Model')}
|
||||
>
|
||||
<button
|
||||
class="self-center w-fit text-sm p-1.5 rounded-xl hover:bg-black/5 dark:hover:bg-white/5 {defaultModelIdSet.has(
|
||||
class="self-center w-fit text-sm p-1.5 rounded-xl hover:bg-base-1000/5 dark:hover:bg-base-0/5 {defaultModelIdSet.has(
|
||||
model.id
|
||||
)
|
||||
? 'text-base-900 dark:text-white'
|
||||
: 'text-base-500 dark:text-base-400 dark:hover:text-white'}"
|
||||
? 'text-base-900 dark:text-base-0'
|
||||
: 'text-base-500 dark:text-base-400 dark:hover:text-base-0'}"
|
||||
type="button"
|
||||
aria-label={defaultModelIdSet.has(model.id)
|
||||
? $i18n.t('Remove Selected Model')
|
||||
@@ -1155,11 +1155,11 @@
|
||||
: $i18n.t('Set as Pinned Model')}
|
||||
>
|
||||
<button
|
||||
class="self-center w-fit text-sm p-1.5 rounded-xl hover:bg-black/5 dark:hover:bg-white/5 {defaultPinnedModelIdSet.has(
|
||||
class="self-center w-fit text-sm p-1.5 rounded-xl hover:bg-base-1000/5 dark:hover:bg-base-0/5 {defaultPinnedModelIdSet.has(
|
||||
model.id
|
||||
)
|
||||
? 'text-base-900 dark:text-white'
|
||||
: 'text-base-500 dark:text-base-400 dark:hover:text-white'}"
|
||||
? 'text-base-900 dark:text-base-0'
|
||||
: 'text-base-500 dark:text-base-400 dark:hover:text-base-0'}"
|
||||
type="button"
|
||||
aria-label={defaultPinnedModelIdSet.has(model.id)
|
||||
? $i18n.t('Remove Pinned Model')
|
||||
@@ -1182,7 +1182,7 @@
|
||||
: $i18n.t('Make Public')}
|
||||
>
|
||||
<button
|
||||
class="self-center w-fit text-sm p-1.5 rounded-xl text-base-500 hover:bg-black/5 dark:text-base-400 dark:hover:bg-white/5 dark:hover:text-white"
|
||||
class="self-center w-fit text-sm p-1.5 rounded-xl text-base-500 hover:bg-base-1000/5 dark:text-base-400 dark:hover:bg-base-0/5 dark:hover:text-base-0"
|
||||
type="button"
|
||||
aria-label={isPublicModel(model)
|
||||
? $i18n.t('Make Private')
|
||||
@@ -1201,7 +1201,7 @@
|
||||
{/if}
|
||||
|
||||
<button
|
||||
class="hidden sm:flex self-center w-fit text-sm p-1.5 dark:text-base-300 dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
||||
class="hidden sm:flex self-center w-fit text-sm p-1.5 dark:text-base-300 dark:hover:text-base-0 hover:bg-base-1000/5 dark:hover:bg-base-0/5 rounded-xl"
|
||||
type="button"
|
||||
aria-label={$i18n.t('Edit')}
|
||||
on:click={() => {
|
||||
@@ -1262,7 +1262,7 @@
|
||||
onClose={() => {}}
|
||||
>
|
||||
<button
|
||||
class="self-center w-fit text-sm p-1.5 dark:text-base-300 dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
||||
class="self-center w-fit text-sm p-1.5 dark:text-base-300 dark:hover:text-base-0 hover:bg-base-1000/5 dark:hover:bg-base-0/5 rounded-xl"
|
||||
type="button"
|
||||
aria-label={$i18n.t('More Options')}
|
||||
>
|
||||
@@ -1305,7 +1305,7 @@
|
||||
|
||||
<div class="flex justify-end pt-6 text-sm font-normal">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
type="button"
|
||||
disabled={(!modelOrderDirty && !modelDefaultsDirty) ||
|
||||
savingModelOrder ||
|
||||
|
||||
@@ -65,11 +65,11 @@
|
||||
let deleteModelTag = '';
|
||||
|
||||
const inputClass =
|
||||
'h-7 w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2.5 text-left text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 disabled:opacity-50 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500';
|
||||
'h-7 w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2.5 text-left text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 disabled:opacity-50 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500';
|
||||
const textareaClass =
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2.5 py-2 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 disabled:opacity-50 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500';
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2.5 py-2 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 disabled:opacity-50 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500';
|
||||
const iconButtonClass =
|
||||
'inline-flex h-7 items-center justify-center rounded-lg border border-base-100/50 bg-base-50/40 px-2.5 text-base-700 transition-colors hover:bg-base-100 disabled:cursor-not-allowed disabled:opacity-50 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:hover:bg-white/[0.06]';
|
||||
'inline-flex h-7 items-center justify-center rounded-lg border border-base-100/50 bg-base-50/40 px-2.5 text-base-700 transition-colors hover:bg-base-100 disabled:cursor-not-allowed disabled:opacity-50 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:hover:bg-base-0/[0.06]';
|
||||
|
||||
const updateModelsHandler = async () => {
|
||||
updateCancelled = false;
|
||||
@@ -665,7 +665,7 @@
|
||||
}}
|
||||
>
|
||||
<svg
|
||||
class="w-4 h-4 text-base-800 dark:text-white"
|
||||
class="w-4 h-4 text-base-800 dark:text-base-0"
|
||||
aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
@@ -714,7 +714,7 @@
|
||||
}}
|
||||
>
|
||||
<svg
|
||||
class="w-4 h-4 text-base-800 dark:text-white"
|
||||
class="w-4 h-4 text-base-800 dark:text-base-0"
|
||||
aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
|
||||
@@ -51,9 +51,9 @@
|
||||
let providerModels: ProviderModel[] = [];
|
||||
|
||||
const inputClass =
|
||||
'h-7 w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2.5 text-left text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 disabled:opacity-50 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500';
|
||||
'h-7 w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2.5 text-left text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 disabled:opacity-50 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500';
|
||||
const iconButtonClass =
|
||||
'inline-flex h-7 items-center justify-center rounded-lg border border-base-100/50 bg-base-50/40 px-2.5 text-base-700 transition-colors hover:bg-base-100 disabled:cursor-not-allowed disabled:opacity-50 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:hover:bg-white/[0.06]';
|
||||
'inline-flex h-7 items-center justify-center rounded-lg border border-base-100/50 bg-base-50/40 px-2.5 text-base-700 transition-colors hover:bg-base-100 disabled:cursor-not-allowed disabled:opacity-50 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:hover:bg-base-0/[0.06]';
|
||||
|
||||
const getModelId = (model: ProviderModel) =>
|
||||
model.key ?? model.id ?? model.name ?? model.model ?? '';
|
||||
@@ -230,14 +230,14 @@
|
||||
</div>
|
||||
{:else}
|
||||
<div
|
||||
class="max-h-96 overflow-y-auto rounded-lg border border-base-100/50 dark:border-white/[0.04]"
|
||||
class="max-h-96 overflow-y-auto rounded-lg border border-base-100/50 dark:border-base-0/[0.04]"
|
||||
>
|
||||
{#each providerModels as model}
|
||||
{@const modelId = getModelId(model)}
|
||||
{@const displayName = getDisplayName(model)}
|
||||
{@const status = getStatus(model)}
|
||||
<div
|
||||
class="flex items-center justify-between gap-2 border-b border-base-100/50 px-2 py-2 last:border-b-0 dark:border-white/[0.04]"
|
||||
class="flex items-center justify-between gap-2 border-b border-base-100/50 px-2 py-2 last:border-b-0 dark:border-base-0/[0.04]"
|
||||
>
|
||||
<div class="min-w-0 flex-1">
|
||||
<div class="truncate text-xs font-medium text-base-700 dark:text-base-200">
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
ariaLabel={$i18n.t('Manage Models')}
|
||||
size="sm"
|
||||
bind:show
|
||||
className="bg-white dark:bg-base-900 rounded-4xl"
|
||||
className="bg-base-0 dark:bg-base-900 rounded-4xl"
|
||||
>
|
||||
<div>
|
||||
<div class=" flex justify-between dark:text-base-100 px-4 pt-3 pb-1">
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
let options: { id: string; key?: string; label: string; params: Record<string, any> }[] = [];
|
||||
let nameInput: HTMLInputElement;
|
||||
const actionClass =
|
||||
'flex size-7 shrink-0 items-center justify-center rounded-lg text-base-500 transition hover:bg-black/5 hover:text-base-700 dark:text-base-400 dark:hover:bg-white/5 dark:hover:text-base-200';
|
||||
'flex size-7 shrink-0 items-center justify-center rounded-lg text-base-500 transition hover:bg-base-1000/5 hover:text-base-700 dark:text-base-400 dark:hover:bg-base-0/5 dark:hover:text-base-200';
|
||||
const inputClass =
|
||||
'w-full min-w-0 bg-transparent py-1 text-[0.8125rem] outline-hidden placeholder:text-base-300 dark:placeholder:text-base-700 font-normal text-base-900 dark:text-base-100';
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
type="button"
|
||||
aria-pressed={display === mode}
|
||||
class="rounded-lg px-2 py-1 text-xs transition {display === mode
|
||||
? 'bg-base-100 text-base-900 dark:bg-base-800 dark:text-white'
|
||||
? 'bg-base-100 text-base-900 dark:bg-base-800 dark:text-base-0'
|
||||
: 'text-base-500 hover:text-base-700 dark:text-base-400 dark:hover:text-base-200'}"
|
||||
on:click={() => (display = mode as 'menu' | 'slider')}
|
||||
>
|
||||
@@ -335,7 +335,7 @@
|
||||
!options.length ||
|
||||
(display === 'slider' && options.length < 2) ||
|
||||
options.some((option) => !option.label.trim())}
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
>{$i18n.t('Apply')}</button
|
||||
>
|
||||
</div>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
|
||||
let pipelineDownloadUrl = '';
|
||||
const inputClass =
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
const actionButtonClass =
|
||||
'shrink-0 text-xs text-base-500 transition-colors hover:text-base-900 disabled:opacity-50 dark:text-base-500 dark:hover:text-white';
|
||||
'shrink-0 text-xs text-base-500 transition-colors hover:text-base-900 disabled:opacity-50 dark:text-base-500 dark:hover:text-base-0';
|
||||
const mutedMessageClass = 'text-xs text-base-400 dark:text-base-600';
|
||||
|
||||
const updateHandler = async () => {
|
||||
@@ -239,7 +239,7 @@
|
||||
updateHandler();
|
||||
}}
|
||||
>
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('settings.admin.pipelines.title')}
|
||||
</h2>
|
||||
|
||||
@@ -291,7 +291,7 @@
|
||||
>
|
||||
<div class="flex gap-2">
|
||||
<button
|
||||
class="h-7 flex-1 rounded-lg border border-dashed border-base-100/50 bg-transparent px-2 text-left text-xs text-base-500 transition-colors hover:bg-black/5 hover:text-base-900 dark:border-white/[0.04] dark:text-base-500 dark:hover:bg-white/5 dark:hover:text-white"
|
||||
class="h-7 flex-1 rounded-lg border border-dashed border-base-100/50 bg-transparent px-2 text-left text-xs text-base-500 transition-colors hover:bg-base-1000/5 hover:text-base-900 dark:border-base-0/[0.04] dark:text-base-500 dark:hover:bg-base-0/5 dark:hover:text-base-0"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
document.getElementById('pipelines-upload-input')?.click();
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
</script>
|
||||
|
||||
<form class="flex h-full flex-col justify-between text-sm" on:submit|preventDefault={save}>
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('settings.admin.subagents.title')}
|
||||
</h2>
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
min="1"
|
||||
step="1"
|
||||
aria-describedby="sa-concurrent-help"
|
||||
class="h-7 w-16 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="h-7 w-16 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
/>
|
||||
<span class="text-[0.6875rem] text-base-400 dark:text-base-600">
|
||||
{$i18n.t('simultaneous sub-agents')}
|
||||
@@ -161,7 +161,7 @@
|
||||
min="1"
|
||||
step="1"
|
||||
aria-describedby="sa-async-help"
|
||||
class="h-7 w-16 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="h-7 w-16 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
/>
|
||||
<span class="text-[0.6875rem] text-base-400 dark:text-base-600">
|
||||
{$i18n.t('background sub-agents')}
|
||||
@@ -185,7 +185,7 @@
|
||||
min="1"
|
||||
step="1"
|
||||
aria-describedby="sa-iterations-help"
|
||||
class="h-7 w-16 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="h-7 w-16 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
/>
|
||||
<span class="text-[0.6875rem] text-base-400 dark:text-base-600">
|
||||
{$i18n.t('tool loops per sub-agent')}
|
||||
@@ -211,7 +211,7 @@
|
||||
min="1"
|
||||
step="1"
|
||||
aria-describedby="sa-output-help"
|
||||
class="h-7 w-20 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="h-7 w-20 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
/>
|
||||
<span class="text-[0.6875rem] text-base-400 dark:text-base-600">chars</span>
|
||||
</div>
|
||||
@@ -229,7 +229,7 @@
|
||||
bind:value={systemPrompt}
|
||||
rows="4"
|
||||
placeholder={$i18n.t('You are a sub-agent...')}
|
||||
class="mt-1 w-full resize-y rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 font-mono text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="mt-1 w-full resize-y rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 font-mono text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
></textarea>
|
||||
<p class="mt-0.5 text-[0.6875rem] text-base-400 dark:text-base-600">
|
||||
{$i18n.t('settings.admin.subagents.systemPrompt.description')}
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
<Tooltip content={$i18n.t('settings.admin.videos.addConnection.label')}>
|
||||
<button
|
||||
aria-label={$i18n.t('settings.admin.videos.addConnection.label')}
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-black/5 hover:text-base-700 dark:text-base-600 dark:hover:bg-white/5 dark:hover:text-base-300"
|
||||
class="flex size-6 items-center justify-center rounded-lg text-base-400 transition-colors hover:bg-base-1000/5 hover:text-base-700 dark:text-base-600 dark:hover:bg-base-0/5 dark:hover:text-base-300"
|
||||
on:click={() => {
|
||||
showAddConnectionModal = true;
|
||||
}}
|
||||
|
||||
@@ -743,7 +743,7 @@
|
||||
</div>
|
||||
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
type="submit"
|
||||
disabled={loading}
|
||||
>
|
||||
|
||||
@@ -181,9 +181,9 @@
|
||||
'EXTERNAL_WEB_LOADER_API_KEY'
|
||||
];
|
||||
const inputClass =
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
const textareaClass =
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
|
||||
const submitHandler = async () => {
|
||||
// Convert domain filter string to array before sending
|
||||
@@ -297,7 +297,7 @@
|
||||
saveHandler();
|
||||
}}
|
||||
>
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-white mb-4">
|
||||
<h2 class="text-sm font-medium text-base-900 dark:text-base-0 mb-4">
|
||||
{$i18n.t('settings.admin.web.title')}
|
||||
</h2>
|
||||
|
||||
@@ -398,7 +398,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="perplexity-search-api-url"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Perplexity Search API URL')}
|
||||
bind:value={webConfig.PERPLEXITY_SEARCH_API_URL}
|
||||
@@ -440,7 +440,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="searxng-query-url"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Searxng Query URL')}
|
||||
bind:value={webConfig.SEARXNG_QUERY_URL}
|
||||
@@ -462,7 +462,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="searxng-language"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Searxng search language')}
|
||||
bind:value={webConfig.SEARXNG_LANGUAGE}
|
||||
@@ -487,7 +487,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="yacy-query-url"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Yacy URL (e.g. http://yacy.example.com:8090)')}
|
||||
bind:value={webConfig.YACY_QUERY_URL}
|
||||
@@ -509,7 +509,7 @@
|
||||
|
||||
<input
|
||||
id="yacy-username"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
placeholder={$i18n.t('Enter Yacy Username')}
|
||||
bind:value={webConfig.YACY_USERNAME}
|
||||
required
|
||||
@@ -554,7 +554,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="google-pse-engine-id"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Google PSE Engine Id')}
|
||||
bind:value={webConfig.GOOGLE_PSE_ENGINE_ID}
|
||||
@@ -603,7 +603,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="brave-context-tokens"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="number"
|
||||
min="1024"
|
||||
max="32768"
|
||||
@@ -711,7 +711,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="serphouse-domain"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder="google.com"
|
||||
bind:value={webConfig.SERPHOUSE_DOMAIN}
|
||||
@@ -839,7 +839,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="searchapi-engine"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter SearchApi Engine')}
|
||||
bind:value={webConfig.SEARCHAPI_ENGINE}
|
||||
@@ -874,7 +874,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="serpapi-engine"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter SerpApi Engine')}
|
||||
bind:value={webConfig.SERPAPI_ENGINE}
|
||||
@@ -898,7 +898,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="jina-api-base-url"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Jina API Base URL')}
|
||||
bind:value={webConfig.JINA_API_BASE_URL}
|
||||
@@ -934,7 +934,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="bing-search-v7-endpoint"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Bing Search V7 Endpoint')}
|
||||
bind:value={webConfig.BING_SEARCH_V7_ENDPOINT}
|
||||
@@ -1012,7 +1012,7 @@
|
||||
<input
|
||||
id="perplexity-model"
|
||||
list="perplexity-model-list"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
bind:value={webConfig.PERPLEXITY_MODEL}
|
||||
/>
|
||||
|
||||
@@ -1059,7 +1059,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="microsoft-web-iq-api-base-url"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Microsoft Web IQ API Base URL')}
|
||||
bind:value={webConfig.MICROSOFT_WEB_IQ_API_BASE_URL}
|
||||
@@ -1091,7 +1091,7 @@
|
||||
|
||||
<input
|
||||
id="microsoft-web-iq-language"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter language')}
|
||||
bind:value={webConfig.MICROSOFT_WEB_IQ_LANGUAGE}
|
||||
@@ -1140,7 +1140,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="firecrawl-api-base-url"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Firecrawl API Base URL')}
|
||||
bind:value={webConfig.FIRECRAWL_API_BASE_URL}
|
||||
@@ -1174,7 +1174,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="firecrawl-timeout"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="number"
|
||||
placeholder={$i18n.t('Enter Firecrawl Timeout')}
|
||||
bind:value={webConfig.FIRECRAWL_TIMEOUT}
|
||||
@@ -1198,7 +1198,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="external-web-search-url"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter External Web Search URL')}
|
||||
bind:value={webConfig.EXTERNAL_WEB_SEARCH_URL}
|
||||
@@ -1234,7 +1234,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="yandex-web-search-url"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Yandex Web Search URL')}
|
||||
bind:value={webConfig.YANDEX_WEB_SEARCH_URL}
|
||||
@@ -1332,7 +1332,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="openserp-base-url"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter OpenSERP Base URL')}
|
||||
bind:value={webConfig.OPENSERP_BASE_URL}
|
||||
@@ -1395,7 +1395,7 @@
|
||||
|
||||
<input
|
||||
id="web-search-result-count"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
placeholder={$i18n.t('settings.admin.web.searchResultCount.label')}
|
||||
bind:value={webConfig.WEB_SEARCH_RESULT_COUNT}
|
||||
required
|
||||
@@ -1417,7 +1417,7 @@
|
||||
|
||||
<input
|
||||
id="web-search-concurrent-requests"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
placeholder={$i18n.t('settings.admin.web.concurrentRequests.label')}
|
||||
bind:value={webConfig.WEB_SEARCH_CONCURRENT_REQUESTS}
|
||||
type="number"
|
||||
@@ -1569,7 +1569,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="playwright-ws-url"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Playwright WebSocket URL')}
|
||||
bind:value={webConfig.PLAYWRIGHT_WS_URL}
|
||||
@@ -1591,7 +1591,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="playwright-timeout"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
placeholder={$i18n.t('Enter Playwright Timeout')}
|
||||
bind:value={webConfig.PLAYWRIGHT_TIMEOUT}
|
||||
autocomplete="off"
|
||||
@@ -1614,7 +1614,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="web-loader-firecrawl-api-base-url"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Firecrawl API Base URL')}
|
||||
bind:value={webConfig.FIRECRAWL_API_BASE_URL}
|
||||
@@ -1650,7 +1650,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="tavily-extract-depth"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Tavily Extract Depth')}
|
||||
bind:value={webConfig.TAVILY_EXTRACT_DEPTH}
|
||||
@@ -1689,7 +1689,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="web-loader-microsoft-web-iq-api-base-url"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter Microsoft Web IQ API Base URL')}
|
||||
bind:value={webConfig.MICROSOFT_WEB_IQ_API_BASE_URL}
|
||||
@@ -1721,7 +1721,7 @@
|
||||
|
||||
<input
|
||||
id="web-loader-microsoft-web-iq-language"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter language')}
|
||||
bind:value={webConfig.MICROSOFT_WEB_IQ_LANGUAGE}
|
||||
@@ -1744,7 +1744,7 @@
|
||||
<div class="flex-1">
|
||||
<input
|
||||
id="external-web-loader-url"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
class="w-full rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:focus:border-blue-500"
|
||||
type="text"
|
||||
placeholder={$i18n.t('Enter External Web Loader URL')}
|
||||
bind:value={webConfig.EXTERNAL_WEB_LOADER_URL}
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
class="px-0.5 py-1 min-w-fit rounded-lg lg:flex-none flex items-center gap-1.5 text-right transition select-none {selectedTab ===
|
||||
'overview'
|
||||
? ''
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-white'}"
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-base-0'}"
|
||||
>
|
||||
<div class=" self-center">{$i18n.t('Overview')}</div>
|
||||
{#if formattedUserCount !== null}
|
||||
@@ -114,7 +114,7 @@
|
||||
class="px-0.5 py-1 min-w-fit rounded-lg lg:flex-none flex items-center gap-1.5 text-right transition select-none {selectedTab ===
|
||||
'groups'
|
||||
? ''
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-white'}"
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-base-0'}"
|
||||
>
|
||||
<div class=" self-center">{$i18n.t('Groups')}</div>
|
||||
{#if formattedGroupCount !== null}
|
||||
|
||||
@@ -211,7 +211,7 @@
|
||||
{/if}
|
||||
|
||||
<div>
|
||||
<div class="sticky top-0 z-10 bg-white dark:bg-base-900">
|
||||
<div class="sticky top-0 z-10 bg-base-0 dark:bg-base-900">
|
||||
<div class="flex h-8 flex-1 items-center w-full gap-2">
|
||||
<div class="flex min-w-0 flex-1 items-center">
|
||||
<div class="self-center ml-1 mr-3">
|
||||
|
||||
@@ -236,7 +236,7 @@
|
||||
class="px-0.5 py-1 max-w-fit w-fit rounded-lg shrink-0 whitespace-nowrap flex text-right transition {selectedTab ===
|
||||
'general'
|
||||
? ''
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-white'}"
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-base-0'}"
|
||||
on:click={() => {
|
||||
selectedTab = 'general';
|
||||
}}
|
||||
@@ -265,7 +265,7 @@
|
||||
class="px-0.5 py-1 max-w-fit w-fit rounded-lg shrink-0 whitespace-nowrap flex text-right transition {selectedTab ===
|
||||
'permissions'
|
||||
? ''
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-white'}"
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-base-0'}"
|
||||
on:click={() => {
|
||||
selectedTab = 'permissions';
|
||||
}}
|
||||
@@ -283,7 +283,7 @@
|
||||
class="px-0.5 py-1 max-w-fit w-fit rounded-lg shrink-0 whitespace-nowrap flex text-right transition {selectedTab ===
|
||||
'users'
|
||||
? ''
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-white'}"
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-base-0'}"
|
||||
on:click={() => {
|
||||
selectedTab = 'users';
|
||||
}}
|
||||
@@ -301,7 +301,7 @@
|
||||
class="px-0.5 py-1 max-w-fit w-fit rounded-lg shrink-0 whitespace-nowrap flex text-right transition {selectedTab ===
|
||||
'preview'
|
||||
? ''
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-white'}"
|
||||
: ' text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-base-0'}"
|
||||
on:click={() => {
|
||||
selectedTab = 'preview';
|
||||
}}
|
||||
@@ -416,7 +416,7 @@
|
||||
</div>
|
||||
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
type="submit"
|
||||
disabled={loading || (custom && !name?.trim())}
|
||||
>
|
||||
@@ -440,8 +440,8 @@
|
||||
<button
|
||||
class="px-0.5 pb-1.5 min-w-fit flex text-right transition border-b-2 {selectedTab ===
|
||||
'display'
|
||||
? ' dark:border-white'
|
||||
: 'border-transparent text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-white'}"
|
||||
? ' dark:border-base-0'
|
||||
: 'border-transparent text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-base-0'}"
|
||||
on:click={() => {
|
||||
selectedTab = 'display';
|
||||
}}
|
||||
@@ -455,8 +455,8 @@
|
||||
<button
|
||||
class="px-0.5 pb-1.5 min-w-fit flex text-right transition border-b-2 {selectedTab ===
|
||||
'permissions'
|
||||
? ' dark:border-white'
|
||||
: 'border-transparent text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-white'}"
|
||||
? ' dark:border-base-0'
|
||||
: 'border-transparent text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-base-0'}"
|
||||
on:click={() => {
|
||||
selectedTab = 'permissions';
|
||||
}}
|
||||
@@ -470,8 +470,8 @@
|
||||
<button
|
||||
class="px-0.5 pb-1.5 min-w-fit flex text-right transition border-b-2 {selectedTab ===
|
||||
'users'
|
||||
? ' dark:border-white'
|
||||
: ' border-transparent text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-white'}"
|
||||
? ' dark:border-base-0'
|
||||
: ' border-transparent text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-base-0'}"
|
||||
on:click={() => {
|
||||
selectedTab = 'users';
|
||||
}}
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<tbody>
|
||||
{#each result.items as member (member.id)}
|
||||
<tr class="text-xs">
|
||||
<td class="px-3 py-1 font-normal text-base-900 dark:text-white">
|
||||
<td class="px-3 py-1 font-normal text-base-900 dark:text-base-0">
|
||||
<Tooltip content={member.email} placement="top-start">
|
||||
<div class="flex min-w-0 items-center gap-2">
|
||||
<img
|
||||
|
||||
@@ -489,7 +489,7 @@
|
||||
/>
|
||||
</div>
|
||||
</td>
|
||||
<td class="px-3 py-1 font-normal text-base-900 dark:text-white max-w-48">
|
||||
<td class="px-3 py-1 font-normal text-base-900 dark:text-base-0 max-w-48">
|
||||
<Tooltip content={user.email} placement="top-start">
|
||||
<div class="flex items-center gap-2">
|
||||
<img
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
<Spinner className="size-5" />
|
||||
</div>
|
||||
{:else}
|
||||
<div class="sticky top-0 z-10 bg-white dark:bg-base-900">
|
||||
<div class="sticky top-0 z-10 bg-base-0 dark:bg-base-900">
|
||||
<div class="flex h-8 flex-1 items-center w-full gap-2">
|
||||
<div class="flex min-w-0 flex-1 items-center">
|
||||
<div class="self-center ml-1 mr-3">
|
||||
@@ -376,7 +376,7 @@
|
||||
<tbody class="">
|
||||
{#each users as user (user.id)}
|
||||
<tr class="dark:border-base-850 text-xs">
|
||||
<td class="px-3 py-1 font-normal text-base-900 dark:text-white max-w-48">
|
||||
<td class="px-3 py-1 font-normal text-base-900 dark:text-base-0 max-w-48">
|
||||
<div class="flex items-center gap-2">
|
||||
<ProfilePreview {user} side="right" align="center" sideOffset={6}>
|
||||
<img
|
||||
@@ -444,7 +444,7 @@
|
||||
{#if $config.features.enable_admin_chat_access && user.role !== 'admin'}
|
||||
<Tooltip content={$i18n.t('Chats')}>
|
||||
<button
|
||||
class="self-center w-fit p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg"
|
||||
class="self-center w-fit p-1.5 hover:bg-base-1000/5 dark:hover:bg-base-0/5 rounded-lg"
|
||||
aria-label={$i18n.t('Chats')}
|
||||
on:click={async () => {
|
||||
showUserChatsModal = !showUserChatsModal;
|
||||
@@ -459,7 +459,7 @@
|
||||
{#if user.role !== 'admin'}
|
||||
<Tooltip content={$i18n.t('Preview Access')}>
|
||||
<button
|
||||
class="self-center w-fit p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg"
|
||||
class="self-center w-fit p-1.5 hover:bg-base-1000/5 dark:hover:bg-base-0/5 rounded-lg"
|
||||
aria-label={$i18n.t('Preview Access')}
|
||||
on:click={() => {
|
||||
selectedUser = user;
|
||||
@@ -473,7 +473,7 @@
|
||||
|
||||
<Tooltip content={$i18n.t('Edit User')}>
|
||||
<button
|
||||
class="self-center w-fit p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg"
|
||||
class="self-center w-fit p-1.5 hover:bg-base-1000/5 dark:hover:bg-base-0/5 rounded-lg"
|
||||
aria-label={$i18n.t('Edit User')}
|
||||
on:click={async () => {
|
||||
showEditUserModal = !showEditUserModal;
|
||||
@@ -487,7 +487,7 @@
|
||||
{#if user.role !== 'admin'}
|
||||
<Tooltip content={$i18n.t('Delete User')}>
|
||||
<button
|
||||
class="self-center w-fit p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg"
|
||||
class="self-center w-fit p-1.5 hover:bg-base-1000/5 dark:hover:bg-base-0/5 rounded-lg"
|
||||
aria-label={$i18n.t('Delete User')}
|
||||
on:click={async () => {
|
||||
showDeleteConfirmDialog = true;
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
<button
|
||||
class="min-w-fit p-1.5 {tab === ''
|
||||
? ''
|
||||
: 'text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-white'} transition"
|
||||
: 'text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-base-0'} transition"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
tab = '';
|
||||
@@ -180,7 +180,7 @@
|
||||
<button
|
||||
class="min-w-fit p-1.5 {tab === 'import'
|
||||
? ''
|
||||
: 'text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-white'} transition"
|
||||
: 'text-base-300 dark:text-base-600 hover:text-base-700 dark:hover:text-base-0'} transition"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
tab = 'import';
|
||||
@@ -300,7 +300,7 @@
|
||||
|
||||
<div class="flex justify-end pt-3 text-sm font-normal">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
type="submit"
|
||||
disabled={loading}
|
||||
>
|
||||
|
||||
@@ -339,7 +339,7 @@
|
||||
}}>{$i18n.t('Sign out all devices')}</button
|
||||
>
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
type="submit"
|
||||
>
|
||||
{$i18n.t('Save')}
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
{#if challenge.next_step === 'enroll'}
|
||||
{#if setup}
|
||||
<img
|
||||
class="mx-auto size-40 bg-white p-1"
|
||||
class="mx-auto size-40 bg-base-0 p-1"
|
||||
src={setup.qr_code}
|
||||
alt={$i18n.t('Authenticator setup QR code')}
|
||||
/>
|
||||
@@ -106,7 +106,7 @@
|
||||
<ChevronRight className="size-2.5 shrink-0 transition-transform group-open:rotate-90" />
|
||||
</summary>
|
||||
<code
|
||||
class="mt-2 block break-all rounded-md bg-base-50 px-2 py-1.5 font-mono text-base-700 select-all dark:bg-white/[0.03] dark:text-base-300"
|
||||
class="mt-2 block break-all rounded-md bg-base-50 px-2 py-1.5 font-mono text-base-700 select-all dark:bg-base-0/[0.03] dark:text-base-300"
|
||||
>{setup.manual_key}</code
|
||||
>
|
||||
</details>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
</p>
|
||||
</div>
|
||||
<ul
|
||||
class="rounded-md border border-base-100 bg-base-50/50 px-3 py-2 font-mono text-[0.6875rem] leading-5 text-base-600 dark:border-white/[0.06] dark:bg-white/[0.02] dark:text-base-400"
|
||||
class="rounded-md border border-base-100 bg-base-50/50 px-3 py-2 font-mono text-[0.6875rem] leading-5 text-base-600 dark:border-base-0/[0.06] dark:bg-base-0/[0.02] dark:text-base-400"
|
||||
>
|
||||
{#each codes as code}<li class="break-all select-all">{code}</li>{/each}
|
||||
</ul>
|
||||
|
||||
@@ -25,13 +25,13 @@
|
||||
|
||||
// Same soft round buttons as the folder view's top bar.
|
||||
const iconButton =
|
||||
'relative flex size-6.5 shrink-0 items-center justify-center rounded-full border border-base-100 bg-base-50/60 text-base-500 transition-colors hover:bg-base-100 hover:text-base-900 aria-expanded:bg-base-100 aria-expanded:text-base-900 aria-disabled:opacity-60 dark:border-base-850 dark:bg-base-850/50 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-white dark:aria-expanded:bg-base-850 dark:aria-expanded:text-white';
|
||||
'relative flex size-6.5 shrink-0 items-center justify-center rounded-full border border-base-100 bg-base-50/60 text-base-500 transition-colors hover:bg-base-100 hover:text-base-900 aria-expanded:bg-base-100 aria-expanded:text-base-900 aria-disabled:opacity-60 dark:border-base-850 dark:bg-base-850/50 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-base-0 dark:aria-expanded:bg-base-850 dark:aria-expanded:text-base-0';
|
||||
</script>
|
||||
|
||||
<div class="ml-auto flex shrink-0 items-center gap-1">
|
||||
{#if dirty}
|
||||
<button
|
||||
class="mr-0.5 flex h-6.5 items-center gap-1.5 rounded-full bg-base-900 px-3 text-xs text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="mr-0.5 flex h-6.5 items-center gap-1.5 rounded-full bg-base-900 px-3 text-xs text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
type="button"
|
||||
disabled={saving}
|
||||
on:click={saveHandler}
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
|
||||
const menuLabel = 'px-2 pt-1.5 pb-0.5 text-xs text-base-400 dark:text-base-500';
|
||||
const iconButton =
|
||||
'relative flex size-6.5 shrink-0 items-center justify-center rounded-full border border-base-100 bg-base-50/60 text-base-500 transition-colors hover:bg-base-100 hover:text-base-900 aria-expanded:bg-base-100 aria-expanded:text-base-900 dark:border-base-850 dark:bg-base-850/50 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-white dark:aria-expanded:bg-base-850 dark:aria-expanded:text-white';
|
||||
'relative flex size-6.5 shrink-0 items-center justify-center rounded-full border border-base-100 bg-base-50/60 text-base-500 transition-colors hover:bg-base-100 hover:text-base-900 aria-expanded:bg-base-100 aria-expanded:text-base-900 dark:border-base-850 dark:bg-base-850/50 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-base-0 dark:aria-expanded:bg-base-850 dark:aria-expanded:text-base-0';
|
||||
|
||||
const handleSearchInput = () => {
|
||||
if (!loaded) return;
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<div
|
||||
slot="content"
|
||||
class="rounded-xl shadow-lg border border-base-200 dark:border-base-800 flex flex-col bg-white dark:bg-base-850 w-72 p-0.5"
|
||||
class="rounded-xl shadow-lg border border-base-200 dark:border-base-800 flex flex-col bg-base-0 dark:bg-base-850 w-72 p-0.5"
|
||||
>
|
||||
<div class="flex items-center gap-1.5 px-2 py-1">
|
||||
<Search className="size-3.5" strokeWidth="2.5" />
|
||||
@@ -108,7 +108,7 @@
|
||||
onChange();
|
||||
}}
|
||||
>
|
||||
<div class="flex text-black dark:text-base-100 line-clamp-1">
|
||||
<div class="flex text-base-1000 dark:text-base-100 line-clamp-1">
|
||||
<img
|
||||
src={`${WEBUI_API_BASE_URL}/models/model/profile/image?id=${encodeURIComponent(model.id)}`}
|
||||
alt={model?.name ?? model.id}
|
||||
|
||||
@@ -193,7 +193,7 @@
|
||||
|
||||
<div
|
||||
slot="content"
|
||||
class="rounded-xl shadow-lg border border-base-200 dark:border-base-800 flex flex-col bg-white dark:bg-base-850 w-48 p-0.5"
|
||||
class="rounded-xl shadow-lg border border-base-200 dark:border-base-800 flex flex-col bg-base-0 dark:bg-base-850 w-48 p-0.5"
|
||||
>
|
||||
<div class="px-2 text-[0.6875rem] text-base-500 pt-0.5">
|
||||
{$i18n.t('Schedule')}
|
||||
@@ -291,7 +291,7 @@
|
||||
<button
|
||||
type="button"
|
||||
class="flex-1 py-1 text-xs rounded-xl transition {selectedDays.includes(d.key)
|
||||
? 'text-black dark:text-base-100'
|
||||
? 'text-base-1000 dark:text-base-100'
|
||||
: 'text-base-400 dark:text-base-500 hover:text-base-700 dark:hover:text-base-200'}"
|
||||
on:click={() => {
|
||||
if (selectedDays.includes(d.key)) {
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
title={terminalLabel}
|
||||
class={plain
|
||||
? 'flex w-full min-w-0 items-center text-left text-xs font-normal leading-6 text-base-700 dark:text-base-300'
|
||||
: `flex items-center gap-1.5 px-2.5 py-1.5 rounded-2xl text-xs transition ${terminalServerId ? 'text-black dark:text-base-100' : 'text-base-600 dark:text-base-400'} hover:text-base-900 dark:hover:text-base-100`}
|
||||
: `flex items-center gap-1.5 px-2.5 py-1.5 rounded-2xl text-xs transition ${terminalServerId ? 'text-base-1000 dark:text-base-100' : 'text-base-600 dark:text-base-400'} hover:text-base-900 dark:hover:text-base-100`}
|
||||
>
|
||||
{#if plain}
|
||||
<span class="truncate {terminalServerId ? '' : 'text-base-400 dark:text-base-500'}"
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
<div
|
||||
slot="content"
|
||||
class="rounded-xl shadow-lg border border-base-200 dark:border-base-800 flex flex-col bg-white dark:bg-base-850 min-w-56 max-w-56 p-0.5"
|
||||
class="rounded-xl shadow-lg border border-base-200 dark:border-base-800 flex flex-col bg-base-0 dark:bg-base-850 min-w-56 max-w-56 p-0.5"
|
||||
>
|
||||
<div class="px-2 text-[0.6875rem] text-base-500 py-0.5">
|
||||
{$i18n.t('Terminal')}
|
||||
|
||||
@@ -353,7 +353,7 @@
|
||||
|
||||
<div class="ml-auto flex items-center gap-1">
|
||||
<button
|
||||
class="hidden sm:inline text-xs px-2 py-1 rounded-lg hover:bg-base-50 dark:hover:bg-base-850 transition text-base-500 hover:text-base-700 dark:hover:text-white"
|
||||
class="hidden sm:inline text-xs px-2 py-1 rounded-lg hover:bg-base-50 dark:hover:bg-base-850 transition text-base-500 hover:text-base-700 dark:hover:text-base-0"
|
||||
on:click={goToToday}
|
||||
>
|
||||
{$i18n.t('Today')}
|
||||
@@ -367,8 +367,8 @@
|
||||
{ value: 'month', label: $i18n.t('Month') }
|
||||
]}
|
||||
onChange={() => handleNavigate()}
|
||||
triggerClass="relative flex items-center gap-1 px-2 py-1 rounded-lg text-xs text-base-500 transition hover:bg-base-50 hover:text-base-700 dark:hover:bg-base-850 dark:hover:text-white"
|
||||
contentClass="rounded-xl w-28 p-1 border border-base-100 dark:border-base-800 bg-white dark:bg-base-850 dark:text-white shadow-lg"
|
||||
triggerClass="relative flex items-center gap-1 px-2 py-1 rounded-lg text-xs text-base-500 transition hover:bg-base-50 hover:text-base-700 dark:hover:bg-base-850 dark:hover:text-base-0"
|
||||
contentClass="rounded-xl w-28 p-1 border border-base-100 dark:border-base-800 bg-base-0 dark:bg-base-850 dark:text-base-0 shadow-lg"
|
||||
align="end"
|
||||
>
|
||||
<svelte:fragment slot="trigger" let:selectedLabel>
|
||||
|
||||
@@ -349,7 +349,7 @@
|
||||
<div class="flex items-center gap-0.5 flex-1 min-w-0">
|
||||
{#if event && !event.meta?.automation_id}
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal text-base-600 transition hover:bg-base-100 hover:text-base-900 disabled:opacity-60 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal text-base-600 transition hover:bg-base-100 hover:text-base-900 disabled:opacity-60 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-base-0"
|
||||
type="button"
|
||||
on:click={() => (showDeleteConfirmDialog = true)}
|
||||
disabled={loading}
|
||||
@@ -361,14 +361,14 @@
|
||||
|
||||
<div class="flex items-center gap-2 shrink-0">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal text-base-600 transition hover:bg-base-100 hover:text-base-900 disabled:opacity-60 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal text-base-600 transition hover:bg-base-100 hover:text-base-900 disabled:opacity-60 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-base-0"
|
||||
type="button"
|
||||
on:click={close}
|
||||
>
|
||||
{$i18n.t('Cancel')}
|
||||
</button>
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
on:click={submitHandler}
|
||||
type="button"
|
||||
disabled={loading}
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="flex-1 grid grid-cols-7 auto-rows-fr min-h-0 rounded-2xl overflow-hidden bg-white dark:bg-base-900 border border-base-100/30 dark:border-base-850/30"
|
||||
class="flex-1 grid grid-cols-7 auto-rows-fr min-h-0 rounded-2xl overflow-hidden bg-base-0 dark:bg-base-900 border border-base-100/30 dark:border-base-850/30"
|
||||
>
|
||||
{#each monthDays as day, i}
|
||||
{@const dayKey = new Date(day.getFullYear(), day.getMonth(), day.getDate())
|
||||
@@ -241,7 +241,7 @@
|
||||
{:else if view === 'week'}
|
||||
<div class="flex-1 flex flex-col min-h-0 px-3 pb-3">
|
||||
<div
|
||||
class="flex-1 rounded-2xl bg-white dark:bg-base-900 border border-base-100/30 dark:border-base-850/30 overflow-hidden relative"
|
||||
class="flex-1 rounded-2xl bg-base-0 dark:bg-base-900 border border-base-100/30 dark:border-base-850/30 overflow-hidden relative"
|
||||
>
|
||||
<div class="absolute inset-0 overflow-x-auto flex flex-col">
|
||||
<div class="min-w-[43.75rem] flex flex-col flex-1">
|
||||
@@ -332,7 +332,7 @@
|
||||
{:else}
|
||||
<div class="flex-1 flex flex-col min-h-0 px-3 pb-3">
|
||||
<div
|
||||
class="flex-1 rounded-2xl overflow-hidden bg-white dark:bg-base-900 border border-base-100/30 dark:border-base-850/30 overflow-y-auto"
|
||||
class="flex-1 rounded-2xl overflow-hidden bg-base-0 dark:bg-base-900 border border-base-100/30 dark:border-base-850/30 overflow-y-auto"
|
||||
>
|
||||
{#each hours as hour}
|
||||
{@const hourEvents = getEventsForHour(currentDate, hour, filteredEvents)}
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
{#each PRESET_COLORS as c}
|
||||
<button
|
||||
class="size-6 rounded-full transition-all border-2 {color === c
|
||||
? 'border-base-800 dark:border-white scale-110'
|
||||
? 'border-base-800 dark:border-base-0 scale-110'
|
||||
: 'border-transparent hover:scale-110'}"
|
||||
style="background-color: {c};"
|
||||
on:click={() => (color = c)}
|
||||
@@ -113,7 +113,7 @@
|
||||
class="size-6 rounded-full overflow-hidden cursor-pointer border-2 transition-all {!PRESET_COLORS.includes(
|
||||
color
|
||||
)
|
||||
? 'border-base-800 dark:border-white scale-110'
|
||||
? 'border-base-800 dark:border-base-0 scale-110'
|
||||
: 'border-transparent hover:scale-110'}"
|
||||
style="background-color: {color};"
|
||||
title={$i18n.t('Custom color')}
|
||||
@@ -132,14 +132,14 @@
|
||||
<!-- Bottom toolbar -->
|
||||
<div class="flex items-center justify-end px-4 pb-3.5 pt-2 gap-2">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal text-base-600 transition hover:bg-base-100 hover:text-base-900 disabled:opacity-60 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal text-base-600 transition hover:bg-base-100 hover:text-base-900 disabled:opacity-60 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-base-0"
|
||||
type="button"
|
||||
on:click={() => (show = false)}
|
||||
>
|
||||
{$i18n.t('Cancel')}
|
||||
</button>
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
on:click={submitHandler}
|
||||
type="button"
|
||||
disabled={loading}
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
</p>{/if}
|
||||
{#if error}<p role="alert" class="text-red-600">{error}</p>{/if}
|
||||
{#if reply?.type === 'download'}<button
|
||||
class="focus-ring flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="focus-ring flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
on:click={download}>Download {reply.filename}</button
|
||||
>{/if}
|
||||
{#if reply?.actions?.length}
|
||||
@@ -78,7 +78,7 @@
|
||||
href={item.url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="focus-ring inline-flex min-h-7 max-w-full items-center rounded-lg border border-base-200 px-2.5 text-xs hover:bg-base-100 dark:border-white/8 dark:hover:bg-base-850"
|
||||
class="focus-ring inline-flex min-h-7 max-w-full items-center rounded-lg border border-base-200 px-2.5 text-xs hover:bg-base-100 dark:border-base-0/8 dark:hover:bg-base-850"
|
||||
>{item.label}</a
|
||||
>
|
||||
{:else if item.action_id}
|
||||
@@ -87,7 +87,7 @@
|
||||
disabled={busy}
|
||||
class="focus-ring flex h-7 max-w-full shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal transition disabled:cursor-not-allowed disabled:opacity-60 {index ===
|
||||
0
|
||||
? 'bg-base-900 text-white hover:bg-black dark:bg-base-100 dark:text-base-900 dark:hover:bg-white'
|
||||
? 'bg-base-900 text-base-0 hover:bg-base-1000 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0'
|
||||
: 'hover:bg-base-100 dark:hover:bg-base-850'}"
|
||||
on:click={() => item.action_id && action(item.action_id)}>{item.label}</button
|
||||
>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</script>
|
||||
|
||||
<div
|
||||
class="app-embed @container relative w-full max-w-[520px] min-w-0 rounded-lg border border-base-200 bg-base-50/70 px-4.5 py-3 text-xs wrap-anywhere dark:border-white/8 dark:bg-white/[0.035] [&_p]:m-0 [&_p+p]:mt-1.5 [&_pre]:whitespace-pre-wrap [&_pre]:wrap-anywhere [&_h1]:my-1.5 [&_h1]:text-xs [&_h2]:my-1.5 [&_h2]:text-xs [&_h3]:my-1.5 [&_h3]:text-xs [&_h4]:my-1.5 [&_h4]:text-xs [&_h5]:my-1.5 [&_h5]:text-xs [&_h6]:my-1.5 [&_h6]:text-xs"
|
||||
class="app-embed @container relative w-full max-w-[520px] min-w-0 rounded-lg border border-base-200 bg-base-50/70 px-4.5 py-3 text-xs wrap-anywhere dark:border-base-0/8 dark:bg-base-0/[0.035] [&_p]:m-0 [&_p+p]:mt-1.5 [&_pre]:whitespace-pre-wrap [&_pre]:wrap-anywhere [&_h1]:my-1.5 [&_h1]:text-xs [&_h2]:my-1.5 [&_h2]:text-xs [&_h3]:my-1.5 [&_h3]:text-xs [&_h4]:my-1.5 [&_h4]:text-xs [&_h5]:my-1.5 [&_h5]:text-xs [&_h6]:my-1.5 [&_h6]:text-xs"
|
||||
>
|
||||
{#if accent}
|
||||
<svg class="pointer-events-none absolute inset-0 size-full rounded-lg" aria-hidden="true">
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
|
||||
<div class="flex justify-end pt-3 text-sm font-normal gap-1.5">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
type="submit"
|
||||
disabled={loading || !(userIds.length || groupIds.length || appIds.length)}
|
||||
>
|
||||
|
||||
@@ -228,7 +228,7 @@
|
||||
<div class="w-full">
|
||||
{#each filteredApps as app (app.id)}
|
||||
<div class="text-xs flex items-center justify-between">
|
||||
<div class="px-2 py-1.5 font-normal text-base-900 dark:text-white flex-1 min-w-0">
|
||||
<div class="px-2 py-1.5 font-normal text-base-900 dark:text-base-0 flex-1 min-w-0">
|
||||
<div class="flex items-center gap-2">
|
||||
<div
|
||||
class="size-6 rounded-lg bg-base-100 dark:bg-base-850 flex items-center justify-center shrink-0"
|
||||
@@ -267,7 +267,7 @@
|
||||
{/each}
|
||||
{#each users as user, userIdx (user.id)}
|
||||
<div class=" dark:border-base-850 text-xs flex items-center justify-between">
|
||||
<div class="px-2 py-1.5 font-normal text-base-900 dark:text-white flex-1">
|
||||
<div class="px-2 py-1.5 font-normal text-base-900 dark:text-base-0 flex-1">
|
||||
<div class="flex items-center gap-2">
|
||||
<ProfilePreview {user} side="right" align="center" sideOffset={6}>
|
||||
<img
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
</h2>
|
||||
<button
|
||||
type="button"
|
||||
class="h-7 rounded-lg bg-base-100 px-2.5 text-xs font-normal text-base-800 transition hover:bg-base-100/70 dark:bg-base-850 dark:text-white dark:hover:bg-base-850/60"
|
||||
class="h-7 rounded-lg bg-base-100 px-2.5 text-xs font-normal text-base-800 transition hover:bg-base-100/70 dark:bg-base-850 dark:text-base-0 dark:hover:bg-base-850/60"
|
||||
on:click={leave}>{$i18n.t('Return to conversation')}</button
|
||||
>
|
||||
</div>
|
||||
@@ -242,7 +242,7 @@
|
||||
>
|
||||
<Skeleton size="xs" />
|
||||
<div>
|
||||
<span class="font-normal text-black dark:text-white"
|
||||
<span class="font-normal text-base-1000 dark:text-base-0"
|
||||
>{typingMembers.map((member) => member.name).join(', ')}</span
|
||||
>
|
||||
{typingMembers.length === 1 ? $i18n.t('is typing...') : $i18n.t('are typing...')}
|
||||
@@ -251,7 +251,7 @@
|
||||
{/if}
|
||||
<div
|
||||
id="message-input-container"
|
||||
class="flex-1 flex flex-col relative w-full shadow-sm rounded-2xl border border-base-100/60 dark:border-base-800/50 hover:border-base-100 focus-within:border-base-100 hover:dark:border-base-800 focus-within:dark:border-base-800 transition bg-white dark:bg-base-400/5 dark:text-base-100"
|
||||
class="flex-1 flex flex-col relative w-full shadow-sm rounded-2xl border border-base-100/60 dark:border-base-800/50 hover:border-base-100 focus-within:border-base-100 hover:dark:border-base-800 focus-within:dark:border-base-800 transition bg-base-0 dark:bg-base-400/5 dark:text-base-100"
|
||||
dir={$settings?.chatDirection === 'RTL'
|
||||
? 'rtl'
|
||||
: $settings?.chatDirection === 'LTR'
|
||||
@@ -302,8 +302,8 @@
|
||||
id="send-message-button"
|
||||
aria-label={$i18n.t('Send message')}
|
||||
class="{!(state.status !== 'active' || oversized || !draft.trim())
|
||||
? 'bg-black text-white hover:bg-base-900 dark:bg-white dark:text-black dark:hover:bg-base-100 '
|
||||
: 'text-white bg-base-200 dark:text-base-900 dark:bg-base-700 disabled'} transition rounded-full size-7 flex items-center justify-center self-center"
|
||||
? 'bg-base-1000 text-base-0 hover:bg-base-900 dark:bg-base-0 dark:text-base-1000 dark:hover:bg-base-100 '
|
||||
: 'text-base-0 bg-base-200 dark:text-base-900 dark:bg-base-700 disabled'} transition rounded-full size-7 flex items-center justify-center self-center"
|
||||
type="submit"
|
||||
disabled={state.status !== 'active' || oversized || !draft.trim()}
|
||||
>
|
||||
@@ -341,7 +341,7 @@
|
||||
{#each state.members as member (member.identity.participation)}
|
||||
<details class="group text-xs">
|
||||
<summary
|
||||
class="flex cursor-pointer list-none items-center gap-2 px-2 py-1.5 font-normal text-base-900 dark:text-white [&::-webkit-details-marker]:hidden"
|
||||
class="flex cursor-pointer list-none items-center gap-2 px-2 py-1.5 font-normal text-base-900 dark:text-base-0 [&::-webkit-details-marker]:hidden"
|
||||
>
|
||||
<ProfileImage
|
||||
src={`${WEBUI_API_BASE_URL}/users/${member.identity.user}/profile/image`}
|
||||
@@ -370,7 +370,7 @@
|
||||
{#if member.identity.participation !== state.self}
|
||||
<button
|
||||
type="button"
|
||||
class="h-7 rounded-lg bg-base-100 px-2.5 text-xs font-normal text-base-800 transition hover:bg-base-100/70 dark:bg-base-850 dark:text-white dark:hover:bg-base-850/60"
|
||||
class="h-7 rounded-lg bg-base-100 px-2.5 text-xs font-normal text-base-800 transition hover:bg-base-100/70 dark:bg-base-850 dark:text-base-0 dark:hover:bg-base-850/60"
|
||||
on:click={() => (verified = new Set([...verified, member.fingerprint]))}
|
||||
>{$i18n.t('Codes match')}</button
|
||||
>
|
||||
@@ -381,7 +381,7 @@
|
||||
<div class="flex justify-end px-2 pt-2">
|
||||
<button
|
||||
type="button"
|
||||
class="h-7 rounded-lg bg-base-100 px-2.5 text-xs font-normal text-base-800 transition hover:bg-base-100/70 disabled:opacity-60 dark:bg-base-850 dark:text-white dark:hover:bg-base-850/60"
|
||||
class="h-7 rounded-lg bg-base-100 px-2.5 text-xs font-normal text-base-800 transition hover:bg-base-100/70 disabled:opacity-60 dark:bg-base-850 dark:text-base-0 dark:hover:bg-base-850/60"
|
||||
disabled={state.status !== 'active'}
|
||||
on:click={() => conversation?.updateKeys()}>{$i18n.t('Refresh encryption keys')}</button
|
||||
>
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
|
||||
export let replyToMessage: any = null;
|
||||
|
||||
export let typingUsersClassName = 'from-white dark:from-base-900';
|
||||
export let typingUsersClassName = 'from-base-0 dark:from-base-900';
|
||||
|
||||
let loaded = false;
|
||||
let draggedOver = false;
|
||||
@@ -913,7 +913,7 @@
|
||||
>
|
||||
<button
|
||||
aria-label={$i18n.t('Scroll to bottom')}
|
||||
class=" bg-white border border-base-100 dark:border-none dark:bg-white/20 p-1.5 rounded-full pointer-events-auto"
|
||||
class=" bg-base-0 border border-base-100 dark:border-none dark:bg-base-0/20 p-1.5 rounded-full pointer-events-auto"
|
||||
on:click={() => {
|
||||
scrollEnd = true;
|
||||
scrollToBottom();
|
||||
@@ -944,7 +944,7 @@
|
||||
<Skeleton size="xs" />
|
||||
|
||||
<div>
|
||||
<span class=" font-normal text-black dark:text-white">
|
||||
<span class=" font-normal text-base-1000 dark:text-base-0">
|
||||
{typingUsers.map((user) => user.name).join(', ')}
|
||||
</span>
|
||||
{$i18n.t('is typing...')}
|
||||
@@ -993,7 +993,7 @@
|
||||
>
|
||||
{#if messageQueue.length > 0}
|
||||
<div
|
||||
class="mb-1 mx-2 py-0.5 px-1.5 rounded-2xl bg-white dark:bg-base-900/60 border border-base-100 dark:border-base-800/50 overflow-x-hidden overflow-y-auto max-h-[25vh]"
|
||||
class="mb-1 mx-2 py-0.5 px-1.5 rounded-2xl bg-base-0 dark:bg-base-900/60 border border-base-100 dark:border-base-800/50 overflow-x-hidden overflow-y-auto max-h-[25vh]"
|
||||
>
|
||||
{#each messageQueue as entry (entry.id)}
|
||||
<QueuedMessageItem
|
||||
@@ -1060,7 +1060,7 @@
|
||||
</div>
|
||||
<div class=" absolute -top-1 -right-1">
|
||||
<button
|
||||
class=" bg-white text-black border border-white rounded-full hover-reveal transition"
|
||||
class=" bg-base-0 text-base-1000 border border-base-0 rounded-full hover-reveal transition"
|
||||
type="button"
|
||||
aria-label={$i18n.t('Remove file')}
|
||||
on:click={() => {
|
||||
@@ -1249,7 +1249,7 @@
|
||||
>
|
||||
<button
|
||||
id="input-menu-button"
|
||||
class="bg-transparent hover:bg-base-100/40 text-base-700 dark:text-white dark:hover:bg-base-800/40 rounded-full size-[1.875rem] flex justify-center items-center outline-hidden focus:outline-hidden shrink-0"
|
||||
class="bg-transparent hover:bg-base-100/40 text-base-700 dark:text-base-0 dark:hover:bg-base-800/40 rounded-full size-[1.875rem] flex justify-center items-center outline-hidden focus:outline-hidden shrink-0"
|
||||
type="button"
|
||||
aria-label={$i18n.t('More')}
|
||||
>
|
||||
@@ -1306,7 +1306,7 @@
|
||||
<Tooltip content={$i18n.t('Stop')}>
|
||||
<button
|
||||
aria-label={$i18n.t('Stop')}
|
||||
class="bg-white hover:bg-base-100 text-base-800 dark:bg-base-700 dark:text-white dark:hover:bg-base-800 transition rounded-full p-[0.3125rem]"
|
||||
class="bg-base-0 hover:bg-base-100 text-base-800 dark:bg-base-700 dark:text-base-0 dark:hover:bg-base-800 transition rounded-full p-[0.3125rem]"
|
||||
on:click={() => {
|
||||
onStop();
|
||||
}}
|
||||
@@ -1333,8 +1333,8 @@
|
||||
id="send-message-button"
|
||||
aria-label={$i18n.t('Send message')}
|
||||
class="{content !== '' || files.length !== 0
|
||||
? 'bg-black text-white hover:bg-base-900 dark:bg-white dark:text-black dark:hover:bg-base-100 '
|
||||
: 'text-white bg-base-200 dark:text-base-900 dark:bg-base-700 disabled'} transition rounded-full p-[0.3125rem] self-center"
|
||||
? 'bg-base-1000 text-base-0 hover:bg-base-900 dark:bg-base-0 dark:text-base-1000 dark:hover:bg-base-100 '
|
||||
: 'text-base-0 bg-base-200 dark:text-base-900 dark:bg-base-700 disabled'} transition rounded-full p-[0.3125rem] self-center"
|
||||
type="submit"
|
||||
disabled={content === '' && files.length === 0}
|
||||
>
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
<img
|
||||
src={`${WEBUI_API_BASE_URL}/users/${u.id}/profile/image`}
|
||||
alt={u.name}
|
||||
class=" size-7 rounded-full object-cover border-2 border-white dark:border-base-900 {index ===
|
||||
class=" size-7 rounded-full object-cover border-2 border-base-0 dark:border-base-900 {index ===
|
||||
1
|
||||
? '-ml-2.5'
|
||||
: ''}"
|
||||
|
||||
@@ -273,7 +273,7 @@
|
||||
<div class="absolute right-1 -top-3">
|
||||
<div
|
||||
use:trackActions={showButtons}
|
||||
class="absolute right-0 top-0 z-20 flex w-max gap-1 rounded-lg bg-white dark:bg-base-850 shadow-md p-0.5 border border-base-100/30 dark:border-base-850/30"
|
||||
class="absolute right-0 top-0 z-20 flex w-max gap-1 rounded-lg bg-base-0 dark:bg-base-850 shadow-md p-0.5 border border-base-100/30 dark:border-base-850/30"
|
||||
style="opacity: 0; pointer-events: none;"
|
||||
>
|
||||
<slot name="actions">
|
||||
@@ -639,7 +639,7 @@
|
||||
<div class="flex space-x-1.5">
|
||||
<button
|
||||
id="close-edit-message-button"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal text-base-600 transition hover:bg-base-100 hover:text-base-900 disabled:opacity-60 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal text-base-600 transition hover:bg-base-100 hover:text-base-900 disabled:opacity-60 dark:text-base-400 dark:hover:bg-base-850 dark:hover:text-base-0"
|
||||
on:click={() => {
|
||||
cancelEditMessage();
|
||||
}}
|
||||
@@ -649,7 +649,7 @@
|
||||
|
||||
<button
|
||||
id="confirm-edit-message-button"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
on:click={() => {
|
||||
editMessageConfirmHandler();
|
||||
}}
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
{#if user}
|
||||
<LinkPreview.Portal>
|
||||
<LinkPreview.Content
|
||||
class="z-[9999] w-64 max-w-[calc(100vw-1.5rem)] max-h-[calc(100dvh-1.5rem)] overflow-y-auto rounded-xl bg-white font-sans text-base-900 shadow-[0_16px_40px_-28px_rgba(0,0,0,0.55)] ring-1 ring-black/5 dark:bg-base-850 dark:text-base-100 dark:ring-white/10"
|
||||
class="z-[9999] w-64 max-w-[calc(100vw-1.5rem)] max-h-[calc(100dvh-1.5rem)] overflow-y-auto rounded-xl bg-base-0 font-sans text-base-900 shadow-[0_16px_40px_-28px_rgba(0,0,0,0.55)] ring-1 ring-base-1000/5 dark:bg-base-850 dark:text-base-100 dark:ring-base-0/10"
|
||||
{side}
|
||||
{align}
|
||||
{sideOffset}
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
<img
|
||||
src={`${WEBUI_API_BASE_URL}/users/${u.id}/profile/image`}
|
||||
alt={u.name}
|
||||
class=" size-5.5 rounded-full object-cover border border-white dark:border-base-900 {index ===
|
||||
class=" size-5.5 rounded-full object-cover border border-base-0 dark:border-base-900 {index ===
|
||||
1
|
||||
? '-ml-2'
|
||||
: ''}"
|
||||
@@ -128,7 +128,7 @@
|
||||
class="relative inline-flex size-2 rounded-full {channelMembers[0]
|
||||
?.is_active
|
||||
? 'bg-green-500'
|
||||
: 'bg-base-300 dark:bg-base-700'} border-[1.5px] border-white dark:border-base-900"
|
||||
: 'bg-base-300 dark:bg-base-700'} border-[1.5px] border-base-0 dark:border-base-900"
|
||||
></span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -225,7 +225,7 @@
|
||||
</script>
|
||||
|
||||
{#if channel}
|
||||
<div bind:this={threadRoot} class="flex flex-col w-full h-full bg-white dark:bg-base-900">
|
||||
<div bind:this={threadRoot} class="flex flex-col w-full h-full bg-base-0 dark:bg-base-900">
|
||||
<div class="sticky top-0 flex min-h-10 items-center justify-between px-4 py-1.5">
|
||||
<div class=" font-medium text-sm">{$i18n.t('Thread')}</div>
|
||||
|
||||
@@ -311,7 +311,7 @@
|
||||
placeholder={!channel?.write_access
|
||||
? $i18n.t('You do not have permission to send messages in this thread.')
|
||||
: $i18n.t('Reply to thread...')}
|
||||
typingUsersClassName="from-white dark:from-base-900"
|
||||
typingUsersClassName="from-base-0 dark:from-base-900"
|
||||
{typingUsers}
|
||||
userSuggestions={true}
|
||||
channelSuggestions={true}
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
alt=""
|
||||
/>
|
||||
<div class="flex-1 text-left min-w-0">
|
||||
<div class="font-normal text-base-900 dark:text-white truncate">
|
||||
<div class="font-normal text-base-900 dark:text-base-0 truncate">
|
||||
{name}
|
||||
</div>
|
||||
<div class="text-base-500 text-xs">
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-100 px-2.5 text-xs font-normal text-base-800 transition hover:bg-base-100/70 disabled:opacity-60 dark:bg-base-850 dark:text-white dark:hover:bg-base-850/60"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-100 px-2.5 text-xs font-normal text-base-800 transition hover:bg-base-100/70 disabled:opacity-60 dark:bg-base-850 dark:text-base-0 dark:hover:bg-base-850/60"
|
||||
on:click={createHandler}
|
||||
disabled={isSaving}
|
||||
>
|
||||
@@ -164,7 +164,7 @@
|
||||
|
||||
<div class="flex justify-end text-sm font-normal gap-1.5">
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
type="submit"
|
||||
disabled={isSaving}
|
||||
>
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
<div class=" absolute top-0 left-0 right-0 bottom-0 z-10"></div>
|
||||
{/if}
|
||||
|
||||
<div class="flex-1 w-full min-h-0 bg-white dark:bg-base-850">
|
||||
<div class="flex-1 w-full min-h-0 bg-base-0 dark:bg-base-850">
|
||||
<div class=" h-full flex flex-col">
|
||||
{#if contents.length > 0}
|
||||
<div class="max-w-full w-full h-full">
|
||||
@@ -198,7 +198,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
{:else}
|
||||
<div class="m-auto p-6 text-center font-normal text-xs text-base-900 dark:text-white">
|
||||
<div class="m-auto p-6 text-center font-normal text-xs text-base-900 dark:text-base-0">
|
||||
{$i18n.t('No HTML, CSS, or JavaScript content found.')}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
{#if show}
|
||||
<section
|
||||
dir={$settings?.chatDirection ?? 'auto'}
|
||||
class="my-1 rounded-2xl bg-base-50/70 px-3.5 py-3 dark:bg-white/[0.035]"
|
||||
class="my-1 rounded-2xl bg-base-50/70 px-3.5 py-3 dark:bg-base-0/[0.035]"
|
||||
>
|
||||
<div class="space-y-2">
|
||||
{#if question}
|
||||
@@ -207,8 +207,8 @@
|
||||
question,
|
||||
optionIndex
|
||||
)
|
||||
? 'text-base-950 dark:text-white'
|
||||
: 'text-base-700 hover:text-base-950 dark:text-base-300 dark:hover:text-white'}"
|
||||
? 'text-base-950 dark:text-base-0'
|
||||
: 'text-base-700 hover:text-base-950 dark:text-base-300 dark:hover:text-base-0'}"
|
||||
on:click={() => selectOption(question, option, optionIndex)}
|
||||
>
|
||||
<span class="min-w-0 shrink-0 text-xs">{option.label}</span>
|
||||
@@ -226,7 +226,7 @@
|
||||
</Tooltip>
|
||||
{#if optionIndex === 0}
|
||||
<span
|
||||
class="shrink-0 rounded-full bg-base-200/70 px-1.5 py-0.5 text-[0.625rem] text-base-500 dark:bg-white/[0.08] dark:text-base-400"
|
||||
class="shrink-0 rounded-full bg-base-200/70 px-1.5 py-0.5 text-[0.625rem] text-base-500 dark:bg-base-0/[0.08] dark:text-base-400"
|
||||
>
|
||||
{$i18n.t('Recommended')}
|
||||
</span>
|
||||
@@ -239,7 +239,7 @@
|
||||
<div class="flex min-w-0 items-baseline gap-2 rounded-lg py-1.5">
|
||||
<div
|
||||
class="shrink-0 text-xs {isSelectedOther(question)
|
||||
? 'text-base-950 dark:text-white'
|
||||
? 'text-base-950 dark:text-base-0'
|
||||
: 'text-base-700 dark:text-base-300'}"
|
||||
>
|
||||
{$i18n.t('Other')}
|
||||
@@ -288,7 +288,7 @@
|
||||
{#if questionIndex < questions.length - 1}
|
||||
<button
|
||||
type="button"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
on:click={() => (questionIndex += 1)}
|
||||
>
|
||||
{$i18n.t('Next')}
|
||||
@@ -296,7 +296,7 @@
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white disabled:cursor-not-allowed"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 disabled:cursor-not-allowed"
|
||||
disabled={!complete}
|
||||
on:click={() => submit()}
|
||||
>
|
||||
|
||||
@@ -5910,7 +5910,7 @@
|
||||
<button
|
||||
type="button"
|
||||
class="flex shrink-0 cursor-pointer items-center justify-center {tabbed || fullWidthTabs
|
||||
? 'size-4 rounded text-base-400 hover:bg-base-200 hover:text-base-700 dark:hover:bg-white/10 dark:hover:text-white'
|
||||
? 'size-4 rounded text-base-400 hover:bg-base-200 hover:text-base-700 dark:hover:bg-base-0/10 dark:hover:text-base-0'
|
||||
: 'size-6 rounded-lg text-base-500 transition hover:bg-base-50/40 hover:text-base-700 dark:text-base-400 dark:hover:bg-base-800/40 dark:hover:text-base-200'}"
|
||||
id={embedded ? undefined : 'chat-context-menu-button'}
|
||||
aria-label={$i18n.t('Chat actions')}
|
||||
@@ -6144,7 +6144,7 @@
|
||||
style="background-image: url({backgroundImage})"
|
||||
/>
|
||||
<div
|
||||
class="pointer-events-none absolute top-0 left-0 w-full h-full bg-linear-to-t from-white/90 to-white/55 dark:from-base-900/90 dark:to-base-900/65 z-0"
|
||||
class="pointer-events-none absolute top-0 left-0 w-full h-full bg-linear-to-t from-base-0/90 to-base-0/55 dark:from-base-900/90 dark:to-base-900/65 z-0"
|
||||
></div>
|
||||
{/if}
|
||||
|
||||
@@ -6189,7 +6189,7 @@
|
||||
{#if onCloseEmbedded}<Tooltip content={$i18n.t('Close')} placement="bottom">
|
||||
<button
|
||||
type="button"
|
||||
class="rounded-md py-1 text-base-500 transition hover:text-base-900 dark:hover:text-white px-0"
|
||||
class="rounded-md py-1 text-base-500 transition hover:text-base-900 dark:hover:text-base-0 px-0"
|
||||
on:click={() => onCloseEmbedded?.()}
|
||||
aria-label={$i18n.t('Close')}
|
||||
>
|
||||
@@ -6330,10 +6330,10 @@
|
||||
{#if isShared && !chat?.write_access}
|
||||
{#if canClone}
|
||||
<div
|
||||
class="pointer-events-none absolute inset-x-0 bottom-0 z-10 flex justify-center gap-2 bg-linear-to-t from-white dark:from-base-900 to-transparent pb-5 pt-10"
|
||||
class="pointer-events-none absolute inset-x-0 bottom-0 z-10 flex justify-center gap-2 bg-linear-to-t from-base-0 dark:from-base-900 to-transparent pb-5 pt-10"
|
||||
>
|
||||
<button
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white pointer-events-auto"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0 pointer-events-auto"
|
||||
disabled={cloning}
|
||||
on:click={cloneSharedChat}
|
||||
>
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
>
|
||||
{#if !floatingInput}
|
||||
<div
|
||||
class="flex flex-row flex-wrap shrink-0 p-0.5 bg-white dark:bg-base-850 dark:text-base-100 text-medium rounded-xl shadow-xl border border-base-100 dark:border-base-800"
|
||||
class="flex flex-row flex-wrap shrink-0 p-0.5 bg-base-0 dark:bg-base-850 dark:text-base-100 text-medium rounded-xl shadow-xl border border-base-100 dark:border-base-800"
|
||||
>
|
||||
{#each displayActions as action}
|
||||
<button
|
||||
@@ -144,7 +144,7 @@
|
||||
</div>
|
||||
{:else}
|
||||
<div
|
||||
class="py-1 flex dark:text-base-100 bg-white dark:bg-base-850 border border-base-100 dark:border-base-800 w-72 max-w-full rounded-full shadow-xl"
|
||||
class="py-1 flex dark:text-base-100 bg-base-0 dark:bg-base-850 border border-base-100 dark:border-base-800 w-72 max-w-full rounded-full shadow-xl"
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
@@ -164,8 +164,8 @@
|
||||
<button
|
||||
aria-label={$i18n.t('Submit question')}
|
||||
class="{floatingInputValue !== ''
|
||||
? 'bg-black text-white hover:bg-base-900 dark:bg-white dark:text-black dark:hover:bg-base-100 '
|
||||
: 'text-white bg-base-200 dark:text-base-900 dark:bg-base-700 disabled'} transition rounded-full p-1.5 m-0.5 self-center"
|
||||
? 'bg-base-1000 text-base-0 hover:bg-base-900 dark:bg-base-0 dark:text-base-1000 dark:hover:bg-base-100 '
|
||||
: 'text-base-0 bg-base-200 dark:text-base-900 dark:bg-base-700 disabled'} transition rounded-full p-1.5 m-0.5 self-center"
|
||||
on:click={() => {
|
||||
actionHandler(selectedAction?.id);
|
||||
}}
|
||||
|
||||
@@ -33,12 +33,12 @@
|
||||
const compactSectionButtonClass =
|
||||
'w-full py-1 text-xs font-normal text-base-500 hover:text-base-900 dark:text-base-400 dark:hover:text-base-100 transition cursor-pointer select-none';
|
||||
const systemPromptTextareaClass =
|
||||
'w-full resize-vertical rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
'w-full resize-vertical rounded-lg border border-base-100/50 bg-base-50/40 px-2 py-1.5 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500';
|
||||
const compactSystemPromptTextareaClass =
|
||||
'w-full resize-vertical appearance-none bg-transparent py-1 text-xs outline-hidden focus:bg-transparent disabled:bg-transparent';
|
||||
</script>
|
||||
|
||||
<div class=" dark:text-white">
|
||||
<div class=" dark:text-base-0">
|
||||
{#if !embed}
|
||||
<div class=" flex items-center justify-between dark:text-base-100 mb-2">
|
||||
<div class=" text-md self-center">{$i18n.t('Controls')}</div>
|
||||
|
||||
@@ -151,18 +151,18 @@
|
||||
<div class="flex justify-end gap-1.5 pt-3 text-sm font-normal">
|
||||
<button
|
||||
type="button"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal transition disabled:opacity-60 bg-white hover:bg-base-100 text-black dark:bg-black dark:text-white dark:hover:bg-base-900"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal transition disabled:opacity-60 bg-base-0 hover:bg-base-100 text-base-1000 dark:bg-base-1000 dark:text-base-0 dark:hover:bg-base-900"
|
||||
on:click={() => onResponse({ action: 'cancel' })}>{$i18n.t('Cancel')}</button
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
class="flex h-7 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal transition disabled:opacity-60 bg-base-100 hover:bg-base-100/70 text-base-800 dark:bg-base-850 dark:hover:bg-base-850/60 dark:text-white"
|
||||
class="flex h-7 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-normal transition disabled:opacity-60 bg-base-100 hover:bg-base-100/70 text-base-800 dark:bg-base-850 dark:hover:bg-base-850/60 dark:text-base-0"
|
||||
on:click={() => onResponse({ action: 'decline' })}>{$i18n.t('Decline')}</button
|
||||
>
|
||||
{#if data.mode !== 'url' && supported}
|
||||
<button
|
||||
type="submit"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-white transition hover:bg-black disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-lg bg-base-900 px-2.5 text-xs font-normal text-base-0 transition hover:bg-base-1000 disabled:opacity-60 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
>{$i18n.t('Submit')}</button
|
||||
>
|
||||
{/if}
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
class="group flex min-w-0 items-center gap-1 text-[0.8125rem] font-normal text-base-600 transition hover:text-base-900 dark:text-base-300 dark:hover:text-white"
|
||||
class="group flex min-w-0 items-center gap-1 text-[0.8125rem] font-normal text-base-600 transition hover:text-base-900 dark:text-base-300 dark:hover:text-base-0"
|
||||
aria-label={$i18n.t('Chat history')}
|
||||
>
|
||||
<span class="min-w-0 truncate">{title}</span>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<button
|
||||
type="button"
|
||||
aria-label={$i18n.t('More Options')}
|
||||
class="flex size-5 items-center justify-center self-center transition dark:hover:text-white"
|
||||
class="flex size-5 items-center justify-center self-center transition dark:hover:text-base-0"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
@@ -2478,11 +2478,11 @@
|
||||
>
|
||||
{#if isDragOver && !isSearching}
|
||||
<div
|
||||
class="pointer-events-none absolute inset-0 z-10 bg-black/[0.02] dark:bg-white/[0.02]"
|
||||
class="pointer-events-none absolute inset-0 z-10 bg-base-1000/[0.02] dark:bg-base-0/[0.02]"
|
||||
role="status"
|
||||
>
|
||||
<div
|
||||
class="absolute left-1/2 top-1/2 flex max-w-[calc(100%-1rem)] -translate-x-1/2 -translate-y-1/2 items-center gap-1.5 rounded-lg bg-white/95 px-2.5 py-1.5 text-xs text-base-600 shadow-sm ring-1 ring-black/5 dark:bg-base-850/95 dark:text-base-300 dark:ring-white/10"
|
||||
class="absolute left-1/2 top-1/2 flex max-w-[calc(100%-1rem)] -translate-x-1/2 -translate-y-1/2 items-center gap-1.5 rounded-lg bg-base-0/95 px-2.5 py-1.5 text-xs text-base-600 shadow-sm ring-1 ring-base-1000/5 dark:bg-base-850/95 dark:text-base-300 dark:ring-base-0/10"
|
||||
>
|
||||
<Icon name="upload-tray" size={14} strokeWidth={1.5} />
|
||||
<span class="truncate">{$i18n.t('Drop to upload')}</span>
|
||||
@@ -2552,7 +2552,7 @@
|
||||
{#each [{ label: 'Editor', icon: 'pencil', raw: false }, { label: 'Source', icon: 'code', raw: true }] as mode}
|
||||
<Tooltip content={$i18n.t(mode.label)}>
|
||||
<button
|
||||
class="shrink-0 flex h-5 w-5 items-center justify-center rounded transition-colors duration-100 text-base-500 dark:text-base-400 hover:text-base-800 dark:hover:text-base-200 aria-pressed:text-base-900 dark:aria-pressed:text-white disabled:opacity-30"
|
||||
class="shrink-0 flex h-5 w-5 items-center justify-center rounded transition-colors duration-100 text-base-500 dark:text-base-400 hover:text-base-800 dark:hover:text-base-200 aria-pressed:text-base-900 dark:aria-pressed:text-base-0 disabled:opacity-30"
|
||||
aria-label={$i18n.t(mode.label)}
|
||||
aria-pressed={showRaw === mode.raw}
|
||||
on:click={() => {
|
||||
@@ -2582,7 +2582,7 @@
|
||||
{#each viewerRoot.querySelectorAll('h1, h2, h3, h4, h5, h6') as heading}
|
||||
<button
|
||||
type="button"
|
||||
class="select-none flex h-7 w-full items-center rounded-lg px-2 text-xs hover:bg-base-50/40 dark:hover:bg-white/4 transition"
|
||||
class="select-none flex h-7 w-full items-center rounded-lg px-2 text-xs hover:bg-base-50/40 dark:hover:bg-base-0/4 transition"
|
||||
on:click={() => heading.scrollIntoView()}
|
||||
>
|
||||
<span
|
||||
@@ -2757,7 +2757,7 @@
|
||||
</Tooltip>
|
||||
<button
|
||||
type="button"
|
||||
class="shrink-0 hover:text-base-900 dark:hover:text-white"
|
||||
class="shrink-0 hover:text-base-900 dark:hover:text-base-0"
|
||||
aria-label={$i18n.t('Clear comparison selection')}
|
||||
on:click={() => (pinnedComparison = null)}><Icon name="xmark" size={12} /></button
|
||||
>
|
||||
@@ -2902,7 +2902,7 @@
|
||||
</div>
|
||||
{#each filenameMatches as match (match.path)}
|
||||
<button
|
||||
class="flex h-7 w-full items-center gap-2 rounded-lg px-2 text-left transition-colors duration-75 hover:bg-base-50 dark:hover:bg-white/4"
|
||||
class="flex h-7 w-full items-center gap-2 rounded-lg px-2 text-left transition-colors duration-75 hover:bg-base-50 dark:hover:bg-base-0/4"
|
||||
on:click={() => openFileMatch(match)}
|
||||
>
|
||||
<FileTypeIcon name={match.name} type={match.type} />
|
||||
@@ -2918,7 +2918,7 @@
|
||||
{#if match.content_matches.length > 0}
|
||||
{@const preview = match.content_matches[0]}
|
||||
<button
|
||||
class="flex h-6 w-full items-center gap-2 rounded-lg pl-8 pr-2 text-left transition-colors duration-75 hover:bg-base-50 dark:hover:bg-white/4"
|
||||
class="flex h-6 w-full items-center gap-2 rounded-lg pl-8 pr-2 text-left transition-colors duration-75 hover:bg-base-50 dark:hover:bg-base-0/4"
|
||||
on:click={() => openContentMatch(match, preview)}
|
||||
>
|
||||
<span
|
||||
@@ -2947,7 +2947,7 @@
|
||||
</div>
|
||||
{#each contentOnlyMatches as match (match.path)}
|
||||
<button
|
||||
class="flex h-7 w-full items-center gap-2 rounded-lg px-2 text-left transition-colors duration-75 hover:bg-base-50 dark:hover:bg-white/4"
|
||||
class="flex h-7 w-full items-center gap-2 rounded-lg px-2 text-left transition-colors duration-75 hover:bg-base-50 dark:hover:bg-base-0/4"
|
||||
on:click={() => openFileMatch(match)}
|
||||
>
|
||||
<FileTypeIcon name={match.name} type={match.type} />
|
||||
@@ -2963,7 +2963,7 @@
|
||||
{#if match.content_matches.length > 0}
|
||||
{@const preview = match.content_matches[0]}
|
||||
<button
|
||||
class="flex h-6 w-full items-center gap-2 rounded-lg pl-8 pr-2 text-left transition-colors duration-75 hover:bg-base-50 dark:hover:bg-white/4"
|
||||
class="flex h-6 w-full items-center gap-2 rounded-lg pl-8 pr-2 text-left transition-colors duration-75 hover:bg-base-50 dark:hover:bg-base-0/4"
|
||||
on:click={() => openContentMatch(match, preview)}
|
||||
>
|
||||
<span
|
||||
@@ -3151,7 +3151,7 @@
|
||||
<!-- Float above the list footer without moving the rows. -->
|
||||
{#if !selectedFile && !isSearching && (selectingFiles ? keepSelectionToolbar : selectedCount > 0)}
|
||||
<div class="relative z-10 h-0 shrink-0">
|
||||
<div class="absolute inset-x-0 bottom-0 bg-white dark:bg-base-900">
|
||||
<div class="absolute inset-x-0 bottom-0 bg-base-0 dark:bg-base-900">
|
||||
<BulkActionBar
|
||||
count={selectedCount}
|
||||
{canCompare}
|
||||
@@ -3213,7 +3213,7 @@
|
||||
{/if}
|
||||
<button
|
||||
type="button"
|
||||
class="flex h-7 items-center rounded-lg bg-base-900 px-2 text-xs text-white hover:bg-black disabled:cursor-not-allowed disabled:opacity-50 dark:bg-base-100 dark:text-base-900 dark:hover:bg-white"
|
||||
class="flex h-7 items-center rounded-lg bg-base-900 px-2 text-xs text-base-0 hover:bg-base-1000 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-base-100 dark:text-base-900 dark:hover:bg-base-0"
|
||||
disabled={loading || !!error || !savedPathLoaded || !!selectedFile}
|
||||
on:click={() => onSelectDirectory?.(currentPath)}
|
||||
>{$i18n.t('Use this directory')}</button
|
||||
@@ -3234,7 +3234,7 @@
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<div class="relative cursor-row-resize group" on:mousedown={onHandleMouseDown}>
|
||||
<div
|
||||
class="h-px bg-transparent group-hover:bg-black/10 dark:group-hover:bg-white/10 transition"
|
||||
class="h-px bg-transparent group-hover:bg-base-1000/10 dark:group-hover:bg-base-0/10 transition"
|
||||
/>
|
||||
<div class="absolute inset-x-0 -top-1.5 -bottom-1.5" />
|
||||
</div>
|
||||
@@ -3276,7 +3276,7 @@
|
||||
<DropdownMenu className="min-w-[9.375rem]">
|
||||
<button
|
||||
type="button"
|
||||
class="select-none flex h-7 w-full items-center gap-2 rounded-lg px-2 text-xs hover:bg-base-50/40 dark:hover:bg-white/4 transition"
|
||||
class="select-none flex h-7 w-full items-center gap-2 rounded-lg px-2 text-xs hover:bg-base-50/40 dark:hover:bg-base-0/4 transition"
|
||||
on:click={() => {
|
||||
closeDirectoryMenu();
|
||||
refreshBrowser();
|
||||
@@ -3311,7 +3311,7 @@
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="select-none flex h-7 w-full items-center gap-2 rounded-lg px-2 text-xs hover:bg-base-50/40 dark:hover:bg-white/4 transition disabled:opacity-40 disabled:hover:bg-transparent"
|
||||
class="select-none flex h-7 w-full items-center gap-2 rounded-lg px-2 text-xs hover:bg-base-50/40 dark:hover:bg-base-0/4 transition disabled:opacity-40 disabled:hover:bg-transparent"
|
||||
disabled={!currentWritable}
|
||||
on:click={() => {
|
||||
closeDirectoryMenu();
|
||||
@@ -3323,7 +3323,7 @@
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="select-none flex h-7 w-full items-center gap-2 rounded-lg px-2 text-xs hover:bg-base-50/40 dark:hover:bg-white/4 transition disabled:opacity-40 disabled:hover:bg-transparent"
|
||||
class="select-none flex h-7 w-full items-center gap-2 rounded-lg px-2 text-xs hover:bg-base-50/40 dark:hover:bg-base-0/4 transition disabled:opacity-40 disabled:hover:bg-transparent"
|
||||
disabled={!currentWritable}
|
||||
on:click={() => {
|
||||
closeDirectoryMenu();
|
||||
@@ -3335,7 +3335,7 @@
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="select-none flex h-7 w-full items-center gap-2 rounded-lg px-2 text-xs hover:bg-base-50/40 dark:hover:bg-white/4 transition"
|
||||
class="select-none flex h-7 w-full items-center gap-2 rounded-lg px-2 text-xs hover:bg-base-50/40 dark:hover:bg-base-0/4 transition"
|
||||
on:click={() => {
|
||||
closeDirectoryMenu();
|
||||
downloadFile(currentPath);
|
||||
@@ -3346,7 +3346,7 @@
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="select-none flex h-7 w-full items-center gap-2 rounded-lg px-2 text-xs hover:bg-base-50/40 dark:hover:bg-white/4 transition"
|
||||
class="select-none flex h-7 w-full items-center gap-2 rounded-lg px-2 text-xs hover:bg-base-50/40 dark:hover:bg-base-0/4 transition"
|
||||
on:click={() => {
|
||||
closeDirectoryMenu();
|
||||
toggleHidden();
|
||||
@@ -3366,7 +3366,7 @@
|
||||
<form
|
||||
use:positionFileAsk={fileAsk.anchor}
|
||||
data-file-ask
|
||||
class="fixed z-50 w-80 max-w-[calc(100vw-1.5rem)] rounded-2xl bg-white pt-3 pl-3 pr-2 pb-2 shadow-[0_16px_40px_-28px_rgba(0,0,0,0.55)] ring-1 ring-black/5 dark:bg-base-850 dark:text-white dark:ring-white/10"
|
||||
class="fixed z-50 w-80 max-w-[calc(100vw-1.5rem)] rounded-2xl bg-base-0 pt-3 pl-3 pr-2 pb-2 shadow-[0_16px_40px_-28px_rgba(0,0,0,0.55)] ring-1 ring-base-1000/5 dark:bg-base-850 dark:text-base-0 dark:ring-base-0/10"
|
||||
aria-label={$i18n.t('Ask about this file')}
|
||||
on:submit|preventDefault={submitFileAsk}
|
||||
>
|
||||
@@ -3401,8 +3401,8 @@
|
||||
disabled={asking || !fileAskInput.trim()}
|
||||
aria-label={$i18n.t('Send')}
|
||||
class="flex h-[26px] w-[26px] shrink-0 items-center justify-center rounded-full transition-colors {fileAskInput.trim()
|
||||
? 'bg-black text-white hover:bg-base-900 dark:bg-white dark:text-black dark:hover:bg-base-100'
|
||||
: 'bg-base-200 text-white dark:bg-base-700 dark:text-base-900'}"
|
||||
? 'bg-base-1000 text-base-0 hover:bg-base-900 dark:bg-base-0 dark:text-base-1000 dark:hover:bg-base-100'
|
||||
: 'bg-base-200 text-base-0 dark:bg-base-700 dark:text-base-900'}"
|
||||
>
|
||||
{#if asking}<Spinner className="size-3.5" />{:else}<ArrowRight
|
||||
className="size-3.5 -rotate-90"
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<label class="block">
|
||||
<span class="text-base-600 dark:text-base-400">{$i18n.t('Repository URL')}</span>
|
||||
<input
|
||||
class="mt-1 w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500 disabled:opacity-50"
|
||||
class="mt-1 w-full h-7 rounded-lg border border-base-100/50 bg-base-50/40 px-2 text-xs text-base-700 outline-hidden transition-colors placeholder:text-base-300 focus:border-blue-400 dark:border-base-0/[0.04] dark:bg-base-0/[0.03] dark:text-base-300 dark:placeholder:text-base-700 dark:focus:border-blue-500 disabled:opacity-50"
|
||||
type="text"
|
||||
bind:value={url}
|
||||
placeholder="https://github.com/owner/repository.git"
|
||||
@@ -72,7 +72,7 @@
|
||||
>
|
||||
<button
|
||||
type="submit"
|
||||
class="flex h-7 shrink-0 items-center gap-1.5 rounded-lg bg-base-900 px-2 text-white hover:bg-black dark:bg-base-100 dark:text-base-900 {cloning
|
||||
class="flex h-7 shrink-0 items-center gap-1.5 rounded-lg bg-base-900 px-2 text-base-0 hover:bg-base-1000 dark:bg-base-100 dark:text-base-900 {cloning
|
||||
? 'cursor-wait'
|
||||
: 'disabled:cursor-not-allowed disabled:opacity-50'}"
|
||||
disabled={disabled || cloning || !url.trim()}
|
||||
|
||||
@@ -405,7 +405,7 @@
|
||||
<button
|
||||
type="button"
|
||||
data-file-comment-id="__unplaced"
|
||||
class="absolute right-3 top-3 z-10 flex h-6 items-center gap-1 rounded px-1.5 text-xs text-base-400 dark:text-base-500 bg-white/95 dark:bg-base-850/95 hover:text-base-600 dark:hover:text-base-300 focus-visible:outline focus-visible:outline-2"
|
||||
class="absolute right-3 top-3 z-10 flex h-6 items-center gap-1 rounded px-1.5 text-xs text-base-400 dark:text-base-500 bg-base-0/95 dark:bg-base-850/95 hover:text-base-600 dark:hover:text-base-300 focus-visible:outline focus-visible:outline-2"
|
||||
aria-label={$i18n.t('Document comments')}
|
||||
aria-haspopup="dialog"
|
||||
><Icon name="chat-bubble" size={12} strokeWidth={1.5} />{unplaced.length || '!'}</button
|
||||
@@ -420,7 +420,7 @@
|
||||
role="dialog"
|
||||
aria-label={$i18n.t('Comment')}
|
||||
tabindex="-1"
|
||||
class="file-comment-popover fixed z-[9999] w-72 max-w-[calc(100vw-1rem)] max-h-[50vh] overflow-y-auto rounded-2xl bg-white px-3 py-2 text-[0.8125rem] font-normal leading-5 text-base-900 shadow-[0_16px_40px_-28px_rgba(0,0,0,0.55)] ring-1 ring-black/5 dark:bg-base-850 dark:text-base-100 dark:ring-white/10"
|
||||
class="file-comment-popover fixed z-[9999] w-72 max-w-[calc(100vw-1rem)] max-h-[50vh] overflow-y-auto rounded-2xl bg-base-0 px-3 py-2 text-[0.8125rem] font-normal leading-5 text-base-900 shadow-[0_16px_40px_-28px_rgba(0,0,0,0.55)] ring-1 ring-base-1000/5 dark:bg-base-850 dark:text-base-100 dark:ring-base-0/10"
|
||||
style:left={`${popoverX}px`}
|
||||
style:top={`${popoverY}px`}
|
||||
on:mouseenter={keepOpen}
|
||||
|
||||
@@ -202,12 +202,12 @@
|
||||
</Dropdown>
|
||||
<button
|
||||
type="button"
|
||||
class="shrink-0 text-base-500 hover:text-base-900 dark:hover:text-white"
|
||||
class="shrink-0 text-base-500 hover:text-base-900 dark:hover:text-base-0"
|
||||
on:click|stopPropagation={onClose}
|
||||
aria-label={$i18n.t('Close')}><Icon name="xmark" size={16} /></button
|
||||
>
|
||||
</div>
|
||||
<div class="grid shrink-0 grid-cols-2 border-b border-black/5 dark:border-white/5">
|
||||
<div class="grid shrink-0 grid-cols-2 border-b border-base-1000/5 dark:border-base-0/5">
|
||||
{#each [original, revised] as path}
|
||||
<Tooltip content={path} allowHTML={false} className="min-w-0 px-3 py-2">
|
||||
<div class="truncate font-normal text-base-700 dark:text-base-300">{name(path)}</div>
|
||||
@@ -225,7 +225,7 @@
|
||||
</div>
|
||||
{:else if result}
|
||||
<div
|
||||
class="flex shrink-0 items-center gap-2 border-b border-black/5 px-3 py-1 dark:border-white/5"
|
||||
class="flex shrink-0 items-center gap-2 border-b border-base-1000/5 px-3 py-1 dark:border-base-0/5"
|
||||
aria-live="polite"
|
||||
>
|
||||
<span
|
||||
@@ -264,7 +264,7 @@
|
||||
<div class="diff-content" class:split={mode === 'split'}>
|
||||
{#each result.hunks as hunk}
|
||||
<div
|
||||
class="hunk-header select-none bg-black/[0.025] px-3 text-base-400 dark:bg-white/[0.025] dark:text-base-600"
|
||||
class="hunk-header select-none bg-base-1000/[0.025] px-3 text-base-400 dark:bg-base-0/[0.025] dark:text-base-600"
|
||||
>
|
||||
{hunk.header}
|
||||
</div>
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
ariaLabel={$i18n.t('Compare files')}
|
||||
size="full"
|
||||
containerClassName="p-2 sm:p-4"
|
||||
className="h-[calc(100dvh-2rem)] overflow-hidden rounded-2xl bg-white dark:bg-base-900 !border-0"
|
||||
className="h-[calc(100dvh-2rem)] overflow-hidden rounded-2xl bg-base-0 dark:bg-base-900 !border-0"
|
||||
onRequestClose={close}
|
||||
>
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
@@ -137,7 +137,7 @@
|
||||
<h2 class="font-medium">{$i18n.t('Compare files')}</h2>
|
||||
<button
|
||||
type="button"
|
||||
class="shrink-0 text-base-500 hover:text-base-900 dark:hover:text-white"
|
||||
class="shrink-0 text-base-500 hover:text-base-900 dark:hover:text-base-0"
|
||||
aria-label={$i18n.t('Close')}
|
||||
on:click|stopPropagation={close}><XMark className="size-4" /></button
|
||||
>
|
||||
@@ -147,7 +147,7 @@
|
||||
<Tooltip
|
||||
content={file.path}
|
||||
allowHTML={false}
|
||||
className="min-w-0 rounded-lg bg-base-50/70 px-3 py-2 text-base-500 dark:bg-white/[0.03]"
|
||||
className="min-w-0 rounded-lg bg-base-50/70 px-3 py-2 text-base-500 dark:bg-base-0/[0.03]"
|
||||
>
|
||||
<p class="truncate font-medium">{file.name}</p>
|
||||
</Tooltip>
|
||||
|
||||
Loaded 100 of 315 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user