Ready to implement VM list
This commit is contained in:
parent
e9dcc57e11
commit
7073b9b7f1
@ -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>
|
||||
|
3
virtweb_frontend/src/routes/VirtualMachinesRoute.tsx
Normal file
3
virtweb_frontend/src/routes/VirtualMachinesRoute.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
export function VirtualMachinesRoute(): React.ReactElement {
|
||||
return <></>;
|
||||
}
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user