"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/app/item-page/item-page-routing.module.ts" between
dspace-angular-dspace-7.0.tar.gz and dspace-angular-dspace-7.1.tar.gz

About: dspace-angular is the Angular-based frontend of DSpace, a digital repository system to capture, store, index, preserve and redistribute an organization’s research material in digital formats.

item-page-routing.module.ts  (dspace-angular-dspace-7.0):item-page-routing.module.ts  (dspace-angular-dspace-7.1)
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { ItemPageResolver } from './item-page.resolver'; import { ItemPageResolver } from './item-page.resolver';
import { AuthenticatedGuard } from '../core/auth/authenticated.guard'; import { AuthenticatedGuard } from '../core/auth/authenticated.guard';
import { ItemBreadcrumbResolver } from '../core/breadcrumbs/item-breadcrumb.reso lver'; import { ItemBreadcrumbResolver } from '../core/breadcrumbs/item-breadcrumb.reso lver';
import { VersionResolver } from './version-page/version.resolver';
import { DSOBreadcrumbsService } from '../core/breadcrumbs/dso-breadcrumbs.servi ce'; import { DSOBreadcrumbsService } from '../core/breadcrumbs/dso-breadcrumbs.servi ce';
import { LinkService } from '../core/cache/builders/link.service'; import { LinkService } from '../core/cache/builders/link.service';
import { UploadBitstreamComponent } from './bitstreams/upload/upload-bitstream.c omponent'; import { UploadBitstreamComponent } from './bitstreams/upload/upload-bitstream.c omponent';
import { ITEM_EDIT_PATH, UPLOAD_BITSTREAM_PATH } from './item-page-routing-paths '; import { ITEM_EDIT_PATH, UPLOAD_BITSTREAM_PATH } from './item-page-routing-paths ';
import { ItemPageAdministratorGuard } from './item-page-administrator.guard'; import { ItemPageAdministratorGuard } from './item-page-administrator.guard';
import { MenuItemType } from '../shared/menu/initial-menus-state'; import { MenuItemType } from '../shared/menu/initial-menus-state';
import { LinkMenuItemModel } from '../shared/menu/menu-item/models/link.model'; import { LinkMenuItemModel } from '../shared/menu/menu-item/models/link.model';
import { ThemedItemPageComponent } from './simple/themed-item-page.component'; import { ThemedItemPageComponent } from './simple/themed-item-page.component';
import { ThemedFullItemPageComponent } from './full/themed-full-item-page.compon ent'; import { ThemedFullItemPageComponent } from './full/themed-full-item-page.compon ent';
import { VersionPageComponent } from './version-page/version-page/version-page.c
omponent';
import { BitstreamRequestACopyPageComponent } from '../shared/bitstream-request-
a-copy-page/bitstream-request-a-copy-page.component';
@NgModule({ @NgModule({
imports: [ imports: [
RouterModule.forChild([ RouterModule.forChild([
{ {
path: ':id', path: ':id',
resolve: { resolve: {
dso: ItemPageResolver, dso: ItemPageResolver,
breadcrumb: ItemBreadcrumbResolver breadcrumb: ItemBreadcrumbResolver
}, },
skipping to change at line 45 skipping to change at line 48
}, },
{ {
path: ITEM_EDIT_PATH, path: ITEM_EDIT_PATH,
loadChildren: () => import('./edit-item-page/edit-item-page.module') loadChildren: () => import('./edit-item-page/edit-item-page.module')
.then((m) => m.EditItemPageModule), .then((m) => m.EditItemPageModule),
}, },
{ {
path: UPLOAD_BITSTREAM_PATH, path: UPLOAD_BITSTREAM_PATH,
component: UploadBitstreamComponent, component: UploadBitstreamComponent,
canActivate: [AuthenticatedGuard] canActivate: [AuthenticatedGuard]
},
{
path: ':request-a-copy',
component: BitstreamRequestACopyPageComponent,
} }
], ],
data: { data: {
menu: { menu: {
public: [{ public: [{
id: 'statistics_item_:id', id: 'statistics_item_:id',
active: true, active: true,
visible: true, visible: true,
model: { model: {
type: MenuItemType.LINK, type: MenuItemType.LINK,
text: 'menu.section.statistics', text: 'menu.section.statistics',
link: 'statistics/items/:id/', link: 'statistics/items/:id/',
} as LinkMenuItemModel, } as LinkMenuItemModel,
}], }],
}, },
}, },
},
{
path: 'version',
children: [
{
path: ':id',
component: VersionPageComponent,
resolve: {
dso: VersionResolver,
},
}
],
} }
]) ])
], ],
providers: [ providers: [
ItemPageResolver, ItemPageResolver,
ItemBreadcrumbResolver, ItemBreadcrumbResolver,
DSOBreadcrumbsService, DSOBreadcrumbsService,
LinkService, LinkService,
ItemPageAdministratorGuard, ItemPageAdministratorGuard,
VersionResolver,
] ]
}) })
export class ItemPageRoutingModule { export class ItemPageRoutingModule {
} }
 End of changes. 5 change blocks. 
0 lines changed or deleted 22 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)