feat(pages): implement starter page with themes

This commit is contained in:
Alex 2020-03-25 13:52:20 +03:00 committed by Sergey Andrievskiy
parent 00f0e4a2ba
commit fb6e04b80a
16 changed files with 343 additions and 184 deletions

View file

@ -8,11 +8,12 @@ import {
NbRequestPasswordComponent,
NbResetPasswordComponent,
} from '@nebular/auth';
import {StarterScreenComponent} from './themes-screen/starter-screen.component';
import { ThemeGuard } from './@core/guard/theme.guard';
export const routes: Routes = [
{
path: 'pages',
canActivate: [ThemeGuard],
loadChildren: () => import('./pages/pages.module')
.then(m => m.PagesModule),
},
@ -24,6 +25,7 @@ export const routes: Routes = [
{
path: 'auth',
component: NbAuthComponent,
canActivate: [ThemeGuard],
children: [
{
path: '',
@ -51,8 +53,8 @@ export const routes: Routes = [
},
],
},
{ path: '', redirectTo: 'pages', pathMatch: 'full' },
{ path: '**', redirectTo: 'pages' },
{ path: '', redirectTo: 'themes', pathMatch: 'full' },
{ path: '**', redirectTo: 'themes' },
];
const config: ExtraOptions = {