feat(SystemStatistics): add system jumps and kills statistics with toggle functionality
This commit is contained in:
6
frontend/wailsjs/go/main/App.d.ts
vendored
6
frontend/wailsjs/go/main/App.d.ts
vendored
@@ -10,6 +10,10 @@ export function ESILoginStatus():Promise<string>;
|
||||
|
||||
export function GetCharacterLocations():Promise<Array<main.CharacterLocation>>;
|
||||
|
||||
export function GetSystemJumps():Promise<Array<main.SystemJumps>>;
|
||||
|
||||
export function GetSystemKills():Promise<Array<main.SystemKills>>;
|
||||
|
||||
export function Greet(arg1:string):Promise<string>;
|
||||
|
||||
export function ListCharacters():Promise<Array<main.CharacterInfo>>;
|
||||
@@ -18,6 +22,8 @@ export function ListSystemsWithRegions():Promise<Array<main.SystemRegion>>;
|
||||
|
||||
export function PostRouteForAllByNames(arg1:string,arg2:Array<string>):Promise<void>;
|
||||
|
||||
export function ResolveSystemIDByName(arg1:string):Promise<number>;
|
||||
|
||||
export function SetDestinationForAll(arg1:string,arg2:boolean,arg3:boolean):Promise<void>;
|
||||
|
||||
export function StartESILogin():Promise<string>;
|
||||
|
||||
@@ -18,6 +18,14 @@ export function GetCharacterLocations() {
|
||||
return window['go']['main']['App']['GetCharacterLocations']();
|
||||
}
|
||||
|
||||
export function GetSystemJumps() {
|
||||
return window['go']['main']['App']['GetSystemJumps']();
|
||||
}
|
||||
|
||||
export function GetSystemKills() {
|
||||
return window['go']['main']['App']['GetSystemKills']();
|
||||
}
|
||||
|
||||
export function Greet(arg1) {
|
||||
return window['go']['main']['App']['Greet'](arg1);
|
||||
}
|
||||
@@ -34,6 +42,10 @@ export function PostRouteForAllByNames(arg1, arg2) {
|
||||
return window['go']['main']['App']['PostRouteForAllByNames'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function ResolveSystemIDByName(arg1) {
|
||||
return window['go']['main']['App']['ResolveSystemIDByName'](arg1);
|
||||
}
|
||||
|
||||
export function SetDestinationForAll(arg1, arg2, arg3) {
|
||||
return window['go']['main']['App']['SetDestinationForAll'](arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
@@ -55,6 +55,38 @@ export namespace main {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
export class SystemJumps {
|
||||
system_id: number;
|
||||
ship_jumps: number;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new SystemJumps(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.system_id = source["system_id"];
|
||||
this.ship_jumps = source["ship_jumps"];
|
||||
}
|
||||
}
|
||||
export class SystemKills {
|
||||
system_id: number;
|
||||
ship_kills: number;
|
||||
pod_kills: number;
|
||||
npc_kills: number;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new SystemKills(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.system_id = source["system_id"];
|
||||
this.ship_kills = source["ship_kills"];
|
||||
this.pod_kills = source["pod_kills"];
|
||||
this.npc_kills = source["npc_kills"];
|
||||
}
|
||||
}
|
||||
export class SystemRegion {
|
||||
system: string;
|
||||
region: string;
|
||||
|
||||
Reference in New Issue
Block a user