Add update check functionality
Implement version checking and update notifications in the GUI
This commit is contained in:
@@ -189,6 +189,16 @@ export async function getHealth(): Promise<DaemonHealth> {
|
||||
return await invoke<DaemonHealth>("health");
|
||||
}
|
||||
|
||||
export interface UpdateInfo { current: string; latest: string; has_update: boolean; url: string }
|
||||
|
||||
export async function checkUpdate(): Promise<UpdateInfo> {
|
||||
return await invoke<UpdateInfo>("check_update");
|
||||
}
|
||||
|
||||
export async function openExternal(url: string): Promise<void> {
|
||||
await invoke("open_external", { url });
|
||||
}
|
||||
|
||||
export async function setZoom(workspaceId: string, surfaceId: string | null): Promise<void> {
|
||||
await invoke("set_zoom", { workspaceId, surfaceId });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user