mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 09:13:57 +00:00
feat: adding toast component
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user