[develop | DONE | DELETED]: Removed legacy unused files htmlProjectReport.component.ts & htmlProjectReport-routing.module.ts & libHtmlProjectReport.module.ts & mailPrefs.component.ts & mailPrefs.module.ts & mailPrefs-routing.module.ts | app-routing.module.ts: Deleted legacy routes 'mail-preferences' & 'project-report'.
This commit is contained in:
parent
6fd19ea661
commit
17325b3ab2
|
@ -7,7 +7,6 @@ const routes: Routes = [
|
||||||
// Other Pages
|
// Other Pages
|
||||||
{path: '', loadChildren: () => import('./home/home.module').then(m => m.HomeModule), data: {hasStickyHeaderOnMobile: true}},
|
{path: '', loadChildren: () => import('./home/home.module').then(m => m.HomeModule), data: {hasStickyHeaderOnMobile: true}},
|
||||||
{path: 'home', redirectTo: '', pathMatch: 'full'},
|
{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: '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: '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)},
|
{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),
|
loadChildren: () => import('./landingPages/organization/libOrganization.module').then(m => m.LibOrganizationModule),
|
||||||
data: {hasQuickContact: false, hasMenuSearchBar: true}
|
data: {hasQuickContact: false, hasMenuSearchBar: true}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: 'project-report',
|
|
||||||
loadChildren: () => import('./landingPages/htmlProjectReport/libHtmlProjectReport.module').then(m => m.LibHtmlProjectReportModule)
|
|
||||||
},
|
|
||||||
|
|
||||||
// Search Pages
|
// Search Pages
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 { }
|
|
|
@ -1,17 +0,0 @@
|
||||||
import {Component} from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'openaire-htmlProjectReport',
|
|
||||||
template: `<htmlProjectReport></htmlProjectReport>`,
|
|
||||||
})
|
|
||||||
export class OpenaireHtmlProjectReportComponent{
|
|
||||||
constructor ( ) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -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 { }
|
|
|
@ -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 { }
|
|
|
@ -1,25 +0,0 @@
|
||||||
import {Component} from '@angular/core';
|
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'openaire-mailPrefs',
|
|
||||||
template: `
|
|
||||||
<div id="tm-main" class=" uk-section uk-margin-small-top tm-middle">
|
|
||||||
<div uk-grid uk-grid>
|
|
||||||
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first">
|
|
||||||
<mailPrefs [showSaveResetButtons]="true"></mailPrefs>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
`
|
|
||||||
|
|
||||||
})
|
|
||||||
export class OpenaireMailPrefsComponent {
|
|
||||||
constructor () {
|
|
||||||
|
|
||||||
}
|
|
||||||
ngOnInit() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -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 { }
|
|
Loading…
Reference in New Issue