Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

175 řádky
5.8 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 PrivacyPolicyPage = Loadable(lazy(() => import('pages/extra-pages/PrivacyPolicyPage')));
  14. const ImportantNoticePage = Loadable(lazy(() => import('pages/extra-pages/ImportantNoticePage')));
  15. const AboutUsPage = Loadable(lazy(() => import('pages/extra-pages/AboutUs')));
  16. const UserMenuPage = Loadable(lazy(() => import('pages/extra-pages/UserMenu')));
  17. const UserMenuPubPage = Loadable(lazy(() => import('pages/extra-pages/UserMenuPub')));
  18. const DatabaseHealthCheckPage = Loadable(lazy(() => import('pages/extra-pages/DatabaseHealthCheck')));
  19. const ForgotPassword = Loadable(lazy(() => import('pages/authentication/ForgotPassword')));
  20. const AfterForgotPasswordPage = Loadable(lazy(() => import('pages/authentication/ForgotPassword/AfterForgotPasswordPage')));
  21. const ForgotPassword_Callback = Loadable(lazy(() => import('pages/authentication/ForgotPassword/AuthCallback')));
  22. const ForgotPassword_Success = Loadable(lazy(() => import('pages/authentication/ForgotPassword/AuthCallback/ResetPasswordSuccess')));
  23. const ForgotUsername = Loadable(lazy(() => import('pages/authentication/ForgotUsername')));
  24. const AfterForgotUsernamePage = Loadable(lazy(() => import('pages/authentication/ForgotUsername/AfterForgotUsernamePage')));
  25. const ForgotUsername_Callback = Loadable(lazy(() => import('pages/authentication/ForgotUsername/AuthCallback')));
  26. const ForgotUsername_Success = Loadable(lazy(() => import('pages/authentication/ForgotUsername/AuthCallback/ResetPasswordSuccess')));
  27. const IAmSmart_DirectLoginCallback = Loadable(lazy(() => import('pages/iAmSmart/DirectLoginCallback')));
  28. //const IAmSmart_FallCallback = Loadable(lazy(() => import('pages/iAmSmart/FallCallback')));
  29. const IAmSmart_FailCallback = Loadable(lazy(() => import('pages/iAmSmart/FailCallback')));
  30. const FailCallback_VerifyMail = Loadable(lazy(() => import('pages/iAmSmart/FailCallback_VerifyMail')));
  31. const IAmSmart_AuthCallback = Loadable(lazy(() => import('pages/iAmSmart/AuthCallback')));
  32. const IAmSmart_RegistryCallback = Loadable(lazy(() => import('pages/iAmSmart/RegistryCallback')));
  33. const IAmSmart_PleaseLoginCallback = Loadable(lazy(() => import('pages/iAmSmart/PleaseLoginCallback')));
  34. //TODO: this page for testing only, please remove at prod
  35. const VerifyPage = Loadable(lazy(() => import('pages/authentication/Verify')));
  36. const Testfps = Loadable(lazy(() => import('pages/Payment/FPS/FPSTest')));
  37. const Payment_FPS_CallBack = Loadable(lazy(() => import('pages/Payment/FPS/fpscallback')));
  38. // ==============================|| AUTH ROUTING ||============================== //
  39. const LoginRoutes = {
  40. path: '/',
  41. element: <MainLayout />,
  42. children: [
  43. {
  44. path: 'login',
  45. element: <AuthLogin />
  46. },
  47. {
  48. path: 'register',
  49. element: <AuthRegister />
  50. },
  51. {
  52. path: 'registerFrom',
  53. element: <RegisterForm />
  54. },
  55. {
  56. path: 'registerFromOrganization',
  57. element: <BusRegisterForm />
  58. },
  59. {
  60. path: 'iAmSmartRegisterFrom',
  61. element: <IAmSmartRegister />
  62. },
  63. {
  64. path: 'error',
  65. element: <ErrorPage/>
  66. },
  67. {
  68. path: 'privacyPolicy',
  69. element: <PrivacyPolicyPage/>
  70. },
  71. {
  72. path: 'importantNotice',
  73. element: <ImportantNoticePage/>
  74. },
  75. {
  76. path: 'aboutUs',
  77. element: <AboutUsPage/>
  78. },
  79. {
  80. path: 'userGuide',
  81. element: <UserMenuPage/>
  82. },
  83. {
  84. path: 'userGuidePub',
  85. element: <UserMenuPubPage/>
  86. },
  87. {
  88. path: 'databaseHealthCheck',
  89. element: <DatabaseHealthCheckPage/>
  90. },
  91. {
  92. path: 'iamsmart/logincallback',
  93. element: <IAmSmart_DirectLoginCallback/>
  94. },
  95. {
  96. path: 'iamsmart/loginfallback',
  97. element: <IAmSmart_FailCallback/>
  98. },
  99. {
  100. path: 'iamsmart/notverify',
  101. element: <FailCallback_VerifyMail/>
  102. },
  103. {
  104. path: 'iamsmart/authcallback',
  105. element: <IAmSmart_AuthCallback/>
  106. },
  107. {
  108. path: 'iamsmart/registrycallback',
  109. element: <IAmSmart_RegistryCallback/>
  110. },
  111. {
  112. path: 'iamsmart/pleaseLogin',
  113. element: <IAmSmart_PleaseLoginCallback/>
  114. },
  115. {
  116. path: 'iamsmart/loginFail',
  117. element: <IAmSmart_FailCallback/>
  118. },
  119. {
  120. path: 'verify/:verifyCode/:email',
  121. element: <VerifyPage/>
  122. },
  123. {
  124. path: 'testfps',
  125. element: <Testfps/>
  126. },
  127. {
  128. path: 'testfpscallback',
  129. element: <Payment_FPS_CallBack/>
  130. },
  131. {
  132. path: 'forgot/password',
  133. element: <ForgotPassword/>
  134. },
  135. {
  136. path: 'forgot/password/sent',
  137. element: <AfterForgotPasswordPage/>
  138. },
  139. {
  140. path: 'forgot/password/verify/:verifyCode/:email',
  141. element: <ForgotPassword_Callback/>
  142. },
  143. {
  144. path: 'forgot/password/success',
  145. element: <ForgotPassword_Success/>
  146. },
  147. {
  148. path: 'forgot/username',
  149. element: <ForgotUsername/>
  150. },
  151. {
  152. path: 'forgot/username/sent',
  153. element: <AfterForgotUsernamePage/>
  154. },
  155. {
  156. path: 'forgot/username/verify/:verifyCode/:email',
  157. element: <ForgotUsername_Callback/>
  158. },
  159. {
  160. path: 'forgot/username/success',
  161. element: <ForgotUsername_Success/>
  162. },
  163. ]
  164. };
  165. export default LoginRoutes;