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