From a4a3b36c4e82d75d88ac500852668bad77f7609e Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 4 May 2024 09:12:51 +0200 Subject: [PATCH] Ready to implement Virtual Machines management --- remote_frontend/src/App.tsx | 2 ++ remote_frontend/src/widgets/SystemInfoWidget.tsx | 2 +- remote_frontend/src/widgets/VirtualMachinesWidget.tsx | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 remote_frontend/src/widgets/VirtualMachinesWidget.tsx diff --git a/remote_frontend/src/App.tsx b/remote_frontend/src/App.tsx index 4c09898..abf103d 100644 --- a/remote_frontend/src/App.tsx +++ b/remote_frontend/src/App.tsx @@ -4,6 +4,7 @@ import { AuthRouteWidget } from "./routes/AuthRouteWidget"; import { AsyncWidget } from "./widgets/AsyncWidget"; import { MainMenu } from "./widgets/MainMenu"; import { SystemInfoWidget } from "./widgets/SystemInfoWidget"; +import { VirtualMachinesWidget } from "./widgets/VirtualMachinesWidget"; const useStyles = makeStyles({ title: typographyStyles.title2, @@ -39,6 +40,7 @@ function AppInner(): React.ReactElement { VirtWebRemote + ); diff --git a/remote_frontend/src/widgets/SystemInfoWidget.tsx b/remote_frontend/src/widgets/SystemInfoWidget.tsx index d1f8ee8..0f53a1b 100644 --- a/remote_frontend/src/widgets/SystemInfoWidget.tsx +++ b/remote_frontend/src/widgets/SystemInfoWidget.tsx @@ -58,7 +58,7 @@ function SystemInfoWidgetInner(): React.ReactElement { console.error(e); toast("Error", "Failed to refresh system status!", "error"); } - }, 1500); + }, 5000); return () => clearInterval(interval); }); diff --git a/remote_frontend/src/widgets/VirtualMachinesWidget.tsx b/remote_frontend/src/widgets/VirtualMachinesWidget.tsx new file mode 100644 index 0000000..7e8145a --- /dev/null +++ b/remote_frontend/src/widgets/VirtualMachinesWidget.tsx @@ -0,0 +1,5 @@ +import { SectionContainer } from "./SectionContainer"; + +export function VirtualMachinesWidget(): React.ReactElement { + return TODO; +}