forgeplus-react/Routes.js

49 lines
1.3 KiB
JavaScript

// import app from './src/App'
// import users from './src/forge/users/Index';
// import Detail from "./src/forge/Main/Detail";
// import Information from "./src/forge/Information/index"
// import NewsDetail from './src/forge/Information/Pages/newsDetail';
export default [
{
key:"zone",
path: "/zone/:deptId",
// component: app,
},
{
key: "zoneNews",
path: "/zone/:deptId/newdetail/:id",
// component: app
},
{
key:"detail",
path: "/:owner/:projectsId",
// component: app,
}
];
export const deepRoutes = [
{
key: "zoneNews",
path: "/zone/:deptId/newdetail/:id",
// component: NewsDetail
},
{
key: "zone",
path: "/zone/:deptId",
// component: Information
},
{
key: "detail",
path: "/:owner/:projectsId",
// component: Detail,
},
{
key: "owner",
path: "/:owner",
// component: Detail,
}
]
// 不进行组织或个人判断
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"]