Cancel, Retry, and Warning download UI

This commit is contained in:
Geomitron
2020-02-11 20:50:51 -05:00
parent a98b03dcd4
commit db083d573a
13 changed files with 291 additions and 179 deletions

View File

@@ -1,8 +1,13 @@
export interface Download {
action: 'add' | 'retry' | 'continue' | 'cancel'
versionID: number
data ?: NewDownload
}
/**
* Contains the data required to start downloading a single chart
*/
export interface NewDownload {
versionID: number
avTagName: string
artist: string
charter: string
@@ -12,10 +17,11 @@ export interface NewDownload {
/**
* Represents the download progress of a single chart
*/
export interface Download {
export interface DownloadProgress {
versionID: number
title: string
header: string
description: string
percent: number
type: 'good' | 'warning' | 'error' | 'cancel'
}