add base routes and views

This commit is contained in:
axolotle
2021-03-08 19:03:43 +01:00
parent b097712477
commit c012a28aa8
8 changed files with 89 additions and 27 deletions
+23 -4
View File
@@ -1,4 +1,5 @@
import Home from '@/pages/Home'
import TextOptions from '@/pages/_partials/TextOptions'
export default [
@@ -9,11 +10,11 @@ export default [
},
{
name: 'biblio',
path: '/biblio',
name: 'library',
path: '/library',
components: {
default: () => import(/* webpackChunkName: "texts" */ '@/pages/Biblio'),
options: () => import(/* webpackChunkName: "texts" */ '@/pages/_partials/TextOptions')
default: () => import(/* webpackChunkName: "library" */ '@/pages/Library'),
options: TextOptions
},
props: {
default: ({ query }) => ({
@@ -29,6 +30,24 @@ export default [
}
},
{
name: 'kit',
path: '/kit',
component: () => import(/* webpackChunkName: "kit" */ '@/pages/Kit')
},
{
name: 'gallery',
path: '/gallery',
component: () => import(/* webpackChunkName: "gallery" */ '@/pages/Gallery')
},
{
name: 'blog',
path: '/blog',
component: () => import(/* webpackChunkName: "blog" */ '@/pages/Blog')
},
{
name: 'notfound',
path: '/404',