routes.js 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import AuthLayout from '@/layouts/Auth'
  2. import Login from '@/sections/Auth/Login'
  3. import LoginChooser from '@/sections/Auth/Login/components/LoginChooser'
  4. import LoginChallenge from '@/sections/Auth/Login/components/LoginChallenge'
  5. import SecretVerify from '@/sections/Auth/SecretVerify'
  6. import BindSecret from '@/sections/Auth/BindSecret'
  7. import SetSecretQuestion from '@/sections/Auth/SetSecretQuestion'
  8. import ResetSecretQuestion from '@/sections/Auth/ResetSecretQuestion'
  9. import Licenses from '@scope/views/licenses'
  10. import Layout from '@/layouts/RouterView'
  11. import Credential from '@Ai/views/credentials'
  12. const routes = [
  13. { name: 'Home', path: '/', redirect: '/dashboard' },
  14. {
  15. path: '/auth',
  16. component: AuthLayout,
  17. meta: { layout: 'full-screen' },
  18. redirect: '/auth/login',
  19. children: [
  20. {
  21. path: 'login',
  22. component: Login,
  23. children: [
  24. {
  25. name: 'Auth',
  26. path: '',
  27. component: LoginChallenge,
  28. meta: { layout: 'full-screen', auth: false, authPage: true, transitionName: 'slide' },
  29. },
  30. {
  31. name: 'LoginChooser',
  32. path: 'chooser',
  33. component: LoginChooser,
  34. meta: { layout: 'full-screen', auth: false, authPage: true, transitionName: 'slide' },
  35. },
  36. {
  37. name: 'LoginChooserDefault',
  38. path: 'default',
  39. component: LoginChooser,
  40. meta: { layout: 'full-screen', auth: false, authPage: true, transitionName: 'slide' },
  41. },
  42. ],
  43. },
  44. {
  45. name: 'SecretVerify',
  46. path: 'secretverify',
  47. component: SecretVerify,
  48. meta: { layout: 'full-screen', auth: false, authPage: true },
  49. },
  50. {
  51. name: 'BindSecret',
  52. path: 'bindsecret',
  53. component: BindSecret,
  54. meta: { layout: 'full-screen', auth: false, authPage: true },
  55. },
  56. {
  57. name: 'SetSecretQuestion',
  58. path: 'setsecretquestion',
  59. component: SetSecretQuestion,
  60. meta: { layout: 'full-screen', auth: false, authPage: true },
  61. },
  62. {
  63. name: 'ResetSecretQuestion',
  64. path: 'resetsecretquestion',
  65. component: ResetSecretQuestion,
  66. meta: { layout: 'full-screen', auth: false, authPage: true },
  67. },
  68. ],
  69. },
  70. {
  71. path: '/licenses',
  72. meta: {},
  73. component: Layout,
  74. children: [
  75. {
  76. name: 'Licenses',
  77. path: '',
  78. component: Licenses,
  79. },
  80. ],
  81. },
  82. {
  83. path: '/credentials',
  84. meta: {},
  85. component: Layout,
  86. children: [
  87. {
  88. name: 'Credential',
  89. path: '',
  90. component: Credential,
  91. },
  92. ],
  93. },
  94. ]
  95. export default routes