From 7073b9b7f1452c0e9febecfbb85b489cd6209435 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Fri, 8 Sep 2023 16:33:45 +0200 Subject: [PATCH] Ready to implement VM list --- virtweb_frontend/src/App.tsx | 2 ++ virtweb_frontend/src/routes/VirtualMachinesRoute.tsx | 3 +++ virtweb_frontend/src/widgets/BaseAuthenticatedPage.tsx | 8 ++++---- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 virtweb_frontend/src/routes/VirtualMachinesRoute.tsx diff --git a/virtweb_frontend/src/App.tsx b/virtweb_frontend/src/App.tsx index 4f95754..e30d169 100644 --- a/virtweb_frontend/src/App.tsx +++ b/virtweb_frontend/src/App.tsx @@ -15,6 +15,7 @@ import { AuthApi } from "./api/AuthApi"; import { IsoFilesRoute } from "./routes/IsoFilesRoute"; import { ServerApi } from "./api/ServerApi"; import { SysInfoRoute } from "./routes/SysInfoRoute"; +import { VirtualMachinesRoute } from "./routes/VirtualMachinesRoute"; interface AuthContext { signedIn: boolean; @@ -36,6 +37,7 @@ export function App() { signedIn || ServerApi.Config.auth_disabled ? ( }> } /> + } /> } /> } /> diff --git a/virtweb_frontend/src/routes/VirtualMachinesRoute.tsx b/virtweb_frontend/src/routes/VirtualMachinesRoute.tsx new file mode 100644 index 0000000..5fa3624 --- /dev/null +++ b/virtweb_frontend/src/routes/VirtualMachinesRoute.tsx @@ -0,0 +1,3 @@ +export function VirtualMachinesRoute(): React.ReactElement { + return <>; +} diff --git a/virtweb_frontend/src/widgets/BaseAuthenticatedPage.tsx b/virtweb_frontend/src/widgets/BaseAuthenticatedPage.tsx index ff71406..b60adda 100644 --- a/virtweb_frontend/src/widgets/BaseAuthenticatedPage.tsx +++ b/virtweb_frontend/src/widgets/BaseAuthenticatedPage.tsx @@ -1,4 +1,4 @@ -import { mdiDisc, mdiHome, mdiInformation, mdiLanPending } from "@mdi/js"; +import { mdiBoxShadow, mdiDisc, mdiHome, mdiInformation } from "@mdi/js"; import Icon from "@mdi/react"; import { Box, @@ -45,9 +45,9 @@ export function BaseAuthenticatedPage(): React.ReactElement { icon={} /> } + label="Virtual machines" + uri="/vms" + icon={} />