feat: check for available updates
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user