diff --git a/explore/src/app/app-routing.module.ts b/explore/src/app/app-routing.module.ts index 401b51cd..b3b1988e 100644 --- a/explore/src/app/app-routing.module.ts +++ b/explore/src/app/app-routing.module.ts @@ -7,7 +7,6 @@ const routes: Routes = [ // Other Pages {path: '', loadChildren: () => import('./home/home.module').then(m => m.HomeModule), data: {hasStickyHeaderOnMobile: true}}, {path: 'home', redirectTo: '', pathMatch: 'full'}, - {path: 'mail-preferences', loadChildren: () => import('./userEmailPreferences/mailPrefs.module').then(m => m.LibMailPrefsModule)}, {path: 'sdgs', loadChildren: () => import('./sdg/sdg.module').then(m => m.LibSdgModule)}, {path: 'fields-of-science', loadChildren: () => import('./fos/fos.module').then(m => m.LibFosModule), data: {extraOffset: 100}}, {path: 'funders', loadChildren: () => import('./funders/funders.module').then(m => m.FundersModule)}, @@ -32,10 +31,6 @@ const routes: Routes = [ loadChildren: () => import('./landingPages/organization/libOrganization.module').then(m => m.LibOrganizationModule), data: {hasQuickContact: false, hasMenuSearchBar: true} }, - { - path: 'project-report', - loadChildren: () => import('./landingPages/htmlProjectReport/libHtmlProjectReport.module').then(m => m.LibHtmlProjectReportModule) - }, // Search Pages { diff --git a/explore/src/app/landingPages/htmlProjectReport/htmlProjectReport-routing.module.ts b/explore/src/app/landingPages/htmlProjectReport/htmlProjectReport-routing.module.ts deleted file mode 100644 index f8ce0c54..00000000 --- a/explore/src/app/landingPages/htmlProjectReport/htmlProjectReport-routing.module.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { OpenaireHtmlProjectReportComponent } from './htmlProjectReport.component'; -import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard'; -@NgModule({ - imports: [ - RouterModule.forChild([ - { path: '', component: OpenaireHtmlProjectReportComponent ,canDeactivate: [PreviousRouteRecorder]} - ]) -] -}) -export class HtmlProjectReportRoutingModule { } diff --git a/explore/src/app/landingPages/htmlProjectReport/htmlProjectReport.component.ts b/explore/src/app/landingPages/htmlProjectReport/htmlProjectReport.component.ts deleted file mode 100644 index d253f588..00000000 --- a/explore/src/app/landingPages/htmlProjectReport/htmlProjectReport.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import {Component} from '@angular/core'; - -@Component({ - selector: 'openaire-htmlProjectReport', - template: ``, - }) -export class OpenaireHtmlProjectReportComponent{ - constructor ( ) { - - } - - ngOnInit() { -} - - - -} diff --git a/explore/src/app/landingPages/htmlProjectReport/libHtmlProjectReport.module.ts b/explore/src/app/landingPages/htmlProjectReport/libHtmlProjectReport.module.ts deleted file mode 100644 index 557b898f..00000000 --- a/explore/src/app/landingPages/htmlProjectReport/libHtmlProjectReport.module.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { NgModule} from '@angular/core'; -import { HtmlProjectReportModule } from '../../openaireLibrary/landingPages/htmlProjectReport/htmlProjectReport.module'; -import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard'; -import { OpenaireHtmlProjectReportComponent } from './htmlProjectReport.component'; -import {HtmlProjectReportRoutingModule} from './htmlProjectReport-routing.module'; - -@NgModule({ - imports: [HtmlProjectReportModule, HtmlProjectReportRoutingModule], - declarations:[OpenaireHtmlProjectReportComponent], - providers:[ PreviousRouteRecorder], - exports:[OpenaireHtmlProjectReportComponent] -}) -export class LibHtmlProjectReportModule { } diff --git a/explore/src/app/userEmailPreferences/mailPrefs-routing.module.ts b/explore/src/app/userEmailPreferences/mailPrefs-routing.module.ts deleted file mode 100644 index 981c0364..00000000 --- a/explore/src/app/userEmailPreferences/mailPrefs-routing.module.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -import {OpenaireMailPrefsComponent } from './mailPrefs.component'; -import {LoginGuard} from '../openaireLibrary/login/loginGuard.guard'; -import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard'; -import {IsRouteEnabled} from '../openaireLibrary/error/isRouteEnabled.guard'; -import {properties} from "../../environments/environment"; - - -@NgModule({ - imports: [ - RouterModule.forChild([ - { path: '', component: OpenaireMailPrefsComponent, canActivate: [IsRouteEnabled, LoginGuard], - data: {redirect: properties.errorLink, community : 'openaire'}, canDeactivate: [PreviousRouteRecorder]}]) - ] -}) -export class MailPrefsRoutingModule { } diff --git a/explore/src/app/userEmailPreferences/mailPrefs.component.ts b/explore/src/app/userEmailPreferences/mailPrefs.component.ts deleted file mode 100644 index 795c77aa..00000000 --- a/explore/src/app/userEmailPreferences/mailPrefs.component.ts +++ /dev/null @@ -1,25 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'openaire-mailPrefs', - template: ` -
-
-
- -
-
-
-` - -}) - export class OpenaireMailPrefsComponent { - constructor () { - - } - ngOnInit() { - - } - -} diff --git a/explore/src/app/userEmailPreferences/mailPrefs.module.ts b/explore/src/app/userEmailPreferences/mailPrefs.module.ts deleted file mode 100644 index ba7d55bd..00000000 --- a/explore/src/app/userEmailPreferences/mailPrefs.module.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { NgModule } from '@angular/core'; - -import { SharedModule } from '../openaireLibrary/shared/shared.module'; -import { OpenaireMailPrefsComponent } from './mailPrefs.component'; -import { MailPrefsRoutingModule } from './mailPrefs-routing.module'; -import { MailPrefsModule } from '../openaireLibrary/connect/userEmailPreferences/mailsPrefs.module'; -import { LoginGuard } from '../openaireLibrary/login/loginGuard.guard'; -import { PreviousRouteRecorder } from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard'; -import { IsRouteEnabled } from '../openaireLibrary/error/isRouteEnabled.guard'; - -@NgModule({ - imports: [ - SharedModule, - MailPrefsRoutingModule, - MailPrefsModule - ], - providers:[LoginGuard, PreviousRouteRecorder, IsRouteEnabled], - declarations: [ - OpenaireMailPrefsComponent - ] -}) -export class LibMailPrefsModule { }