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 { 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 ? (
<Route path="*" element={<BaseAuthenticatedPage />}>
<Route path="iso" element={<IsoFilesRoute />} />
<Route path="vms" element={<VirtualMachinesRoute />} />
<Route path="sysinfo" element={<SysInfoRoute />} />
<Route path="*" element={<NotFoundRoute />} />
</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 {
Box,
@ -45,9 +45,9 @@ export function BaseAuthenticatedPage(): React.ReactElement {
icon={<Icon path={mdiHome} size={1} />}
/>
<NavLink
label="Networks"
uri="/networks"
icon={<Icon path={mdiLanPending} size={1} />}
label="Virtual machines"
uri="/vms"
icon={<Icon path={mdiBoxShadow} size={1} />}
/>
<NavLink
label="ISO files"