chore: new rule page

This commit is contained in:
GyDi 2021-12-12 01:09:51 +08:00
parent 1e2e6ca8a6
commit 74b51509b6
2 changed files with 16 additions and 3 deletions

View File

@ -6,9 +6,9 @@ import { atomPaletteMode } from "../states/setting";
import LogoSvg from "../assets/image/logo.svg"; import LogoSvg from "../assets/image/logo.svg";
import LogPage from "../pages/log"; import LogPage from "../pages/log";
import HomePage from "../pages/home"; import HomePage from "../pages/home";
import RulesPage from "../pages/rules";
import ProxyPage from "../pages/proxy"; import ProxyPage from "../pages/proxy";
import SettingPage from "../pages/setting"; import SettingPage from "../pages/setting";
import ProfilesPage from "../pages/profiles";
import ConnectionsPage from "../pages/connections"; import ConnectionsPage from "../pages/connections";
import ListItemLink from "../components/list-item-link"; import ListItemLink from "../components/list-item-link";
import Traffic from "../components/traffic"; import Traffic from "../components/traffic";
@ -23,7 +23,7 @@ const Layout = () => {
}, },
{ {
label: "规则", label: "规则",
link: "/profiles", link: "/rules",
}, },
{ {
label: "连接", label: "连接",
@ -93,7 +93,7 @@ const Layout = () => {
<Routes> <Routes>
<Route path="/" element={<HomePage />} /> <Route path="/" element={<HomePage />} />
<Route path="/proxy" element={<ProxyPage />} /> <Route path="/proxy" element={<ProxyPage />} />
<Route path="/profiles" element={<ProfilesPage />} /> <Route path="/rules" element={<RulesPage />} />
<Route path="/log" element={<LogPage />} /> <Route path="/log" element={<LogPage />} />
<Route path="/connections" element={<ConnectionsPage />} /> <Route path="/connections" element={<ConnectionsPage />} />
<Route path="/setting" element={<SettingPage />} /> <Route path="/setting" element={<SettingPage />} />

13
src/pages/rules.tsx Normal file
View File

@ -0,0 +1,13 @@
import { Box, Typography } from "@mui/material";
const RulesPage = () => {
return (
<Box sx={{ width: 0.9, maxWidth: "850px", mx: "auto", mb: 2 }}>
<Typography variant="h4" component="h1" sx={{ py: 2 }}>
Rules
</Typography>
</Box>
);
};
export default RulesPage;