feat: Add option to control menu icon

This commit is contained in:
MystiPanda
2024-03-10 19:54:47 +08:00
parent c65b280020
commit 739161849a
6 changed files with 53 additions and 14 deletions

View File

@@ -14,47 +14,55 @@ import LogsSvg from "@/assets/image/itemicon/logs.svg?react";
import TestSvg from "@/assets/image/itemicon/test.svg?react";
import SettingsSvg from "@/assets/image/itemicon/settings.svg?react";
import WifiRoundedIcon from "@mui/icons-material/WifiRounded";
import DnsRoundedIcon from "@mui/icons-material/DnsRounded";
import LanguageRoundedIcon from "@mui/icons-material/LanguageRounded";
import ForkRightRoundedIcon from "@mui/icons-material/ForkRightRounded";
import DvrRoundedIcon from "@mui/icons-material/DvrRounded";
import WifiTetheringRoundedIcon from "@mui/icons-material/WifiTetheringRounded";
import SettingsRoundedIcon from "@mui/icons-material/SettingsRounded";
export const routers = [
{
label: "Label-Proxies",
link: "/",
icon: <ProxiesSvg />,
icon: [<WifiRoundedIcon />, <ProxiesSvg />],
ele: ProxiesPage,
},
{
label: "Label-Profiles",
link: "/profile",
icon: <ProfilesSvg />,
icon: [<DnsRoundedIcon />, <ProfilesSvg />],
ele: ProfilesPage,
},
{
label: "Label-Connections",
link: "/connections",
icon: <ConnectionsSvg />,
icon: [<LanguageRoundedIcon />, <ConnectionsSvg />],
ele: ConnectionsPage,
},
{
label: "Label-Rules",
link: "/rules",
icon: <RulesSvg />,
icon: [<ForkRightRoundedIcon />, <RulesSvg />],
ele: RulesPage,
},
{
label: "Label-Logs",
link: "/logs",
icon: <LogsSvg />,
icon: [<DvrRoundedIcon />, <LogsSvg />],
ele: LogsPage,
},
{
label: "Label-Test",
link: "/test",
icon: <TestSvg />,
icon: [<WifiTetheringRoundedIcon />, <TestSvg />],
ele: TestPage,
},
{
label: "Label-Settings",
link: "/settings",
icon: <SettingsSvg />,
icon: [<SettingsRoundedIcon />, <SettingsSvg />],
ele: SettingsPage,
},
];