Created the server.jsx routes
This commit is contained in:
parent
c78a9d516e
commit
86c8a55cec
22
webui/src/common/routes/server.jsx
Normal file
22
webui/src/common/routes/server.jsx
Normal file
@ -0,0 +1,22 @@
|
||||
import {Dashboard, Dns, Share as ShareIcon} from "@mui/icons-material";
|
||||
import Overview from "@/states/Root/pages/Overview";
|
||||
import {t} from "i18next";
|
||||
import Share from "@/states/Root/pages/Share";
|
||||
|
||||
export const routes = [
|
||||
{path: "/", element: <Overview />},
|
||||
{path: "/ports", element: <Share/>},
|
||||
]
|
||||
|
||||
export const sidebar = [
|
||||
{
|
||||
path: "/",
|
||||
icon: <Dns />,
|
||||
name: () => t("nav.server")
|
||||
},
|
||||
{
|
||||
path: "/ports",
|
||||
icon: <ShareIcon/>,
|
||||
name: () => t("nav.ports")
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user