mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
changes to address feedback
This commit is contained in:
@@ -118,11 +118,6 @@ export function app() {
|
|||||||
*/
|
*/
|
||||||
server.use('/sitemap**', createProxyMiddleware({ target: `${environment.rest.baseUrl}/sitemaps`, changeOrigin: true }));
|
server.use('/sitemap**', createProxyMiddleware({ target: `${environment.rest.baseUrl}/sitemaps`, changeOrigin: true }));
|
||||||
|
|
||||||
// TODO: implement data requests securely
|
|
||||||
server.get('/api/**', (req, res) => {
|
|
||||||
res.status(404).send('data requests are not yet supported');
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the rateLimiter property is present
|
* Checks if the rateLimiter property is present
|
||||||
* When it is present, the rateLimiter will be enabled. When it is undefined, the rateLimiter will be disabled.
|
* When it is present, the rateLimiter will be enabled. When it is undefined, the rateLimiter will be disabled.
|
||||||
|
@@ -148,7 +148,6 @@ export class GroupFormComponent implements OnInit, OnDestroy {
|
|||||||
this.canEdit$ = this.groupDataService.getActiveGroup().pipe(
|
this.canEdit$ = this.groupDataService.getActiveGroup().pipe(
|
||||||
hasValueOperator(),
|
hasValueOperator(),
|
||||||
switchMap((group: Group) => {
|
switchMap((group: Group) => {
|
||||||
console.log(group);
|
|
||||||
return observableCombineLatest(
|
return observableCombineLatest(
|
||||||
this.authorizationService.isAuthorized(FeatureID.CanDelete, isNotEmpty(group) ? group.self : undefined),
|
this.authorizationService.isAuthorized(FeatureID.CanDelete, isNotEmpty(group) ? group.self : undefined),
|
||||||
this.hasLinkedDSO(group),
|
this.hasLinkedDSO(group),
|
||||||
|
@@ -5,7 +5,7 @@ import { URLCombiner } from '../url-combiner/url-combiner';
|
|||||||
/**
|
/**
|
||||||
* Service to take care of hard redirects
|
* Service to take care of hard redirects
|
||||||
*/
|
*/
|
||||||
@Injectable({providedIn: 'root'})
|
@Injectable()
|
||||||
export abstract class HardRedirectService {
|
export abstract class HardRedirectService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
|
|||||||
import { CookieAttributes } from 'js-cookie';
|
import { CookieAttributes } from 'js-cookie';
|
||||||
import { CookieService, ICookieService } from './cookie.service';
|
import { CookieService, ICookieService } from './cookie.service';
|
||||||
|
|
||||||
@Injectable({providedIn: 'root'})
|
@Injectable()
|
||||||
export class ServerCookieService extends CookieService implements ICookieService {
|
export class ServerCookieService extends CookieService implements ICookieService {
|
||||||
|
|
||||||
public set(name: string, value: any, options?: CookieAttributes): void {
|
public set(name: string, value: any, options?: CookieAttributes): void {
|
||||||
|
@@ -6,7 +6,7 @@ import { HardRedirectService } from './hard-redirect.service';
|
|||||||
/**
|
/**
|
||||||
* Service for performing hard redirects within the server app module
|
* Service for performing hard redirects within the server app module
|
||||||
*/
|
*/
|
||||||
@Injectable({providedIn: 'root'})
|
@Injectable()
|
||||||
export class ServerHardRedirectService extends HardRedirectService {
|
export class ServerHardRedirectService extends HardRedirectService {
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
/* tslint:disable:no-empty */
|
/* tslint:disable:no-empty */
|
||||||
@Injectable({providedIn: 'root'})
|
@Injectable()
|
||||||
export class AngularticsMock {
|
export class AngularticsMock {
|
||||||
public eventTrack(action, properties) { }
|
public eventTrack(action, properties) { }
|
||||||
public startTracking(): void {}
|
public startTracking(): void {}
|
||||||
|
@@ -5,8 +5,7 @@
|
|||||||
"module": "commonjs"
|
"module": "commonjs"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"src/main.server.ts",
|
"src/main.server.ts"
|
||||||
"server.ts"
|
|
||||||
],
|
],
|
||||||
"angularCompilerOptions": {
|
"angularCompilerOptions": {
|
||||||
"entryModule": "./src/modules/app/server-app.module#ServerAppModule"
|
"entryModule": "./src/modules/app/server-app.module#ServerAppModule"
|
||||||
|
Reference in New Issue
Block a user