Use tabs to organize UI

This commit is contained in:
2024-05-04 10:18:37 +02:00
parent a4a3b36c4e
commit e174bd4ae1
5 changed files with 100 additions and 18 deletions

View File

@ -0,0 +1,27 @@
import { APIClient } from "./ApiClient";
export interface VMInfo {
uiid: string;
name: string;
description?: string;
architecture: string;
memory: number;
number_vcpu: number;
can_get_state: boolean;
can_start: boolean;
can_shutdown: boolean;
can_kill: boolean;
can_reset: boolean;
can_suspend: boolean;
can_resume: boolean;
can_screenshot: boolean;
}
export class VMApi {
/**
* Get the list of VM that can be managed by this console
*/
static async GetList(): Promise<VMInfo[]> {
return (await APIClient.exec({ method: "GET", uri: "/vm/list" })).data;
}
}