mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 21:33:44 +08:00
* fix: missing proxy group delay check animation * chore: cleanup * chore: adjust content style
75 lines
2.4 KiB
TypeScript
75 lines
2.4 KiB
TypeScript
import LogsPage from "./logs";
|
|
import ProxiesPage from "./proxies";
|
|
import TestPage from "./test";
|
|
import ProfilesPage from "./profiles";
|
|
import SettingsPage from "./settings";
|
|
import ConnectionsPage from "./connections";
|
|
import RulesPage from "./rules";
|
|
import { BaseErrorBoundary } from "@/components/base";
|
|
|
|
import ProxiesSvg from "@/assets/image/itemicon/proxies.svg?react";
|
|
import ProfilesSvg from "@/assets/image/itemicon/profiles.svg?react";
|
|
import ConnectionsSvg from "@/assets/image/itemicon/connections.svg?react";
|
|
import RulesSvg from "@/assets/image/itemicon/rules.svg?react";
|
|
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 SubjectRoundedIcon from "@mui/icons-material/SubjectRounded";
|
|
import WifiTetheringRoundedIcon from "@mui/icons-material/WifiTetheringRounded";
|
|
import SettingsRoundedIcon from "@mui/icons-material/SettingsRounded";
|
|
|
|
export const routers = [
|
|
{
|
|
label: "Label-Proxies",
|
|
path: "/",
|
|
icon: [<WifiRoundedIcon />, <ProxiesSvg />],
|
|
element: <ProxiesPage />,
|
|
},
|
|
{
|
|
label: "Label-Profiles",
|
|
path: "/profile",
|
|
icon: [<DnsRoundedIcon />, <ProfilesSvg />],
|
|
element: <ProfilesPage />,
|
|
},
|
|
{
|
|
label: "Label-Connections",
|
|
path: "/connections",
|
|
icon: [<LanguageRoundedIcon />, <ConnectionsSvg />],
|
|
element: <ConnectionsPage />,
|
|
},
|
|
{
|
|
label: "Label-Rules",
|
|
path: "/rules",
|
|
icon: [<ForkRightRoundedIcon />, <RulesSvg />],
|
|
element: <RulesPage />,
|
|
},
|
|
{
|
|
label: "Label-Logs",
|
|
path: "/logs",
|
|
icon: [<SubjectRoundedIcon />, <LogsSvg />],
|
|
element: <LogsPage />,
|
|
},
|
|
{
|
|
label: "Label-Test",
|
|
path: "/test",
|
|
icon: [<WifiTetheringRoundedIcon />, <TestSvg />],
|
|
element: <TestPage />,
|
|
},
|
|
{
|
|
label: "Label-Settings",
|
|
path: "/settings",
|
|
icon: [<SettingsRoundedIcon />, <SettingsSvg />],
|
|
element: <SettingsPage />,
|
|
},
|
|
].map((router) => ({
|
|
...router,
|
|
element: (
|
|
<BaseErrorBoundary key={router.label}>{router.element}</BaseErrorBoundary>
|
|
),
|
|
}));
|