diff --git a/portal-2/package.json b/portal-2/package.json
index 655adfb8..06548ad4 100644
--- a/portal-2/package.json
+++ b/portal-2/package.json
@@ -7,7 +7,7 @@
"url": "https://github.com/angular/universal-starter.git"
},
"scripts": {
- "watch": "webpack --watch",
+ "watch": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js --watch",
"watch:dev": "npm run server & npm run watch",
"clean:dist": "rimraf dist",
"clean:ngc": "rimraf **/*.ngfactory.ts **/*.css.shim.ts",
@@ -15,13 +15,13 @@
"build": "webpack --progress",
"build:prod:ngc": "npm run clean:ngc && npm run ngc && npm run clean:dist && npm run build:prod",
"build:prod:ngc:json": "npm run clean:ngc && npm run ngc && npm run clean:dist && npm run build:prod:json",
- "build:prod": "webpack --config webpack.prod.config.ts",
+ "build:prod": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js --config webpack.prod.config.ts",
"build:prod:json": "webpack --config webpack.prod.config.ts --json | webpack-bundle-size-analyzer",
"ngc": "ngc -p tsconfig.aot.json",
"prestart": "npm run build",
"minify": "uglifyjs dist/client/main.bundle.js --screw-ie8 --compress --mangle --output dist/client/main.bundle.min.js",
"minify-test": "uglifyjs dist/client/main.bundle.js --output dist/client/main.xmin.js",
- "server": "nodemon dist/server/index.js",
+ "server": "nodemon dist/server/index.js",
"debug:server": "node-nightly --inspect --debug-brk dist/server/index.js",
"start": "npm run server",
"debug:start": "npm run build && npm run debug:server",
@@ -57,6 +57,7 @@
"angular2-platform-node": "~2.1.0-rc.1",
"angular2-universal": "~2.1.0-rc.1",
"angular2-universal-polyfills": "~2.1.0-rc.1",
+ "base64url": "^2.0.0",
"body-parser": "^1.15.2",
"citation-js": "^0.3.0-2",
"clipboard": "^1.5.16",
@@ -65,9 +66,9 @@
"js.clone": "0.0.3",
"methods": "~1.1.2",
"morgan": "^1.7.0",
- "mydatepicker": "^1.7.3",
"preboot": "~4.5.2",
"rxjs": "5.0.0-beta.12",
+ "ts-md5": "^1.2.0",
"webfontloader": "^1.6.26",
"zone.js": "~0.6.26"
},
diff --git a/portal-2/src/app/app-routing.module.ts b/portal-2/src/app/app-routing.module.ts
index e1b14ec0..782e7927 100644
--- a/portal-2/src/app/app-routing.module.ts
+++ b/portal-2/src/app/app-routing.module.ts
@@ -119,18 +119,19 @@ export function getLinkingModule() {
return System.import('./claims/linking/linkingGeneric.module' + (process.env.AOT ? '.ngfactory' : ''))
.then(mod => mod[(process.env.AOT ? 'LinkingGenericModuleNgFactory' : 'LinkingGenericModule')]);
}
-// export function getBulkLinkingModule() {
-// return System.import('./claims/linking/bulkLinking.module' + (process.env.AOT ? '.ngfactory' : ''))
-// .then(mod => mod[(process.env.AOT ? 'BulkLinkingModuleNgFactory' : 'BulkLinkingModule')]);
-// }
+
export function getDirectLinkingModule() {
return System.import('./claims/directLinking/directLinking.module' + (process.env.AOT ? '.ngfactory' : ''))
.then(mod => mod[(process.env.AOT ? 'DirectLinkingModuleNgFactory' : 'DirectLinkingModule')]);
}
+export function getUserModule() {
+ return System.import('./login/user.module' + (process.env.AOT ? '.ngfactory' : ''))
+ .then(mod => mod[(process.env.AOT ? 'UserModuleNgFactory' : 'UserModule')]);
+}
@NgModule({
imports: [
RouterModule.forChild([
- { path: '', redirectTo: '/search/find', pathMatch: 'full' },
+ { path: '', redirectTo: '/search/find', pathMatch: 'full'},
{ path: 'search/publication', loadChildren: getPublicationModule },
{ path: 'search/dataset', loadChildren: getDatasetModule },
{ path: 'search/person', loadChildren: getPersonModule },
@@ -141,25 +142,14 @@ export function getDirectLinkingModule() {
{ path: 'participate/deposit-datasets-result', loadChildren: getDepositDatasetsResultsModule },
{ path: 'participate/deposit-publications', loadChildren: getDepositPublicationsModule },
{ path: 'participate/deposit-publications-result', loadChildren: getDepositPublicationsResultsModule },
- { path: 'search/find', loadChildren: getMainSearchModule , data: {
- meta: {
- title: 'Home page',
- description: 'Description of the home page'
- }
- }},
+ { path: 'search/find', loadChildren: getMainSearchModule },
{ path: 'search/find/publications', loadChildren: getSearchPublicationsModule },
{ path: 'search/find/datasets', loadChildren: getSearchDatasetsModule },
{ path: 'search/find/projects', loadChildren: getSearchProjectsModule },
{ path: 'search/find/dataproviders', loadChildren: getSearchDataProvidersModule },
{ path: 'search/find/organizations', loadChildren: getSearchOrganizationsModule },
{ path: 'search/find/people', loadChildren: getSearchPeopleModule },
- { path: 'search/data-providers', loadChildren: getCompatibleDataProvidersModule,
- data: {
- meta: {
- title: 'Home page',
- description: 'Description of the home page'
- }
- }},
+ { path: 'search/data-providers', loadChildren: getCompatibleDataProvidersModule },
{ path: 'search/entity-registries', loadChildren: getEntityRegistriesModule },
{ path: 'search/advanced/publications', loadChildren: getAdvancedSearchPublicationsModule },
{ path: 'search/advanced/datasets', loadChildren: getAdvancedSearchDatasetsModule },
@@ -170,9 +160,10 @@ export function getDirectLinkingModule() {
{ path: 'project-report', loadChildren: gethtmlProjectReportModule },
{ path: 'myclaims', loadChildren: getMyClaimsModule },
{ path: 'claims', loadChildren: getClaimsAdminModule },
- // { path: 'participate/bulk-claim', loadChildren: getBulkLinkingModule },
{ path: 'participate/claim', loadChildren: getLinkingModule },
{ path: 'participate/direct-claim', loadChildren: getDirectLinkingModule },
+ { path: 'user-info', loadChildren: getUserModule },
+
])
],
})
diff --git a/portal-2/src/app/app.module.ts b/portal-2/src/app/app.module.ts
index 55414537..354e42dc 100755
--- a/portal-2/src/app/app.module.ts
+++ b/portal-2/src/app/app.module.ts
@@ -6,7 +6,6 @@ import { SharedModule } from './shared/shared.module';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent, XLargeDirective } from './app.component';
-
import {SharedComponentsModule} from './sharedComponents/sharedComponents.module'; //navbar
import { ErrorModule } from './error/error.module';
import { CacheService } from './shared/cache.service';
@@ -20,8 +19,11 @@ import { CookieLawModule } from './sharedComponents/cookie-law/cookie-law.module
SharedComponentsModule,
AppRoutingModule,
ErrorModule,
- CookieLawModule
- ], exports:[], providers:[CacheService]
+ CookieLawModule,
+
+ ], exports:[],
+ providers:[CacheService]
+
})
export class AppModule {
}
diff --git a/portal-2/src/app/claims/claim-routing.module.ts b/portal-2/src/app/claims/claim-routing.module.ts
deleted file mode 100644
index 5749d0a3..00000000
--- a/portal-2/src/app/claims/claim-routing.module.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-// import { NgModule } from '@angular/core';
-// import { RouterModule } from '@angular/router';
-//
-// import {ClaimsAdminComponent} from './claims/claimsAdmin.component';
-// import {ClaimComponent} from './claim/claim.component';
-// import {MyClaimsComponent} from './myClaims/myClaims.component';
-// import { LinkingComponent } from './linking/linking.component';
-// import { BulkLinkingComponent } from './linking/bulkLinking.component';
-//
-// @NgModule({
-// imports: [
-// RouterModule.forChild([
-// { path: 'claims', component: ClaimsAdminComponent },
-// { path: 'myclaims', component: MyClaimsComponent },
-// { path: 'claim', component: ClaimComponent },
-// { path: 'linking', component: LinkingComponent },
-// { path: 'bulk-linking', component: BulkLinkingComponent},
-//
-// ])
-// ]
-// })
-// export class ClaimRoutingModule { }
diff --git a/portal-2/src/app/claims/claim-utils/claimContextSearchForm.component.ts b/portal-2/src/app/claims/claim-utils/claimContextSearchForm.component.ts
index a3cfed2a..b4f793bb 100644
--- a/portal-2/src/app/claims/claim-utils/claimContextSearchForm.component.ts
+++ b/portal-2/src/app/claims/claim-utils/claimContextSearchForm.component.ts
@@ -20,7 +20,7 @@ declare var UIkit:any;
-
0"> |