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
|
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import * as RouteUtils from 'routes/route_utils.jsx';
export default {
path: 'help',
indexRoute: {onEnter: (nextState, replace) => replace('/help/messaging')},
childRoutes: [
{
getComponents: (location, callback) => {
System.import('components/help/help_controller.jsx').then(RouteUtils.importComponentSuccess(callback));
},
childRoutes: [
{
path: 'messaging',
indexRoute: {
getComponents: (location, callback) => {
System.import('components/help/components/messaging.jsx').then(RouteUtils.importComponentSuccess(callback));
}
}
},
{
path: 'composing',
indexRoute: {
getComponents: (location, callback) => {
System.import('components/help/components/composing.jsx').then(RouteUtils.importComponentSuccess(callback));
}
}
},
{
path: 'mentioning',
indexRoute: {
getComponents: (location, callback) => {
System.import('components/help/components/mentioning.jsx').then(RouteUtils.importComponentSuccess(callback));
}
}
},
{
path: 'formatting',
indexRoute: {
getComponents: (location, callback) => {
System.import('components/help/components/formatting.jsx').then(RouteUtils.importComponentSuccess(callback));
}
}
},
{
path: 'attaching',
indexRoute: {
getComponents: (location, callback) => {
System.import('components/help/components/attaching.jsx').then(RouteUtils.importComponentSuccess(callback));
}
}
},
{
path: 'commands',
indexRoute: {
getComponents: (location, callback) => {
System.import('components/help/components/commands.jsx').then(RouteUtils.importComponentSuccess(callback));
}
}
}
]
}
]
};
|