-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.js
104 lines (102 loc) · 2.54 KB
/
routes.js
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import Home from '../component/page/home';
import Channel from '../component/page/channel';
import Chat from '../component/partial/chat';
import Counter from '../component/partial/counter';
import Player from '../component/partial/player';
import Poll from '../component/partial/poll';
import Raffle from '../component/partial/raffle';
import Statistic from '../component/page/statistic';
import Token from '../component/page/token';
import ErrorPage from '../component/page/error-page';
const routes = [
{
component: Home,
name: 'index',
path: '',
meta: {
title: 'i18n.nav-home - i18n.app',
layout: 'default'
}
},
{
component: Channel,
name: 'channel',
path: '/channel/:channel',
meta: {
title: 'router.param-channel - i18n.app',
layout: 'default'
}
},
{
component: Chat,
name: 'chat',
path: '/channel/:channel/chat',
meta: {
title: 'router.param-channel - i18n.chat',
layout: 'empty'
}
},
{
component: Counter,
name: 'counter',
path: '/channel/:channel/counter',
meta: {
title: 'router.param-channel - i18n.counter',
layout: 'empty'
}
},
{
component: Player,
name: 'player',
path: '/channel/:channel/player',
meta: {
title: 'router.param-channel - i18n.player',
layout: 'empty'
}
},
{
component: Poll,
name: 'poll',
path: '/channel/:channel/poll',
meta: {
title: 'router.param-channel - i18n.poll',
layout: 'empty'
}
},
{
component: Raffle,
name: 'raffle',
path: '/channel/:channel/raffle',
meta: {
title: 'router.param-channel - i18n.raffle',
layout: 'empty'
}
},
{
component: Statistic,
name: 'statistic',
path: '/channel/:channel/statistic',
meta: {
title: 'router.param-channel - i18n.statistic',
layout: 'default'
}
},
{
component: Token,
name: 'token',
path: '/token/:token/:name',
meta: {
title: 'i18n.nav-token - i18n.app',
layout: 'default'
}
},
{
component: ErrorPage,
path: '*',
meta: {
title: 'i18n.nav-error - i18n.app',
layout: 'default'
}
}
];
export default routes;