검색 기능 구현

This commit is contained in:
static
2026-01-15 15:11:03 +09:00
parent 96d5397cb5
commit 37bd6a9315
26 changed files with 757 additions and 35 deletions

View File

@@ -10,6 +10,7 @@ import { Scheduler } from "$lib/utils";
import { trpc } from "$trpc/client";
export interface FileUploadState {
id: string;
name: string;
parentId: DirectoryId;
status:
@@ -208,6 +209,7 @@ export const uploadFile = async (
onDuplicate: () => Promise<boolean>,
) => {
uploadingFiles.push({
id: crypto.randomUUID(),
name: file.name,
parentId,
status: "queued",

View File

@@ -1,7 +1,7 @@
export type DataKey = { key: CryptoKey; version: Date };
type AllUndefined<T> = { [K in keyof T]?: undefined };
interface LocalDirectoryInfo {
export interface LocalDirectoryInfo {
id: number;
parentId: DirectoryId;
dataKey?: DataKey;
@@ -10,7 +10,7 @@ interface LocalDirectoryInfo {
files: SummarizedFileInfo[];
}
interface RootDirectoryInfo {
export interface RootDirectoryInfo {
id: "root";
parentId?: undefined;
dataKey?: undefined;
@@ -45,7 +45,7 @@ export type MaybeFileInfo =
export type SummarizedFileInfo = Omit<FileInfo, "categories">;
export type CategoryFileInfo = SummarizedFileInfo & { isRecursive: boolean };
interface LocalCategoryInfo {
export interface LocalCategoryInfo {
id: number;
parentId: DirectoryId;
dataKey?: DataKey;
@@ -55,7 +55,7 @@ interface LocalCategoryInfo {
isFileRecursive: boolean;
}
interface RootCategoryInfo {
export interface RootCategoryInfo {
id: "root";
parentId?: undefined;
dataKey?: undefined;