feat: Contest mode added

This commit is contained in:
2026-07-04 22:54:41 +02:00
parent dd4b0004a5
commit e590a58702
8 changed files with 292 additions and 7 deletions
+3
View File
@@ -14,6 +14,7 @@ import {powergenius} from '../models';
import {winkeyer} from '../models';
import {alerts} from '../models';
import {audio} from '../models';
import {contest} from '../models';
import {operating} from '../models';
import {udp} from '../models';
import {lookup} from '../models';
@@ -391,6 +392,8 @@ export function ListAwardReferences(arg1:string):Promise<Array<awardref.Ref>>;
export function ListClusterServers():Promise<Array<cluster.ServerConfig>>;
export function ListContests():Promise<Array<contest.Def>>;
export function ListCountries():Promise<Array<string>>;
export function ListOperatingTree():Promise<Array<operating.Station>>;
+4
View File
@@ -746,6 +746,10 @@ export function ListClusterServers() {
return window['go']['main']['App']['ListClusterServers']();
}
export function ListContests() {
return window['go']['main']['App']['ListContests']();
}
export function ListCountries() {
return window['go']['main']['App']['ListCountries']();
}
+21
View File
@@ -879,6 +879,27 @@ export namespace cluster {
}
export namespace contest {
export class Def {
code: string;
name: string;
exchange: string;
static createFrom(source: any = {}) {
return new Def(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.code = source["code"];
this.name = source["name"];
this.exchange = source["exchange"];
}
}
}
export namespace extsvc {
export class ServiceConfig {