mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[CST-12791] rename of files & components by removing admin
This commit is contained in:
@@ -1,122 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { RouterModule } from '@angular/router';
|
|
||||||
|
|
||||||
import { AuthenticatedGuard } from '../../core/auth/authenticated.guard';
|
|
||||||
import { I18nBreadcrumbResolver } from '../../core/breadcrumbs/i18n-breadcrumb.resolver';
|
|
||||||
import { I18nBreadcrumbsService } from '../../core/breadcrumbs/i18n-breadcrumbs.service';
|
|
||||||
import { NOTIFICATIONS_RECITER_SUGGESTION_PATH } from './admin-notifications-routing-paths';
|
|
||||||
import { AdminNotificationsSuggestionTargetsPageComponent } from './admin-notifications-suggestion-targets-page/admin-notifications-suggestion-targets-page.component';
|
|
||||||
import { AdminNotificationsSuggestionTargetsPageResolver } from './admin-notifications-suggestion-targets-page/admin-notifications-suggestion-targets-page-resolver.service';
|
|
||||||
import { QUALITY_ASSURANCE_EDIT_PATH } from './admin-notifications-routing-paths';
|
|
||||||
import { AdminQualityAssuranceTopicsPageComponent } from './admin-quality-assurance-topics-page/admin-quality-assurance-topics-page.component';
|
|
||||||
import { AdminQualityAssuranceEventsPageComponent } from './admin-quality-assurance-events-page/admin-quality-assurance-events-page.component';
|
|
||||||
import { AdminQualityAssuranceTopicsPageResolver } from './admin-quality-assurance-topics-page/admin-quality-assurance-topics-page-resolver.service';
|
|
||||||
import { AdminQualityAssuranceEventsPageResolver } from './admin-quality-assurance-events-page/admin-quality-assurance-events-page.resolver';
|
|
||||||
import { AdminQualityAssuranceSourcePageComponent } from './admin-quality-assurance-source-page-component/admin-quality-assurance-source-page.component';
|
|
||||||
import { AdminQualityAssuranceSourcePageResolver } from './admin-quality-assurance-source-page-component/admin-quality-assurance-source-page-resolver.service';
|
|
||||||
import { QualityAssuranceBreadcrumbResolver } from '../../core/breadcrumbs/quality-assurance-breadcrumb.resolver';
|
|
||||||
import { QualityAssuranceBreadcrumbService } from '../../core/breadcrumbs/quality-assurance-breadcrumb.service';
|
|
||||||
import {
|
|
||||||
SourceDataResolver
|
|
||||||
} from './admin-quality-assurance-source-page-component/admin-quality-assurance-source-data.resolver';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
RouterModule.forChild([
|
|
||||||
{
|
|
||||||
canActivate: [ AuthenticatedGuard ],
|
|
||||||
path: `${NOTIFICATIONS_RECITER_SUGGESTION_PATH}`,
|
|
||||||
component: AdminNotificationsSuggestionTargetsPageComponent,
|
|
||||||
pathMatch: 'full',
|
|
||||||
resolve: {
|
|
||||||
breadcrumb: I18nBreadcrumbResolver,
|
|
||||||
reciterSuggestionTargetParams: AdminNotificationsSuggestionTargetsPageResolver
|
|
||||||
},
|
|
||||||
data: {
|
|
||||||
title: 'admin.notifications.recitersuggestion.page.title',
|
|
||||||
breadcrumbKey: 'admin.notifications.recitersuggestion',
|
|
||||||
showBreadcrumbsFluid: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
canActivate: [ AuthenticatedGuard ],
|
|
||||||
path: `${QUALITY_ASSURANCE_EDIT_PATH}/:sourceId`,
|
|
||||||
component: AdminQualityAssuranceTopicsPageComponent,
|
|
||||||
pathMatch: 'full',
|
|
||||||
resolve: {
|
|
||||||
breadcrumb: QualityAssuranceBreadcrumbResolver,
|
|
||||||
openaireQualityAssuranceTopicsParams: AdminQualityAssuranceTopicsPageResolver
|
|
||||||
},
|
|
||||||
data: {
|
|
||||||
title: 'admin.quality-assurance.page.title',
|
|
||||||
breadcrumbKey: 'admin.quality-assurance',
|
|
||||||
showBreadcrumbsFluid: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
canActivate: [ AuthenticatedGuard ],
|
|
||||||
path: `${QUALITY_ASSURANCE_EDIT_PATH}/:sourceId/target/:targetId`,
|
|
||||||
component: AdminQualityAssuranceTopicsPageComponent,
|
|
||||||
pathMatch: 'full',
|
|
||||||
resolve: {
|
|
||||||
breadcrumb: I18nBreadcrumbResolver,
|
|
||||||
openaireQualityAssuranceTopicsParams: AdminQualityAssuranceTopicsPageResolver
|
|
||||||
},
|
|
||||||
data: {
|
|
||||||
title: 'admin.quality-assurance.page.title',
|
|
||||||
breadcrumbKey: 'admin.quality-assurance',
|
|
||||||
showBreadcrumbsFluid: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
canActivate: [ AuthenticatedGuard ],
|
|
||||||
path: `${QUALITY_ASSURANCE_EDIT_PATH}`,
|
|
||||||
component: AdminQualityAssuranceSourcePageComponent,
|
|
||||||
pathMatch: 'full',
|
|
||||||
resolve: {
|
|
||||||
breadcrumb: I18nBreadcrumbResolver,
|
|
||||||
openaireQualityAssuranceSourceParams: AdminQualityAssuranceSourcePageResolver,
|
|
||||||
sourceData: SourceDataResolver
|
|
||||||
},
|
|
||||||
data: {
|
|
||||||
title: 'admin.notifications.source.breadcrumbs',
|
|
||||||
breadcrumbKey: 'admin.notifications.source',
|
|
||||||
showBreadcrumbsFluid: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
canActivate: [ AuthenticatedGuard ],
|
|
||||||
path: `${QUALITY_ASSURANCE_EDIT_PATH}/:sourceId/:topicId`,
|
|
||||||
component: AdminQualityAssuranceEventsPageComponent,
|
|
||||||
pathMatch: 'full',
|
|
||||||
resolve: {
|
|
||||||
breadcrumb: QualityAssuranceBreadcrumbResolver,
|
|
||||||
openaireQualityAssuranceEventsParams: AdminQualityAssuranceEventsPageResolver
|
|
||||||
},
|
|
||||||
data: {
|
|
||||||
title: 'admin.notifications.event.page.title',
|
|
||||||
breadcrumbKey: 'admin.notifications.event',
|
|
||||||
showBreadcrumbsFluid: false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
])
|
|
||||||
],
|
|
||||||
providers: [
|
|
||||||
I18nBreadcrumbResolver,
|
|
||||||
I18nBreadcrumbsService,
|
|
||||||
AdminNotificationsSuggestionTargetsPageResolver,
|
|
||||||
SourceDataResolver,
|
|
||||||
AdminQualityAssuranceSourcePageResolver,
|
|
||||||
AdminQualityAssuranceTopicsPageResolver,
|
|
||||||
AdminQualityAssuranceEventsPageResolver,
|
|
||||||
AdminQualityAssuranceSourcePageResolver,
|
|
||||||
QualityAssuranceBreadcrumbResolver,
|
|
||||||
QualityAssuranceBreadcrumbService
|
|
||||||
]
|
|
||||||
})
|
|
||||||
/**
|
|
||||||
* Routing module for the Notifications section of the admin sidebar
|
|
||||||
*/
|
|
||||||
export class AdminNotificationsRoutingModule {
|
|
||||||
|
|
||||||
}
|
|
@@ -1,10 +0,0 @@
|
|||||||
import { Component } from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'ds-admin-notifications-reciter-page',
|
|
||||||
templateUrl: './admin-notifications-suggestion-targets-page.component.html',
|
|
||||||
styleUrls: ['./admin-notifications-suggestion-targets-page.component.scss']
|
|
||||||
})
|
|
||||||
export class AdminNotificationsSuggestionTargetsPageComponent {
|
|
||||||
|
|
||||||
}
|
|
@@ -1,33 +0,0 @@
|
|||||||
import { CommonModule } from '@angular/common';
|
|
||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { CoreModule } from '../../core/core.module';
|
|
||||||
import { SharedModule } from '../../shared/shared.module';
|
|
||||||
import { AdminNotificationsRoutingModule } from './admin-notifications-routing.module';
|
|
||||||
import { AdminNotificationsSuggestionTargetsPageComponent } from './admin-notifications-suggestion-targets-page/admin-notifications-suggestion-targets-page.component';
|
|
||||||
import { AdminQualityAssuranceTopicsPageComponent } from './admin-quality-assurance-topics-page/admin-quality-assurance-topics-page.component';
|
|
||||||
import { AdminQualityAssuranceEventsPageComponent } from './admin-quality-assurance-events-page/admin-quality-assurance-events-page.component';
|
|
||||||
import { AdminQualityAssuranceSourcePageComponent } from './admin-quality-assurance-source-page-component/admin-quality-assurance-source-page.component';
|
|
||||||
import {NotificationsModule} from '../../notifications/notifications.module';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
CommonModule,
|
|
||||||
SharedModule,
|
|
||||||
CoreModule.forRoot(),
|
|
||||||
AdminNotificationsRoutingModule,
|
|
||||||
NotificationsModule
|
|
||||||
],
|
|
||||||
declarations: [
|
|
||||||
AdminNotificationsSuggestionTargetsPageComponent,
|
|
||||||
AdminQualityAssuranceTopicsPageComponent,
|
|
||||||
AdminQualityAssuranceEventsPageComponent,
|
|
||||||
AdminQualityAssuranceSourcePageComponent
|
|
||||||
],
|
|
||||||
entryComponents: []
|
|
||||||
})
|
|
||||||
/**
|
|
||||||
* This module handles all components related to the notifications pages
|
|
||||||
*/
|
|
||||||
export class AdminNotificationsModule {
|
|
||||||
|
|
||||||
}
|
|
@@ -1,27 +0,0 @@
|
|||||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
||||||
|
|
||||||
import { AdminQualityAssuranceSourcePageComponent } from './admin-quality-assurance-source-page.component';
|
|
||||||
|
|
||||||
describe('AdminQualityAssuranceSourcePageComponent', () => {
|
|
||||||
let component: AdminQualityAssuranceSourcePageComponent;
|
|
||||||
let fixture: ComponentFixture<AdminQualityAssuranceSourcePageComponent>;
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [ AdminQualityAssuranceSourcePageComponent ],
|
|
||||||
schemas: [NO_ERRORS_SCHEMA]
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(AdminQualityAssuranceSourcePageComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should create AdminQualityAssuranceSourcePageComponent', () => {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
@@ -1,10 +0,0 @@
|
|||||||
import { Component } from '@angular/core';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Component for the page that show the QA sources.
|
|
||||||
*/
|
|
||||||
@Component({
|
|
||||||
selector: 'ds-admin-quality-assurance-source-page-component',
|
|
||||||
templateUrl: './admin-quality-assurance-source-page.component.html',
|
|
||||||
})
|
|
||||||
export class AdminQualityAssuranceSourcePageComponent {}
|
|
@@ -1,26 +0,0 @@
|
|||||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
|
||||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
||||||
import { AdminQualityAssuranceTopicsPageComponent } from './admin-quality-assurance-topics-page.component';
|
|
||||||
|
|
||||||
describe('AdminQualityAssuranceTopicsPageComponent', () => {
|
|
||||||
let component: AdminQualityAssuranceTopicsPageComponent;
|
|
||||||
let fixture: ComponentFixture<AdminQualityAssuranceTopicsPageComponent>;
|
|
||||||
|
|
||||||
beforeEach(async(() => {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [ AdminQualityAssuranceTopicsPageComponent ],
|
|
||||||
schemas: [NO_ERRORS_SCHEMA]
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
}));
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(AdminQualityAssuranceTopicsPageComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should create AdminQualityAssuranceTopicsPageComponent', () => {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
@@ -1,6 +1,6 @@
|
|||||||
import { URLCombiner } from '../core/url-combiner/url-combiner';
|
import { URLCombiner } from '../core/url-combiner/url-combiner';
|
||||||
import { getAdminModuleRoute } from '../app-routing-paths';
|
import { getAdminModuleRoute } from '../app-routing-paths';
|
||||||
import { getQualityAssuranceEditRoute } from './admin-notifications/admin-notifications-routing-paths';
|
import { getQualityAssuranceEditRoute } from '../quality-assurance-notifications-pages/notifications-pages-routing-paths';
|
||||||
|
|
||||||
export const REGISTRIES_MODULE_PATH = 'registries';
|
export const REGISTRIES_MODULE_PATH = 'registries';
|
||||||
export const NOTIFICATIONS_MODULE_PATH = 'notifications';
|
export const NOTIFICATIONS_MODULE_PATH = 'notifications';
|
||||||
|
@@ -160,8 +160,8 @@ import { NOTIFICATIONS_MODULE_PATH } from './admin/admin-routing-paths';
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: NOTIFICATIONS_MODULE_PATH,
|
path: NOTIFICATIONS_MODULE_PATH,
|
||||||
loadChildren: () => import('./admin/admin-notifications/admin-notifications.module')
|
loadChildren: () => import('./quality-assurance-notifications-pages/notifications-pages.module')
|
||||||
.then((m) => m.AdminNotificationsModule),
|
.then((m) => m.NotificationsPageModule),
|
||||||
canActivate: [AuthenticatedGuard, EndUserAgreementCurrentUserGuard]
|
canActivate: [AuthenticatedGuard, EndUserAgreementCurrentUserGuard]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@@ -47,7 +47,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
ExportBatchSelectorComponent
|
ExportBatchSelectorComponent
|
||||||
} from './shared/dso-selector/modal-wrappers/export-batch-selector/export-batch-selector.component';
|
} from './shared/dso-selector/modal-wrappers/export-batch-selector/export-batch-selector.component';
|
||||||
import { NOTIFICATIONS_RECITER_SUGGESTION_PATH } from './admin/admin-notifications/admin-notifications-routing-paths';
|
import { NOTIFICATIONS_RECITER_SUGGESTION_PATH } from './quality-assurance-notifications-pages/notifications-pages-routing-paths';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates all of the app's menus
|
* Creates all of the app's menus
|
||||||
|
@@ -6,8 +6,8 @@ import { SortOptions } from '../../../core/cache/models/sort-options.model';
|
|||||||
import { QualityAssuranceSourceObject } from '../../../core/notifications/qa/models/quality-assurance-source.model';
|
import { QualityAssuranceSourceObject } from '../../../core/notifications/qa/models/quality-assurance-source.model';
|
||||||
import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model';
|
import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model';
|
||||||
import { NotificationsStateService } from '../../notifications-state.service';
|
import { NotificationsStateService } from '../../notifications-state.service';
|
||||||
import { AdminQualityAssuranceSourcePageParams } from '../../../admin/admin-notifications/admin-quality-assurance-source-page-component/admin-quality-assurance-source-page-resolver.service';
|
|
||||||
import { hasValue } from '../../../shared/empty.util';
|
import { hasValue } from '../../../shared/empty.util';
|
||||||
|
import { QualityAssuranceSourcePageParams } from '../../../quality-assurance-notifications-pages/quality-assurance-source-page-component/quality-assurance-source-page-resolver.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Component to display the Quality Assurance source list.
|
* Component to display the Quality Assurance source list.
|
||||||
@@ -117,7 +117,7 @@ export class QualityAssuranceSourceComponent implements OnInit {
|
|||||||
*
|
*
|
||||||
* @param eventsRouteParams
|
* @param eventsRouteParams
|
||||||
*/
|
*/
|
||||||
protected updatePaginationFromRouteParams(eventsRouteParams: AdminQualityAssuranceSourcePageParams) {
|
protected updatePaginationFromRouteParams(eventsRouteParams: QualityAssuranceSourcePageParams) {
|
||||||
if (eventsRouteParams.currentPage) {
|
if (eventsRouteParams.currentPage) {
|
||||||
this.paginationConfig.currentPage = eventsRouteParams.currentPage;
|
this.paginationConfig.currentPage = eventsRouteParams.currentPage;
|
||||||
}
|
}
|
||||||
|
@@ -10,9 +10,6 @@ import {
|
|||||||
import { hasValue } from '../../../shared/empty.util';
|
import { hasValue } from '../../../shared/empty.util';
|
||||||
import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model';
|
import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model';
|
||||||
import { NotificationsStateService } from '../../notifications-state.service';
|
import { NotificationsStateService } from '../../notifications-state.service';
|
||||||
import {
|
|
||||||
AdminQualityAssuranceTopicsPageParams
|
|
||||||
} from '../../../admin/admin-notifications/admin-quality-assurance-topics-page/admin-quality-assurance-topics-page-resolver.service';
|
|
||||||
import { PaginationService } from '../../../core/pagination/pagination.service';
|
import { PaginationService } from '../../../core/pagination/pagination.service';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { ItemDataService } from '../../../core/data/item-data.service';
|
import { ItemDataService } from '../../../core/data/item-data.service';
|
||||||
@@ -20,6 +17,7 @@ import { getFirstCompletedRemoteData, getRemoteDataPayload } from '../../../core
|
|||||||
import { Item } from '../../../core/shared/item.model';
|
import { Item } from '../../../core/shared/item.model';
|
||||||
import { getItemPageRoute } from '../../../item-page/item-page-routing-paths';
|
import { getItemPageRoute } from '../../../item-page/item-page-routing-paths';
|
||||||
import { getNotificatioQualityAssuranceRoute } from '../../../admin/admin-routing-paths';
|
import { getNotificatioQualityAssuranceRoute } from '../../../admin/admin-routing-paths';
|
||||||
|
import { QualityAssuranceTopicsPageParams } from '../../../quality-assurance-notifications-pages/quality-assurance-topics-page/quality-assurance-topics-page-resolver.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Component to display the Quality Assurance topic list.
|
* Component to display the Quality Assurance topic list.
|
||||||
@@ -153,7 +151,7 @@ export class QualityAssuranceTopicsComponent implements OnInit {
|
|||||||
*
|
*
|
||||||
* @param eventsRouteParams
|
* @param eventsRouteParams
|
||||||
*/
|
*/
|
||||||
protected updatePaginationFromRouteParams(eventsRouteParams: AdminQualityAssuranceTopicsPageParams) {
|
protected updatePaginationFromRouteParams(eventsRouteParams: QualityAssuranceTopicsPageParams) {
|
||||||
if (eventsRouteParams.currentPage) {
|
if (eventsRouteParams.currentPage) {
|
||||||
this.paginationConfig.currentPage = eventsRouteParams.currentPage;
|
this.paginationConfig.currentPage = eventsRouteParams.currentPage;
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1,122 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
import { AuthenticatedGuard } from '../core/auth/authenticated.guard';
|
||||||
|
import { I18nBreadcrumbResolver } from '../core/breadcrumbs/i18n-breadcrumb.resolver';
|
||||||
|
import { I18nBreadcrumbsService } from '../core/breadcrumbs/i18n-breadcrumbs.service';
|
||||||
|
import { NOTIFICATIONS_RECITER_SUGGESTION_PATH } from './notifications-pages-routing-paths';
|
||||||
|
import { NotificationsSuggestionTargetsPageComponent } from './notifications-suggestion-targets-page/notifications-suggestion-targets-page.component';
|
||||||
|
import { NotificationsSuggestionTargetsPageResolver } from './notifications-suggestion-targets-page/notifications-suggestion-targets-page-resolver.service';
|
||||||
|
import { QUALITY_ASSURANCE_EDIT_PATH } from './notifications-pages-routing-paths';
|
||||||
|
import { QualityAssuranceTopicsPageComponent } from './quality-assurance-topics-page/quality-assurance-topics-page.component';
|
||||||
|
import { QualityAssuranceEventsPageComponent } from './quality-assurance-events-page/quality-assurance-events-page.component';
|
||||||
|
import { QualityAssuranceTopicsPageResolver } from './quality-assurance-topics-page/quality-assurance-topics-page-resolver.service';
|
||||||
|
import { QualityAssuranceEventsPageResolver } from './quality-assurance-events-page/quality-assurance-events-page.resolver';
|
||||||
|
import { QualityAssuranceSourcePageComponent } from './quality-assurance-source-page-component/quality-assurance-source-page.component';
|
||||||
|
import { QualityAssuranceSourcePageResolver } from './quality-assurance-source-page-component/quality-assurance-source-page-resolver.service';
|
||||||
|
import { QualityAssuranceBreadcrumbResolver } from '../core/breadcrumbs/quality-assurance-breadcrumb.resolver';
|
||||||
|
import { QualityAssuranceBreadcrumbService } from '../core/breadcrumbs/quality-assurance-breadcrumb.service';
|
||||||
|
import {
|
||||||
|
SourceDataResolver
|
||||||
|
} from './quality-assurance-source-page-component/quality-assurance-source-data.resolver';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
RouterModule.forChild([
|
||||||
|
{
|
||||||
|
canActivate: [ AuthenticatedGuard ],
|
||||||
|
path: `${NOTIFICATIONS_RECITER_SUGGESTION_PATH}`,
|
||||||
|
component: NotificationsSuggestionTargetsPageComponent,
|
||||||
|
pathMatch: 'full',
|
||||||
|
resolve: {
|
||||||
|
breadcrumb: I18nBreadcrumbResolver,
|
||||||
|
reciterSuggestionTargetParams: NotificationsSuggestionTargetsPageResolver
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
title: 'admin.notifications.recitersuggestion.page.title',
|
||||||
|
breadcrumbKey: 'admin.notifications.recitersuggestion',
|
||||||
|
showBreadcrumbsFluid: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
canActivate: [ AuthenticatedGuard ],
|
||||||
|
path: `${QUALITY_ASSURANCE_EDIT_PATH}/:sourceId`,
|
||||||
|
component: QualityAssuranceTopicsPageComponent,
|
||||||
|
pathMatch: 'full',
|
||||||
|
resolve: {
|
||||||
|
breadcrumb: QualityAssuranceBreadcrumbResolver,
|
||||||
|
openaireQualityAssuranceTopicsParams: QualityAssuranceTopicsPageResolver
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
title: 'admin.quality-assurance.page.title',
|
||||||
|
breadcrumbKey: 'admin.quality-assurance',
|
||||||
|
showBreadcrumbsFluid: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
canActivate: [ AuthenticatedGuard ],
|
||||||
|
path: `${QUALITY_ASSURANCE_EDIT_PATH}/:sourceId/target/:targetId`,
|
||||||
|
component: QualityAssuranceTopicsPageComponent,
|
||||||
|
pathMatch: 'full',
|
||||||
|
resolve: {
|
||||||
|
breadcrumb: I18nBreadcrumbResolver,
|
||||||
|
openaireQualityAssuranceTopicsParams: QualityAssuranceTopicsPageResolver
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
title: 'admin.quality-assurance.page.title',
|
||||||
|
breadcrumbKey: 'admin.quality-assurance',
|
||||||
|
showBreadcrumbsFluid: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
canActivate: [ AuthenticatedGuard ],
|
||||||
|
path: `${QUALITY_ASSURANCE_EDIT_PATH}`,
|
||||||
|
component: QualityAssuranceSourcePageComponent,
|
||||||
|
pathMatch: 'full',
|
||||||
|
resolve: {
|
||||||
|
breadcrumb: I18nBreadcrumbResolver,
|
||||||
|
openaireQualityAssuranceSourceParams: QualityAssuranceSourcePageResolver,
|
||||||
|
sourceData: SourceDataResolver
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
title: 'admin.notifications.source.breadcrumbs',
|
||||||
|
breadcrumbKey: 'admin.notifications.source',
|
||||||
|
showBreadcrumbsFluid: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
canActivate: [ AuthenticatedGuard ],
|
||||||
|
path: `${QUALITY_ASSURANCE_EDIT_PATH}/:sourceId/:topicId`,
|
||||||
|
component: QualityAssuranceEventsPageComponent,
|
||||||
|
pathMatch: 'full',
|
||||||
|
resolve: {
|
||||||
|
breadcrumb: QualityAssuranceBreadcrumbResolver,
|
||||||
|
openaireQualityAssuranceEventsParams: QualityAssuranceEventsPageResolver
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
title: 'admin.notifications.event.page.title',
|
||||||
|
breadcrumbKey: 'admin.notifications.event',
|
||||||
|
showBreadcrumbsFluid: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
])
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
I18nBreadcrumbResolver,
|
||||||
|
I18nBreadcrumbsService,
|
||||||
|
NotificationsSuggestionTargetsPageResolver,
|
||||||
|
SourceDataResolver,
|
||||||
|
QualityAssuranceSourcePageResolver,
|
||||||
|
QualityAssuranceTopicsPageResolver,
|
||||||
|
QualityAssuranceEventsPageResolver,
|
||||||
|
QualityAssuranceSourcePageResolver,
|
||||||
|
QualityAssuranceBreadcrumbResolver,
|
||||||
|
QualityAssuranceBreadcrumbService
|
||||||
|
]
|
||||||
|
})
|
||||||
|
/**
|
||||||
|
* Routing module for the Notifications section of the admin sidebar
|
||||||
|
*/
|
||||||
|
export class NotificationsPageRoutingModule {
|
||||||
|
|
||||||
|
}
|
@@ -0,0 +1,34 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { NotificationsPageRoutingModule } from './notifications-pages-routing.module';
|
||||||
|
import { NotificationsSuggestionTargetsPageComponent } from './notifications-suggestion-targets-page/notifications-suggestion-targets-page.component';
|
||||||
|
import { QualityAssuranceTopicsPageComponent } from './quality-assurance-topics-page/quality-assurance-topics-page.component';
|
||||||
|
import { QualityAssuranceEventsPageComponent } from './quality-assurance-events-page/quality-assurance-events-page.component';
|
||||||
|
import { QualityAssuranceSourcePageComponent } from './quality-assurance-source-page-component/quality-assurance-source-page.component';
|
||||||
|
import { NotificationsModule } from '../notifications/notifications.module';
|
||||||
|
import { SharedModule } from '../shared/shared.module';
|
||||||
|
import { CoreModule } from '../core/core.module';
|
||||||
|
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
SharedModule,
|
||||||
|
CoreModule.forRoot(),
|
||||||
|
NotificationsPageRoutingModule,
|
||||||
|
NotificationsModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
NotificationsSuggestionTargetsPageComponent,
|
||||||
|
QualityAssuranceTopicsPageComponent,
|
||||||
|
QualityAssuranceEventsPageComponent,
|
||||||
|
QualityAssuranceSourcePageComponent
|
||||||
|
],
|
||||||
|
entryComponents: []
|
||||||
|
})
|
||||||
|
/**
|
||||||
|
* This module handles all components related to the notifications pages
|
||||||
|
*/
|
||||||
|
export class NotificationsPageModule {
|
||||||
|
|
||||||
|
}
|
@@ -4,7 +4,7 @@ import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/r
|
|||||||
/**
|
/**
|
||||||
* Interface for the route parameters.
|
* Interface for the route parameters.
|
||||||
*/
|
*/
|
||||||
export interface AdminNotificationsSuggestionTargetsPageParams {
|
export interface NotificationsSuggestionTargetsPageParams {
|
||||||
pageId?: string;
|
pageId?: string;
|
||||||
pageSize?: number;
|
pageSize?: number;
|
||||||
currentPage?: number;
|
currentPage?: number;
|
||||||
@@ -14,7 +14,7 @@ export interface AdminNotificationsSuggestionTargetsPageParams {
|
|||||||
* This class represents a resolver that retrieve the route data before the route is activated.
|
* This class represents a resolver that retrieve the route data before the route is activated.
|
||||||
*/
|
*/
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AdminNotificationsSuggestionTargetsPageResolver implements Resolve<AdminNotificationsSuggestionTargetsPageParams> {
|
export class NotificationsSuggestionTargetsPageResolver implements Resolve<NotificationsSuggestionTargetsPageParams> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method for resolving the parameters in the current route.
|
* Method for resolving the parameters in the current route.
|
||||||
@@ -22,7 +22,7 @@ export class AdminNotificationsSuggestionTargetsPageResolver implements Resolve<
|
|||||||
* @param {RouterStateSnapshot} state The current RouterStateSnapshot
|
* @param {RouterStateSnapshot} state The current RouterStateSnapshot
|
||||||
* @returns AdminNotificationsSuggestionTargetsPageParams Emits the route parameters
|
* @returns AdminNotificationsSuggestionTargetsPageParams Emits the route parameters
|
||||||
*/
|
*/
|
||||||
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): AdminNotificationsSuggestionTargetsPageParams {
|
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): NotificationsSuggestionTargetsPageParams {
|
||||||
return {
|
return {
|
||||||
pageId: route.queryParams.pageId,
|
pageId: route.queryParams.pageId,
|
||||||
pageSize: parseInt(route.queryParams.pageSize, 10),
|
pageSize: parseInt(route.queryParams.pageSize, 10),
|
@@ -1,13 +1,13 @@
|
|||||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
import { AdminNotificationsSuggestionTargetsPageComponent } from './admin-notifications-suggestion-targets-page.component';
|
import { NotificationsSuggestionTargetsPageComponent } from './notifications-suggestion-targets-page.component';
|
||||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('AdminNotificationsSuggestionTargetsPageComponent', () => {
|
describe('NotificationsSuggestionTargetsPageComponent', () => {
|
||||||
let component: AdminNotificationsSuggestionTargetsPageComponent;
|
let component: NotificationsSuggestionTargetsPageComponent;
|
||||||
let fixture: ComponentFixture<AdminNotificationsSuggestionTargetsPageComponent>;
|
let fixture: ComponentFixture<NotificationsSuggestionTargetsPageComponent>;
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
@@ -16,10 +16,10 @@ describe('AdminNotificationsSuggestionTargetsPageComponent', () => {
|
|||||||
TranslateModule.forRoot()
|
TranslateModule.forRoot()
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
AdminNotificationsSuggestionTargetsPageComponent
|
NotificationsSuggestionTargetsPageComponent
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
AdminNotificationsSuggestionTargetsPageComponent
|
NotificationsSuggestionTargetsPageComponent
|
||||||
],
|
],
|
||||||
schemas: [NO_ERRORS_SCHEMA]
|
schemas: [NO_ERRORS_SCHEMA]
|
||||||
})
|
})
|
||||||
@@ -27,7 +27,7 @@ describe('AdminNotificationsSuggestionTargetsPageComponent', () => {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(AdminNotificationsSuggestionTargetsPageComponent);
|
fixture = TestBed.createComponent(NotificationsSuggestionTargetsPageComponent);
|
||||||
component = fixture.componentInstance;
|
component = fixture.componentInstance;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
@@ -0,0 +1,10 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'ds-notifications-reciter-page',
|
||||||
|
templateUrl: './notifications-suggestion-targets-page.component.html',
|
||||||
|
styleUrls: ['./notifications-suggestion-targets-page.component.scss']
|
||||||
|
})
|
||||||
|
export class NotificationsSuggestionTargetsPageComponent {
|
||||||
|
|
||||||
|
}
|
@@ -1,21 +1,21 @@
|
|||||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { AdminQualityAssuranceEventsPageComponent } from './admin-quality-assurance-events-page.component';
|
import { QualityAssuranceEventsPageComponent } from './quality-assurance-events-page.component';
|
||||||
|
|
||||||
describe('AdminQualityAssuranceEventsPageComponent', () => {
|
describe('QualityAssuranceEventsPageComponent', () => {
|
||||||
let component: AdminQualityAssuranceEventsPageComponent;
|
let component: QualityAssuranceEventsPageComponent;
|
||||||
let fixture: ComponentFixture<AdminQualityAssuranceEventsPageComponent>;
|
let fixture: ComponentFixture<QualityAssuranceEventsPageComponent>;
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
declarations: [ AdminQualityAssuranceEventsPageComponent ],
|
declarations: [ QualityAssuranceEventsPageComponent ],
|
||||||
schemas: [NO_ERRORS_SCHEMA]
|
schemas: [NO_ERRORS_SCHEMA]
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(AdminQualityAssuranceEventsPageComponent);
|
fixture = TestBed.createComponent(QualityAssuranceEventsPageComponent);
|
||||||
component = fixture.componentInstance;
|
component = fixture.componentInstance;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
@@ -5,8 +5,8 @@ import { Component } from '@angular/core';
|
|||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-quality-assurance-events-page',
|
selector: 'ds-quality-assurance-events-page',
|
||||||
templateUrl: './admin-quality-assurance-events-page.component.html'
|
templateUrl: './quality-assurance-events-page.component.html'
|
||||||
})
|
})
|
||||||
export class AdminQualityAssuranceEventsPageComponent {
|
export class QualityAssuranceEventsPageComponent {
|
||||||
|
|
||||||
}
|
}
|
@@ -4,7 +4,7 @@ import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/r
|
|||||||
/**
|
/**
|
||||||
* Interface for the route parameters.
|
* Interface for the route parameters.
|
||||||
*/
|
*/
|
||||||
export interface AdminQualityAssuranceEventsPageParams {
|
export interface AssuranceEventsPageParams {
|
||||||
pageId?: string;
|
pageId?: string;
|
||||||
pageSize?: number;
|
pageSize?: number;
|
||||||
currentPage?: number;
|
currentPage?: number;
|
||||||
@@ -14,7 +14,7 @@ export interface AdminQualityAssuranceEventsPageParams {
|
|||||||
* This class represents a resolver that retrieve the route data before the route is activated.
|
* This class represents a resolver that retrieve the route data before the route is activated.
|
||||||
*/
|
*/
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AdminQualityAssuranceEventsPageResolver implements Resolve<AdminQualityAssuranceEventsPageParams> {
|
export class QualityAssuranceEventsPageResolver implements Resolve<AssuranceEventsPageParams> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method for resolving the parameters in the current route.
|
* Method for resolving the parameters in the current route.
|
||||||
@@ -22,7 +22,7 @@ export class AdminQualityAssuranceEventsPageResolver implements Resolve<AdminQua
|
|||||||
* @param {RouterStateSnapshot} state The current RouterStateSnapshot
|
* @param {RouterStateSnapshot} state The current RouterStateSnapshot
|
||||||
* @returns AdminQualityAssuranceEventsPageParams Emits the route parameters
|
* @returns AdminQualityAssuranceEventsPageParams Emits the route parameters
|
||||||
*/
|
*/
|
||||||
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): AdminQualityAssuranceEventsPageParams {
|
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): AssuranceEventsPageParams {
|
||||||
return {
|
return {
|
||||||
pageId: route.queryParams.pageId,
|
pageId: route.queryParams.pageId,
|
||||||
pageSize: parseInt(route.queryParams.pageSize, 10),
|
pageSize: parseInt(route.queryParams.pageSize, 10),
|
@@ -2,10 +2,10 @@ import { Injectable } from '@angular/core';
|
|||||||
import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot, Router } from '@angular/router';
|
import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot, Router } from '@angular/router';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { map } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
import { PaginatedList } from '../../../core/data/paginated-list.model';
|
import { PaginatedList } from '../../core/data/paginated-list.model';
|
||||||
import { QualityAssuranceSourceObject } from '../../../core/notifications/qa/models/quality-assurance-source.model';
|
import { QualityAssuranceSourceObject } from '../../core/notifications/qa/models/quality-assurance-source.model';
|
||||||
import { QualityAssuranceSourceService } from '../../../notifications/qa/source/quality-assurance-source.service';
|
import { QualityAssuranceSourceService } from '../../notifications/qa/source/quality-assurance-source.service';
|
||||||
import {environment} from '../../../../environments/environment';
|
import {environment} from '../../../environments/environment';
|
||||||
/**
|
/**
|
||||||
* This class represents a resolver that retrieve the route data before the route is activated.
|
* This class represents a resolver that retrieve the route data before the route is activated.
|
||||||
*/
|
*/
|
@@ -4,7 +4,7 @@ import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/r
|
|||||||
/**
|
/**
|
||||||
* Interface for the route parameters.
|
* Interface for the route parameters.
|
||||||
*/
|
*/
|
||||||
export interface AdminQualityAssuranceSourcePageParams {
|
export interface QualityAssuranceSourcePageParams {
|
||||||
pageId?: string;
|
pageId?: string;
|
||||||
pageSize?: number;
|
pageSize?: number;
|
||||||
currentPage?: number;
|
currentPage?: number;
|
||||||
@@ -14,7 +14,7 @@ export interface AdminQualityAssuranceSourcePageParams {
|
|||||||
* This class represents a resolver that retrieve the route data before the route is activated.
|
* This class represents a resolver that retrieve the route data before the route is activated.
|
||||||
*/
|
*/
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AdminQualityAssuranceSourcePageResolver implements Resolve<AdminQualityAssuranceSourcePageParams> {
|
export class QualityAssuranceSourcePageResolver implements Resolve<QualityAssuranceSourcePageParams> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method for resolving the parameters in the current route.
|
* Method for resolving the parameters in the current route.
|
||||||
@@ -22,7 +22,7 @@ export class AdminQualityAssuranceSourcePageResolver implements Resolve<AdminQua
|
|||||||
* @param {RouterStateSnapshot} state The current RouterStateSnapshot
|
* @param {RouterStateSnapshot} state The current RouterStateSnapshot
|
||||||
* @returns AdminQualityAssuranceSourcePageParams Emits the route parameters
|
* @returns AdminQualityAssuranceSourcePageParams Emits the route parameters
|
||||||
*/
|
*/
|
||||||
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): AdminQualityAssuranceSourcePageParams {
|
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): QualityAssuranceSourcePageParams {
|
||||||
return {
|
return {
|
||||||
pageId: route.queryParams.pageId,
|
pageId: route.queryParams.pageId,
|
||||||
pageSize: parseInt(route.queryParams.pageSize, 10),
|
pageSize: parseInt(route.queryParams.pageSize, 10),
|
@@ -0,0 +1,27 @@
|
|||||||
|
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { QualityAssuranceSourcePageComponent } from './quality-assurance-source-page.component';
|
||||||
|
|
||||||
|
describe('QualityAssuranceSourcePageComponent', () => {
|
||||||
|
let component: QualityAssuranceSourcePageComponent;
|
||||||
|
let fixture: ComponentFixture<QualityAssuranceSourcePageComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
declarations: [ QualityAssuranceSourcePageComponent ],
|
||||||
|
schemas: [NO_ERRORS_SCHEMA]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
});
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(QualityAssuranceSourcePageComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create QualityAssuranceSourcePageComponent', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
@@ -0,0 +1,10 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Component for the page that show the QA sources.
|
||||||
|
*/
|
||||||
|
@Component({
|
||||||
|
selector: 'ds-quality-assurance-source-page-component',
|
||||||
|
templateUrl: './quality-assurance-source-page.component.html',
|
||||||
|
})
|
||||||
|
export class QualityAssuranceSourcePageComponent {}
|
@@ -4,7 +4,7 @@ import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/r
|
|||||||
/**
|
/**
|
||||||
* Interface for the route parameters.
|
* Interface for the route parameters.
|
||||||
*/
|
*/
|
||||||
export interface AdminQualityAssuranceTopicsPageParams {
|
export interface QualityAssuranceTopicsPageParams {
|
||||||
pageId?: string;
|
pageId?: string;
|
||||||
pageSize?: number;
|
pageSize?: number;
|
||||||
currentPage?: number;
|
currentPage?: number;
|
||||||
@@ -14,7 +14,7 @@ export interface AdminQualityAssuranceTopicsPageParams {
|
|||||||
* This class represents a resolver that retrieve the route data before the route is activated.
|
* This class represents a resolver that retrieve the route data before the route is activated.
|
||||||
*/
|
*/
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AdminQualityAssuranceTopicsPageResolver implements Resolve<AdminQualityAssuranceTopicsPageParams> {
|
export class QualityAssuranceTopicsPageResolver implements Resolve<QualityAssuranceTopicsPageParams> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method for resolving the parameters in the current route.
|
* Method for resolving the parameters in the current route.
|
||||||
@@ -22,7 +22,7 @@ export class AdminQualityAssuranceTopicsPageResolver implements Resolve<AdminQua
|
|||||||
* @param {RouterStateSnapshot} state The current RouterStateSnapshot
|
* @param {RouterStateSnapshot} state The current RouterStateSnapshot
|
||||||
* @returns AdminQualityAssuranceTopicsPageParams Emits the route parameters
|
* @returns AdminQualityAssuranceTopicsPageParams Emits the route parameters
|
||||||
*/
|
*/
|
||||||
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): AdminQualityAssuranceTopicsPageParams {
|
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): QualityAssuranceTopicsPageParams {
|
||||||
return {
|
return {
|
||||||
pageId: route.queryParams.pageId,
|
pageId: route.queryParams.pageId,
|
||||||
pageSize: parseInt(route.queryParams.pageSize, 10),
|
pageSize: parseInt(route.queryParams.pageSize, 10),
|
@@ -0,0 +1,26 @@
|
|||||||
|
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { QualityAssuranceTopicsPageComponent } from './quality-assurance-topics-page.component';
|
||||||
|
|
||||||
|
describe('QualityAssuranceTopicsPageComponent', () => {
|
||||||
|
let component: QualityAssuranceTopicsPageComponent;
|
||||||
|
let fixture: ComponentFixture<QualityAssuranceTopicsPageComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ QualityAssuranceTopicsPageComponent ],
|
||||||
|
schemas: [NO_ERRORS_SCHEMA]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(QualityAssuranceTopicsPageComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create QualityAssuranceTopicsPageComponent', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
@@ -5,8 +5,8 @@ import { Component } from '@angular/core';
|
|||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-notification-qa-page',
|
selector: 'ds-notification-qa-page',
|
||||||
templateUrl: './admin-quality-assurance-topics-page.component.html'
|
templateUrl: './quality-assurance-topics-page.component.html'
|
||||||
})
|
})
|
||||||
export class AdminQualityAssuranceTopicsPageComponent {
|
export class QualityAssuranceTopicsPageComponent {
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user