Implemented Dowloads front-end

This commit is contained in:
Aria Moradi
2021-05-30 04:01:49 +04:30
parent 224c24ee9f
commit 5023e96301
13 changed files with 285 additions and 29 deletions

View File

@@ -67,6 +67,7 @@ interface IChapter {
index: number
chapterCount: number
pageCount: number
downloaded: boolean
}
interface IEpisode {
@@ -99,7 +100,7 @@ interface IPartialEpisode {
interface ICategory {
id: number
order: number
name: String
name: string
default: boolean
}
@@ -153,3 +154,16 @@ interface IAbout {
github: string
discord: string
}
interface IDownloadChapter{
chapterIndex: number
mangaId: number
state: 'Queued' | 'Downloading' | 'Finished' | 'Error'
progress: number
chapter: IChapter
}
interface IQueue {
status: 'Stopped' | 'Started'
queue: IDownloadChapter[]
}