feat: implement kryos upload sessions (#6145)

* feat: implement upload sessions

* fix: files not scoped

* feat: hide staging files folder and proper cancel feedback

* fix: lint
This commit is contained in:
Calum H.
2026-05-21 17:49:48 +01:00
committed by GitHub
parent 2f95c4c441
commit 6e7835fb35
18 changed files with 455 additions and 109 deletions
+3 -1
View File
@@ -16,6 +16,8 @@ export interface FilesystemAuth {
token: string
}
export type CancelUploadHandler = () => void | Promise<void>
export interface ModrinthServerContext {
readonly serverId: string
readonly worldId: Ref<string | null>
@@ -44,7 +46,7 @@ export interface ModrinthServerContext {
// File upload state
readonly uploadState: Ref<UploadState>
readonly cancelUpload: Ref<(() => void) | null>
readonly cancelUpload: Ref<CancelUploadHandler | null>
// File operations (extract, move, etc.)
readonly activeOperations: ComputedRef<FileOperation[]>