routes.js 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. const routes = [
  2. // {
  3. // path: '/',
  4. // component: () => import('../layouts/MainLayout.vue'),
  5. // children: [
  6. // { path: '', component: () => import('../pages/Index.vue') },
  7. // { path: 'n/:editor?', component: () => import('../pages/Index.vue') }
  8. // ]
  9. // },
  10. // {
  11. // path: '/login',
  12. // component: () => import('../layouts/AuthLayout.vue'),
  13. // children: [
  14. // { path: '', component: () => import('../pages/Login.vue') }
  15. // ]
  16. // },
  17. // {
  18. // path: '/p',
  19. // component: () => import('../layouts/ProfileLayout.vue'),
  20. // children: [
  21. // { path: '', redirect: '/p/profile' },
  22. // { path: 'profile', component: () => import('../pages/Profile.vue') }
  23. // ]
  24. // },
  25. {
  26. path: '/_admin',
  27. component: () => import('../layouts/AdminLayout.vue'),
  28. children: [
  29. { path: '', redirect: '/_admin/dashboard' },
  30. { path: 'dashboard', component: () => import('../pages/AdminDashboard.vue') },
  31. { path: 'sites', component: () => import('../pages/AdminSites.vue') },
  32. // -> Site
  33. { path: ':siteid/general', component: () => import('../pages/AdminGeneral.vue') },
  34. { path: ':siteid/editors', component: () => import('../pages/AdminEditors.vue') },
  35. { path: ':siteid/locale', component: () => import('../pages/AdminLocale.vue') },
  36. { path: ':siteid/login', component: () => import('../pages/AdminLogin.vue') },
  37. // { path: ':siteid/navigation', component: () => import('../pages/AdminNavigation.vue') },
  38. { path: ':siteid/storage/:id?', component: () => import('../pages/AdminStorage.vue') },
  39. // { path: ':siteid/rendering', component: () => import('../pages/AdminRendering.vue') },
  40. // { path: ':siteid/theme', component: () => import('../pages/AdminTheme.vue') },
  41. // -> Users
  42. // { path: 'auth', component: () => import('../pages/AdminAuth.vue') },
  43. // { path: 'groups/:id?/:section?', component: () => import('../pages/AdminGroups.vue') },
  44. // { path: 'users/:id?/:section?', component: () => import('../pages/AdminUsers.vue') },
  45. // -> System
  46. // { path: 'api', component: () => import('../pages/AdminApi.vue') },
  47. // { path: 'extensions', component: () => import('../pages/AdminExtensions.vue') },
  48. // { path: 'mail', component: () => import('../pages/AdminMail.vue') },
  49. // { path: 'security', component: () => import('../pages/AdminSecurity.vue') },
  50. { path: 'system', component: () => import('../pages/AdminSystem.vue') },
  51. // { path: 'utilities', component: () => import('../pages/AdminUtilities.vue') },
  52. // { path: 'webhooks', component: () => import('../pages/AdminWebhooks.vue') },
  53. { path: 'flags', component: () => import('../pages/AdminFlags.vue') }
  54. ]
  55. },
  56. // {
  57. // path: '/_unknown-site',
  58. // component: () => import('../pages/UnknownSite.vue')
  59. // },
  60. // Always leave this as last one,
  61. // but you can also remove it
  62. {
  63. path: '/:catchAll(.*)*',
  64. component: () => import('pages/ErrorNotFound.vue')
  65. }
  66. ]
  67. export default routes