fix: correct catalog error contrast and add catalog Storybook coverage
Quality / test (push) Canceled after 0s
Quality / test (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { createMemoryHistory, createRouter } from 'vue-router';
|
||||
|
||||
const stub = { render: () => null };
|
||||
|
||||
// Mirrors the named routes in src/router/index.js so RouterLink resolution
|
||||
// works in isolated stories without importing the real app router/guards.
|
||||
export const storybookRouter = createRouter({
|
||||
history: createMemoryHistory(),
|
||||
routes: [
|
||||
{ path: '/', name: 'catalog', component: stub },
|
||||
{ path: '/listings/:id', name: 'listing-detail', component: stub },
|
||||
{ path: '/products/:slug', name: 'product-detail', component: stub },
|
||||
{ path: '/login', name: 'login', component: stub },
|
||||
{ path: '/admin', name: 'admin-home', component: stub },
|
||||
{ path: '/admin/inventory/:id/images', name: 'admin-image-manager', component: stub },
|
||||
{ path: '/admin/inventory', name: 'admin-inventory', component: stub },
|
||||
{ path: '/admin/listings', name: 'admin-listings', component: stub },
|
||||
{ path: '/admin/sales', name: 'admin-sales', component: stub },
|
||||
{ path: '/admin/acquisitions', name: 'admin-acquisitions', component: stub },
|
||||
{ path: '/admin/settings', name: 'admin-settings', component: stub },
|
||||
{ path: '/admin/saved-views', name: 'admin-saved-views', component: stub },
|
||||
{ path: '/:pathMatch(.*)*', name: 'storybook-catch-all', component: stub },
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user