This commit is contained in:
j3d1 2026-08-17 18:28:01 +02:00
parent 25cef95711
commit 7d7730354e
8 changed files with 381 additions and 39 deletions

View file

@ -52,6 +52,12 @@ const routes = [{path: '/', component: Dashboard, meta: {requiresAuth: true}}, {
component: InventoryDetailForeign,
meta: {requiresAuth: true, foreign: true},
props: true
}, {
path: '/i/:handle/:id',
redirect: to => {
const {handle, id} = to.params
return handle === store.state.user ? '/inventory/' + id : '/inventory/shared/' + handle + '/' + id
}
}, {path: '/inventory/new', component: InventoryNew, meta: {requiresAuth: true}}, {
path: '/friends',
component: Friends,
@ -68,7 +74,12 @@ const routes = [{path: '/', component: Dashboard, meta: {requiresAuth: true}}, {
}, {path: '/admin',
component: Admin,
meta: {requiresAuth: true}
}, {path: '/swatch', component: Swatch, meta: {requiresAuth: true}}, {path: '/print', component: Print, meta: {requiresAuth: true}}, {
}, {path: '/swatch', component: Swatch, meta: {requiresAuth: true}}, {
path: '/print',
component: Print,
meta: {requiresAuth: true},
props: route => ({prefill: route.query.text})
}, {
path: '/search/:query',
component: Search,
meta: {requiresAuth: true},