-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.routes.ts
More file actions
89 lines (86 loc) · 3.27 KB
/
app.routes.ts
File metadata and controls
89 lines (86 loc) · 3.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// Copyright The Linux Foundation and each contributor to LFX.
// SPDX-License-Identifier: MIT
import { Routes } from '@angular/router';
import { authGuard } from './shared/guards/auth.guard';
export const routes: Routes = [
{
path: '',
canActivate: [authGuard],
loadComponent: () => import('./layouts/main-layout/main-layout.component').then((m) => m.MainLayoutComponent),
children: [
// Me Lens dashboard (root route)
{
path: '',
pathMatch: 'full',
data: { lens: 'me' },
loadComponent: () => import('./modules/dashboards/dashboard.component').then((m) => m.DashboardComponent),
},
// Foundation Lens dashboard (placeholder — reuses DashboardComponent for now)
{
path: 'foundation/overview',
data: { lens: 'foundation' },
loadComponent: () => import('./modules/dashboards/dashboard.component').then((m) => m.DashboardComponent),
},
// Project Lens dashboard (placeholder — reuses DashboardComponent for now)
{
path: 'project/overview',
data: { lens: 'project' },
loadComponent: () => import('./modules/dashboards/dashboard.component').then((m) => m.DashboardComponent),
},
// Org Lens dashboard (placeholder — reuses DashboardComponent for now)
{
path: 'org',
data: { lens: 'org' },
loadComponent: () => import('./modules/dashboards/dashboard.component').then((m) => m.DashboardComponent),
},
{
path: 'meetings',
loadChildren: () => import('./modules/meetings/meetings.routes').then((m) => m.MEETING_ROUTES),
},
{
path: 'groups',
loadChildren: () => import('./modules/committees/committees.routes').then((m) => m.COMMITTEE_ROUTES),
},
{
path: 'mailing-lists',
loadChildren: () => import('./modules/mailing-lists/mailing-lists.routes').then((m) => m.MAILING_LIST_ROUTES),
},
{
path: 'my-activity',
loadChildren: () => import('./modules/my-activity/my-activity.routes').then((m) => m.MY_ACTIVITY_ROUTES),
},
{
path: 'votes',
loadChildren: () => import('./modules/votes/votes.routes').then((m) => m.VOTE_ROUTES),
},
{
path: 'surveys',
loadChildren: () => import('./modules/surveys/surveys.routes').then((m) => m.SURVEY_ROUTES),
},
{
path: 'settings',
loadChildren: () => import('./modules/settings/settings.routes').then((m) => m.SETTINGS_ROUTES),
},
{
path: 'profile',
loadChildren: () => import('./modules/profile/profile.routes').then((m) => m.PROFILE_ROUTES),
},
{
path: 'me/training',
loadChildren: () => import('./modules/trainings/trainings.routes').then((m) => m.TRAINING_ROUTES),
},
{
path: 'events',
loadChildren: () => import('./modules/events/events.routes').then((m) => m.EVENTS_ROUTES),
},
],
},
{
path: 'meetings/not-found',
loadComponent: () => import('./modules/meetings/meeting-not-found/meeting-not-found.component').then((m) => m.MeetingNotFoundComponent),
},
{
path: 'meetings/:id',
loadComponent: () => import('./modules/meetings/meeting-join/meeting-join.component').then((m) => m.MeetingJoinComponent),
},
];