Create network filters route

This commit is contained in:
2024-01-03 14:50:59 +01:00
parent 706bce0fd8
commit 22f5acd0ff
11 changed files with 180 additions and 31 deletions

View File

@ -3,7 +3,9 @@ import {
mdiDisc,
mdiHome,
mdiInformation,
mdiLan
mdiLan,
mdiSecurity,
mdiSecurityNetwork,
} from "@mdi/js";
import Icon from "@mdi/react";
import {
@ -17,6 +19,7 @@ import {
import { Outlet, useLocation } from "react-router-dom";
import { RouterLink } from "./RouterLink";
import { VirtWebAppBar } from "./VirtWebAppBar";
import { isDebug } from "../utils/DebugUtils";
export function BaseAuthenticatedPage(): React.ReactElement {
return (
@ -60,6 +63,14 @@ export function BaseAuthenticatedPage(): React.ReactElement {
uri="/net"
icon={<Icon path={mdiLan} size={1} />}
/>
{/* TODO : remove debug marker */}
{isDebug() && (
<NavLink
label="Network filters"
uri="/nwfilter"
icon={<Icon path={mdiSecurityNetwork} size={1} />}
/>
)}
<NavLink
label="ISO files"
uri="/iso"