[Trunk|Admin]: Lazy routing is Completed. Need to check communities and classes routes guards and query parameters
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@54967 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
8ce365a6b0
commit
8ad9d70834
|
@ -3,33 +3,16 @@ import { BrowserModule } from '@angular/platform-browser';
|
||||||
import { HttpModule, JsonpModule } from '@angular/http';
|
import { HttpModule, JsonpModule } from '@angular/http';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { AppRoutingModule} from './app.routing';
|
import { AppRoutingModule} from './app.routing';
|
||||||
import { TopicsComponent } from "./pages/faq/topics.components";
|
import { TopicsComponent } from './pages/faq/topics.components';
|
||||||
import { QuestionsComponent } from "./pages/faq/questions.component";
|
import { QuestionsComponent } from './pages/faq/questions.component';
|
||||||
import { ModalModule } from 'ngx-bootstrap';
|
import { ModalModule } from 'ngx-bootstrap';
|
||||||
import { TopicsFormComponent } from "./pages/faq/topics-form.component";
|
import { TopicsFormComponent } from './pages/faq/topics-form.component';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { ModalFormComponent } from "./pages/modal-form.component";
|
import { ModalFormComponent } from './pages/modal-form.component';
|
||||||
import { QuestionsFormComponent } from "./pages/faq/questions-form.component";
|
import { QuestionsFormComponent } from './pages/faq/questions-form.component';
|
||||||
import { DeleteConfirmationDialogComponent } from "./pages/delete-confirmation-dialog.component";
|
import { DeleteConfirmationDialogComponent } from './pages/delete-confirmation-dialog.component';
|
||||||
|
|
||||||
import { PagesComponent } from "./pages/page/pages.component";
|
import { HelpContentService } from './services/help-content.service';
|
||||||
import { HelpContentService } from "./services/help-content.service";
|
|
||||||
import { PageFormComponent } from "./pages/page/page-form.component";
|
|
||||||
import { PageHelpContentsComponent } from "./pages/helpcontent/page-help-contents.component";
|
|
||||||
import { NewPageHelpContentComponent } from "./pages/helpcontent/new-page-help-content.component";
|
|
||||||
import { CKEditorModule } from 'ng2-ckeditor';
|
|
||||||
import { PageContentFormComponent } from "./pages/helpcontent/page-help-content-form.component";
|
|
||||||
import { EditPageHelpContentComponent } from "./pages/helpcontent/edit-page-help-content.component";
|
|
||||||
import { DivIdsComponent } from "./pages/divId/divIds.component";
|
|
||||||
import { DivIdFormComponent } from "./pages/divId/divId-form.component";
|
|
||||||
import { DivHelpContentsComponent } from "./pages/divhelpcontent/div-help-contents.component";
|
|
||||||
import { NewDivHelpContentComponent } from "./pages/divhelpcontent/new-div-help-content.component";
|
|
||||||
import { DivContentFormComponent } from "./pages/divhelpcontent/div-help-content-form.component";
|
|
||||||
import { EditDivHelpContentComponent } from "./pages/divhelpcontent/edit-div-help-content.component";
|
|
||||||
|
|
||||||
import { HtmlPageContentModule } from "./pages/htmlpagecontent/htmlpagecontent.module";
|
|
||||||
|
|
||||||
import {ClaimsComponent} from './pages/claims/claims.component';
|
|
||||||
|
|
||||||
import {NavigationBarModule} from './openaireLibrary/sharedComponents/navigationBar.module';
|
import {NavigationBarModule} from './openaireLibrary/sharedComponents/navigationBar.module';
|
||||||
import { CookieLawModule } from './openaireLibrary/sharedComponents/cookie-law/cookie-law.module';
|
import { CookieLawModule } from './openaireLibrary/sharedComponents/cookie-law/cookie-law.module';
|
||||||
|
@ -37,15 +20,8 @@ import { CookieLawModule } from './openaireLibrary/sharedComponents/cookie-law/c
|
||||||
import {BottomModule} from './openaireLibrary/sharedComponents/bottom.module';
|
import {BottomModule} from './openaireLibrary/sharedComponents/bottom.module';
|
||||||
import {FeedbackModule} from './openaireLibrary/sharedComponents/feedback/feedback.module';
|
import {FeedbackModule} from './openaireLibrary/sharedComponents/feedback/feedback.module';
|
||||||
import { ConnectAdminLoginGuard} from './openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
import { ConnectAdminLoginGuard} from './openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
import {ConnectCommunityGuard} from './openaireLibrary/connect/communityGuard/connectCommunityGuard.guard';
|
|
||||||
import { EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
|
import { EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
|
||||||
import { EnvironmentSpecificService} from './openaireLibrary/utils/properties/environment-specific.service';
|
import { EnvironmentSpecificService} from './openaireLibrary/utils/properties/environment-specific.service';
|
||||||
import {ClaimsAdminModule} from './openaireLibrary/claims/claimsAdmin/claimsAdmin.module';
|
|
||||||
import {StatsComponent} from './pages/stats/stats.component';
|
|
||||||
import { DataTablesModule } from 'angular-datatables';
|
|
||||||
|
|
||||||
import { CommunityProjectsModule } from './pages/community/projects/communityProjects.module';
|
|
||||||
import { CommunityContentProvidersModule } from './pages/community/content-providers/communityContentProviders.module';
|
|
||||||
|
|
||||||
import {CommunitiesService} from './openaireLibrary/connect/communities/communities.service';
|
import {CommunitiesService} from './openaireLibrary/connect/communities/communities.service';
|
||||||
import {CommunityErrorPageComponent} from './openaireLibrary/connect/communityGuard/communityErrorPage.component';
|
import {CommunityErrorPageComponent} from './openaireLibrary/connect/communityGuard/communityErrorPage.component';
|
||||||
|
@ -72,14 +48,9 @@ import {ConnectRIGuard} from './openaireLibrary/connect/communityGuard/connectRI
|
||||||
ModalModule.forRoot(),
|
ModalModule.forRoot(),
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
CKEditorModule,
|
BottomModule, FeedbackModule, NavigationBarModule, CookieLawModule,
|
||||||
BottomModule, FeedbackModule, NavigationBarModule, CookieLawModule, ClaimsAdminModule,
|
|
||||||
CommunityProjectsModule,
|
|
||||||
CommunityContentProvidersModule,
|
|
||||||
DataTablesModule,
|
|
||||||
ErrorModule,
|
ErrorModule,
|
||||||
AlertModalModule, SafeHtmlPipeModule, FABModule,
|
AlertModalModule, SafeHtmlPipeModule, FABModule,
|
||||||
HtmlPageContentModule,
|
|
||||||
InteractiveMiningModule
|
InteractiveMiningModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -90,20 +61,6 @@ import {ConnectRIGuard} from './openaireLibrary/connect/communityGuard/connectRI
|
||||||
ModalFormComponent,
|
ModalFormComponent,
|
||||||
QuestionsFormComponent,
|
QuestionsFormComponent,
|
||||||
DeleteConfirmationDialogComponent,
|
DeleteConfirmationDialogComponent,
|
||||||
PagesComponent,
|
|
||||||
PageFormComponent,
|
|
||||||
PageHelpContentsComponent,
|
|
||||||
NewPageHelpContentComponent,
|
|
||||||
PageContentFormComponent,
|
|
||||||
EditPageHelpContentComponent,
|
|
||||||
DivIdsComponent,
|
|
||||||
DivIdFormComponent,
|
|
||||||
DivHelpContentsComponent,
|
|
||||||
NewDivHelpContentComponent,
|
|
||||||
EditDivHelpContentComponent,
|
|
||||||
DivContentFormComponent,
|
|
||||||
ClaimsComponent,
|
|
||||||
StatsComponent,
|
|
||||||
CommunityErrorPageComponent,
|
CommunityErrorPageComponent,
|
||||||
AdminErrorPageComponent
|
AdminErrorPageComponent
|
||||||
],
|
],
|
||||||
|
@ -112,7 +69,7 @@ import {ConnectRIGuard} from './openaireLibrary/connect/communityGuard/connectRI
|
||||||
HelpContentService, CommunityService, SubscribeService,
|
HelpContentService, CommunityService, SubscribeService,
|
||||||
ConnectAdminLoginGuard,
|
ConnectAdminLoginGuard,
|
||||||
EnvironmentSpecificResolver, EnvironmentSpecificService,
|
EnvironmentSpecificResolver, EnvironmentSpecificService,
|
||||||
IsCommunity, ConnectCommunityGuard, ConnectRIGuard, CommunitiesService, TitleCasePipe
|
IsCommunity, ConnectRIGuard, CommunitiesService, TitleCasePipe
|
||||||
|
|
||||||
],
|
],
|
||||||
bootstrap: [ AppComponent ]
|
bootstrap: [ AppComponent ]
|
||||||
|
|
|
@ -1,34 +1,17 @@
|
||||||
/**
|
/**
|
||||||
* Created by stefania on 9/16/16.
|
* Created by stefania on 9/16/16.
|
||||||
*/
|
*/
|
||||||
import {ModuleWithProviders, NgModule} from '@angular/core';
|
import { NgModule} from '@angular/core';
|
||||||
import { Routes, RouterModule} from '@angular/router';
|
import { Routes, RouterModule} from '@angular/router';
|
||||||
import { EntitiesComponent } from "./pages/entity/entities.component";
|
|
||||||
import { PagesComponent } from "./pages/page/pages.component";
|
|
||||||
import { PageHelpContentsComponent } from "./pages/helpcontent/page-help-contents.component";
|
|
||||||
import { NewPageHelpContentComponent } from "./pages/helpcontent/new-page-help-content.component";
|
|
||||||
import { EditPageHelpContentComponent } from "./pages/helpcontent/edit-page-help-content.component";
|
|
||||||
import { DivIdsComponent } from "./pages/divId/divIds.component";
|
|
||||||
import { DivHelpContentsComponent } from "./pages/divhelpcontent/div-help-contents.component";
|
|
||||||
import { NewDivHelpContentComponent } from "./pages/divhelpcontent/new-div-help-content.component";
|
|
||||||
import { EditDivHelpContentComponent } from "./pages/divhelpcontent/edit-div-help-content.component";
|
|
||||||
import { EditHtmlPageContentComponent } from "./pages/htmlpagecontent/edit-htmlpage-content.component";
|
|
||||||
import {ClaimsComponent} from './pages/claims/claims.component';
|
|
||||||
import {IsCommunity} from './openaireLibrary/connect/communityGuard/isCommunity.guard';
|
import {IsCommunity} from './openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
import { AdminLoginGuard} from './openaireLibrary/login/adminLoginGuard.guard';
|
import {ConnectAdminLoginGuard} from './openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
import { ConnectAdminLoginGuard} from './openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
|
||||||
import {ConnectCommunityGuard} from './openaireLibrary/connect/communityGuard/connectCommunityGuard.guard';
|
|
||||||
import {ConnectRIGuard} from './openaireLibrary/connect/communityGuard/connectRIGuard.guard';
|
import {ConnectRIGuard} from './openaireLibrary/connect/communityGuard/connectRIGuard.guard';
|
||||||
|
|
||||||
import { EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
|
import {EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
|
||||||
|
|
||||||
import {StatsComponent} from './pages/stats/stats.component';
|
import {CommunityErrorPageComponent} from './openaireLibrary/connect/communityGuard/communityErrorPage.component';
|
||||||
import{CommunityErrorPageComponent} from './openaireLibrary/connect/communityGuard/communityErrorPage.component';
|
|
||||||
import {AdminErrorPageComponent} from './pages/error/errorPage.component';
|
import {AdminErrorPageComponent} from './pages/error/errorPage.component';
|
||||||
|
|
||||||
import { ManageProjectsComponent } from './pages/community/projects/manage-projects.component';
|
|
||||||
import { ManageContentProvidersComponent } from './pages/community/content-providers/manage-content-providers.component';
|
|
||||||
|
|
||||||
const appRoutes: Routes = [
|
const appRoutes: Routes = [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
|
@ -76,69 +59,80 @@ const appRoutes: Routes = [
|
||||||
resolve: { envSpecific: EnvironmentSpecificResolver }
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'classes',
|
path: 'classes',
|
||||||
component: DivIdsComponent, canActivate: [IsCommunity,ConnectAdminLoginGuard],resolve: { envSpecific: EnvironmentSpecificResolver }
|
loadChildren: './pages/divId/divIds.module#DivIdsModule',
|
||||||
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'pages',
|
path: 'pages',
|
||||||
component: PagesComponent,
|
loadChildren: './pages/page/pages.module#PagesModule',
|
||||||
canActivate: [IsCommunity,ConnectAdminLoginGuard],resolve: { envSpecific: EnvironmentSpecificResolver }
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'pageContents',
|
path: 'pageContents',
|
||||||
component: PageHelpContentsComponent,
|
loadChildren: './pages/helpcontent/page-help-contents.module#PageHelpContentsModule',
|
||||||
canActivate: [IsCommunity,ConnectAdminLoginGuard],resolve: { envSpecific: EnvironmentSpecificResolver }
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'pageContents/new',
|
path: 'pageContents/new',
|
||||||
component: NewPageHelpContentComponent,
|
loadChildren: './pages/helpcontent/new-page-help-content.module#NewPageHelpContentModule',
|
||||||
canActivate: [IsCommunity,ConnectAdminLoginGuard],resolve: { envSpecific: EnvironmentSpecificResolver }
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
//path: 'pageContents/edit/:id',
|
|
||||||
path: 'pageContents/edit',
|
path: 'pageContents/edit',
|
||||||
component: EditPageHelpContentComponent,
|
loadChildren: './pages/helpcontent/edit-page-help-content.module#EditPageHelpContentModule',
|
||||||
canActivate: [IsCommunity,ConnectAdminLoginGuard],resolve: { envSpecific: EnvironmentSpecificResolver }
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
path: 'classContents',
|
path: 'classContents',
|
||||||
component: DivHelpContentsComponent,canActivate: [IsCommunity,ConnectAdminLoginGuard],resolve: { envSpecific: EnvironmentSpecificResolver }
|
loadChildren: './pages/divhelpcontent/div-help-contents.module#DivHelpContentsModule',
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'classContents/new',
|
|
||||||
component: NewDivHelpContentComponent,canActivate: [IsCommunity,ConnectAdminLoginGuard],resolve: { envSpecific: EnvironmentSpecificResolver }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'classContents/edit',
|
|
||||||
component: EditDivHelpContentComponent,canActivate: [IsCommunity,ConnectAdminLoginGuard],resolve: { envSpecific: EnvironmentSpecificResolver }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'htmlPageContent/edit',
|
|
||||||
component: EditHtmlPageContentComponent, canActivate: [IsCommunity,ConnectAdminLoginGuard],resolve: { envSpecific: EnvironmentSpecificResolver }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'claims',
|
|
||||||
component: ClaimsComponent,canActivate: [IsCommunity,ConnectAdminLoginGuard],resolve: { envSpecific: EnvironmentSpecificResolver }
|
|
||||||
},
|
|
||||||
{ path: 'reload', loadChildren: './reload/libReload.module#LibReloadModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
|
||||||
{ path: 'user-info', loadChildren: './login/libUser.module#LibUserModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
|
||||||
|
|
||||||
{
|
|
||||||
path: 'stats',
|
|
||||||
component: StatsComponent,
|
|
||||||
canActivate: [IsCommunity,ConnectAdminLoginGuard],
|
|
||||||
resolve: { envSpecific: EnvironmentSpecificResolver }
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'manage-projects',
|
path: 'classContents/new',
|
||||||
component: ManageProjectsComponent,
|
loadChildren: './pages/divhelpcontent/new-div-help-content.module#NewDivHelpContentModule',
|
||||||
canActivate: [IsCommunity,ConnectAdminLoginGuard], resolve: { envSpecific: EnvironmentSpecificResolver }
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'manage-content-providers',
|
path: 'classContents/edit',
|
||||||
component: ManageContentProvidersComponent,
|
loadChildren: './pages/divhelpcontent/edit-div-help-content.module#EditDivHelpContentModule',
|
||||||
canActivate: [IsCommunity,ConnectAdminLoginGuard], resolve: { envSpecific: EnvironmentSpecificResolver }
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'htmlPageContent/edit',
|
||||||
|
loadChildren: './pages/htmlpagecontent/edit-html-page-content.module#EditHtmlPageContentModule',
|
||||||
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'claims',
|
||||||
|
loadChildren: './pages/claims/claims.module#ClaimsModule',
|
||||||
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'reload',
|
||||||
|
loadChildren: './reload/libReload.module#LibReloadModule',
|
||||||
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'user-info',
|
||||||
|
loadChildren: './login/libUser.module#LibUserModule',
|
||||||
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'stats',
|
||||||
|
loadChildren: './pages/stats/stats.module#StatsModule',
|
||||||
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'manage-projects',
|
||||||
|
loadChildren: './pages/community/projects/communityProjects.module#CommunityProjectsModule',
|
||||||
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'manage-content-providers',
|
||||||
|
loadChildren: './pages/community/content-providers/communityContentProviders.module#CommunityContentProvidersModule',
|
||||||
|
resolve: { envSpecific: EnvironmentSpecificResolver }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'mining',
|
path: 'mining',
|
||||||
|
@ -149,7 +143,10 @@ const appRoutes: Routes = [
|
||||||
path: 'errorcommunity',
|
path: 'errorcommunity',
|
||||||
component: CommunityErrorPageComponent
|
component: CommunityErrorPageComponent
|
||||||
},
|
},
|
||||||
{ path: '**', pathMatch: 'full', component: AdminErrorPageComponent }
|
{ path: '**',
|
||||||
|
pathMatch: 'full',
|
||||||
|
component: AdminErrorPageComponent
|
||||||
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {ClaimsComponent} from './claims.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: ClaimsComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ClaimsRoutingModule { }
|
|
@ -0,0 +1,12 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {ClaimsAdminModule} from '../../openaireLibrary/claims/claimsAdmin/claimsAdmin.module';
|
||||||
|
import {ClaimsComponent} from './claims.component';
|
||||||
|
import {ClaimsRoutingModule} from './claims-routing.module';
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
ClaimsAdminModule, ClaimsRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [ClaimsComponent],
|
||||||
|
exports: [ClaimsComponent]
|
||||||
|
})
|
||||||
|
export class ClaimsModule { }
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {ManageContentProvidersComponent} from './manage-content-providers.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: ManageContentProvidersComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class CommunityContentProvidersRoutingModule { }
|
|
@ -1,5 +1,4 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
|
||||||
import { HttpModule, JsonpModule } from '@angular/http';
|
import { HttpModule, JsonpModule } from '@angular/http';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
|
@ -9,22 +8,24 @@ import { EnvironmentSpecificService } from '../../../openaireLibrary/utils/prope
|
||||||
|
|
||||||
import { DataTablesModule } from 'angular-datatables';
|
import { DataTablesModule } from 'angular-datatables';
|
||||||
import { ManageContentProvidersComponent } from './manage-content-providers.component';
|
import { ManageContentProvidersComponent } from './manage-content-providers.component';
|
||||||
import { ManageCommunityContentProvidersService } from "../../../services/manageContentProviders.service";
|
import { ManageCommunityContentProvidersService } from '../../../services/manageContentProviders.service';
|
||||||
import {SearchDataprovidersServiceModule} from '../../../openaireLibrary/connect/contentProviders/searchDataprovidersService.module';
|
import {SearchDataprovidersServiceModule} from '../../../openaireLibrary/connect/contentProviders/searchDataprovidersService.module';
|
||||||
|
|
||||||
import { RemoveContentProvidersComponent } from './remove-content-providers.component';
|
import { RemoveContentProvidersComponent } from './remove-content-providers.component';
|
||||||
import { AddContentProvidersComponent } from './add-content-providers.component';
|
import { AddContentProvidersComponent } from './add-content-providers.component';
|
||||||
import { SearchDataprovidersService } from "../../../openaireLibrary/services/searchDataproviders.service";
|
import { SearchDataprovidersService } from '../../../openaireLibrary/services/searchDataproviders.service';
|
||||||
import { PagingModule } from '../../../openaireLibrary/utils/paging.module';
|
import { PagingModule } from '../../../openaireLibrary/utils/paging.module';
|
||||||
import { SearchPagingModule } from '../../../openaireLibrary/searchPages/searchUtils/searchPaging.module';
|
import { SearchPagingModule } from '../../../openaireLibrary/searchPages/searchUtils/searchPaging.module';
|
||||||
|
|
||||||
import {ErrorMessagesModule} from '../../../openaireLibrary/utils/errorMessages.module';
|
import {ErrorMessagesModule} from '../../../openaireLibrary/utils/errorMessages.module';
|
||||||
import {AlertModalModule} from '../../../openaireLibrary/utils/modal/alertModal.module';
|
import {AlertModalModule} from '../../../openaireLibrary/utils/modal/alertModal.module';
|
||||||
import {FABModule} from '../../../utils/fabModule.module';
|
import {FABModule} from '../../../utils/fabModule.module';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {CommunityContentProvidersRoutingModule} from './communityContentProviders-routing.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
CommonModule,
|
||||||
HttpModule,
|
HttpModule,
|
||||||
JsonpModule,
|
JsonpModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
|
@ -35,7 +36,8 @@ import {FABModule} from '../../../utils/fabModule.module';
|
||||||
ErrorMessagesModule,
|
ErrorMessagesModule,
|
||||||
AlertModalModule,
|
AlertModalModule,
|
||||||
SearchDataprovidersServiceModule,
|
SearchDataprovidersServiceModule,
|
||||||
FABModule
|
FABModule,
|
||||||
|
CommunityContentProvidersRoutingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
ManageContentProvidersComponent,
|
ManageContentProvidersComponent,
|
||||||
|
@ -45,8 +47,9 @@ import {FABModule} from '../../../utils/fabModule.module';
|
||||||
providers: [
|
providers: [
|
||||||
ManageCommunityContentProvidersService,
|
ManageCommunityContentProvidersService,
|
||||||
SearchDataprovidersService,
|
SearchDataprovidersService,
|
||||||
EnvironmentSpecificResolver,EnvironmentSpecificService
|
EnvironmentSpecificResolver, EnvironmentSpecificService
|
||||||
]
|
],
|
||||||
|
exports: [ManageContentProvidersComponent]
|
||||||
})
|
})
|
||||||
|
|
||||||
export class CommunityContentProvidersModule { }
|
export class CommunityContentProvidersModule { }
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {ManageProjectsComponent} from './manage-projects.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: ManageProjectsComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class CommunityProjectsRoutingModule { }
|
|
@ -1,5 +1,4 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
|
||||||
import { HttpModule, JsonpModule } from '@angular/http';
|
import { HttpModule, JsonpModule } from '@angular/http';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
|
@ -10,22 +9,24 @@ import { EnvironmentSpecificService } from '../../../openaireLibrary/utils/prope
|
||||||
|
|
||||||
import { DataTablesModule } from 'angular-datatables';
|
import { DataTablesModule } from 'angular-datatables';
|
||||||
import { ManageProjectsComponent } from './manage-projects.component';
|
import { ManageProjectsComponent } from './manage-projects.component';
|
||||||
import { ManageCommunityProjectsService } from "../../../services/manageProjects.service";
|
import { ManageCommunityProjectsService } from '../../../services/manageProjects.service';
|
||||||
import { SearchProjectsServiceModule } from '../../../openaireLibrary/connect/projects/searchProjectsService.module';
|
import { SearchProjectsServiceModule } from '../../../openaireLibrary/connect/projects/searchProjectsService.module';
|
||||||
|
|
||||||
import { RemoveProjectsComponent } from './remove-projects.component';
|
import { RemoveProjectsComponent } from './remove-projects.component';
|
||||||
import { AddProjectsComponent } from './add-projects.component';
|
import { AddProjectsComponent } from './add-projects.component';
|
||||||
import { SearchProjectsService } from "../../../openaireLibrary/services/searchProjects.service";
|
import { SearchProjectsService } from '../../../openaireLibrary/services/searchProjects.service';
|
||||||
import { PagingModule } from '../../../openaireLibrary/utils/paging.module';
|
import { PagingModule } from '../../../openaireLibrary/utils/paging.module';
|
||||||
import { SearchPagingModule } from '../../../openaireLibrary/searchPages/searchUtils/searchPaging.module';
|
import { SearchPagingModule } from '../../../openaireLibrary/searchPages/searchUtils/searchPaging.module';
|
||||||
|
|
||||||
import {ErrorMessagesModule} from '../../../openaireLibrary/utils/errorMessages.module';
|
import {ErrorMessagesModule} from '../../../openaireLibrary/utils/errorMessages.module';
|
||||||
import {AlertModalModule} from '../../../openaireLibrary/utils/modal/alertModal.module';
|
import {AlertModalModule} from '../../../openaireLibrary/utils/modal/alertModal.module';
|
||||||
import {FABModule} from '../../../utils/fabModule.module';
|
import {FABModule} from '../../../utils/fabModule.module';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {CommunityProjectsRoutingModule} from './communityProjects-routing.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
CommonModule,
|
||||||
HttpModule,
|
HttpModule,
|
||||||
JsonpModule,
|
JsonpModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
|
@ -36,7 +37,8 @@ import {FABModule} from '../../../utils/fabModule.module';
|
||||||
ErrorMessagesModule,
|
ErrorMessagesModule,
|
||||||
AlertModalModule,
|
AlertModalModule,
|
||||||
SearchProjectsServiceModule,
|
SearchProjectsServiceModule,
|
||||||
FABModule
|
FABModule,
|
||||||
|
CommunityProjectsRoutingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
ManageProjectsComponent,
|
ManageProjectsComponent,
|
||||||
|
@ -46,8 +48,9 @@ import {FABModule} from '../../../utils/fabModule.module';
|
||||||
providers: [
|
providers: [
|
||||||
ManageCommunityProjectsService,
|
ManageCommunityProjectsService,
|
||||||
SearchProjectsService,
|
SearchProjectsService,
|
||||||
EnvironmentSpecificResolver,EnvironmentSpecificService
|
EnvironmentSpecificResolver, EnvironmentSpecificService
|
||||||
]
|
],
|
||||||
|
exports: [ManageProjectsComponent]
|
||||||
})
|
})
|
||||||
|
|
||||||
export class CommunityProjectsModule { }
|
export class CommunityProjectsModule { }
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {DivIdsComponent} from './divIds.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: DivIdsComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class DivIdsRoutingModule { }
|
|
@ -0,0 +1,22 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||||||
|
import {FABModule} from '../../utils/fabModule.module';
|
||||||
|
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
|
||||||
|
import {DivIdsComponent} from './divIds.component';
|
||||||
|
import {DivIdFormComponent} from './divId-form.component';
|
||||||
|
import {DivIdsRoutingModule} from './divIds-routing.module';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule, RouterModule, FormsModule, FABModule,
|
||||||
|
AlertModalModule, ReactiveFormsModule, DivIdsRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [DivIdsComponent, DivIdFormComponent],
|
||||||
|
providers: [IsCommunity, ConnectAdminLoginGuard],
|
||||||
|
exports: [DivIdsComponent]
|
||||||
|
})
|
||||||
|
export class DivIdsModule { }
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {DivHelpContentsComponent} from './div-help-contents.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: DivHelpContentsComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class DivHelpContentsRoutingModule { }
|
|
@ -0,0 +1,24 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||||||
|
import {FABModule} from '../../utils/fabModule.module';
|
||||||
|
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
|
||||||
|
import {DivHelpContentsRoutingModule} from './div-help-contents-routing.module';
|
||||||
|
import {SafeHtmlPipeModule} from '../../openaireLibrary/utils/pipes/safeHTMLPipe.module';
|
||||||
|
import {DivHelpContentsComponent} from './div-help-contents.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule, RouterModule, FormsModule, FABModule, SafeHtmlPipeModule,
|
||||||
|
AlertModalModule, ReactiveFormsModule, DivHelpContentsRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
DivHelpContentsComponent
|
||||||
|
],
|
||||||
|
providers: [IsCommunity, ConnectAdminLoginGuard],
|
||||||
|
exports: [DivHelpContentsComponent]
|
||||||
|
})
|
||||||
|
export class DivHelpContentsModule { }
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {EditDivHelpContentComponent} from './edit-div-help-content.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: EditDivHelpContentComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class EditDivHelpContentRoutingModule { }
|
|
@ -0,0 +1,27 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||||||
|
import {FABModule} from '../../utils/fabModule.module';
|
||||||
|
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
|
||||||
|
import {SafeHtmlPipeModule} from '../../openaireLibrary/utils/pipes/safeHTMLPipe.module';
|
||||||
|
import {EditDivHelpContentRoutingModule} from './edit-div-help-content-routing.module';
|
||||||
|
import {CKEditorModule} from 'ng2-ckeditor';
|
||||||
|
import {EditDivHelpContentComponent} from './edit-div-help-content.component';
|
||||||
|
import {DivContentFormComponent} from './div-help-content-form.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule, RouterModule, FormsModule,
|
||||||
|
FABModule, SafeHtmlPipeModule, CKEditorModule,
|
||||||
|
AlertModalModule, ReactiveFormsModule, EditDivHelpContentRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
EditDivHelpContentComponent, DivContentFormComponent
|
||||||
|
],
|
||||||
|
providers: [IsCommunity, ConnectAdminLoginGuard],
|
||||||
|
exports: [EditDivHelpContentComponent]
|
||||||
|
})
|
||||||
|
export class EditDivHelpContentModule { }
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {NewDivHelpContentComponent} from './new-div-help-content.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: NewDivHelpContentComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class NewDivHelpContentRoutingModule { }
|
|
@ -0,0 +1,27 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||||||
|
import {FABModule} from '../../utils/fabModule.module';
|
||||||
|
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
|
||||||
|
import {SafeHtmlPipeModule} from '../../openaireLibrary/utils/pipes/safeHTMLPipe.module';
|
||||||
|
import {NewDivHelpContentRoutingModule} from './new-div-help-content-routing.module';
|
||||||
|
import {CKEditorModule} from 'ng2-ckeditor';
|
||||||
|
import {NewDivHelpContentComponent} from './new-div-help-content.component';
|
||||||
|
import {DivContentFormComponent} from './div-help-content-form.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule, RouterModule, FormsModule,
|
||||||
|
FABModule, SafeHtmlPipeModule, CKEditorModule,
|
||||||
|
AlertModalModule, ReactiveFormsModule, NewDivHelpContentRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
NewDivHelpContentComponent, DivContentFormComponent
|
||||||
|
],
|
||||||
|
providers: [IsCommunity, ConnectAdminLoginGuard],
|
||||||
|
exports: [NewDivHelpContentComponent]
|
||||||
|
})
|
||||||
|
export class NewDivHelpContentModule { }
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {EntitiesComponent} from './entities.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: EntitiesComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class EntitiesRoutingModule { }
|
|
@ -0,0 +1,22 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {EntitiesComponent} from './entities.component';
|
||||||
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||||||
|
import {FABModule} from '../../utils/fabModule.module';
|
||||||
|
import {EntityFormComponent} from './entity-form.component';
|
||||||
|
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
|
||||||
|
import {EntitiesRoutingModule} from './entities-routing.module';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule, RouterModule, FormsModule, FABModule,
|
||||||
|
AlertModalModule, ReactiveFormsModule, EntitiesRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [EntitiesComponent, EntityFormComponent],
|
||||||
|
providers: [IsCommunity, ConnectAdminLoginGuard],
|
||||||
|
exports: [EntitiesComponent]
|
||||||
|
})
|
||||||
|
export class EntitiesModule { }
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {EditPageHelpContentComponent} from './edit-page-help-content.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: EditPageHelpContentComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class EditPageHelpContentRoutingModule { }
|
|
@ -0,0 +1,27 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||||||
|
import {FABModule} from '../../utils/fabModule.module';
|
||||||
|
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
|
||||||
|
import {SafeHtmlPipeModule} from '../../openaireLibrary/utils/pipes/safeHTMLPipe.module';
|
||||||
|
import {PageContentFormComponent} from './page-help-content-form.component';
|
||||||
|
import {EditPageHelpContentRoutingModule} from './edit-page-help-content-routing.module';
|
||||||
|
import {EditPageHelpContentComponent} from './edit-page-help-content.component';
|
||||||
|
import {CKEditorModule} from 'ng2-ckeditor';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule, RouterModule, FormsModule,
|
||||||
|
FABModule, SafeHtmlPipeModule, CKEditorModule,
|
||||||
|
AlertModalModule, ReactiveFormsModule, EditPageHelpContentRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
EditPageHelpContentComponent, PageContentFormComponent
|
||||||
|
],
|
||||||
|
providers: [IsCommunity, ConnectAdminLoginGuard],
|
||||||
|
exports: [EditPageHelpContentComponent]
|
||||||
|
})
|
||||||
|
export class EditPageHelpContentModule { }
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {NewPageHelpContentComponent} from './new-page-help-content.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: NewPageHelpContentComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class NewPageHelpContentRoutingModule { }
|
|
@ -0,0 +1,27 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||||||
|
import {FABModule} from '../../utils/fabModule.module';
|
||||||
|
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
|
||||||
|
import {SafeHtmlPipeModule} from '../../openaireLibrary/utils/pipes/safeHTMLPipe.module';
|
||||||
|
import {NewPageHelpContentComponent} from './new-page-help-content.component';
|
||||||
|
import {NewPageHelpContentRoutingModule} from './new-page-help-content-routing.module';
|
||||||
|
import {PageContentFormComponent} from './page-help-content-form.component';
|
||||||
|
import {CKEditorModule} from 'ng2-ckeditor';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule, RouterModule, FormsModule,
|
||||||
|
FABModule, SafeHtmlPipeModule, CKEditorModule,
|
||||||
|
AlertModalModule, ReactiveFormsModule, NewPageHelpContentRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
NewPageHelpContentComponent, PageContentFormComponent
|
||||||
|
],
|
||||||
|
providers: [IsCommunity, ConnectAdminLoginGuard],
|
||||||
|
exports: [NewPageHelpContentComponent]
|
||||||
|
})
|
||||||
|
export class NewPageHelpContentModule { }
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {PageHelpContentsComponent} from './page-help-contents.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: PageHelpContentsComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class PageHelpContentsRoutingModule { }
|
|
@ -0,0 +1,24 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||||||
|
import {FABModule} from '../../utils/fabModule.module';
|
||||||
|
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
|
||||||
|
import {PageHelpContentsRoutingModule} from './page-help-contents-routing.module';
|
||||||
|
import {PageHelpContentsComponent} from './page-help-contents.component';
|
||||||
|
import {SafeHtmlPipeModule} from '../../openaireLibrary/utils/pipes/safeHTMLPipe.module';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule, RouterModule, FormsModule, FABModule, SafeHtmlPipeModule,
|
||||||
|
AlertModalModule, ReactiveFormsModule, PageHelpContentsRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
PageHelpContentsComponent
|
||||||
|
],
|
||||||
|
providers: [IsCommunity, ConnectAdminLoginGuard],
|
||||||
|
exports: [PageHelpContentsComponent]
|
||||||
|
})
|
||||||
|
export class PageHelpContentsModule { }
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {EditHtmlPageContentComponent} from './edit-htmlpage-content.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: EditHtmlPageContentComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class EditHtmlPageContentRoutingModule { }
|
|
@ -6,20 +6,19 @@ import { RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { CKEditorModule } from 'ng2-ckeditor';
|
import { CKEditorModule } from 'ng2-ckeditor';
|
||||||
|
|
||||||
import { EnvironmentSpecificResolver } from '../../openaireLibrary/utils/properties/environmentSpecificResolver';
|
import {ErrorMessagesModule} from '../../openaireLibrary/utils/errorMessages.module';
|
||||||
import { EnvironmentSpecificService } from '../../openaireLibrary/utils/properties/environment-specific.service';
|
|
||||||
|
|
||||||
import {ErrorMessagesModule} from '../../openaireLibrary/utils/errorMessages.module';
|
|
||||||
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
|
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
|
||||||
import {SafeHtmlPipeModule} from '../../openaireLibrary/utils/pipes/safeHTMLPipe.module';
|
import {SafeHtmlPipeModule} from '../../openaireLibrary/utils/pipes/safeHTMLPipe.module';
|
||||||
|
|
||||||
import { HtmlPageContentFormComponent } from "./html-page-content-form.component";
|
import { HtmlPageContentFormComponent } from './html-page-content-form.component';
|
||||||
import { EditHtmlPageContentComponent } from "./edit-htmlpage-content.component";
|
import { EditHtmlPageContentComponent } from './edit-htmlpage-content.component';
|
||||||
import { HtmlPageContentService } from "./html-page-content.service";
|
import { HtmlPageContentService } from './html-page-content.service';
|
||||||
|
import {EditHtmlPageContentRoutingModule} from './edit-html-page-content-routing.module';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
CommonModule,
|
||||||
HttpModule,
|
HttpModule,
|
||||||
JsonpModule,
|
JsonpModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
|
@ -28,16 +27,17 @@ import { HtmlPageContentService } from "./html-page-content.service";
|
||||||
CKEditorModule,
|
CKEditorModule,
|
||||||
ErrorMessagesModule,
|
ErrorMessagesModule,
|
||||||
AlertModalModule,
|
AlertModalModule,
|
||||||
SafeHtmlPipeModule
|
SafeHtmlPipeModule,
|
||||||
|
EditHtmlPageContentRoutingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
HtmlPageContentFormComponent,
|
HtmlPageContentFormComponent,
|
||||||
EditHtmlPageContentComponent,
|
EditHtmlPageContentComponent,
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
HtmlPageContentService,
|
HtmlPageContentService
|
||||||
EnvironmentSpecificResolver,EnvironmentSpecificService
|
],
|
||||||
]
|
exports: [EditHtmlPageContentComponent]
|
||||||
})
|
})
|
||||||
|
|
||||||
export class HtmlPageContentModule { }
|
export class EditHtmlPageContentModule { }
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {PagesComponent} from './pages.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: PagesComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class PagesRoutingModule { }
|
|
@ -0,0 +1,22 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||||||
|
import {FABModule} from '../../utils/fabModule.module';
|
||||||
|
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
|
||||||
|
import {PagesComponent} from './pages.component';
|
||||||
|
import {PageFormComponent} from './page-form.component';
|
||||||
|
import {PagesRoutingModule} from './pages-routing.module';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule, RouterModule, FormsModule, FABModule,
|
||||||
|
AlertModalModule, ReactiveFormsModule, PagesRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [PagesComponent, PageFormComponent],
|
||||||
|
providers: [IsCommunity, ConnectAdminLoginGuard],
|
||||||
|
exports: [PagesComponent]
|
||||||
|
})
|
||||||
|
export class PagesModule { }
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {StatsComponent} from './stats.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{ path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: StatsComponent}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class StatsRoutingModule { }
|
|
@ -6,7 +6,6 @@ import { Community } from '../../domain/community';
|
||||||
import { DomSanitizer } from '@angular/platform-browser';
|
import { DomSanitizer } from '@angular/platform-browser';
|
||||||
import {TitleCasePipe} from '@angular/common';
|
import {TitleCasePipe} from '@angular/common';
|
||||||
import {availableEntitiesMap, StatisticsDisplay, StatisticsSummary} from '../../openaireLibrary/connect/statistics/statisticsEntities';
|
import {availableEntitiesMap, StatisticsDisplay, StatisticsSummary} from '../../openaireLibrary/connect/statistics/statisticsEntities';
|
||||||
import {Observable} from 'rxjs/Observable';
|
|
||||||
import {ConfigurationService} from '../../openaireLibrary/utils/configuration/configuration.service';
|
import {ConfigurationService} from '../../openaireLibrary/utils/configuration/configuration.service';
|
||||||
|
|
||||||
import {Session} from '../../openaireLibrary/login/utils/helper.class';
|
import {Session} from '../../openaireLibrary/login/utils/helper.class';
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import {RouterModule} from '@angular/router';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
|
||||||
|
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
|
||||||
|
import {StatsComponent} from './stats.component';
|
||||||
|
import {StatsRoutingModule} from './stats-routing.module';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule, StatsRoutingModule, RouterModule
|
||||||
|
],
|
||||||
|
declarations: [StatsComponent],
|
||||||
|
providers: [IsCommunity, ConnectAdminLoginGuard],
|
||||||
|
exports: [StatsComponent]
|
||||||
|
})
|
||||||
|
export class StatsModule { }
|
Loading…
Reference in New Issue