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: '../openaireLibrary/dashboard/portal/portals.module#PortalsModule',
|
14
|
canActivate:[AdminLoginGuard],
|
15
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
16
|
data: {hasAdminMenu: true}
|
17
|
},
|
18
|
{
|
19
|
path: 'entities',
|
20
|
loadChildren: '../openaireLibrary/dashboard/entity/entities.module#EntitiesModule',
|
21
|
canActivate:[AdminLoginGuard],
|
22
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
23
|
data: {hasAdminMenu: true}
|
24
|
},
|
25
|
{
|
26
|
path: 'classes',
|
27
|
loadChildren: '../openaireLibrary/dashboard/divId/divIds.module#DivIdsModule',
|
28
|
canActivate:[AdminLoginGuard],
|
29
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
30
|
data: {hasAdminMenu: true}
|
31
|
},
|
32
|
{
|
33
|
path: 'classContents',
|
34
|
loadChildren: '../openaireLibrary/dashboard/divhelpcontent/div-help-contents.module#DivHelpContentsModule',
|
35
|
canActivate:[AdminLoginGuard],
|
36
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
37
|
data: {hasAdminMenu: true}
|
38
|
},
|
39
|
{
|
40
|
path: 'classContents/new',
|
41
|
loadChildren: '../openaireLibrary/dashboard/divhelpcontent/new-div-help-content.module#NewDivHelpContentModule',
|
42
|
canActivate:[AdminLoginGuard],
|
43
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
44
|
data: {hasAdminMenu: true}
|
45
|
},
|
46
|
{
|
47
|
path: 'classContents/edit',
|
48
|
loadChildren: '../openaireLibrary/dashboard/divhelpcontent/edit-div-help-content.module#EditDivHelpContentModule',
|
49
|
canActivate:[AdminLoginGuard],
|
50
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
51
|
data: {hasAdminMenu: true}
|
52
|
},
|
53
|
{
|
54
|
path: 'helptexts',
|
55
|
loadChildren: '../openaireLibrary/dashboard/helpTexts/page-help-contents.module#PageHelpContentsModule',
|
56
|
canActivate:[AdminLoginGuard],
|
57
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
58
|
data: {hasAdminMenu: true}
|
59
|
},
|
60
|
{
|
61
|
path: 'helptexts/new',
|
62
|
loadChildren: '../openaireLibrary/dashboard/helpTexts/new-page-help-content.module#NewPageHelpContentModule',
|
63
|
canActivate:[AdminLoginGuard],
|
64
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
65
|
data: {hasAdminMenu: true}
|
66
|
},
|
67
|
{
|
68
|
path: 'helptexts/edit',
|
69
|
loadChildren: '../openaireLibrary/dashboard/helpTexts/edit-page-help-content.module#EditPageHelpContentModule',
|
70
|
canActivate:[AdminLoginGuard],
|
71
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
72
|
data: {hasAdminMenu: true}
|
73
|
},
|
74
|
{
|
75
|
path: 'pages',
|
76
|
loadChildren: '../openaireLibrary/dashboard/page/pages.module#PagesModule',
|
77
|
canActivate:[AdminLoginGuard],
|
78
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
79
|
data: {hasAdminMenu: true}
|
80
|
},
|
81
|
{
|
82
|
path: 'pageContents',
|
83
|
loadChildren: '../openaireLibrary/dashboard/helpTexts/page-help-contents.module#PageHelpContentsModule',
|
84
|
canActivate:[AdminLoginGuard],
|
85
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
86
|
data: {hasAdminMenu: true}
|
87
|
},
|
88
|
{
|
89
|
path: 'pageContents/new',
|
90
|
loadChildren: '../openaireLibrary/dashboard/helpTexts/new-page-help-content.module#NewPageHelpContentModule',
|
91
|
canActivate:[AdminLoginGuard],
|
92
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
93
|
data: {hasAdminMenu: true}
|
94
|
},
|
95
|
{
|
96
|
path: 'pageContents/edit',
|
97
|
loadChildren: '../openaireLibrary/dashboard/helpTexts/edit-page-help-content.module#EditPageHelpContentModule',
|
98
|
canActivate:[AdminLoginGuard],
|
99
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
100
|
data: {hasAdminMenu: true}
|
101
|
},
|
102
|
|
103
|
|
104
|
// stakeholder:
|
105
|
{
|
106
|
path: ':stakeholder/entities',
|
107
|
loadChildren: '../openaireLibrary/dashboard/entity/entities.module#EntitiesModule',
|
108
|
canActivate:[AdminDashboardGuard],
|
109
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
110
|
data: {hasAdminMenu: true}
|
111
|
},
|
112
|
{
|
113
|
path: ':stakeholder/classContents',
|
114
|
loadChildren: '../openaireLibrary/dashboard/divhelpcontent/div-help-contents.module#DivHelpContentsModule',
|
115
|
canActivate:[AdminDashboardGuard],
|
116
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
117
|
data: {hasAdminMenu: true}
|
118
|
},
|
119
|
{
|
120
|
path: ':stakeholder/classContents/new',
|
121
|
loadChildren: '../openaireLibrary/dashboard/divhelpcontent/new-div-help-content.module#NewDivHelpContentModule',
|
122
|
canActivate:[AdminDashboardGuard],
|
123
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
124
|
data: {hasAdminMenu: true}
|
125
|
},
|
126
|
{
|
127
|
path: ':stakeholder/classContents/edit',
|
128
|
loadChildren: '../openaireLibrary/dashboard/divhelpcontent/edit-div-help-content.module#EditDivHelpContentModule',
|
129
|
canActivate:[AdminDashboardGuard],
|
130
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
131
|
data: {hasAdminMenu: true}
|
132
|
},
|
133
|
{
|
134
|
path: ':stakeholder/helptexts',
|
135
|
loadChildren: '../openaireLibrary/dashboard/helpTexts/page-help-contents.module#PageHelpContentsModule',
|
136
|
canActivate:[AdminDashboardGuard],
|
137
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
138
|
data: {hasAdminMenu: true}
|
139
|
},
|
140
|
{
|
141
|
path: ':stakeholder/helptexts/new',
|
142
|
loadChildren: '../openaireLibrary/dashboard/helpTexts/new-page-help-content.module#NewPageHelpContentModule',
|
143
|
canActivate:[AdminDashboardGuard],
|
144
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
145
|
data: {hasAdminMenu: true}
|
146
|
},
|
147
|
{
|
148
|
path: ':stakeholder/helptexts/edit',
|
149
|
loadChildren: '../openaireLibrary/dashboard/helpTexts/edit-page-help-content.module#EditPageHelpContentModule',
|
150
|
canActivate:[AdminDashboardGuard],
|
151
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
152
|
data: {hasAdminMenu: true}
|
153
|
},
|
154
|
{
|
155
|
path: ':stakeholder/pages',
|
156
|
loadChildren: '../openaireLibrary/dashboard/page/pages.module#PagesModule',
|
157
|
canActivate:[AdminDashboardGuard],
|
158
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
159
|
data: {hasAdminMenu: true}
|
160
|
},
|
161
|
{
|
162
|
path: ':stakeholder/pageContents',
|
163
|
loadChildren: '../openaireLibrary/dashboard/helpTexts/page-help-contents.module#PageHelpContentsModule',
|
164
|
canActivate:[AdminDashboardGuard],
|
165
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
166
|
data: {hasAdminMenu: true}
|
167
|
},
|
168
|
{
|
169
|
path: ':stakeholder/pageContents/new',
|
170
|
loadChildren: '../openaireLibrary/dashboard/helpTexts/new-page-help-content.module#NewPageHelpContentModule',
|
171
|
canActivate:[AdminDashboardGuard],
|
172
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
173
|
data: {hasAdminMenu: true}
|
174
|
},
|
175
|
{
|
176
|
path: ':stakeholder/pageContents/edit',
|
177
|
loadChildren: '../openaireLibrary/dashboard/helpTexts/edit-page-help-content.module#EditPageHelpContentModule',
|
178
|
canActivate:[AdminDashboardGuard],
|
179
|
resolve: { envSpecific: EnvironmentSpecificResolver },
|
180
|
data: {hasAdminMenu: true}
|
181
|
}
|
182
|
])
|
183
|
]
|
184
|
})
|
185
|
export class AdminToolRoutingModule {
|
186
|
}
|