Migrate to modernize template

This commit is contained in:
Marek Lesko
2025-10-19 16:34:01 +00:00
parent 9deee01ba3
commit aba8943d17
666 changed files with 25377 additions and 45152 deletions

View File

@@ -1,26 +1,106 @@
import { Routes } from '@angular/router';
import { Login } from './login/login';
import { authGuard } from './app.route.guard';
import { App } from './app';
export const routes: Routes = [
{
path: '',
component: App
},
{
path: 'login',
component: Login
},
{
path: 'content',
loadComponent: () => import('./content/content').then(m => m.Content),
canActivate: [authGuard],
children: [
{
path: 'items',
loadComponent: () => import('./content/items/items').then(m => m.Items),
canActivate: [authGuard],
}]
}
];
import { Routes } from '@angular/router';
import { BlankComponent } from './layouts/blank/blank.component';
import { FullComponent } from './layouts/full/full.component';
export const routes: Routes = [
{
path: '',
component: FullComponent,
children: [
{
path: '',
redirectTo: '/front-pages/homepage',
pathMatch: 'full',
},
// {
// path: 'starter',
// loadChildren: () =>
// import('./pages/pages.routes').then((m) => m.PagesRoutes),
// },
// {
// path: 'dashboards',
// loadChildren: () =>
// import('../../../theme/packages/main/src/app/pages/dashboards/dashboards.routes').then(
// (m) => m.DashboardsRoutes
// ),
// },
// {
// path: 'forms',
// loadChildren: () =>
// import('../../../theme/packages/main/src/app/pages/forms/forms.routes').then((m) => m.FormsRoutes),
// },
// {
// path: 'charts',
// loadChildren: () =>
// import('../../../theme/packages/main/src/app/pages/charts/charts.routes').then((m) => m.ChartsRoutes),
// },
// {
// path: 'apps',
// loadChildren: () =>
// import('../../../theme/packages/main/src/app/pages/apps/apps.routes').then((m) => m.AppsRoutes),
// },
// {
// path: 'widgets',
// loadChildren: () =>
// import('../../../theme/packages/main/src/app/pages/widgets/widgets.routes').then((m) => m.WidgetsRoutes),
// },
// {
// path: 'tables',
// loadChildren: () =>
// import('../../../theme/packages/main/src/app/pages/tables/tables.routes').then((m) => m.TablesRoutes),
// },
// {
// path: 'datatable',
// loadChildren: () =>
// import('../../../theme/packages/main/src/app/pages/datatable/datatable.routes').then(
// (m) => m.DatatablesRoutes
// ),
// },
// {
// path: 'theme-pages',
// loadChildren: () =>
// import('../../../theme/packages/main/src/app/pages/theme-pages/theme-pages.routes').then(
// (m) => m.ThemePagesRoutes
// ),
// },
// {
// path: 'ui-components',
// loadChildren: () =>
// import('../../../theme/packages/main/src/app/pages/ui-components/ui-components.routes').then(
// (m) => m.UiComponentsRoutes
// ),
// },
],
},
{
path: '',
component: BlankComponent,
children: [
{
path: 'authentication',
loadChildren: () =>
import('./pages/authentication/authentication.routes').then(
(m) => m.AuthenticationRoutes
),
},
// {
// path: 'landingpage',
// loadChildren: () =>
// import('../../../theme/packages/main/src/app/pages/theme-pages/landingpage/landingpage.routes').then(
// (m) => m.LandingPageRoutes
// ),
// },
{
path: 'front-pages',
loadChildren: () =>
import('./pages/front-pages/front-pages.routes').then(
(m) => m.FrontPagesRoutes
),
},
],
},
{
path: '**',
redirectTo: 'authentication/error',
},
];