mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
[DURACOM-191] change routing for community-list-page, delete community-list-page.module.ts
This commit is contained in:
@@ -68,8 +68,8 @@ import { ThemedPageErrorComponent } from './page-error/themed-page-error.compone
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'community-list',
|
path: 'community-list',
|
||||||
loadChildren: () => import('./community-list-page/community-list-page.module')
|
loadChildren: () => import('./community-list-page/community-list-page-routes')
|
||||||
.then((m) => m.CommunityListPageModule),
|
.then((m) => m.ROUTES),
|
||||||
canActivate: [EndUserAgreementCurrentUserGuard]
|
canActivate: [EndUserAgreementCurrentUserGuard]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
21
src/app/community-list-page/community-list-page-routes.ts
Normal file
21
src/app/community-list-page/community-list-page-routes.ts
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import { Route } from '@angular/router';
|
||||||
|
|
||||||
|
import { CommunityListService } from './community-list-service';
|
||||||
|
import { ThemedCommunityListPageComponent } from './themed-community-list-page.component';
|
||||||
|
import { I18nBreadcrumbResolver } from '../core/breadcrumbs/i18n-breadcrumb.resolver';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* RouterModule to help navigate to the page with the community list tree
|
||||||
|
*/
|
||||||
|
export const ROUTES: Route[] = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: ThemedCommunityListPageComponent,
|
||||||
|
pathMatch: 'full',
|
||||||
|
providers: [CommunityListService],
|
||||||
|
resolve: {
|
||||||
|
breadcrumb: I18nBreadcrumbResolver
|
||||||
|
},
|
||||||
|
data: {title: 'communityList.tabTitle', breadcrumbKey: 'communityList'}
|
||||||
|
}
|
||||||
|
];
|
@@ -1,34 +0,0 @@
|
|||||||
import { CommonModule } from '@angular/common';
|
|
||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { CommunityListPageComponent } from './community-list-page.component';
|
|
||||||
import { CommunityListPageRoutingModule } from './community-list-page.routing.module';
|
|
||||||
import { CommunityListComponent } from './community-list/community-list.component';
|
|
||||||
import { ThemedCommunityListPageComponent } from './themed-community-list-page.component';
|
|
||||||
import { ThemedCommunityListComponent } from './community-list/themed-community-list.component';
|
|
||||||
import { CdkTreeModule } from '@angular/cdk/tree';
|
|
||||||
|
|
||||||
|
|
||||||
const DECLARATIONS = [
|
|
||||||
CommunityListPageComponent,
|
|
||||||
CommunityListComponent,
|
|
||||||
ThemedCommunityListPageComponent,
|
|
||||||
ThemedCommunityListComponent
|
|
||||||
];
|
|
||||||
/**
|
|
||||||
* The page which houses a title and the community list, as described in community-list.component
|
|
||||||
*/
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
CommonModule,
|
|
||||||
CommunityListPageRoutingModule,
|
|
||||||
CdkTreeModule,
|
|
||||||
...DECLARATIONS
|
|
||||||
],
|
|
||||||
exports: [
|
|
||||||
...DECLARATIONS,
|
|
||||||
CdkTreeModule,
|
|
||||||
]
|
|
||||||
})
|
|
||||||
export class CommunityListPageModule {
|
|
||||||
|
|
||||||
}
|
|
@@ -1,30 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { RouterModule } from '@angular/router';
|
|
||||||
import { CdkTreeModule } from '@angular/cdk/tree';
|
|
||||||
|
|
||||||
import { CommunityListService } from './community-list-service';
|
|
||||||
import { ThemedCommunityListPageComponent } from './themed-community-list-page.component';
|
|
||||||
import { I18nBreadcrumbResolver } from '../core/breadcrumbs/i18n-breadcrumb.resolver';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* RouterModule to help navigate to the page with the community list tree
|
|
||||||
*/
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
RouterModule.forChild([
|
|
||||||
{
|
|
||||||
path: '',
|
|
||||||
component: ThemedCommunityListPageComponent,
|
|
||||||
pathMatch: 'full',
|
|
||||||
resolve: {
|
|
||||||
breadcrumb: I18nBreadcrumbResolver
|
|
||||||
},
|
|
||||||
data: { title: 'communityList.tabTitle', breadcrumbKey: 'communityList' }
|
|
||||||
}
|
|
||||||
]),
|
|
||||||
CdkTreeModule,
|
|
||||||
],
|
|
||||||
providers: [CommunityListService]
|
|
||||||
})
|
|
||||||
export class CommunityListPageRoutingModule {
|
|
||||||
}
|
|
@@ -23,7 +23,6 @@ import { TranslateModule } from '@ngx-translate/core';
|
|||||||
import { AppModule } from '../../app/app.module';
|
import { AppModule } from '../../app/app.module';
|
||||||
import { ItemPageModule } from '../../app/item-page/item-page.module';
|
import { ItemPageModule } from '../../app/item-page/item-page.module';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
import { CommunityListPageModule } from '../../app/community-list-page/community-list-page.module';
|
|
||||||
import { InfoModule } from '../../app/info/info.module';
|
import { InfoModule } from '../../app/info/info.module';
|
||||||
import { StatisticsPageModule } from '../../app/statistics-page/statistics-page.module';
|
import { StatisticsPageModule } from '../../app/statistics-page/statistics-page.module';
|
||||||
import { CommunityPageModule } from '../../app/community-page/community-page.module';
|
import { CommunityPageModule } from '../../app/community-page/community-page.module';
|
||||||
@@ -274,7 +273,6 @@ const DECLARATIONS = [
|
|||||||
CollectionPageModule,
|
CollectionPageModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
CommunityFormModule,
|
CommunityFormModule,
|
||||||
CommunityListPageModule,
|
|
||||||
CommunityPageModule,
|
CommunityPageModule,
|
||||||
DragDropModule,
|
DragDropModule,
|
||||||
ItemSharedModule,
|
ItemSharedModule,
|
||||||
|
@@ -23,7 +23,6 @@ import { TranslateModule } from '@ngx-translate/core';
|
|||||||
import { AppModule } from '../../app/app.module';
|
import { AppModule } from '../../app/app.module';
|
||||||
import { ItemPageModule } from '../../app/item-page/item-page.module';
|
import { ItemPageModule } from '../../app/item-page/item-page.module';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
import { CommunityListPageModule } from '../../app/community-list-page/community-list-page.module';
|
|
||||||
import { InfoModule } from '../../app/info/info.module';
|
import { InfoModule } from '../../app/info/info.module';
|
||||||
import { StatisticsPageModule } from '../../app/statistics-page/statistics-page.module';
|
import { StatisticsPageModule } from '../../app/statistics-page/statistics-page.module';
|
||||||
import { CommunityPageModule } from '../../app/community-page/community-page.module';
|
import { CommunityPageModule } from '../../app/community-page/community-page.module';
|
||||||
@@ -55,7 +54,6 @@ const DECLARATIONS = [
|
|||||||
CollectionPageModule,
|
CollectionPageModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
CommunityFormModule,
|
CommunityFormModule,
|
||||||
CommunityListPageModule,
|
|
||||||
CommunityPageModule,
|
CommunityPageModule,
|
||||||
DragDropModule,
|
DragDropModule,
|
||||||
ItemSharedModule,
|
ItemSharedModule,
|
||||||
|
Reference in New Issue
Block a user