PrintedPartsSettings edits the four plugin settings (code prefix, default threshold, kiosk badge policy, alert recipients) through the core settings API; the route rides the plugin's router file and the settings shell nests it into the rail; get_settings_cards contributes the catalog card while the plugin is enabled.
42 lines
1.4 KiB
JavaScript
42 lines
1.4 KiB
JavaScript
/**
|
|
* Printedparts plugin routes.
|
|
*
|
|
* Auto-discovered by the router via import.meta.glob, so no registration
|
|
* edit is needed. Every route carries meta.plugin 'printedparts' so the ADR-009
|
|
* guard redirects to the dashboard when the printedparts backend plugin is
|
|
* disabled. Form routes add requiresAuth so anonymous users cannot reach
|
|
* create or edit.
|
|
*/
|
|
export default [
|
|
{
|
|
path: 'printedparts',
|
|
name: 'printedparts',
|
|
component: () => import('../../views/printedparts/PrintedItemsList.vue'),
|
|
meta: { plugin: 'printedparts' }
|
|
},
|
|
{
|
|
path: 'printedparts/new',
|
|
name: 'printedparts-new',
|
|
component: () => import('../../views/printedparts/PrintedItemForm.vue'),
|
|
meta: { requiresAuth: true, plugin: 'printedparts' }
|
|
},
|
|
{
|
|
path: 'printedparts/:id',
|
|
name: 'printedparts-detail',
|
|
component: () => import('../../views/printedparts/PrintedItemDetail.vue'),
|
|
meta: { plugin: 'printedparts' }
|
|
},
|
|
{
|
|
path: 'printedparts/:id/edit',
|
|
name: 'printedparts-edit',
|
|
component: () => import('../../views/printedparts/PrintedItemForm.vue'),
|
|
meta: { requiresAuth: true, plugin: 'printedparts' }
|
|
},
|
|
{
|
|
path: 'settings/printedparts',
|
|
name: 'settings-printedparts',
|
|
component: () => import('../../views/settings/PrintedPartsSettings.vue'),
|
|
meta: { requiresAuth: true, requiresAdmin: true, plugin: 'printedparts' }
|
|
}
|
|
]
|