routes.js 3.01 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

const routes = [
  // {
  //   path: '/',
  //   component: () => import('../layouts/MainLayout.vue'),
  //   children: [
  //     { path: '', component: () => import('../pages/Index.vue') },
  //     { path: 'n/:editor?', component: () => import('../pages/Index.vue') }
  //   ]
  // },
  // {
  //   path: '/login',
  //   component: () => import('../layouts/AuthLayout.vue'),
  //   children: [
  //     { path: '', component: () => import('../pages/Login.vue') }
  //   ]
  // },
  // {
  //   path: '/p',
  //   component: () => import('../layouts/ProfileLayout.vue'),
  //   children: [
  //     { path: '', redirect: '/p/profile' },
  //     { path: 'profile', component: () => import('../pages/Profile.vue') }
  //   ]
  // },
  {
    path: '/_admin',
    component: () => import('../layouts/AdminLayout.vue'),
    children: [
      { path: '', redirect: '/_admin/dashboard' },
31
      { path: 'dashboard', component: () => import('../pages/AdminDashboard.vue') },
32 33 34
      // { path: 'sites', component: () => import('../pages/AdminSites.vue') },
      // // -> Site
      // { path: ':siteid/general', component: () => import('../pages/AdminGeneral.vue') },
35
      { path: ':siteid/editors', component: () => import('../pages/AdminEditors.vue') },
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
      // { path: ':siteid/locale', component: () => import('../pages/AdminLocale.vue') },
      // { path: ':siteid/login', component: () => import('../pages/AdminLogin.vue') },
      // { path: ':siteid/navigation', component: () => import('../pages/AdminNavigation.vue') },
      // { path: ':siteid/storage/:id?', component: () => import('../pages/AdminStorage.vue') },
      // { path: ':siteid/rendering', component: () => import('../pages/AdminRendering.vue') },
      // { path: ':siteid/theme', component: () => import('../pages/AdminTheme.vue') },
      // // -> Users
      // { path: 'auth', component: () => import('../pages/AdminAuth.vue') },
      // { path: 'groups/:id?/:section?', component: () => import('../pages/AdminGroups.vue') },
      // { path: 'users/:id?/:section?', component: () => import('../pages/AdminUsers.vue') },
      // // -> System
      // { path: 'api', component: () => import('../pages/AdminApi.vue') },
      // { path: 'extensions', component: () => import('../pages/AdminExtensions.vue') },
      // { path: 'mail', component: () => import('../pages/AdminMail.vue') },
      // { path: 'security', component: () => import('../pages/AdminSecurity.vue') },
      // { path: 'system', component: () => import('../pages/AdminSystem.vue') },
      // { path: 'utilities', component: () => import('../pages/AdminUtilities.vue') },
      // { path: 'webhooks', component: () => import('../pages/AdminWebhooks.vue') },
54
      { path: 'flags', component: () => import('../pages/AdminFlags.vue') }
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
    ]
  },
  // {
  //   path: '/_unknown-site',
  //   component: () => import('../pages/UnknownSite.vue')
  // },

  // Always leave this as last one,
  // but you can also remove it
  {
    path: '/:catchAll(.*)*',
    component: () => import('pages/ErrorNotFound.vue')
  }
]

export default routes