Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

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