forked from vuejs/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrouter.ts
83 lines (82 loc) · 2.05 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
import { createRouter, createWebHistory } from 'vue-router'
export const router = createRouter({
history: createWebHistory(),
routes: [
{
path: '/',
name: 'home',
component: () => import('./components/Welcome.vue'),
},
{
path: '/channel/:id',
name: 'channel',
component: () => import('./components/ChannelView.vue'),
props: true,
},
{
path: '/no-setup-query',
component: () => import('./components/NoSetupQuery.vue'),
},
{
path: '/no-setup-query-multi-client',
component: () => import('./components/NoSetupQueryMultiClient.vue'),
},
{
path: '/lazy-query',
component: () => import('./components/LazyQuery.vue'),
},
{
path: '/lazy-query-immediately',
component: () => import('./components/LazyQueryImmediately.vue'),
},
{
path: '/lazy-query-load',
component: () => import('./components/LazyQueryLoad.vue'),
},
{
path: '/lazy-query-load-error',
component: () => import('./components/LazyQueryLoadError.vue'),
},
{
path: '/partial-error',
component: () => import('./components/PartialError.vue'),
},
{
path: '/disabled',
component: () => import('./components/Disabled.vue'),
},
{
path: '/on-result',
component: () => import('./components/OnResult.vue'),
},
{
path: '/keep-previous-result',
component: () => import('./components/KeepPreviousResult.vue'),
},
{
path: '/null-query',
component: () => import('./components/NullQuery.vue'),
},
{
path: '/pinia',
component: () => import('./components/ChannelListPinia.vue'),
meta: {
layout: 'blank',
},
},
{
path: '/pinia2',
component: () => import('./components/ChannelListPinia2.vue'),
meta: {
layout: 'blank',
},
},
{
path: '/no-setup-scope-query',
component: () => import('./components/NoSetupScopeQuery.vue'),
meta: {
layout: 'blank',
},
},
],
})