forgeplus-react/Routes.js

59 lines
1.5 KiB
JavaScript
Raw Normal View History

2024-04-30 15:00:52 +08:00
import app from './src/App'
2024-04-16 09:21:49 +08:00
// import users from './src/forge/users/Index';
2024-04-30 15:00:52 +08:00
import Detail from "./src/forge/Main/Detail";
2024-04-16 09:21:49 +08:00
// import Information from "./src/forge/Information/index"
// import NewsDetail from './src/forge/Information/Pages/newsDetail';
2023-12-26 13:49:10 +08:00
export default [
2024-01-31 11:14:52 +08:00
{
key:"zone",
path: "/zone/:deptId",
2024-04-19 18:44:21 +08:00
// component: app,
2024-01-31 11:14:52 +08:00
},
{
key: "zoneNews",
path: "/zone/:deptId/newdetail/:id",
2024-04-19 18:44:21 +08:00
// component: app
2024-01-31 11:14:52 +08:00
},
2023-12-26 13:49:10 +08:00
{
key:"detail",
path: "/:owner/:projectsId",
2024-04-30 15:00:52 +08:00
component: app,
2024-01-05 15:01:16 +08:00
}
];
export const deepRoutes = [
{
2024-01-31 11:14:52 +08:00
key: "zoneNews",
path: "/zone/:deptId/newdetail/:id",
2024-05-06 12:49:41 +08:00
onlyHead: true,
2024-04-16 09:21:49 +08:00
// component: NewsDetail
2024-01-31 11:14:52 +08:00
},
{
key: "zone",
path: "/zone/:deptId",
2024-05-06 12:49:41 +08:00
onlyHead: true,
2024-04-16 09:21:49 +08:00
// component: Information
2024-01-31 11:14:52 +08:00
},
2024-05-09 17:22:07 +08:00
{
key: "detailBranch",
path: "/:owner/:projectsId/tree/:branchName",
onlyHead: false,
component: Detail,
},
2024-01-31 11:14:52 +08:00
{
key: "detail",
2024-01-05 15:01:16 +08:00
path: "/:owner/:projectsId",
2024-05-06 12:49:41 +08:00
onlyHead: false,
2024-04-30 15:00:52 +08:00
component: Detail,
2024-04-17 17:12:30 +08:00
},
{
key: "owner",
path: "/:owner",
2024-05-06 12:49:41 +08:00
onlyHead: true,
2024-04-17 17:12:30 +08:00
// component: Detail,
2024-01-05 15:01:16 +08:00
}
2024-04-17 17:12:30 +08:00
]
// 不进行组织或个人判断
2024-08-29 14:07:48 +08:00
export const specialRoute = ["explore", "settings", "setting", "mulan", "wiki", "issues", "setting", "trending", "code", "projects", "pulls", "mine", "login", "register", "email", "export", "nopage", "404", "403", "500", "501", "search", "organize", "login", "register", "resetPassword", "aboutus","educoder", "glcc","bindlogin", "softbot","zone", "undefined", "admins", "oauth", "competitions", "hiagent"]