init: initial commit

This commit is contained in:
Blizzard
2026-04-10 13:49:04 +08:00
commit 7b1588e2ff
56 changed files with 5499 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {main} from '../models';
export function AddGame(arg1:main.Game):Promise<main.Game>;
export function DeleteGame(arg1:string):Promise<void>;
export function GetActiveGameID():Promise<string>;
export function GetAllGames():Promise<Array<main.Game>>;
export function SetActiveGame(arg1:string):Promise<void>;
export function TestConnection(arg1:main.Game):Promise<main.ConnectionResult>;
export function UpdateGame(arg1:main.Game):Promise<void>;
export function XRayConnection(arg1:main.Game):Promise<main.XRayResult>;
+35
View File
@@ -0,0 +1,35 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function AddGame(arg1) {
return window['go']['main']['App']['AddGame'](arg1);
}
export function DeleteGame(arg1) {
return window['go']['main']['App']['DeleteGame'](arg1);
}
export function GetActiveGameID() {
return window['go']['main']['App']['GetActiveGameID']();
}
export function GetAllGames() {
return window['go']['main']['App']['GetAllGames']();
}
export function SetActiveGame(arg1) {
return window['go']['main']['App']['SetActiveGame'](arg1);
}
export function TestConnection(arg1) {
return window['go']['main']['App']['TestConnection'](arg1);
}
export function UpdateGame(arg1) {
return window['go']['main']['App']['UpdateGame'](arg1);
}
export function XRayConnection(arg1) {
return window['go']['main']['App']['XRayConnection'](arg1);
}
+61
View File
@@ -0,0 +1,61 @@
export namespace main {
export class ConnectionResult {
success: boolean;
message: string;
latency: number;
status: number;
static createFrom(source: any = {}) {
return new ConnectionResult(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.success = source["success"];
this.message = source["message"];
this.latency = source["latency"];
this.status = source["status"];
}
}
export class Game {
id: string;
name: string;
icon: string;
url: string;
token: string;
static createFrom(source: any = {}) {
return new Game(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.id = source["id"];
this.name = source["name"];
this.icon = source["icon"];
this.url = source["url"];
this.token = source["token"];
}
}
export class XRayResult {
success: boolean;
body: string;
latency: number;
error: string;
static createFrom(source: any = {}) {
return new XRayResult(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.success = source["success"];
this.body = source["body"];
this.latency = source["latency"];
this.error = source["error"];
}
}
}