backups plugin with NTLARS revision history; shopfloor dashboard upcoming cards and state chips
This commit is contained in:
21
plugins/backups/frontend/routes.js
Normal file
21
plugins/backups/frontend/routes.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Backups plugin routes.
|
||||
*
|
||||
* One route: the per-asset revision history. The asset-detail panel (ADR-010
|
||||
* Path A) lists recent revisions but the generic renderer has no per-item
|
||||
* actions, and downloading a .reg needs a per-revision control plus a dialect
|
||||
* choice. So the panel links here via its manage link rather than the renderer
|
||||
* growing a backups-shaped feature.
|
||||
*
|
||||
* meta.plugin = 'backups' so the ADR-009 guard redirects when the backend
|
||||
* plugin is disabled. requiresAuth because every backups API route is behind
|
||||
* JWT + a backups.* permission; an anonymous visit would only render errors.
|
||||
*/
|
||||
export default [
|
||||
{
|
||||
path: 'backups/asset/:assetid',
|
||||
name: 'backups-asset-history',
|
||||
component: () => import('./views/BackupHistory.vue'),
|
||||
meta: { requiresAuth: true, plugin: 'backups' }
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user