|
|
@@ -4,6 +4,10 @@ import singlePage from '@/pages/single.vue'
|
|
4
|
4
|
|
|
5
|
5
|
import { sortTypes } from '@/utils/helpers'
|
|
6
|
6
|
|
|
|
7
|
+const gridWithSidebar = { sidebar: true, grid: true }
|
|
|
8
|
+const gridSansSidebar = { sidebar: false, grid: true }
|
|
|
9
|
+const sansGridWithSidebar = { sidebar: true, grid: false }
|
|
|
10
|
+
|
|
7
|
11
|
export default [
|
|
8
|
12
|
// Home Page
|
|
9
|
13
|
{ path: '/', component: indexPage },
|
|
|
@@ -11,78 +15,48 @@ export default [
|
|
11
|
15
|
{
|
|
12
|
16
|
path: '/episode',
|
|
13
|
17
|
component: listPage,
|
|
14
|
|
- props: { sidebar: false, grid: true, sortBy: null },
|
|
|
18
|
+ props: { ...gridSansSidebar, sortBy: null },
|
|
15
|
19
|
},
|
|
16
|
20
|
{
|
|
17
|
21
|
path: '/artist',
|
|
18
|
22
|
component: listPage,
|
|
19
|
|
- props: { sidebar: true, grid: true, sortBy: null },
|
|
|
23
|
+ props: { ...gridWithSidebar, sortBy: null },
|
|
20
|
24
|
},
|
|
21
|
25
|
// Sorted List Pages
|
|
22
|
26
|
{
|
|
23
|
27
|
path: `/artist/${sortTypes.alpha}`,
|
|
24
|
28
|
component: listPage,
|
|
25
|
|
- props: { sidebar: true, grid: true, sortBy: `${sortTypes.alpha}` },
|
|
|
29
|
+ props: { ...gridWithSidebar, sortBy: `${sortTypes.alpha}` },
|
|
26
|
30
|
},
|
|
27
|
31
|
{
|
|
28
|
32
|
path: `/artist/${sortTypes.material}`,
|
|
29
|
33
|
component: listPage,
|
|
30
|
|
- props: { sidebar: true, grid: true, sortBy: `${sortTypes.material}` },
|
|
|
34
|
+ props: { ...gridWithSidebar, sortBy: `${sortTypes.material}` },
|
|
31
|
35
|
},
|
|
32
|
36
|
{
|
|
33
|
37
|
path: `/event`,
|
|
34
|
38
|
component: listPage,
|
|
35
|
|
- props: { sidebar: true, sortBy: `${sortTypes.currentAndUpcoming}` },
|
|
36
|
|
- },
|
|
37
|
|
- {
|
|
38
|
|
- path: `/exhibition`,
|
|
39
|
|
- component: listPage,
|
|
40
|
|
- props: { sidebar: true, sortBy: `${sortTypes.currentAndUpcoming}` },
|
|
41
|
|
- },
|
|
42
|
|
- {
|
|
43
|
|
- path: `/:type/${sortTypes.past}`,
|
|
44
|
|
- component: listPage,
|
|
45
|
|
- props: { sidebar: true, sortBy: `${sortTypes.past}` },
|
|
46
|
|
- },
|
|
47
|
|
- {
|
|
48
|
|
- path: `/:type/${sortTypes.current}`,
|
|
49
|
|
- component: listPage,
|
|
50
|
|
- props: { sidebar: true, sortBy: `${sortTypes.current}` },
|
|
|
39
|
+ props: { ...sansGridWithSidebar, sortBy: `${sortTypes.currentAndUpcoming}`, isWide: true },
|
|
51
|
40
|
},
|
|
52
|
41
|
{
|
|
53
|
|
- path: `/:type/${sortTypes.currentAndUpcoming}`,
|
|
|
42
|
+ path: `/event/${sortTypes.currentAndUpcoming}`,
|
|
54
|
43
|
component: listPage,
|
|
55
|
|
- props: { sidebar: true, sortBy: `${sortTypes.currentAndUpcoming}` },
|
|
|
44
|
+ props: { ...sansGridWithSidebar, sortBy: `${sortTypes.currentAndUpcoming}`, isWide: true },
|
|
56
|
45
|
},
|
|
57
|
46
|
{
|
|
58
|
|
- path: `/:type/${sortTypes.upcoming}`,
|
|
59
|
|
- component: listPage,
|
|
60
|
|
- props: { sidebar: true, sortBy: `${sortTypes.upcoming}` },
|
|
61
|
|
- },
|
|
62
|
|
- {
|
|
63
|
|
- path: `/:type/${sortTypes.alpha}`,
|
|
64
|
|
- component: listPage,
|
|
65
|
|
- props: { sidebar: true, sortBy: `${sortTypes.alpha}` },
|
|
66
|
|
- },
|
|
67
|
|
- {
|
|
68
|
|
- path: `/:type/${sortTypes.material}`,
|
|
69
|
|
- component: listPage,
|
|
70
|
|
- props: { sidebar: true, sortBy: `${sortTypes.material}` },
|
|
71
|
|
- },
|
|
72
|
|
- {
|
|
73
|
|
- path: `/:type/${sortTypes.episode}`,
|
|
|
47
|
+ path: `/exhibition`,
|
|
74
|
48
|
component: listPage,
|
|
75
|
|
- props: { sidebar: true, sortBy: `${sortTypes.episode}` },
|
|
|
49
|
+ props: { ...sansGridWithSidebar, sortBy: `${sortTypes.currentAndUpcoming}`, isWide: true },
|
|
76
|
50
|
},
|
|
77
|
51
|
{
|
|
78
|
|
- path: `/:type/${sortTypes.artist}`,
|
|
|
52
|
+ path: `/exhibition/${sortTypes.currentAndUpcoming}`,
|
|
79
|
53
|
component: listPage,
|
|
80
|
|
- props: { sidebar: true, sortBy: `${sortTypes.artist}` },
|
|
|
54
|
+ props: { ...sansGridWithSidebar, sortBy: `${sortTypes.currentAndUpcoming}`, isWide: true },
|
|
81
|
55
|
},
|
|
82
|
56
|
{
|
|
83
|
57
|
path: '/:type',
|
|
84
|
58
|
component: listPage,
|
|
85
|
|
- props: { sidebar: true, sortBy: null },
|
|
|
59
|
+ props: { ...sansGridWithSidebar, sortBy: null },
|
|
86
|
60
|
},
|
|
87
|
61
|
// Single Pages
|
|
88
|
62
|
{
|