chore: format

This commit is contained in:
Timothy Jaeryang Baek
2025-04-23 16:05:15 +09:00
parent faa3cac0e4
commit 5030041683
59 changed files with 1173 additions and 261 deletions
@@ -11,7 +11,12 @@
import { page } from '$app/stores';
import { mobile, showSidebar, knowledge as _knowledge, config, user } from '$lib/stores';
import { updateFileDataContentById, uploadFile, deleteFileById, getFileById } from '$lib/apis/files';
import {
updateFileDataContentById,
uploadFile,
deleteFileById,
getFileById
} from '$lib/apis/files';
import {
addFileToKnowledgeById,
getKnowledgeById,
@@ -459,7 +464,7 @@
const fileSelectHandler = async (file) => {
try {
selectedFile = file;
// Check cache first
if (fileContentCache.has(file.id)) {
selectedFileContent = fileContentCache.get(file.id);
@@ -477,7 +482,7 @@
} catch (e) {
toast.error($i18n.t('Failed to load file content.'));
}
};
};
const onDragOver = (e) => {
e.preventDefault();