1
|
import {NgModule} from '@angular/core';
|
2
|
import {RouterModule} from '@angular/router';
|
3
|
import {EnvironmentSpecificResolver} from "../openaireLibrary/utils/properties/environmentSpecificResolver";
|
4
|
import {AdminLoginGuard} from "../openaireLibrary/login/adminLoginGuard.guard";
|
5
|
import {AdminDashboardGuard} from "../utils/adminDashboard.guard";
|
6
|
|
7
|
@NgModule({
|
8
|
imports: [
|
9
|
RouterModule.forChild([
|
10
|
{path: '', redirectTo: '/admin', pathMatch: 'full'},
|
11
|
{
|
12
|
path: 'portals',
|
13
|
loadChildren: './portals/portals.module#PortalsModule',
|
14
|
canActivate:[AdminLoginGuard],
|
15
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
16
|
data: {hasAdminMenu: true}
|
17
|
},
|
18
|
{
|
19
|
path: 'entities',
|
20
|
loadChildren: './entities/entities.module#MonitorEntitiesModule',
|
21
|
canActivate:[AdminLoginGuard],
|
22
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
23
|
data: {hasAdminMenu: true}
|
24
|
},
|
25
|
|
26
|
{
|
27
|
path: 'classContents',
|
28
|
loadChildren: './classHelpTexts/div-help-contents.module#MonitorDivHelpContentsModule',
|
29
|
canActivate:[AdminLoginGuard],
|
30
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
31
|
data: {hasAdminMenu: true}
|
32
|
},
|
33
|
{
|
34
|
path: 'classContents/new',
|
35
|
loadChildren: './classHelpTexts/new-div-help-content.module#MonitorNewDivHelpContentModule',
|
36
|
canActivate:[AdminLoginGuard],
|
37
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
38
|
data: {hasAdminMenu: true}
|
39
|
},
|
40
|
{
|
41
|
path: 'classContents/edit',
|
42
|
loadChildren: './classHelpTexts/edit-div-help-content.module#MonitorEditDivHelpContentModule',
|
43
|
canActivate:[AdminLoginGuard],
|
44
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
45
|
data: {hasAdminMenu: true}
|
46
|
},
|
47
|
{
|
48
|
path: 'helptexts',
|
49
|
loadChildren: './helpTexts/page-help-contents.module#MonitorPageHelpContentsModule',
|
50
|
canActivate:[AdminLoginGuard],
|
51
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
52
|
data: {hasAdminMenu: true}
|
53
|
},
|
54
|
{
|
55
|
path: 'helptexts/new',
|
56
|
loadChildren: './helpTexts/new-page-help-content.module#MonitorNewPageHelpContentModule',
|
57
|
canActivate:[AdminLoginGuard],
|
58
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
59
|
data: {hasAdminMenu: true}
|
60
|
},
|
61
|
{
|
62
|
path: 'helptexts/edit',
|
63
|
loadChildren: './helpTexts/edit-page-help-content.module#MonitorEditPageHelpContentModule',
|
64
|
canActivate:[AdminLoginGuard],
|
65
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
66
|
data: {hasAdminMenu: true}
|
67
|
},
|
68
|
{
|
69
|
path: 'pages',
|
70
|
loadChildren: './pages/pages.module#MonitorPagesModule',
|
71
|
canActivate:[AdminLoginGuard],
|
72
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
73
|
data: {hasAdminMenu: true}
|
74
|
},
|
75
|
{
|
76
|
path: 'pageContents',
|
77
|
loadChildren: './helpTexts/page-help-contents.module#MonitorPageHelpContentsModule',
|
78
|
canActivate:[AdminLoginGuard],
|
79
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
80
|
data: {hasAdminMenu: true}
|
81
|
},
|
82
|
{
|
83
|
path: 'pageContents/new',
|
84
|
loadChildren: './helpTexts/new-page-help-content.module#MonitorNewPageHelpContentModule',
|
85
|
canActivate:[AdminLoginGuard],
|
86
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
87
|
data: {hasAdminMenu: true}
|
88
|
},
|
89
|
{
|
90
|
path: 'pageContents/edit',
|
91
|
loadChildren: './helpTexts/edit-page-help-content.module#MonitorEditPageHelpContentModule',
|
92
|
canActivate:[AdminLoginGuard],
|
93
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
94
|
data: {hasAdminMenu: true}
|
95
|
},
|
96
|
|
97
|
|
98
|
// stakeholder:
|
99
|
|
100
|
{
|
101
|
path: ':stakeholder/entities',
|
102
|
loadChildren: './entities/entities.module#MonitorEntitiesModule',
|
103
|
canActivate:[AdminDashboardGuard],
|
104
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
105
|
data: {hasAdminMenu: true}
|
106
|
},
|
107
|
{
|
108
|
path: ':stakeholder/classContents',
|
109
|
loadChildren: './classHelpTexts/div-help-contents.module#MonitorDivHelpContentsModule',
|
110
|
canActivate:[AdminDashboardGuard],
|
111
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
112
|
data: {hasAdminMenu: true}
|
113
|
},
|
114
|
{
|
115
|
path: ':stakeholder/classContents/new',
|
116
|
loadChildren: './classHelpTexts/new-div-help-content.module#MonitorNewDivHelpContentModule',
|
117
|
canActivate:[AdminDashboardGuard],
|
118
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
119
|
data: {hasAdminMenu: true}
|
120
|
},
|
121
|
{
|
122
|
path: ':stakeholder/classContents/edit',
|
123
|
loadChildren: './classHelpTexts/edit-div-help-content.module#MonitorEditDivHelpContentModule',
|
124
|
canActivate:[AdminDashboardGuard],
|
125
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
126
|
data: {hasAdminMenu: true}
|
127
|
},
|
128
|
{
|
129
|
path: ':stakeholder/helptexts',
|
130
|
loadChildren: './helpTexts/page-help-contents.module#MonitorPageHelpContentsModule',
|
131
|
canActivate:[AdminDashboardGuard],
|
132
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
133
|
data: {hasAdminMenu: true}
|
134
|
},
|
135
|
{
|
136
|
path: ':stakeholder/helptexts/new',
|
137
|
loadChildren: './helpTexts/new-page-help-content.module#MonitorNewPageHelpContentModule',
|
138
|
canActivate:[AdminDashboardGuard],
|
139
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
140
|
data: {hasAdminMenu: true}
|
141
|
},
|
142
|
{
|
143
|
path: ':stakeholder/helptexts/edit',
|
144
|
loadChildren: './helpTexts/edit-page-help-content.module#MonitorEditPageHelpContentModule',
|
145
|
canActivate:[AdminDashboardGuard],
|
146
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
147
|
data: {hasAdminMenu: true}
|
148
|
},
|
149
|
{
|
150
|
path: ':stakeholder/pages',
|
151
|
loadChildren: './pages/pages.module#MonitorPagesModule',
|
152
|
canActivate:[AdminDashboardGuard],
|
153
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
154
|
data: {hasAdminMenu: true}
|
155
|
},
|
156
|
{
|
157
|
path: ':stakeholder/pageContents',
|
158
|
loadChildren: './helpTexts/page-help-contents.module#MonitorPageHelpContentsModule',
|
159
|
canActivate:[AdminDashboardGuard],
|
160
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
161
|
data: {hasAdminMenu: true}
|
162
|
},
|
163
|
{
|
164
|
path: ':stakeholder/pageContents/new',
|
165
|
loadChildren: './helpTexts/new-page-help-content.module#MonitorNewPageHelpContentModule',
|
166
|
canActivate:[AdminDashboardGuard],
|
167
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
168
|
data: {hasAdminMenu: true}
|
169
|
},
|
170
|
{
|
171
|
path: ':stakeholder/pageContents/edit',
|
172
|
loadChildren: './helpTexts/edit-page-help-content.module#MonitorEditPageHelpContentModule',
|
173
|
canActivate:[AdminDashboardGuard],
|
174
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
175
|
data: {hasAdminMenu: true}
|
176
|
}
|
177
|
])
|
178
|
]
|
179
|
})
|
180
|
export class AdminToolRoutingModule {
|
181
|
}
|