Ready to implement VM list

This commit is contained in:
Pierre HUBERT 2023-09-08 16:33:45 +02:00
parent e9dcc57e11
commit 7073b9b7f1
3 changed files with 9 additions and 4 deletions

View File

@ -15,6 +15,7 @@ import { AuthApi } from "./api/AuthApi";
import { IsoFilesRoute } from "./routes/IsoFilesRoute"; import { IsoFilesRoute } from "./routes/IsoFilesRoute";
import { ServerApi } from "./api/ServerApi"; import { ServerApi } from "./api/ServerApi";
import { SysInfoRoute } from "./routes/SysInfoRoute"; import { SysInfoRoute } from "./routes/SysInfoRoute";
import { VirtualMachinesRoute } from "./routes/VirtualMachinesRoute";
interface AuthContext { interface AuthContext {
signedIn: boolean; signedIn: boolean;
@ -36,6 +37,7 @@ export function App() {
signedIn || ServerApi.Config.auth_disabled ? ( signedIn || ServerApi.Config.auth_disabled ? (
<Route path="*" element={<BaseAuthenticatedPage />}> <Route path="*" element={<BaseAuthenticatedPage />}>
<Route path="iso" element={<IsoFilesRoute />} /> <Route path="iso" element={<IsoFilesRoute />} />
<Route path="vms" element={<VirtualMachinesRoute />} />
<Route path="sysinfo" element={<SysInfoRoute />} /> <Route path="sysinfo" element={<SysInfoRoute />} />
<Route path="*" element={<NotFoundRoute />} /> <Route path="*" element={<NotFoundRoute />} />
</Route> </Route>

View File

@ -0,0 +1,3 @@
export function VirtualMachinesRoute(): React.ReactElement {
return <></>;
}

View File

@ -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 Icon from "@mdi/react";
import { import {
Box, Box,
@ -45,9 +45,9 @@ export function BaseAuthenticatedPage(): React.ReactElement {
icon={<Icon path={mdiHome} size={1} />} icon={<Icon path={mdiHome} size={1} />}
/> />
<NavLink <NavLink
label="Networks" label="Virtual machines"
uri="/networks" uri="/vms"
icon={<Icon path={mdiLanPending} size={1} />} icon={<Icon path={mdiBoxShadow} size={1} />}
/> />
<NavLink <NavLink
label="ISO files" label="ISO files"