diff --git a/cista/preview.py b/cista/preview.py index 5f070f4..e36f851 100644 --- a/cista/preview.py +++ b/cista/preview.py @@ -31,6 +31,7 @@ bp = Blueprint("preview", url_prefix="/preview") @dataclass(slots=True) class CachedPreview: """Cached preview with headers and body.""" + headers: dict[str, str] body: bytes diff --git a/frontend/src/stores/main.ts b/frontend/src/stores/main.ts index 5d740e9..01f917b 100644 --- a/frontend/src/stores/main.ts +++ b/frontend/src/stores/main.ts @@ -221,6 +221,7 @@ export const useMainStore = defineStore('main', { name: doc.name, key: doc.key, size: doc.size, + allocated: doc.allocated, mtime: doc.mtime, dir: doc.dir, })) diff --git a/frontend/src/workers/searchWorker.ts b/frontend/src/workers/searchWorker.ts index 267235d..718f282 100644 --- a/frontend/src/workers/searchWorker.ts +++ b/frontend/src/workers/searchWorker.ts @@ -6,6 +6,7 @@ interface DocData { name: string key: string size: number + allocated: number mtime: number dir: boolean }