feat(go, ts): add system-region mapping and highlight functionality

This commit is contained in:
2025-08-10 22:26:02 +02:00
parent 2561cd7d30
commit 97178bc9a5
7 changed files with 103 additions and 38 deletions

View File

@@ -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"];
}
}
}