Revision 58098
Added by Stefania Martziou about 4 years ago
app-routing.module.ts | ||
---|---|---|
2 | 2 |
import { NgModule } from '@angular/core'; |
3 | 3 |
import { LandingComponent } from './pages/landing/landing.component'; |
4 | 4 |
import { AuthGuardService } from './services/auth-guard.service'; |
5 |
import { DashboardComponent } from './pages/dashboard/dashboard.component'; |
|
5 |
import { DashboardComponent } from './pages/repository/dashboard/dashboard.component';
|
|
6 | 6 |
import { ForbiddenPageComponent } from './shared/reusablecomponents/403-forbidden-page.component'; |
7 |
import {EmptyPageComponent} from "./pages/emptypage/empty-page.component"; |
|
7 | 8 |
|
8 | 9 |
const appRoutes: Routes = [ |
9 | 10 |
{ |
... | ... | |
16 | 17 |
component: LandingComponent |
17 | 18 |
}, |
18 | 19 |
{ |
19 |
path: 'dashboard',
|
|
20 |
component: DashboardComponent,
|
|
20 |
path: 'emptyPage',
|
|
21 |
component: EmptyPageComponent,
|
|
21 | 22 |
canActivate: [AuthGuardService] |
22 | 23 |
}, |
23 | 24 |
{ |
25 |
path: 'repository', |
|
26 |
loadChildren: './pages/repository/repository.module#RepositoryModule', |
|
27 |
// loadChildren: () => import('./pages/repository/repository.module').then(m => m.RepositoryModule), |
|
28 |
canActivate: [AuthGuardService] |
|
29 |
}, |
|
30 |
|
|
31 |
|
|
32 |
// { |
|
33 |
// path: 'dashboard', |
|
34 |
// component: DashboardComponent, |
|
35 |
// canActivate: [AuthGuardService] |
|
36 |
// }, |
|
37 |
{ |
|
24 | 38 |
path: 'sources', |
25 | 39 |
loadChildren: './pages/sources/sources.module#SourcesModule', |
26 | 40 |
canActivate: [AuthGuardService] |
... | ... | |
34 | 48 |
loadChildren: './pages/content/content.module#ContentModule', |
35 | 49 |
canActivate: [AuthGuardService] |
36 | 50 |
}, |
51 |
// { |
|
52 |
// path: 'getImpact', |
|
53 |
// loadChildren: './pages/metrics/metrics.module#MetricsModule', |
|
54 |
// canActivate: [AuthGuardService] |
|
55 |
// }, |
|
37 | 56 |
{ |
38 |
path: 'getImpact', |
|
39 |
loadChildren: './pages/metrics/metrics.module#MetricsModule', |
|
40 |
canActivate: [AuthGuardService] |
|
41 |
}, |
|
42 |
{ |
|
43 | 57 |
path: 'admin', |
44 | 58 |
loadChildren: './pages/adminPg/adminPg.module#AdminPgModule', |
45 | 59 |
}, |
... | ... | |
47 | 61 |
path: '403-forbidden', |
48 | 62 |
component: ForbiddenPageComponent |
49 | 63 |
}, |
64 |
// { |
|
65 |
// path: '', |
|
66 |
// redirectTo: '/landing', |
|
67 |
// pathMatch: 'full' |
|
68 |
// }, |
|
50 | 69 |
{ |
70 |
//fixme redirect to 404 |
|
51 | 71 |
path: '**', |
52 |
redirectTo: '/landing' |
|
72 |
redirectTo: '/403-forbidden', |
|
73 |
// component: ForbiddenPageComponent |
|
53 | 74 |
} |
54 | 75 |
]; |
55 | 76 |
|
Also available in: Unified diff
Second commit for the new layout provided by the UX team