77349: Add themeable components - pt. 1

This commit is contained in:
Yana De Pauw
2021-03-03 11:05:52 +01:00
committed by Art Lowel
parent 66463cfc04
commit 8b7a33bff2
81 changed files with 833 additions and 51 deletions

View File

@@ -2,7 +2,6 @@ import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { AuthBlockingGuard } from './core/auth/auth-blocking.guard';
import { PageNotFoundComponent } from './pagenotfound/pagenotfound.component';
import { AuthenticatedGuard } from './core/auth/authenticated.guard';
import { SiteAdministratorGuard } from './core/data/feature-authorization/feature-authorization-guard/site-administrator.guard';
import {
@@ -23,6 +22,8 @@ import { ReloadGuard } from './core/reload/reload.guard';
import { EndUserAgreementCurrentUserGuard } from './core/end-user-agreement/end-user-agreement-current-user.guard';
import { SiteRegisterGuard } from './core/data/feature-authorization/feature-authorization-guard/site-register.guard';
import { ForbiddenComponent } from './forbidden/forbidden.component';
import { ThemedPageNotFoundComponent } from './pagenotfound/themed-pagenotfound.component';
import { ThemedForbiddenComponent } from './forbidden/themed-forbidden.component';
@NgModule({
imports: [
@@ -30,7 +31,7 @@ import { ForbiddenComponent } from './forbidden/forbidden.component';
path: '', canActivate: [AuthBlockingGuard],
children: [
{ path: '', redirectTo: '/home', pathMatch: 'full' },
{ path: 'reload/:rnd', component: PageNotFoundComponent, pathMatch: 'full', canActivate: [ReloadGuard] },
{ path: 'reload/:rnd', component: ThemedPageNotFoundComponent, pathMatch: 'full', canActivate: [ReloadGuard] },
{
path: 'home',
loadChildren: () => import('./+home-page/home-page.module')
@@ -173,14 +174,14 @@ import { ForbiddenComponent } from './forbidden/forbidden.component';
},
{
path: FORBIDDEN_PATH,
component: ForbiddenComponent
component: ThemedForbiddenComponent
},
{
path: 'statistics',
loadChildren: () => import('./statistics-page/statistics-page-routing.module')
.then((m) => m.StatisticsPageRoutingModule),
},
{ path: '**', pathMatch: 'full', component: PageNotFoundComponent },
{ path: '**', pathMatch: 'full', component: ThemedPageNotFoundComponent },
]}
],{
onSameUrlNavigation: 'reload',