/**
 * Computers plugin routes
 */
export default [
  {
    path: 'reports/pc-relationships',
    name: 'report-pc-relationships',
    component: () => import('./views/PCRelationshipsReport.vue'),
    meta: { plugin: 'computers' }
  },
  {
    path: 'settings/pctypemapping',
    name: 'pctype-mapping-settings',
    component: () => import('./views/PCTypeMappingSettings.vue'),
    meta: { requiresAuth: true, requiresAdmin: true, plugin: 'computers' }
  },
  {
    path: 'pcs',
    name: 'pcs',
    component: () => import('./views/PCsList.vue'),
    meta: { plugin: 'computers' }
  },
  {
    path: 'pcs/new',
    name: 'pc-new',
    component: () => import('./views/PCForm.vue'),
    meta: { requiresAuth: true, plugin: 'computers' }
  },
  {
    path: 'pcs/:id',
    name: 'pc-detail',
    component: () => import('./views/PCDetail.vue'),
    meta: { plugin: 'computers' }
  },
  {
    path: 'pcs/:id/edit',
    name: 'pc-edit',
    component: () => import('./views/PCForm.vue'),
    meta: { requiresAuth: true, plugin: 'computers' }
  },
  // Computer-specific settings
  {
    path: 'settings/collector',
    name: 'collector-settings',
    component: () => import('./views/CollectorSettings.vue'),
    meta: { requiresAuth: true, requiresAdmin: true, plugin: 'computers' }
  },
  {
    path: 'settings/pctypes',
    name: 'pctypes',
    component: () => import('./views/PCTypesList.vue'),
    meta: { requiresAuth: true, requiresAdmin: true, plugin: 'computers' }
  },
  {
    path: 'settings/operatingsystems',
    name: 'operatingsystems',
    component: () => import('./views/OperatingSystemsList.vue'),
    meta: { requiresAuth: true, requiresAdmin: true, plugin: 'computers' }
  },
  {
    path: 'settings/accessprotocols',
    name: 'access-protocols',
    component: () => import('./views/AccessProtocolsList.vue'),
    meta: { requiresAuth: true, requiresAdmin: true, plugin: 'computers' }
  }
]

// No full-screen routes: every view in this plugin renders inside
// AppLayout. Declared so routes.gen.js can read `.toplevel` off the module
// without Rollup warning about a missing export.
export const toplevel = []
