feat(go, ts): add system-region mapping and highlight functionality
This commit is contained in:
2
frontend/wailsjs/go/main/App.d.ts
vendored
2
frontend/wailsjs/go/main/App.d.ts
vendored
@@ -14,6 +14,8 @@ export function Greet(arg1:string):Promise<string>;
|
||||
|
||||
export function ListCharacters():Promise<Array<main.CharacterInfo>>;
|
||||
|
||||
export function ListSystemsWithRegions():Promise<Array<main.SystemRegion>>;
|
||||
|
||||
export function PostRouteForAllByNames(arg1:string,arg2:Array<string>):Promise<void>;
|
||||
|
||||
export function SetDestinationForAll(arg1:string,arg2:boolean,arg3:boolean):Promise<void>;
|
||||
|
||||
@@ -26,6 +26,10 @@ export function ListCharacters() {
|
||||
return window['go']['main']['App']['ListCharacters']();
|
||||
}
|
||||
|
||||
export function ListSystemsWithRegions() {
|
||||
return window['go']['main']['App']['ListSystemsWithRegions']();
|
||||
}
|
||||
|
||||
export function PostRouteForAllByNames(arg1, arg2) {
|
||||
return window['go']['main']['App']['PostRouteForAllByNames'](arg1, arg2);
|
||||
}
|
||||
|
||||
@@ -53,6 +53,20 @@ export namespace main {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
export class SystemRegion {
|
||||
system: string;
|
||||
region: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new SystemRegion(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.system = source["system"];
|
||||
this.region = source["region"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user