You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
226 lines
5.8 KiB
226 lines
5.8 KiB
import HomePage from './components/pages/demo/HomePage';
|
|
import AboutPage from './components/pages/demo/AboutPage';
|
|
import SettingPage from './components/pages/setting';
|
|
|
|
import ProfileCenter from './components/pages/demo/ProfileCenter';
|
|
import FormPage from './components/pages/demo/FormPage';
|
|
import DynamicRoutePage from './components/pages/demo/DynamicRoutePage';
|
|
import NotFoundPage from './components/pages/demo/NotFoundPage';
|
|
import PanelLeftPage from './components/pages/demo/PanelLeftPage';
|
|
import PanelRightPage from './components/pages/demo/PanelRightPage';
|
|
|
|
import PanelLeftCommunityPage from './components/pages/course/memo/PanelLeftCommunityPage';
|
|
import HomeWorkDetailPage from './components/pages/course/homework/HomeWorkDetail';
|
|
|
|
import TestStyledComponents from './components/pages/demo/TestStyledComponents';
|
|
import TestMotionAnimation from './components/pages/demo/TestMotionAnimation';
|
|
|
|
import TestSwipeTab from './components/pages/demo/TestSwipeTab';
|
|
import TestReduxCounterPage from './components/pages/demo/redux/TestReduxCounterPage';
|
|
import TestRealWorldReduxPage from './components/pages/demo/redux/TestRealWorldReduxPage';
|
|
import TestNormalizr from './components/pages/demo/redux/TestNormalizr';
|
|
|
|
import IndexPage from './components/pages/IndexPage';
|
|
import CoursePage from './components/pages/course/CoursePage';
|
|
import MemoSinglePage from './components/pages/course/MemoSinglePage';
|
|
|
|
import MemoDetailPage from './components/pages/course/MemoDetailPage'
|
|
import MemoNewPage from './components/pages/course/memo/memoNew';
|
|
import MemberPage from './components/pages/course/member';
|
|
|
|
import MemoDetailPage2 from './components/pages/course/memoDetail2';
|
|
|
|
import PerfectInformationPage from './components/pages/login/PerfectInformation';
|
|
import RegisterPage from './components/pages/login/RegisterPage';
|
|
import RegSetPsw from './components/pages/login/RegisterSetPsw';
|
|
import RegSetRole from './components/pages/login/RegisterChooseRole';
|
|
import OrgSelectPage from './components/pages/login/OrgSelectPage';
|
|
|
|
|
|
import LoginPage from './components/LoginPage';
|
|
|
|
|
|
export default [
|
|
{
|
|
path: '/',
|
|
component: IndexPage,
|
|
},
|
|
{
|
|
path: '/login',
|
|
component: LoginPage,
|
|
},
|
|
{
|
|
path: '/react-mobile7/build/index.html',
|
|
component: IndexPage,
|
|
},
|
|
{
|
|
path: '/f7/index.html',
|
|
component: IndexPage,
|
|
},
|
|
|
|
{
|
|
path: '/course',
|
|
// component: CoursePage,
|
|
|
|
async(routeTo, routeFrom, resolve, reject) {
|
|
// dynamic import component; returns promise
|
|
const reactComponent = () => import('./components/pages/course/CoursePage');
|
|
// resolve promise
|
|
reactComponent().then((rc) => {
|
|
// resolve with component
|
|
resolve({ component: rc.default })
|
|
});
|
|
},
|
|
},
|
|
|
|
{
|
|
path: '/homeworkDetail',
|
|
component: HomeWorkDetailPage,
|
|
},
|
|
{
|
|
path: '/memoSingleDetail',
|
|
component: MemoSinglePage
|
|
},
|
|
{
|
|
path: '/memoNew',
|
|
// component: MemoNewPage
|
|
|
|
async(routeTo, routeFrom, resolve, reject) {
|
|
// dynamic import component; returns promise
|
|
const reactComponent = () => import('./components/pages/course/memo/memoNew');
|
|
// resolve promise
|
|
reactComponent().then((rc) => {
|
|
// resolve with component
|
|
resolve({ component: rc.default })
|
|
});
|
|
},
|
|
},
|
|
{
|
|
path: '/member',
|
|
component: MemberPage
|
|
|
|
},
|
|
|
|
{
|
|
path: '/memoDetail',
|
|
component: MemoDetailPage2,
|
|
},
|
|
|
|
{
|
|
path: '/orgSelectPage',
|
|
component: OrgSelectPage,
|
|
},
|
|
{
|
|
path:'/RegSetPsw',
|
|
component:RegSetPsw
|
|
},
|
|
{
|
|
path:'/RegSetRole',
|
|
component:RegSetRole
|
|
},
|
|
{
|
|
path: '/demoHome',
|
|
component: HomePage,
|
|
},
|
|
{
|
|
path: '/setting',
|
|
component: SettingPage,
|
|
},
|
|
|
|
|
|
{
|
|
path: '/panel-left-community/',
|
|
component: PanelLeftCommunityPage,
|
|
},
|
|
{
|
|
path: '/panel-left/',
|
|
component: PanelLeftPage,
|
|
},
|
|
{
|
|
path: '/panel-right/',
|
|
component: PanelRightPage,
|
|
},
|
|
|
|
{
|
|
path: '/about/',
|
|
// component: AboutPage,
|
|
|
|
async(routeTo, routeFrom, resolve, reject) {
|
|
// dynamic import component; returns promise
|
|
const reactComponent = () => import('./components/pages/demo/AboutPage');
|
|
// resolve promise
|
|
reactComponent().then((rc) => {
|
|
// resolve with component
|
|
resolve({ component: rc.default })
|
|
});
|
|
},
|
|
},
|
|
{
|
|
path: '/profile-center/:userLogin',
|
|
// component: ProfileCenter,
|
|
|
|
async(routeTo, routeFrom, resolve, reject) {
|
|
// dynamic import component; returns promise
|
|
const reactComponent = () => import('./components/pages/demo/ProfileCenter');
|
|
// resolve promise
|
|
reactComponent().then((rc) => {
|
|
// resolve with component
|
|
resolve({ component: rc.default })
|
|
});
|
|
},
|
|
},
|
|
{
|
|
path: '/profile-center',
|
|
// component: ProfileCenter,
|
|
|
|
async(routeTo, routeFrom, resolve, reject) {
|
|
// dynamic import component; returns promise
|
|
const reactComponent = () => import('./components/pages/demo/ProfileCenter');
|
|
// resolve promise
|
|
reactComponent().then((rc) => {
|
|
// resolve with component
|
|
resolve({ component: rc.default })
|
|
});
|
|
},
|
|
},
|
|
// {
|
|
// path: '/form/',
|
|
// component: FormPage,
|
|
// },
|
|
|
|
// {
|
|
// path: '/dynamic-route/blog/:blogId/post/:postId/',
|
|
// component: DynamicRoutePage,
|
|
// },
|
|
|
|
// {
|
|
// path: '/testStyledComponents/',
|
|
// component: TestStyledComponents,
|
|
// },
|
|
// {
|
|
// path: '/testMotionAnimation/',
|
|
// component: TestMotionAnimation,
|
|
// },
|
|
// {
|
|
// path: '/testSwipeTab/',
|
|
// component: TestSwipeTab,
|
|
// },
|
|
// {
|
|
// path: '/testReudxCounter',
|
|
// component: TestReduxCounterPage,
|
|
// },
|
|
// {
|
|
// path: '/testRealWorldReduxPage',
|
|
// component: TestRealWorldReduxPage,
|
|
// },
|
|
// {
|
|
// path: '/testNormalizr',
|
|
// component: TestNormalizr,
|
|
// },
|
|
|
|
{
|
|
path: '(.*)',
|
|
component: NotFoundPage,
|
|
},
|
|
];
|