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.
41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
/**
|
|
* Machines plugin routes
|
|
*/
|
|
export default [
|
|
{
|
|
path: 'settings/machinetypes',
|
|
name: 'machinetypes',
|
|
component: () => import('./views/MachineTypesList.vue'),
|
|
meta: { requiresAuth: true, requiresAdmin: true, plugin: 'machines' }
|
|
},
|
|
{
|
|
path: 'machines',
|
|
name: 'machines',
|
|
component: () => import('./views/MachinesList.vue'),
|
|
meta: { plugin: 'machines' }
|
|
},
|
|
{
|
|
path: 'machines/new',
|
|
name: 'machine-new',
|
|
component: () => import('./views/MachineForm.vue'),
|
|
meta: { requiresAuth: true, plugin: 'machines' }
|
|
},
|
|
{
|
|
path: 'machines/:id',
|
|
name: 'machine-detail',
|
|
component: () => import('./views/MachineDetail.vue'),
|
|
meta: { plugin: 'machines' }
|
|
},
|
|
{
|
|
path: 'machines/:id/edit',
|
|
name: 'machine-edit',
|
|
component: () => import('./views/MachineForm.vue'),
|
|
meta: { requiresAuth: true, plugin: 'machines' }
|
|
}
|
|
]
|
|
|
|
// 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 = []
|