[Monitor | Trunk]: Remove properties resolver

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor@60775 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
Konstantinos Triantafyllou 2021-04-01 14:45:13 +00:00
parent 6d16aa2c5c
commit d326201439
2 changed files with 18 additions and 30 deletions

View File

@ -1,53 +1,42 @@
import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
import {EnvironmentSpecificService} from './openaireLibrary/utils/properties/environment-specific.service';
import {OpenaireErrorPageComponent} from './error/errorPage.component';
const routes: Routes = [
{path: '', loadChildren: './home/home.module#HomeModule', resolve: {envSpecific: EnvironmentSpecificResolver}},
{path: '', loadChildren: './home/home.module#HomeModule'},
{
path: 'browse',
loadChildren: './search-stakeholders/search-stakeholders.module#SearchStakeholdersModule',
resolve: {envSpecific: EnvironmentSpecificResolver}
loadChildren: './search-stakeholders/search-stakeholders.module#SearchStakeholdersModule'
},
{path: 'about', redirectTo: 'about/learn-how', pathMatch: 'full'},
{
path: 'about/learn-how',
loadChildren: './learn-how/learn-how.module#LearnHowModule',
resolve: {envSpecific: EnvironmentSpecificResolver}
loadChildren: './learn-how/learn-how.module#LearnHowModule'
},
{
path: 'contact-us',
loadChildren: './contact/contact.module#ContactModule',
resolve: {envSpecific: EnvironmentSpecificResolver}
loadChildren: './contact/contact.module#ContactModule'
},
{
path: 'reload',
loadChildren: './reload/libReload.module#LibReloadModule',
resolve: {envSpecific: EnvironmentSpecificResolver}
loadChildren: './reload/libReload.module#LibReloadModule'
},
{
path: 'user-info',
loadChildren: './login/libUser.module#LibUserModule',
resolve: {envSpecific: EnvironmentSpecificResolver}
loadChildren: './login/libUser.module#LibUserModule'
},
{path: 'error', component: OpenaireErrorPageComponent, resolve: {envSpecific: EnvironmentSpecificResolver}},
{path: 'error', component: OpenaireErrorPageComponent},
{path: 'theme', loadChildren: './openaireLibrary/utils/theme/theme.module#ThemeModule'},
{
path: '**',
pathMatch: 'full',
component: OpenaireErrorPageComponent,
resolve: {envSpecific: EnvironmentSpecificResolver}
component: OpenaireErrorPageComponent
}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule],
providers: [EnvironmentSpecificResolver, EnvironmentSpecificService]
exports: [RouterModule]
})
export class AppRoutingModule {
}

View File

@ -13,8 +13,6 @@ import {CookieLawModule} from './openaireLibrary/sharedComponents/cookie-law/coo
import {BottomModule} from './openaireLibrary/sharedComponents/bottom.module';
import {ErrorModule} from './openaireLibrary/error/error.module';
import {NavigationBarModule} from './openaireLibrary/sharedComponents/navigationBar.module';
import {EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
import {DEFAULT_TIMEOUT, TimeoutInterceptor} from "./openaireLibrary/timeout-interceptor.service";
import {Schema2jsonldModule} from "./openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module";
import {HttpInterceptorService} from "./openaireLibrary/http-interceptor.service";
@ -39,7 +37,7 @@ import {ErrorInterceptorService} from "./openaireLibrary/error-interceptor.servi
],
declarations: [AppComponent, OpenaireErrorPageComponent],
exports: [AppComponent],
providers:[EnvironmentSpecificResolver,
providers: [
{
provide: HTTP_INTERCEPTORS,
useClass: HttpInterceptorService,
@ -56,4 +54,5 @@ import {ErrorInterceptorService} from "./openaireLibrary/error-interceptor.servi
bootstrap: [AppComponent]
})
//
export class AppModule {}
export class AppModule {
}