feat: check for available updates

This commit is contained in:
2026-06-16 19:52:23 +02:00
parent 69d0780bac
commit 957182611d
7 changed files with 169 additions and 102 deletions
+18
View File
@@ -1591,6 +1591,24 @@ export namespace main {
this.moving = source["moving"];
}
}
export class UpdateInfo {
current: string;
latest: string;
available: boolean;
url: string;
static createFrom(source: any = {}) {
return new UpdateInfo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.current = source["current"];
this.latest = source["latest"];
this.available = source["available"];
this.url = source["url"];
}
}
export class WKMacro {
label: string;
text: string;