|
|
@@ -1,17 +1,19 @@
|
|
1
|
1
|
import indexPage from '@/pages/index.vue'
|
|
|
2
|
+import listPage from '@/pages/list.vue'
|
|
|
3
|
+import singlePage from '@/pages/single.vue'
|
|
2
|
4
|
|
|
3
|
5
|
export default [
|
|
4
|
6
|
// Home Page
|
|
5
|
7
|
{ path: '/', component: indexPage },
|
|
6
|
8
|
// List Pages
|
|
7
|
|
- { path: '/episodes', component: () => import(/* webpackChunkName: "pages-list" */ '@/pages/list.vue'), props: { sidebar: false } },
|
|
8
|
|
- { path: '/:type', component: () => import(/* webpackChunkName: "pages-list" */ '@/pages/list.vue'), props: { sidebar: true } },
|
|
|
9
|
+ { path: '/episodes', component: listPage, props: { sidebar: false } },
|
|
|
10
|
+ { path: '/:type', component: listPage, props: { sidebar: true } },
|
|
9
|
11
|
// Sorted List Pages
|
|
10
|
|
- { path: '/:type/by-alpha', component: () => import(/* webpackChunkName: "pages-list" */ '@/pages/list.vue'), props: { sidebar: true, sortBy: 'by-alpha' } },
|
|
11
|
|
- { path: '/:type/recent', component: () => import(/* webpackChunkName: "pages-list" */ '@/pages/list.vue'), props: { sidebar: true, sortBy: 'recent' } },
|
|
12
|
|
- { path: '/:type/by-material', component: () => import(/* webpackChunkName: "pages-list" */ '@/pages/list.vue'), props: { sidebar: true, sortBy: 'by-material' } },
|
|
13
|
|
- { path: '/:type/by-episode', component: () => import(/* webpackChunkName: "pages-list" */ '@/pages/list.vue'), props: { sidebar: true, sortBy: 'by-episode' } },
|
|
14
|
|
- { path: '/:type/by-artist', component: () => import(/* webpackChunkName: "pages-list" */ '@/pages/list.vue'), props: { sidebar: true, sortBy: 'by-artist' } },
|
|
|
12
|
+ { path: '/:type/by-alpha', component: listPage, props: { sidebar: true, sortBy: 'by-alpha' } },
|
|
|
13
|
+ { path: '/:type/recent', component: listPage, props: { sidebar: true, sortBy: 'recent' } },
|
|
|
14
|
+ { path: '/:type/by-material', component: listPage, props: { sidebar: true, sortBy: 'by-material' } },
|
|
|
15
|
+ { path: '/:type/by-episode', component: listPage, props: { sidebar: true, sortBy: 'by-episode' } },
|
|
|
16
|
+ { path: '/:type/by-artist', component: listPage, props: { sidebar: true, sortBy: 'by-artist' } },
|
|
15
|
17
|
// Single Pages
|
|
16
|
|
- { path: '/:type/:slug', component: () => import(/* webpackChunkName: "pages-single" */ '@/pages/single.vue'), props: { sidebar: true } },
|
|
|
18
|
+ { path: '/:type/:slug', component: singlePage, props: { sidebar: true } },
|
|
17
|
19
|
]
|