mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding toast component
This commit is contained in:
parent
da607fe741
commit
0162ebd133
13 changed files with 136 additions and 82 deletions
|
@ -1,14 +1,3 @@
|
|||
export enum GameStatus {
|
||||
Seeding = "seeding",
|
||||
Downloading = "downloading",
|
||||
Paused = "paused",
|
||||
CheckingFiles = "checking_files",
|
||||
DownloadingMetadata = "downloading_metadata",
|
||||
Cancelled = "cancelled",
|
||||
Decompressing = "decompressing",
|
||||
Finished = "finished",
|
||||
}
|
||||
|
||||
export enum Downloader {
|
||||
RealDebrid,
|
||||
Torrent,
|
||||
|
@ -29,13 +18,3 @@ export const formatBytes = (bytes: number): string => {
|
|||
|
||||
return `${Math.trunc(formatedByte * 10) / 10} ${FORMAT[base]}`;
|
||||
};
|
||||
|
||||
export class GameStatusHelper {
|
||||
public static isDownloading(status: string | null) {
|
||||
return status === "active";
|
||||
}
|
||||
|
||||
public static isReady(status: string | null) {
|
||||
return status === "complete";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue