chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-04-21 15:52:00 +09:00
parent b9fc3f367a
commit 6cc799b1bb
74 changed files with 1244 additions and 67 deletions
@@ -94,7 +94,10 @@
<ConfirmDialog
bind:show={showDeleteConfirm}
title={$i18n.t('Delete Calendar')}
message={$i18n.t('This will permanently delete the calendar "{{name}}" and all its events. This action cannot be undone.', { name: deleteTargetCalendar?.name ?? '' })}
message={$i18n.t(
'This will permanently delete the calendar "{{name}}" and all its events. This action cannot be undone.',
{ name: deleteTargetCalendar?.name ?? '' }
)}
confirmLabel={$i18n.t('Delete')}
onConfirm={confirmDelete}
/>
@@ -219,11 +222,7 @@
stroke="currentColor"
class="size-3"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M6 18 18 6M6 6l12 12"
/>
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
</svg>
</span>
{/if}
+3 -10
View File
@@ -757,10 +757,7 @@
const selectedFolderSubscribe = selectedFolder.subscribe(async (folder) => {
await tick();
if (
folder?.data?.model_ids &&
!equal(selectedModels, folder.data.model_ids)
) {
if (folder?.data?.model_ids && !equal(selectedModels, folder.data.model_ids)) {
selectedModels = folder.data.model_ids;
console.log('Set selectedModels from folder data:', selectedModels);
@@ -1836,8 +1833,7 @@
);
chatFiles = chatFiles.filter(
// Remove duplicates
(item, index, array) =>
array.findIndex((i) => equal(i, item)) === index
(item, index, array) => array.findIndex((i) => equal(i, item)) === index
);
// Create user message
@@ -2176,10 +2172,7 @@
)
);
// Remove duplicates
files = files.filter(
(item, index, array) =>
array.findIndex((i) => equal(i, item)) === index
);
files = files.filter((item, index, array) => array.findIndex((i) => equal(i, item)) === index);
scrollToBottom();
eventTarget.dispatchEvent(
+3 -1
View File
@@ -1941,7 +1941,9 @@
{#if !history?.currentId || history.messages[history.currentId]?.done == true}
<!-- Terminal Server Selector -->
{@const hasDirectToolServerAccess = $_user?.role === 'admin' || ($_user?.permissions?.features?.direct_tool_servers ?? true)}
{@const hasDirectToolServerAccess =
$_user?.role === 'admin' ||
($_user?.permissions?.features?.direct_tool_servers ?? true)}
{#if terminalCapableModels.length > 0 && (($terminalServers ?? []).some((t) => t.id) || (hasDirectToolServerAccess && (($terminalServers ?? []).some((t) => !t.id) || ($settings?.terminalServers ?? []).some((s) => s.url))))}
<TerminalMenu bind:show={showTerminalMenu} />
{/if}