[feature-274] Improve Oculus downloading + add Modal to choose from where to download Beat Saber

This commit is contained in:
MathieuG-P
2023-10-16 23:38:57 +02:00
parent f8b0874f7d
commit 08d1add47b
19 changed files with 342 additions and 76 deletions
+5
View File
@@ -1,3 +1,5 @@
import { BsStore } from "./models/bs-store.enum";
export interface PartialBSVersion {
BSVersion: string,
name?: string
@@ -13,4 +15,7 @@ export interface BSVersion extends PartialBSVersion {
steam?: boolean;
oculus?: boolean;
color?: string;
downloadedFrom?: BsStore;
}
+4
View File
@@ -16,3 +16,7 @@ export function hourToMin(hours: number): number {
export function hourToS(hours: number): number {
return hours * minToS(MINUTES_IN_HOUR);
}
export function msToS(milliseconds: number): number {
return milliseconds / 1000;
}
+4
View File
@@ -0,0 +1,4 @@
export enum BsStore {
STEAM = "steam",
OCULUS = "oculus",
}