Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

106 wiersze
3.2 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_DirectLoginCallback = Loadable(lazy(() => import('pages/iAmSmart/DirectLoginCallback')));
  14. //const IAmSmart_FallCallback = Loadable(lazy(() => import('pages/iAmSmart/FallCallback')));
  15. const IAmSmart_FailCallback = Loadable(lazy(() => import('pages/iAmSmart/FailCallback')));
  16. const IAmSmart_SuccessCallback = Loadable(lazy(() => import('pages/iAmSmart/SuccessCallback')));
  17. const IAmSmart_AuthCallback = Loadable(lazy(() => import('pages/iAmSmart/AuthCallback')));
  18. const IAmSmart_RegistryCallback = Loadable(lazy(() => import('pages/iAmSmart/RegistryCallback')));
  19. //TODO: this page for testing only, please remove at prod
  20. const TestMailPage = Loadable(lazy(() => import('pages/pnspsNotifyTest')));
  21. const VerifyPage = Loadable(lazy(() => import('pages/authentication/Verify')));
  22. const Testfps = Loadable(lazy(() => import('pages/Payment/FPS/FPSTest')));
  23. const Payment_FPS_CallBack = Loadable(lazy(() => import('pages/Payment/FPS/fpscallback')));
  24. // ==============================|| AUTH ROUTING ||============================== //
  25. const LoginRoutes = {
  26. path: '/',
  27. element: <MainLayout />,
  28. children: [
  29. {//TODO: this page for testing only, please remove at prod
  30. path: 'testMailPage',
  31. element: <TestMailPage/>
  32. },
  33. {
  34. path: 'login',
  35. element: <AuthLogin />
  36. },
  37. {
  38. path: 'register',
  39. element: <AuthRegister />
  40. },
  41. {
  42. path: 'registerFrom',
  43. element: <RegisterForm />
  44. },
  45. {
  46. path: 'registerFromOrganization',
  47. element: <BusRegisterForm />
  48. },
  49. {
  50. path: 'iAmSmartRegisterFrom',
  51. element: <IAmSmartRegister />
  52. },
  53. {
  54. path: 'error',
  55. element: <ErrorPage/>
  56. },
  57. {
  58. path: 'iamsmart/logincallback',
  59. element: <IAmSmart_DirectLoginCallback/>
  60. },
  61. {
  62. path: 'iamsmart/loginfallback',
  63. element: <IAmSmart_FailCallback/>
  64. },
  65. {
  66. path: 'iamsmart/authcallback',
  67. element: <IAmSmart_AuthCallback/>
  68. },
  69. {
  70. path: 'iamsmart/registrycallback',
  71. element: <IAmSmart_RegistryCallback/>
  72. },
  73. {
  74. path: 'iamsmart/loginFail',
  75. element: <IAmSmart_FailCallback/>
  76. },
  77. {
  78. path: 'iamsmart/loginSucess',
  79. element: <IAmSmart_SuccessCallback/>
  80. },
  81. {
  82. path: 'testMailPage',
  83. element: <TestMailPage/>
  84. },
  85. {
  86. path: 'verify/:verifyCode/:email',
  87. element: <VerifyPage/>
  88. },
  89. {
  90. path: 'testfps',
  91. element: <Testfps/>
  92. },
  93. {
  94. path: 'testfpscallback',
  95. element: <Payment_FPS_CallBack/>
  96. }
  97. ]
  98. };
  99. export default LoginRoutes;