mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Add statistics pages - feedback
This commit is contained in:
@@ -75,7 +75,7 @@ import { LinkMenuItemModel } from '../shared/menu/menu-item/models/link.model';
|
||||
data: {
|
||||
menu: {
|
||||
public: [{
|
||||
id: 'statistics',
|
||||
id: 'statistics_collection',
|
||||
active: true,
|
||||
visible: true,
|
||||
model: {
|
||||
|
@@ -51,7 +51,7 @@ import { LinkMenuItemModel } from '../shared/menu/menu-item/models/link.model';
|
||||
data: {
|
||||
menu: {
|
||||
public: [{
|
||||
id: 'statistics',
|
||||
id: 'statistics_community',
|
||||
active: true,
|
||||
visible: true,
|
||||
model: {
|
||||
|
@@ -17,7 +17,7 @@ import { LinkMenuItemModel } from '../shared/menu/menu-item/models/link.model';
|
||||
title: 'home.title',
|
||||
menu: {
|
||||
public: [{
|
||||
id: 'statistics',
|
||||
id: 'statistics_site',
|
||||
active: true,
|
||||
visible: true,
|
||||
model: {
|
||||
|
@@ -48,7 +48,7 @@ import { LinkMenuItemModel } from '../shared/menu/menu-item/models/link.model';
|
||||
data: {
|
||||
menu: {
|
||||
public: [{
|
||||
id: 'statistics',
|
||||
id: 'statistics_item',
|
||||
active: true,
|
||||
visible: true,
|
||||
model: {
|
||||
|
@@ -71,7 +71,7 @@ import { SiteRegisterGuard } from './core/data/feature-authorization/feature-aut
|
||||
{ path: UNAUTHORIZED_PATH, component: UnauthorizedComponent },
|
||||
{
|
||||
path: 'statistics',
|
||||
loadChildren: './+statistics-page/statistics-page-routing.module#StatisticsPageRoutingModule',
|
||||
loadChildren: './statistics-page/statistics-page-routing.module#StatisticsPageRoutingModule',
|
||||
},
|
||||
{ path: '**', pathMatch: 'full', component: PageNotFoundComponent },
|
||||
]}
|
||||
|
@@ -7,6 +7,9 @@ import { USAGE_REPORT } from './usage-report.resource-type';
|
||||
import { HALLink } from '../../shared/hal-link.model';
|
||||
import { deserialize, autoserializeAs } from 'cerialize';
|
||||
|
||||
/**
|
||||
* A usage report.
|
||||
*/
|
||||
@typedObject
|
||||
@inheritSerialization(HALResource)
|
||||
export class UsageReport extends HALResource {
|
||||
@@ -35,6 +38,9 @@ export class UsageReport extends HALResource {
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* A statistics data point.
|
||||
*/
|
||||
export interface Point {
|
||||
id: string;
|
||||
label: string;
|
||||
|
@@ -16,6 +16,9 @@ import { Observable } from 'rxjs';
|
||||
import { getRemoteDataPayload, getSucceededRemoteData } from '../shared/operators';
|
||||
import { map } from 'rxjs/operators';
|
||||
|
||||
/**
|
||||
* A service to retrieve {@link UsageReport}s from the REST API
|
||||
*/
|
||||
@Injectable()
|
||||
@dataService(USAGE_REPORT)
|
||||
export class UsageReportService extends DataService<UsageReport> {
|
||||
|
Reference in New Issue
Block a user