Total Complexity | 0 |
Complexity/F | 0 |
Lines of Code | 75 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | export default [ |
||
2 | { |
||
3 | id: 'Main', |
||
4 | pattern: '/main/', |
||
5 | data: { |
||
6 | pageTitle: 'Main page' |
||
7 | }, |
||
8 | routes: [ |
||
9 | { |
||
10 | id: 'User', |
||
11 | pattern: '/user', |
||
12 | data: { |
||
13 | pageTitle: 'User profile' |
||
14 | }, |
||
15 | routes: [ |
||
16 | { |
||
17 | id: 'UserEdit', |
||
18 | data: { |
||
19 | token: ' e287f992d8af8fa21c08' |
||
20 | }, |
||
21 | pattern: { |
||
22 | query: { |
||
23 | edit: true |
||
24 | } |
||
25 | } |
||
26 | } |
||
27 | ] |
||
28 | }, |
||
29 | { |
||
30 | id: 'default', |
||
31 | pattern: '*' |
||
32 | } |
||
33 | ] |
||
34 | }, |
||
35 | { |
||
36 | id: 'ScrollToHash', |
||
37 | pattern: '/scroll-to-hash' |
||
38 | }, |
||
39 | { |
||
40 | id: 'Settings', |
||
41 | pattern: '/application/settings/' |
||
42 | }, |
||
43 | { |
||
44 | id: 'Preferences', |
||
45 | pattern: '/prefs/:action' |
||
46 | }, |
||
47 | { |
||
48 | id: 'OnClick', |
||
49 | pattern: '/on-click' |
||
50 | }, |
||
51 | { |
||
52 | id: 'OnClickPromise', |
||
53 | pattern: '/on-click-promise' |
||
54 | }, |
||
55 | { |
||
56 | id: 'Redirect', |
||
57 | pattern: '/redirect', |
||
58 | routes: [ |
||
59 | { |
||
60 | id: 'Redirected', |
||
61 | pattern: '/redirected' |
||
62 | } |
||
63 | ] |
||
64 | }, |
||
65 | { |
||
66 | id: 'DelayedRedirect', |
||
67 | pattern: '/delredirect', |
||
68 | routes: [ |
||
69 | { |
||
70 | id: 'DelayedRedirected', |
||
71 | pattern: '/redirected' |
||
72 | } |
||
73 | ] |
||
74 | } |
||
75 | ]; |
||
76 |