forked from FieldDB/FieldDB
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRouter.js
More file actions
121 lines (119 loc) · 3.19 KB
/
Router.js
File metadata and controls
121 lines (119 loc) · 3.19 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
var Router = Router || {};
Router.routes = Router.routes || [];
Router.routes.push({
path: "/faq",
angularRoute: {
templateUrl: "app/components/help/faq.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier/import/:importType",
angularRoute: {
templateUrl: "app/components/import/import-page.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier/import",
angularRoute: {
redirectTo: "/:team/:corpusidentifier/import/data"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier/reports/:reportType",
angularRoute: {
templateUrl: "app/components/experiment/reports-page.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier/speakers/:speakerType",
angularRoute: {
templateUrl: "app/components/user/speakers-page.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier/participants",
angularRoute: {
templateUrl: "app/components/user/participants-page.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier/consultants",
angularRoute: {
templateUrl: "app/components/user/consultants-page.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier/sessions",
angularRoute: {
templateUrl: "app/components/session/sessions-page.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier/activityfeed",
angularRoute: {
templateUrl: "app/components/activity/activityfeed-page.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier/activityfeed/:activityTypeOrItem",
angularRoute: {
templateUrl: "app/components/activity/activity-list-item.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier/datalists",
angularRoute: {
templateUrl: "app/components/datalist/datalists-page.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier/data",
angularRoute: {
templateUrl: "app/components/datalist/all-data-page.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier/search/:searchQuery",
angularRoute: {
templateUrl: "app/components/search/search-page.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier/:docid",
angularRoute: {
templateUrl: "app/components/doc/data-page.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team/:corpusidentifier",
angularRoute: {
templateUrl: "app/components/corpus/corpus-page.html",
controller: "OverrideYourControllerHere"
}
});
Router.routes.push({
path: "/:team",
angularRoute: {
templateUrl: "app/components/user/team-page.html",
controller: "OverrideYourControllerHere"
}
});
Router.otherwise = {
redirectTo: "/"
};
if (exports) {
exports.Router = Router;
}