chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-06-01 13:56:55 -07:00
parent 1f49ebf431
commit 6fce92aa12
139 changed files with 92569 additions and 3249 deletions
@@ -1117,7 +1117,10 @@
onDestroy(() => {
clearTimeout(searchDebounceTimer);
if (pendingPollTimer) { clearInterval(pendingPollTimer); pendingPollTimer = null; }
if (pendingPollTimer) {
clearInterval(pendingPollTimer);
pendingPollTimer = null;
}
mediaQuery?.removeEventListener('change', handleMediaQuery);
const dropZone = document.querySelector('body');
dropZone?.removeEventListener('dragover', onDragOver);
@@ -1125,7 +1128,6 @@
dropZone?.removeEventListener('dragleave', onDragLeave);
});
const decodeString = (str: string) => {
try {
return decodeURIComponent(str);
@@ -64,10 +64,7 @@
: 'hover:bg-gray-100 dark:hover:bg-gray-850'}"
draggable="true"
on:dragstart={(e) => {
e.dataTransfer?.setData(
'application/x-kb-dir-move',
JSON.stringify({ dirId: directory.id })
);
e.dataTransfer?.setData('application/x-kb-dir-move', JSON.stringify({ dirId: directory.id }));
}}
on:dblclick={() => {
if (writeAccess) startRename();
@@ -83,10 +83,7 @@
on:dragstart={(e) => {
const fileId = file?.id ?? file?.tempId;
if (fileId) {
e.dataTransfer?.setData(
'application/x-kb-file-move',
JSON.stringify({ fileId })
);
e.dataTransfer?.setData('application/x-kb-file-move', JSON.stringify({ fileId }));
}
}}
>
@@ -61,9 +61,7 @@
{breadcrumbs.length === 0
? 'text-gray-700 dark:text-gray-300'
: 'text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400'}
{dragOverCrumb === -1
? 'bg-gray-100 dark:bg-gray-800 rounded-lg'
: ''}"
{dragOverCrumb === -1 ? 'bg-gray-100 dark:bg-gray-800 rounded-lg' : ''}"
on:click={() => onNavigate(null)}
on:dragover={(e) => handleDragOver(e, -1)}
on:dragleave={() => handleDragLeave(-1)}
@@ -79,9 +77,7 @@
{i === breadcrumbs.length - 1
? 'text-gray-700 dark:text-gray-300'
: 'text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400'}
{dragOverCrumb === i
? 'bg-gray-100 dark:bg-gray-800 rounded-lg'
: ''}"
{dragOverCrumb === i ? 'bg-gray-100 dark:bg-gray-800 rounded-lg' : ''}"
on:click={() => onNavigate(crumb.id)}
on:dragover={(e) => handleDragOver(e, i)}
on:dragleave={() => handleDragLeave(i)}