feat: Update sidebar navigation and add dashboard component

- Changed display name for the main dashboard in sidebar from 'Dashboards' to 'Hlavná stránka'.
- Removed commented-out children routes for dashboards and frontend pages in sidebar.
- Added new dashboard component and its routing.
- Introduced logout functionality with a dedicated logout component.
- Updated authentication routes to include logout path.
- Modified callback component to navigate to the dashboard upon successful login.
- Enhanced authentication service to handle user profile loading more effectively.
This commit is contained in:
Marek Lesko
2025-10-29 19:59:35 +00:00
parent 74f15cabd9
commit d5619e42da
18 changed files with 865 additions and 807 deletions

View File

@@ -1,6 +1,7 @@
import { Routes } from '@angular/router';
import { BlankComponent } from './layouts/blank/blank.component';
import { FullComponent } from './layouts/full/full.component';
import { authGuard } from './app.route.guard';
export const routes: Routes = [
{
@@ -17,13 +18,14 @@ export const routes: Routes = [
// 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: 'dashboard',
canActivate: [authGuard],
loadChildren: () =>
import('./pages/dashboard/dashboard.routes').then(
(m) => m.DashboardsRoutes
),
},
// {
// path: 'forms',
// loadChildren: () =>