aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/types
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2026-01-14 12:12:04 +0800
committerGitHub <noreply@github.com>2026-01-14 12:12:04 +0800
commitd11e3d6f4f05a150fa285d974d9836b972fd0ed5 (patch)
tree220f1968d22c4116bb86849168e242eb18234921 /ui/src/types
parentf1babdf9a625ddbb661f4e0678e6258511347656 (diff)
parentb8cfb443b23e644ac0a7f469b500b2beaf001e9a (diff)
downloadDropOut-d11e3d6f4f05a150fa285d974d9836b972fd0ed5.tar.gz
DropOut-d11e3d6f4f05a150fa285d974d9836b972fd0ed5.zip
Merge pull request #12 from HsiangNianian/dev
Diffstat (limited to 'ui/src/types')
-rw-r--r--ui/src/types/index.ts38
1 files changed, 38 insertions, 0 deletions
diff --git a/ui/src/types/index.ts b/ui/src/types/index.ts
new file mode 100644
index 0000000..b7ff0a0
--- /dev/null
+++ b/ui/src/types/index.ts
@@ -0,0 +1,38 @@
+export type ViewType = "home" | "versions" | "settings";
+
+export interface Version {
+ id: string;
+ type: string;
+ url: string;
+ time: string;
+ releaseTime: string;
+}
+
+export interface Account {
+ type: "Offline" | "Microsoft";
+ username: string;
+ uuid: string;
+}
+
+export interface DeviceCodeResponse {
+ user_code: string;
+ device_code: string;
+ verification_uri: string;
+ expires_in: number;
+ interval: number;
+ message?: string;
+}
+
+export interface LauncherConfig {
+ min_memory: number;
+ max_memory: number;
+ java_path: string;
+ width: number;
+ height: number;
+}
+
+export interface JavaInstallation {
+ path: string;
+ version: string;
+ is_64bit: boolean;
+}