diff --git a/explore/angular.json b/explore/angular.json index 49b10b4b..bf79b5dc 100644 --- a/explore/angular.json +++ b/explore/angular.json @@ -28,15 +28,13 @@ ], "styles": [ "src/styles.css", - "src/material.scss", - "node_modules/datatables.net-dt/css/jquery.dataTables.css" + "src/material.scss" ], "scripts": [ "src/assets/common-assets/common/jquery.js", "src/assets/common-assets/common/uikit.min.js", "src/assets/common-assets/common/uikit-icons.min.js", - "node_modules/jquery/dist/jquery.js", - "node_modules/datatables.net/js/jquery.dataTables.js" + "node_modules/jquery/dist/jquery.js" ] }, "configurations": { @@ -157,13 +155,11 @@ "src/assets/common-assets/common/jquery.js", "src/assets/common-assets/common/uikit.min.js", "src/assets/common-assets/common/uikit-icons.min.js", - "node_modules/jquery/dist/jquery.js", - "node_modules/datatables.net/js/jquery.dataTables.js" + "node_modules/jquery/dist/jquery.js" ], "styles": [ "src/styles.css", - "src/material.scss", - "node_modules/datatables.net-dt/css/jquery.dataTables.css" + "src/material.scss" ], "assets": [ "src/assets", diff --git a/explore/package.json b/explore/package.json index 04211706..93d816ca 100644 --- a/explore/package.json +++ b/explore/package.json @@ -53,11 +53,8 @@ "@nguniversal/express-engine": "^6.0.0", "@nguniversal/module-map-ngfactory-loader": "^6.0.0", "@types/express": "^4.16.1", - "angular-datatables": "^4.4.1", "clipboard": "^1.5.16", "core-js": "^2.4.1", - "datatables.net": "^1.10.19", - "datatables.net-dt": "^1.10.19", "jquery": "^3.4.1", "ngx-json-ld": "0.1.6", "prom-client": "^11.3.0", @@ -71,7 +68,6 @@ "@angular/cli": "^7.3.9", "@angular/compiler-cli": "7.2.14", "@angular/language-service": "7.2.14", - "@types/datatables.net": "^1.10.17", "@types/jquery": "^3.3.29", "@types/node": "^8.0.30", "cpy-cli": "^1.0.1", diff --git a/explore/src/app/app-routing.module.ts b/explore/src/app/app-routing.module.ts index 66345ca3..0770b7a7 100644 --- a/explore/src/app/app-routing.module.ts +++ b/explore/src/app/app-routing.module.ts @@ -78,7 +78,7 @@ const routes: Routes = [ { path: 'claims', loadChildren: './claims/claimsAdmin/claimsAdmin.module#LibClaimsAdminModule', resolve: { envSpecific: EnvironmentSpecificResolver }}, { path: 'participate/claim', loadChildren: './claims/linking/linkingGeneric.module#LibLinkingGenericModule', resolve: { envSpecific: EnvironmentSpecificResolver }}, { path: 'participate/direct-claim', loadChildren: './claims/directLinking/directLinking.module#LibDirectLinkingModule', resolve: { envSpecific: EnvironmentSpecificResolver }}, - { path: 'claims-project-manager', loadChildren: './claims/claimsByToken/claimsByToken.module#LibClaimsByTokenModule', resolve: { envSpecific: EnvironmentSpecificResolver }}, + // { path: 'claims-project-manager', loadChildren: './claims/claimsByToken/claimsByToken.module#LibClaimsByTokenModule', resolve: { envSpecific: EnvironmentSpecificResolver }}, // help pages - do not exist in Admin portal/api/db { path: 'reload', loadChildren: './reload/libReload.module#LibReloadModule', resolve: { envSpecific: EnvironmentSpecificResolver }}, diff --git a/explore/src/app/claims/claimsByToken/claimsByToken-routing.module.ts b/explore/src/app/claims/claimsByToken/claimsByToken-routing.module.ts deleted file mode 100644 index c4835ae3..00000000 --- a/explore/src/app/claims/claimsByToken/claimsByToken-routing.module.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { OpenaireClaimsByTokenComponent } from './claimsByToken.component'; -import {LoginGuard} from '../../openaireLibrary/login/loginGuard.guard'; -import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard'; -import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'; - - - -@NgModule({ - imports: [ - RouterModule.forChild([ - { path: '', component: OpenaireClaimsByTokenComponent, canActivate: [IsRouteEnabled, LoginGuard], - data: {redirect: '/error', community : 'openaire'}, canDeactivate: [PreviousRouteRecorder]}]) - ] -}) -export class ClaimsByTokenRoutingModule { } diff --git a/explore/src/app/claims/claimsByToken/claimsByToken.component.ts b/explore/src/app/claims/claimsByToken/claimsByToken.component.ts deleted file mode 100644 index 79040aac..00000000 --- a/explore/src/app/claims/claimsByToken/claimsByToken.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import {Component} from '@angular/core'; - -@Component({ - selector: 'openaire-claims-project-manager', - template: ` - - `, - -}) -export class OpenaireClaimsByTokenComponent { -} diff --git a/explore/src/app/claims/claimsByToken/claimsByToken.module.ts b/explore/src/app/claims/claimsByToken/claimsByToken.module.ts deleted file mode 100644 index 10e6f868..00000000 --- a/explore/src/app/claims/claimsByToken/claimsByToken.module.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { SharedModule } from '../../shared/shared.module'; -import { OpenaireClaimsByTokenComponent } from './claimsByToken.component'; -import {ClaimsByTokenModule} from '../../openaireLibrary/claims/claimsByToken/claimsByToken.module'; -import {LoginGuard} from '../../openaireLibrary/login/loginGuard.guard'; -import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard'; -import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'; -import { ClaimsByTokenRoutingModule } from './claimsByToken-routing.module'; - - - -@NgModule({ - imports: [ - RouterModule, - SharedModule, - ClaimsByTokenModule, - ClaimsByTokenRoutingModule - ], - providers:[ - LoginGuard, PreviousRouteRecorder, IsRouteEnabled - ], - declarations: [ - OpenaireClaimsByTokenComponent - ], - exports: [ - OpenaireClaimsByTokenComponent - ] -}) -export class LibClaimsByTokenModule { }