routes.gen.js spreads `.toplevel` for every plugin uniformly, but only a few own full-screen routes, so Rollup warned on eleven of them every build. The `|| []` guard was always doing its job - the warning was noise, and noise in a build log is where a real warning goes to hide.
66 lines
1.9 KiB
JavaScript
66 lines
1.9 KiB
JavaScript
/**
|
|
* 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/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 = []
|