[Fix] Minor UX tweaks: freezeOverride components

This commit is contained in:
Minoricew
2025-06-11 00:35:49 +08:00
parent a639ae0ac6
commit 423142d785
8 changed files with 670 additions and 662 deletions

42
src/aura/types/main/ipc/fs.d.ts vendored Normal file → Executable file
View File

@@ -1,21 +1,21 @@
type DownloadTaskID = string;
type DownloadTaskStatus = "waiting" | "progressing" | "done" | "failed" | "cancelled";
interface DownloadTask {
id: DownloadTaskID;
progress: float;
curBytes?: number;
totalBytes?: number;
status: DownloadTaskStatus;
dlUrl: string | null;
savePath: string | null;
message?: string;
errorObj?: Error;
}
interface FSTasks {
downloadTasks: Map<
DownloadTaskID,
{ status: DownloadTaskStatus; cancelReq: any }
>;
}
type DownloadTaskID = string;
type DownloadTaskStatus = "waiting" | "progressing" | "done" | "failed" | "cancelled";
interface DownloadTask {
id: DownloadTaskID;
progress: float;
curBytes?: number;
totalBytes?: number;
status: DownloadTaskStatus;
dlUrl: string | null;
savePath: string | null;
message?: string;
errorObj?: Error;
}
interface FSTasks {
downloadTasks: Map<
DownloadTaskID,
{ status: DownloadTaskStatus; cancelReq: any }
>;
}