Configuration policies need a way to attach process/service monitors so drift can be evaluated against a machine's desired state. This wires the policy resolver and routes to the shared monitor catalog and adds an action picker UI that can create process monitors with an optional launch path.
84 lines
2.6 KiB
JavaScript
84 lines
2.6 KiB
JavaScript
/**
|
|
* Computers plugin routes
|
|
*/
|
|
export default [
|
|
{
|
|
path: 'reports/pc-relationships',
|
|
name: 'report-pc-relationships',
|
|
component: () => import('./views/PCRelationshipsReport.vue'),
|
|
meta: { plugin: 'computers', title: 'PC Relationships Report' }
|
|
},
|
|
{
|
|
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' }
|
|
},
|
|
{
|
|
path: 'settings/configuration-policies',
|
|
name: 'configuration-policies',
|
|
component: () => import('./views/ConfigurationPoliciesList.vue'),
|
|
meta: { requiresAuth: true, requiresAdmin: true, plugin: 'computers' }
|
|
},
|
|
{
|
|
path: 'settings/site-policies',
|
|
name: 'site-policies',
|
|
component: () => import('./views/BusinessPoliciesList.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 = []
|