mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Add support to import gallery
This commit is contained in:
8
task.ts
8
task.ts
@@ -3,6 +3,7 @@ export enum TaskType {
|
||||
ExportZip,
|
||||
UpdateMeiliSearchData,
|
||||
FixGalleryPage,
|
||||
Import,
|
||||
}
|
||||
|
||||
export type Task<T extends TaskType = TaskType> = {
|
||||
@@ -52,11 +53,18 @@ export type TaskFixGalleryPageProgress = {
|
||||
checked_gallery: number;
|
||||
};
|
||||
|
||||
export type TaskImportProgress = {
|
||||
imported_page: number;
|
||||
failed_page: number;
|
||||
total_page: number;
|
||||
};
|
||||
|
||||
export type TaskProgressBasicType = {
|
||||
[TaskType.Download]: TaskDownloadProgess;
|
||||
[TaskType.ExportZip]: TaskExportZipProgress;
|
||||
[TaskType.UpdateMeiliSearchData]: TaskUpdateMeiliSearchDataProgress;
|
||||
[TaskType.FixGalleryPage]: TaskFixGalleryPageProgress;
|
||||
[TaskType.Import]: TaskImportProgress;
|
||||
};
|
||||
|
||||
export type TaskProgress<T extends TaskType = TaskType> = {
|
||||
|
||||
Reference in New Issue
Block a user