Updated dependencies to resolve npm packages vulnerabilities
This commit is contained in:
parent
31fd9b8b14
commit
ae618c3e29
|
@ -1,132 +1,132 @@
|
|||
{
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"version": 1,
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"dmp-frontend": {
|
||||
"root": "",
|
||||
"sourceRoot": "src",
|
||||
"projectType": "application",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"outputPath": "dist",
|
||||
"index": "src/index.html",
|
||||
"main": "src/main.ts",
|
||||
"tsConfig": "src/tsconfig.app.json",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"assets": [
|
||||
"src/assets",
|
||||
"src/favicon.ico"
|
||||
],
|
||||
"styles": [
|
||||
"src/styles.scss"
|
||||
],
|
||||
"scripts": []
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": false,
|
||||
"extractCss": true,
|
||||
"namedChunks": false,
|
||||
"aot": true,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": true,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"browserTarget": "dmp-frontend:build"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"browserTarget": "dmp-frontend:build:production"
|
||||
}
|
||||
}
|
||||
},
|
||||
"extract-i18n": {
|
||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"browserTarget": "dmp-frontend:build"
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"main": "src/test.ts",
|
||||
"karmaConfig": "./karma.conf.js",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"tsConfig": "src/tsconfig.spec.json",
|
||||
"scripts": [],
|
||||
"styles": [
|
||||
"src/styles.scss"
|
||||
],
|
||||
"assets": [
|
||||
"src/assets",
|
||||
"src/favicon.ico"
|
||||
]
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"options": {
|
||||
"tsConfig": [
|
||||
"src/tsconfig.app.json",
|
||||
"src/tsconfig.spec.json"
|
||||
],
|
||||
"exclude": [
|
||||
"**/node_modules/**"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"dmp-frontend-e2e": {
|
||||
"root": "",
|
||||
"sourceRoot": "e2e",
|
||||
"projectType": "application",
|
||||
"architect": {
|
||||
"e2e": {
|
||||
"builder": "@angular-devkit/build-angular:protractor",
|
||||
"options": {
|
||||
"protractorConfig": "./protractor.conf.js",
|
||||
"devServerTarget": "dmp-frontend:serve"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"options": {
|
||||
"tsConfig": [
|
||||
"e2e/tsconfig.e2e.json"
|
||||
],
|
||||
"exclude": [
|
||||
"**/node_modules/**"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"defaultProject": "dmp-frontend",
|
||||
"schematics": {
|
||||
"@schematics/angular:component": {
|
||||
"prefix": "app",
|
||||
"styleext": "css"
|
||||
},
|
||||
"@schematics/angular:directive": {
|
||||
"prefix": "app"
|
||||
}
|
||||
}
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"version": 1,
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"dmp-frontend": {
|
||||
"root": "",
|
||||
"sourceRoot": "src",
|
||||
"projectType": "application",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"outputPath": "dist",
|
||||
"index": "src/index.html",
|
||||
"main": "src/main.ts",
|
||||
"tsConfig": "src/tsconfig.app.json",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"assets": [
|
||||
"src/assets",
|
||||
"src/favicon.ico"
|
||||
],
|
||||
"styles": [
|
||||
"src/styles.scss"
|
||||
],
|
||||
"scripts": []
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": false,
|
||||
"extractCss": true,
|
||||
"namedChunks": false,
|
||||
"aot": true,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": true,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"browserTarget": "dmp-frontend:build"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"browserTarget": "dmp-frontend:build:production"
|
||||
}
|
||||
}
|
||||
},
|
||||
"extract-i18n": {
|
||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"browserTarget": "dmp-frontend:build"
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"main": "src/test.ts",
|
||||
"karmaConfig": "./karma.conf.js",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"tsConfig": "src/tsconfig.spec.json",
|
||||
"scripts": [],
|
||||
"styles": [
|
||||
"src/styles.scss"
|
||||
],
|
||||
"assets": [
|
||||
"src/assets",
|
||||
"src/favicon.ico"
|
||||
]
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"options": {
|
||||
"tsConfig": [
|
||||
"src/tsconfig.app.json",
|
||||
"src/tsconfig.spec.json"
|
||||
],
|
||||
"exclude": [
|
||||
"**/node_modules/**"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"dmp-frontend-e2e": {
|
||||
"root": "",
|
||||
"sourceRoot": "e2e",
|
||||
"projectType": "application",
|
||||
"architect": {
|
||||
"e2e": {
|
||||
"builder": "@angular-devkit/build-angular:protractor",
|
||||
"options": {
|
||||
"protractorConfig": "./protractor.conf.js",
|
||||
"devServerTarget": "dmp-frontend:serve"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"options": {
|
||||
"tsConfig": [
|
||||
"e2e/tsconfig.e2e.json"
|
||||
],
|
||||
"exclude": [
|
||||
"**/node_modules/**"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"defaultProject": "dmp-frontend",
|
||||
"schematics": {
|
||||
"@schematics/angular:component": {
|
||||
"prefix": "app",
|
||||
"styleext": "css"
|
||||
},
|
||||
"@schematics/angular:directive": {
|
||||
"prefix": "app"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,63 +1,65 @@
|
|||
{
|
||||
"name": "dmp-frontend2",
|
||||
"version": "0.0.0",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
"build": "ng build --prod",
|
||||
"test": "ng test",
|
||||
"lint": "ng lint",
|
||||
"e2e": "ng e2e"
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "^6.0.7",
|
||||
"@angular/cdk": "^6.1.0",
|
||||
"@angular/common": "^6.0.7",
|
||||
"@angular/compiler": "^6.0.7",
|
||||
"@angular/core": "^6.0.7",
|
||||
"@angular/flex-layout": "^6.0.0-beta.16",
|
||||
"@angular/forms": "^6.0.7",
|
||||
"@angular/http": "^6.0.7",
|
||||
"@angular/material": "^6.4.6",
|
||||
"@angular/material-moment-adapter": "^6.4.6",
|
||||
"@angular/platform-browser": "^6.0.7",
|
||||
"@angular/platform-browser-dynamic": "^6.0.7",
|
||||
"@angular/router": "^6.0.7",
|
||||
"@covalent/core": "^2.0.0-beta.2",
|
||||
"@ngx-translate/core": "^10.0.1",
|
||||
"@ngx-translate/http-loader": "^3.0.1",
|
||||
"@swimlane/ngx-datatable": "^13.0.1",
|
||||
"@types/file-saver": "^1.3.0",
|
||||
"bootstrap": "^4.1.2",
|
||||
"core-js": "^2.4.1",
|
||||
"file-saver": "1.3.3",
|
||||
"moment": "^2.22.2",
|
||||
"moment-timezone": "^0.5.21",
|
||||
"rxjs": "6.2.2",
|
||||
"rxjs-compat": "6.2.2",
|
||||
"zone.js": "^0.8.26"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular/cli": "^6.0.8",
|
||||
"@angular/compiler-cli": "^6.0.7",
|
||||
"@angular/language-service": "^6.0.7",
|
||||
"@types/jasmine": "^2.8.3",
|
||||
"@types/jasminewd2": "^2.0.2",
|
||||
"@types/node": "^6.0.60",
|
||||
"codelyzer": "^4.0.1",
|
||||
"jasmine-core": "^2.8.0",
|
||||
"jasmine-spec-reporter": "^4.2.1",
|
||||
"karma": "^2.0.0",
|
||||
"karma-chrome-launcher": "^2.2.0",
|
||||
"karma-coverage-istanbul-reporter": "^1.2.1",
|
||||
"karma-jasmine": "^1.1.0",
|
||||
"karma-jasmine-html-reporter": "^0.2.2",
|
||||
"protractor": "^5.4.0",
|
||||
"ts-node": "^4.1.0",
|
||||
"tslint": "^5.9.1",
|
||||
"typescript": "^2.7.2",
|
||||
"@angular-devkit/build-angular": "^0.6.8"
|
||||
}
|
||||
"name": "dmp-frontend2",
|
||||
"version": "0.0.0",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
"build": "ng build --prod",
|
||||
"test": "ng test",
|
||||
"lint": "ng lint",
|
||||
"e2e": "ng e2e"
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "^6.1.7",
|
||||
"@angular/common": "^6.1.7",
|
||||
"@angular/compiler": "^6.1.7",
|
||||
"@angular/core": "^6.1.7",
|
||||
"@angular/forms": "^6.1.7",
|
||||
"@angular/flex-layout": "6.0.0-beta.18",
|
||||
"@angular/material-moment-adapter": "^6.4.7",
|
||||
"@angular/platform-browser": "^6.1.7",
|
||||
"@ngx-translate/core": "^10.0.2",
|
||||
"@ngx-translate/http-loader": "^3.0.1",
|
||||
"@swimlane/ngx-datatable": "^13.1.0",
|
||||
"@covalent/core": "^2.0.0-beta.2",
|
||||
"bootstrap": "^4.1.3",
|
||||
"chart.js": "^2.7.2",
|
||||
"core-js": "^2.5.5",
|
||||
"file-saver": "^2.0.0-rc.3",
|
||||
"moment": "^2.22.2",
|
||||
"moment-timezone": "^0.5.14",
|
||||
"ngx-cookie-service": "^1.0.10",
|
||||
"rxjs": "^6.3.2",
|
||||
"rxjs-compat": "^6.3.2",
|
||||
"web-animations-js": "^2.3.1",
|
||||
"zone.js": "^0.8.26"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "^0.8.5",
|
||||
"@angular/cdk": "^6.3.0",
|
||||
"@angular/material": "^6.4.7",
|
||||
"@angular/cli": "6.2.5",
|
||||
"@angular/compiler-cli": "^6.1.10",
|
||||
"@angular/http": "^6.1.10",
|
||||
"@angular/platform-browser-dynamic": "^6.1.10",
|
||||
"@angular/router": "^6.1.10",
|
||||
"@angular/language-service": "^6.1.10",
|
||||
"@types/facebook-js-sdk": "^2.8.4",
|
||||
"@types/file-saver": "^1.3.1",
|
||||
"@types/gapi": "^0.0.36",
|
||||
"@types/gapi.auth2": "^0.0.47",
|
||||
"@types/jasmine": "~2.8.9",
|
||||
"@types/jasminewd2": "~2.0.5",
|
||||
"@types/moment-timezone": "^0.5.4",
|
||||
"@types/node": "^10.11.7",
|
||||
"codelyzer": "~4.5.0",
|
||||
"jasmine-core": "^3.2.1",
|
||||
"jasmine-spec-reporter": "^4.2.1",
|
||||
"protractor": "~5.4.1",
|
||||
"ts-node": "~7.0.1",
|
||||
"tslint": "~5.11.0",
|
||||
"typescript": "2.9.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Activ
|
|||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { LanguageResolverService } from './services/language-resolver/language-resolver.service';
|
||||
import { BreadCrumbResolverService } from './services/breadcrumb/breadcrumb-resolver.service';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { AuthService } from './services/auth/auth.service';
|
||||
import { CultureService } from './utilities/culture/culture-service';
|
||||
import { environment } from '../environments/environment';
|
||||
|
@ -76,12 +76,8 @@ export class AppComponent implements OnInit {
|
|||
}
|
||||
|
||||
initializeServices() {
|
||||
// this language will be used as a fallback when a translation isn't found in the current language
|
||||
this.translate.setDefaultLang('en');
|
||||
|
||||
this.authentication.current() && this.authentication.current().culture ? this.cultureService.cultureSelected(this.authentication.current().culture) : this.cultureService.cultureSelected(environment.defaultCulture);
|
||||
|
||||
//this.setupChangeListeners();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import { Router, Params, ActivatedRoute } from '@angular/router';
|
|||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { DataSource } from '@angular/cdk/table';
|
||||
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { PageEvent } from '@angular/material';
|
||||
import { DataManagementPlanService } from '../services/data-management-plan/data-management-plan.service';
|
||||
import { DataManagementPlanModel } from '../models/data-managemnt-plans/DataManagementPlanModel';
|
||||
|
|
|
@ -30,7 +30,7 @@ import { DataRepositoryModel } from '../../models/dataRepositories/DataRepositor
|
|||
import { ExternalSourcesConfigurationService } from '../../services/external-sources/external-sources-configuration.service';
|
||||
import { ExternalSourcesConfiguration } from '../../models/external-sources/ExternalSourcesConfiguration';
|
||||
import { IBreadCrumbComponent } from '../../shared/components/breadcrumb/definition/IBreadCrumbComponent';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { BreadcrumbItem } from '../../shared/components/breadcrumb/definition/breadcrumb-item';
|
||||
import { TagsCriteria } from '../../models/criteria/tags/TagsCriteria';
|
||||
import { TagModel } from '../../models/tags/TagModel';
|
||||
|
|
|
@ -3,7 +3,7 @@ import { MatPaginator, MatSort, MatSnackBar } from '@angular/material';
|
|||
import { Router, ActivatedRoute, Params } from '@angular/router';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { DataSource } from '@angular/cdk/table';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { JsonSerializer } from '../../utilities/JsonSerializer';
|
||||
import { FormGroup } from '@angular/forms';
|
||||
import { SnackBarNotificationComponent } from '../../shared/components/notificaiton/snack-bar-notification.component';
|
||||
|
|
|
@ -9,7 +9,7 @@ import { Router, Params, ActivatedRoute } from '@angular/router';
|
|||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { DataSource } from '@angular/cdk/table';
|
||||
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { PageEvent } from '@angular/material';
|
||||
import { DataManagementPlanService } from '../../services/data-management-plan/data-management-plan.service';
|
||||
import { DataManagementPlanModel } from '../../models/data-managemnt-plans/DataManagementPlanModel';
|
||||
|
|
|
@ -3,7 +3,7 @@ import { MatPaginator, MatSort, MatSnackBar } from '@angular/material';
|
|||
import { Router, ActivatedRoute, Params } from '@angular/router';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { DataSource } from '@angular/cdk/table';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { DataManagementPlanService } from '../../services/data-management-plan/data-management-plan.service';
|
||||
import { ProjectModel } from '../../models/projects/ProjectModel';
|
||||
import { JsonSerializer } from '../../utilities/JsonSerializer';
|
||||
|
|
|
@ -3,7 +3,7 @@ import { MatPaginator, MatSort, MatSnackBar, MatDialog, MatChipList, MatChip } f
|
|||
import { Router, ActivatedRoute, Params } from '@angular/router';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { DataSource } from '@angular/cdk/table';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { JsonSerializer } from '../../utilities/JsonSerializer';
|
||||
import { FormGroup, FormControl } from '@angular/forms';
|
||||
import { SnackBarNotificationComponent } from '../../shared/components/notificaiton/snack-bar-notification.component';
|
||||
|
|
|
@ -10,7 +10,7 @@ import { DatasetService } from '../../../services/dataset/dataset.service';
|
|||
import { DataTableRequest } from '../../../models/data-table/DataTableRequest';
|
||||
import { DatasetCriteria } from '../../../models/criteria/dataset/DatasetCriteria';
|
||||
import { DatasetStatus } from '../../../models/datasets/DatasetWizardModel';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dmp-finalise-dialog-component',
|
||||
|
|
|
@ -11,7 +11,7 @@ import { MatPaginator, MatSort, MatSnackBar, MatDialog } from '@angular/material
|
|||
import { Router, ActivatedRoute, ActivatedRouteSnapshot } from '@angular/router';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { DataSource } from '@angular/cdk/table';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { DataManagementPlanRoutes } from '../../dmps/dmps.routes';
|
||||
import { DatasetRoutes } from '../../datasets/dataset.routes';
|
||||
import { ProjectModel } from '../../models/projects/ProjectModel';
|
||||
|
|
|
@ -9,7 +9,7 @@ import { FormGroup } from '@angular/forms';
|
|||
import { MatSnackBar } from '@angular/material';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { IBreadCrumbComponent } from '../../shared/components/breadcrumb/definition/IBreadCrumbComponent';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { BreadcrumbItem } from '../../shared/components/breadcrumb/definition/breadcrumb-item';
|
||||
@Component({
|
||||
selector: 'app-dmp-wizard-component',
|
||||
|
|
|
@ -16,7 +16,7 @@ import { MatPaginator, MatSort, MatSnackBar } from '@angular/material';
|
|||
import { Router, ActivatedRoute, Params } from '@angular/router';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { DataSource } from '@angular/cdk/table';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { FormGroup } from '@angular/forms';
|
||||
import { BaseCriteria } from '../../../models/criteria/BaseCriteria';
|
||||
import { SingleAutoCompleteConfiguration } from '../../../shared/components/autocompletes/single/single-auto-complete-configuration';
|
||||
|
|
|
@ -13,7 +13,7 @@ import { Router, Params, ActivatedRoute } from '@angular/router';
|
|||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { DataSource } from '@angular/cdk/table';
|
||||
import { FormGroup, FormBuilder, FormControl, FormArray } from '@angular/forms';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { PageEvent } from '@angular/material';
|
||||
import { SelectionModel } from '@angular/cdk/collections';
|
||||
|
||||
|
|
|
@ -16,10 +16,11 @@ export class TableOfContentsComponent implements OnInit {
|
|||
@Input()
|
||||
public model: DatasetProfileDefinitionModel;
|
||||
public path = '';
|
||||
/* @Output()
|
||||
setPage:EventEmitter<number> = new EventEmitter<number>();
|
||||
/* @Output()
|
||||
setPage:EventEmitter<number> = new EventEmitter<number>();
|
||||
|
||||
*/ ngOnInit() {
|
||||
*/
|
||||
ngOnInit() {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -83,7 +83,6 @@ export class HomepageComponent implements OnInit {
|
|||
this.filteredOptions = this.searchControl.valueChanges.flatMap(x => {
|
||||
return this.dashBoardService.searchUserItems(x);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
public isAuthenticated(): boolean {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { MatPaginator, MatSort, MatSnackBar } from '@angular/material';
|
|||
import { Router, ActivatedRoute, Params } from '@angular/router';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { DataSource } from '@angular/cdk/table';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { DataManagementPlanService } from '../../services/data-management-plan/data-management-plan.service';
|
||||
import { ProjectModel, ProjectType } from '../../models/projects/ProjectModel';
|
||||
import { ProjectService } from '../../services/project/project.service';
|
||||
|
|
|
@ -7,7 +7,7 @@ import { MatPaginator, MatSort, MatSnackBar } from '@angular/material';
|
|||
import { Router } from '@angular/router';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { DataSource } from '@angular/cdk/table';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { ProjectCriteriaComponent } from '../../shared/components/criteria/projects/projects-criteria.component';
|
||||
import { HostConfiguration } from '../../app.constants';
|
||||
import { LanguageService } from '../../services/language/language.service';
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Injectable } from '@angular/core';
|
|||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { BreadcrumbItem } from '../../shared/components/breadcrumb/definition/breadcrumb-item';
|
||||
import { IBreadCrumbComponent } from '../../shared/components/breadcrumb/definition/IBreadCrumbComponent';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
@Injectable()
|
||||
export class BreadCrumbResolverService {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|||
import { Injectable } from '@angular/core';
|
||||
import { HostConfiguration } from './../../app.constants';
|
||||
import { BaseHttpService } from '../../utilities/cite-http-service-module/base-http.service';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { DashboardStatisticsModel } from '../../models/dashboard/DashboardStatisticsModel';
|
||||
import { SearchBarItem } from '../../models/dashboard/SearchBarItem';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import { BaseHttpService } from '../../utilities/cite-http-service-module/base-h
|
|||
import { HostConfiguration } from '../../app.constants';
|
||||
import { DataTableRequest } from '../../models/data-table/DataTableRequest';
|
||||
import { DataTableData } from '../../models/data-table/DataTableData';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { DataManagementPlanProfileCriteria } from '../../models/criteria/dmp-profile/DataManagementPlanProfileCriteria';
|
||||
import { DataManagementPlanProfileListingModel } from '../../models/data-management-plan-profile/DataManagementPlanProfileListingModel';
|
||||
import { DataManagementPlanProfileModel } from '../../models/data-management-plan-profile/DataManagementPlanProfileModel';
|
||||
|
|
|
@ -3,7 +3,7 @@ import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http';
|
|||
import { Injectable } from '@angular/core';
|
||||
import { HostConfiguration } from './../../app.constants';
|
||||
import { BaseHttpService } from '../../utilities/cite-http-service-module/base-http.service';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { DataTableRequest } from '../../models/data-table/DataTableRequest';
|
||||
import { DataTableData } from '../../models/data-table/DataTableData';
|
||||
import { DataManagementPlanModel } from '../../models/data-managemnt-plans/DataManagementPlanModel';
|
||||
|
|
|
@ -3,7 +3,7 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|||
import { Injectable } from '@angular/core';
|
||||
import { DatasetProfileAdmin } from '../services/datasetProfileAdmin/datasetProfileAfmin.service';
|
||||
import { HostConfiguration } from '../app.constants';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { RequestItem } from '../models/criteria/RequestItem';
|
||||
import { AutocompleteLookupItem } from '../models/auto-complete/AutocompleteLookupItem';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import { HttpHeaders, HttpResponse, HttpClient } from '@angular/common/http';
|
|||
import { Injectable } from '@angular/core';
|
||||
import { HostConfiguration } from './../../app.constants';
|
||||
import { BaseHttpService } from '../../utilities/cite-http-service-module/base-http.service';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { DataManagementPlanModel } from '../../models/data-managemnt-plans/DataManagementPlanModel';
|
||||
import { DataManagementPlanCriteria } from '../../models/criteria/data-management-plan/DataManagementPlanCriteria';
|
||||
import { RequestItem } from '../../models/criteria/RequestItem';
|
||||
|
|
|
@ -3,7 +3,7 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|||
import { Injectable } from '@angular/core';
|
||||
import { HostConfiguration } from './../../app.constants';
|
||||
import { BaseHttpService } from '../../utilities/cite-http-service-module/base-http.service';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { DataTableRequest } from '../../models/data-table/DataTableRequest';
|
||||
import { DataTableData } from '../../models/data-table/DataTableData';
|
||||
import { DatasetListingModel } from '../../models/datasets/DatasetListingModel';
|
||||
|
|
|
@ -2,7 +2,7 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|||
import { Injectable } from '@angular/core';
|
||||
import { HostConfiguration } from './../../app.constants';
|
||||
import { BaseHttpService } from '../../utilities/cite-http-service-module/base-http.service';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { DataTableRequest } from '../../models/data-table/DataTableRequest';
|
||||
import { DataTableData } from '../../models/data-table/DataTableData';
|
||||
import { DatasetModel } from '../../models/datasets/DatasetModel';
|
||||
|
|
|
@ -8,7 +8,7 @@ import { Injectable } from '@angular/core';
|
|||
import { HttpHeaders } from '@angular/common/http';
|
||||
import { BaseHttpService } from '../../utilities/cite-http-service-module/base-http.service';
|
||||
import { HostConfiguration } from './../../app.constants';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
|
||||
@Injectable()
|
||||
|
|
|
@ -3,7 +3,7 @@ import { BaseHttpService } from '../../utilities/cite-http-service-module/base-h
|
|||
import { HostConfiguration } from '../../app.constants';
|
||||
import { HttpHeaders } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
|
||||
@Injectable()
|
||||
|
|
|
@ -3,7 +3,7 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|||
import { Injectable } from '@angular/core';
|
||||
import { HostConfiguration } from './../../app.constants';
|
||||
import { BaseHttpService } from '../../utilities/cite-http-service-module/base-http.service';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { ExternalSourcesItemModel } from '../../models/external-sources/ExternalSourcesItemModel';
|
||||
import { BaseCriteria } from '../../models/criteria/BaseCriteria';
|
||||
import { RequestItem } from '../../models/criteria/RequestItem';
|
||||
|
|
|
@ -3,7 +3,7 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|||
import { Injectable } from '@angular/core';
|
||||
import { HostConfiguration } from './../../app.constants';
|
||||
import { BaseHttpService } from '../../utilities/cite-http-service-module/base-http.service';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { ExternalSourcesItemModel } from '../../models/external-sources/ExternalSourcesItemModel';
|
||||
import { BaseCriteria } from '../../models/criteria/BaseCriteria';
|
||||
import { RequestItem } from '../../models/criteria/RequestItem';
|
||||
|
|
|
@ -5,7 +5,7 @@ import { HostConfiguration } from '../../app.constants';
|
|||
import { BaseHttpService } from '../../utilities/cite-http-service-module/base-http.service';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpHeaders } from '@angular/common/http';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { RequestItem } from '../../models/criteria/RequestItem';
|
||||
|
||||
@Injectable()
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
|
|||
import { HttpHeaders } from '@angular/common/http';
|
||||
import { BaseHttpService } from '../../utilities/cite-http-service-module/base-http.service';
|
||||
import { HostConfiguration } from '../../app.constants';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Invitation } from '../../models/invitation/Invitation';
|
||||
import { User } from '../../models/invitation/User';
|
||||
import { RequestItem } from '../../models/criteria/RequestItem';
|
||||
|
|
|
@ -3,7 +3,7 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|||
import { Injectable } from '@angular/core';
|
||||
import { HostConfiguration } from './../../app.constants';
|
||||
import { BaseHttpService } from '../../utilities/cite-http-service-module/base-http.service';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { DataTableRequest } from '../../models/data-table/DataTableRequest';
|
||||
import { DataTableData } from '../../models/data-table/DataTableData';
|
||||
import { ProjectListingModel } from '../../models/projects/ProjectListingModel';
|
||||
|
|
|
@ -5,7 +5,7 @@ import { HostConfiguration } from '../../app.constants';
|
|||
import { BaseHttpService } from '../../utilities/cite-http-service-module/base-http.service';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpHeaders } from '@angular/common/http';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { RequestItem } from '../../models/criteria/RequestItem';
|
||||
import { ResearcherModel } from '../../models/researcher/ResearcherModel';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import 'rxjs/add/operator/map';
|
|||
|
||||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { DataTableRequest } from '../../models/data-table/DataTableRequest';
|
||||
import { DataTableData } from '../../models/data-table/DataTableData';
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
|||
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
|
||||
import { BreadCrumbResolverService } from '../../../services/breadcrumb/breadcrumb-resolver.service';
|
||||
import { BreadcrumbItem } from './definition/breadcrumb-item';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
@Component({
|
||||
selector: 'app-breadcrumb',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { BreadcrumbItem } from './breadcrumb-item';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
export interface IBreadCrumbComponent {
|
||||
breadCrumbs: Observable<BreadcrumbItem[]>;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
export class BreadcrumbItem {
|
||||
parentComponentName?: string;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Component, ViewEncapsulation, OnInit, Input, Output, ViewChild, EventEmitter } from '@angular/core';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { FormControl } from '@angular/forms';
|
||||
import { MatSelectionList, MatListOption } from '@angular/material';
|
||||
import { SelectionModel } from '@angular/cdk/collections';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Component, OnInit, ViewEncapsulation, Input, ViewChild, Output, EventEmitter, AfterViewInit } from '@angular/core';
|
||||
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
|
||||
import { BreadCrumbResolverService } from '../../../services/breadcrumb/breadcrumb-resolver.service';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { FacetSearchCriteriaModel } from '../../../models/facet-search/FacetSearchCriteriaModel';
|
||||
import { ProjectStateType } from '../../../models/projects/ProjectStateType';
|
||||
import { ProjectModel } from '../../../models/projects/ProjectModel';
|
||||
|
|
|
@ -11,7 +11,7 @@ import { RequestItem } from '../../../models/criteria/RequestItem';
|
|||
import { ProjectService } from '../../../services/project/project.service';
|
||||
import { FormControl } from '@angular/forms';
|
||||
import { DashboardService } from '../../../services/dashboard/dashboard.service';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { SearchBarItem, SearchBarItemType } from '../../../models/dashboard/SearchBarItem';
|
||||
import { SearchBarType } from '../search-bar/types/search-bar-type';
|
||||
import { Router } from '@angular/router';
|
||||
|
|
|
@ -6,7 +6,7 @@ import { LoginOptions } from './LoginOptions';
|
|||
import { LoginServiceConfiguration } from './LoginServiceConfiguration';
|
||||
import { LoginProviders } from '../../models/login/LoginInfo';
|
||||
import { Optional, NgZone, Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { MatSnackBar } from '@angular/material';
|
||||
import { SnackBarNotificationComponent } from '../../shared/components/notificaiton/snack-bar-notification.component';
|
||||
import { Router, ActivatedRoute, Params } from '@angular/router';
|
||||
|
|
|
@ -6,7 +6,7 @@ import { SnackBarNotificationComponent } from '../../shared/components/notificai
|
|||
import { UserCriteria } from '../../models/criteria/users/UserCriteria';
|
||||
import { UserCriteriaErrorModel } from '../../models/criteria/users/UserCriteriaErrorModel';
|
||||
import { Observable } from 'rxjs/Rx';
|
||||
import { Component, OnInit, AfterViewInit, ViewChild } from '@angular/core';
|
||||
import { Component, OnInit, AfterViewInit, ViewChild, OnDestroy } from '@angular/core';
|
||||
import { UsersCriteriaComponent } from '../../shared/components/criteria/users/users-criteria.component';
|
||||
import { Router, ActivatedRoute, Params } from '@angular/router';
|
||||
import { Principal } from '../../models/login/Principal';
|
||||
|
@ -33,7 +33,7 @@ const availableLanguages: any[] = require('../../../assets/resources/language.js
|
|||
CultureService
|
||||
]
|
||||
})
|
||||
export class UserProfileComponent implements OnInit {
|
||||
export class UserProfileComponent implements OnInit, OnDestroy {
|
||||
|
||||
user: Observable<UserListingModel>;
|
||||
currentUserId: string;
|
||||
|
@ -74,6 +74,9 @@ export class UserProfileComponent implements OnInit {
|
|||
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
}
|
||||
|
||||
getUserRole(dmp: DataManagementPlanModel) {
|
||||
if (dmp.creator.id === this.currentUserId) { return this.language.instant('USER-PROFILE.DMPS.CREATOR'); } else if (dmp.associatedUsers.map(x => x.id).indexOf(this.currentUserId) !== -1) { return this.language.instant('USER-PROFILE.DMPS.MEMBER'); }
|
||||
return '';
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Message } from '@angular/compiler/src/i18n/i18n_ast';
|
|||
import { ApiMessageCode } from '../types/ApiMessageCode';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Http, RequestOptions, Response, Headers } from '@angular/http';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Router, ActivatedRoute, RouterStateSnapshot } from '@angular/router';
|
||||
import { MatSnackBar } from '@angular/material';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
|
|
|
@ -5,7 +5,7 @@ import { DashboardStatisticsModel } from '../models/dashboard/DashboardStatistic
|
|||
import { JsonSerializer } from '../utilities/JsonSerializer';
|
||||
import { HomepageComponent } from '../homepage/homepage.component';
|
||||
import { IBreadCrumbComponent } from '../shared/components/breadcrumb/definition/IBreadCrumbComponent';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
import { BreadcrumbItem } from '../shared/components/breadcrumb/definition/breadcrumb-item';
|
||||
|
||||
@Component({
|
||||
|
|
Loading…
Reference in New Issue