Core-router surgery (the Phase 4 prerequisite for lean builds): index.js hardcoded six plugin-owned full-screen routes (parts-kiosk, TV, printer-qr x2, usb-labels, printedparts-labels), so pruning any of those plugins broke the SPA build on an unresolvable import. The router now also collects a `toplevel` named export from each plugin route file (alongside the existing default = AppLayout children) and spreads it into the top-level routes. Each of the six routes moved into its owning plugin's route file (printedparts, printers, usb, slides); index.js keeps only the core print pages that span asset types (machine-badge, asset-label, asset-label-batch). index.js now references zero plugin view components. Verified: all six route paths are present in the built bundle and the moved routes resolve exactly like the unchanged core print routes. Build + vitest + naming green.
10 lines
161 B
JavaScript
10 lines
161 B
JavaScript
|
|
export const toplevel = [
|
|
{
|
|
path: '/tv',
|
|
name: 'tv',
|
|
component: () => import('../../views/TVDashboard.vue'),
|
|
meta: { plugin: 'slides' }
|
|
}
|
|
]
|