-
Notifications
You must be signed in to change notification settings - Fork 19
/
router.ts
84 lines (79 loc) · 2.07 KB
/
router.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import Vue from 'vue';
import VueRouter, { RouteConfig } from 'vue-router';
Vue.use(VueRouter);
const routes: RouteConfig[] = [
{
path: '/',
name: 'Home',
component: () => import('./views/home/Home.vue')
},
{
path: '/products/:id',
name: 'Product page',
component: () => import('./views/pdp.vue')
}
];
if (process.env.NODE_ENV !== 'production') {
routes.push(
{
path: '/fixed-header-layout',
name: 'Fixed Header Layout',
component: () => import('./views/layouts/fixed-header-and-asides-layout.vue')
},
{
path: '/multi-column-layout',
name: 'Multi Column Layout',
component: () => import('./views/layouts/multi-column-layout.vue')
},
{
path: '/single-column-layout',
name: 'Single Column Layout',
component: () => import('./views/layouts/single-column-layout.vue')
},
{
path: '/design-system',
name: 'Design System',
component: () => import('./views/design-system/design-system.vue')
},
{
path: '/xds',
name: 'XDS',
component: () => import('@empathyco/x-tailwindcss/showcase').then(m => m.XdsShowCase)
},
{
path: '/result-app',
name: 'result-app',
component: () => import('./views/ResultApp.vue')
},
{
path: '/search',
name: 'search',
component: () => import('./views/Search.vue')
},
{
path: '/infinite-scroll-container',
name: 'Infinite Scroll Container',
component: () => import('./views/infinite-scroll.vue')
},
{
path: '/infinite-scroll-document',
name: 'Infinite Scroll Document',
component: () => import('./views/infinite-scroll-document.vue')
},
{
path: '/infinite-scroll-html',
name: 'Infinite Scroll HTML',
component: () => import('./views/infinite-scroll-html.vue')
},
{
path: '/infinite-scroll-body',
name: 'Infinite Scroll Body',
component: () => import('./views/infinite-scroll-body.vue')
}
);
}
const router = new VueRouter({
mode: 'history',
routes
});
export default router;