您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

86 行
2.6 KiB

  1. import { lazy } from 'react';
  2. // project import
  3. import Loadable from 'components/Loadable';
  4. // import MinimalLayout from 'layout/MinimalLayout';
  5. import MainLayout from 'layout/MainLayout';
  6. // render - login
  7. const AuthLogin = Loadable(lazy(() => import('pages/authentication/Login')));
  8. const AuthRegister = Loadable(lazy(() => import('pages/authentication/RegisterCustom')));
  9. const RegisterForm = Loadable(lazy(() => import('pages/authentication/Register')));
  10. const BusRegisterForm = Loadable(lazy(() => import('pages/authentication/BusRegister')));
  11. const IAmSmartRegister = Loadable(lazy(() => import('pages/authentication/IAmSmartRegister')));
  12. const ErrorPage = Loadable(lazy(() => import('pages/extra-pages/ErrorPage')));
  13. const IAmSmart_FailCallback = Loadable(lazy(() => import('pages/iAmSmart/FailCallback')));
  14. const IAmSmart_SuccessCallback = Loadable(lazy(() => import('pages/iAmSmart/SuccessCallback')));
  15. const IAmSmart_AuthCallback = Loadable(lazy(() => import('pages/iAmSmart/AuthCallback')));
  16. const IAmSmart_RegistryCallback = Loadable(lazy(() => import('pages/iAmSmart/RegistryCallback')));
  17. //TODO: this page for testing only, please remove at prod
  18. const TestMailPage = Loadable(lazy(() => import('pages/pnspsNotifyTest')));
  19. const VerifyPage = Loadable(lazy(() => import('pages/authentication/Verify')));
  20. // ==============================|| AUTH ROUTING ||============================== //
  21. const LoginRoutes = {
  22. path: '/',
  23. element: <MainLayout />,
  24. children: [
  25. {//TODO: this page for testing only, please remove at prod
  26. path: 'testMailPage',
  27. element: <TestMailPage/>
  28. },
  29. {
  30. path: 'login',
  31. element: <AuthLogin />
  32. },
  33. {
  34. path: 'register',
  35. element: <AuthRegister />
  36. },
  37. {
  38. path: 'registerFrom',
  39. element: <RegisterForm />
  40. },
  41. {
  42. path: 'registerFromOrganization',
  43. element: <BusRegisterForm />
  44. },
  45. {
  46. path: 'iAmSmartRegisterFrom',
  47. element: <IAmSmartRegister />
  48. },
  49. {
  50. path: 'error',
  51. element: <ErrorPage/>
  52. },
  53. {
  54. path: 'iamsmart/authcallback',
  55. element: <IAmSmart_AuthCallback/>
  56. },
  57. {
  58. path: 'iamsmart/registrycallback',
  59. element: <IAmSmart_RegistryCallback/>
  60. },
  61. {
  62. path: 'iamsmart/loginfallback',
  63. element: <IAmSmart_FailCallback/>
  64. },
  65. {
  66. path: 'iamsmart/logincallback',
  67. element: <IAmSmart_SuccessCallback/>
  68. },
  69. {
  70. path: 'testMailPage',
  71. element: <TestMailPage/>
  72. },
  73. {
  74. path: 'verify/:verifyCode/:email',
  75. element: <VerifyPage/>
  76. }
  77. ]
  78. };
  79. export default LoginRoutes;