2020-05-13 14:41:43 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
|
|
|
|
import { AuthGuard } from './guards/auth.guard';
|
|
|
|
import { RoleGuard } from './guards/role.guard';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
loadChildren: () => import('./pages/home/home.module').then(m => m.HomeModule),
|
|
|
|
canActivate: [AuthGuard],
|
|
|
|
},
|
2020-06-26 14:15:05 +02:00
|
|
|
{
|
|
|
|
path: 'granted-projects',
|
feat(console): pinned org list, project grant detail view, state change, i18n, domain dialog, policy refactor, theme fixes, refactor user and projects (#449)
* pinned organisations
* project grant detail, state update, user-list pad
* rm entry components
* members nav, i18n, disable actions on non active
* add org domain dialog
* mv password policy rm to detail view
* prefix pinned orgs for userid, fix collapsed pad
* fix app back navigation
* rem pwd required validator
* fix org item overflow
* routing
* move users modules to users page
* reorganize projects
* remove child init of translate
* hide same preferred loginname
2020-07-13 13:38:49 +02:00
|
|
|
loadChildren: () => import('./pages/projects/granted-projects/granted-projects.module')
|
|
|
|
.then(m => m.GrantedProjectsModule),
|
2020-06-26 14:15:05 +02:00
|
|
|
canActivate: [AuthGuard, RoleGuard],
|
|
|
|
data: {
|
|
|
|
roles: ['project.read'],
|
|
|
|
},
|
|
|
|
},
|
2020-05-13 14:41:43 +02:00
|
|
|
{
|
|
|
|
path: 'projects',
|
feat(console): pinned org list, project grant detail view, state change, i18n, domain dialog, policy refactor, theme fixes, refactor user and projects (#449)
* pinned organisations
* project grant detail, state update, user-list pad
* rm entry components
* members nav, i18n, disable actions on non active
* add org domain dialog
* mv password policy rm to detail view
* prefix pinned orgs for userid, fix collapsed pad
* fix app back navigation
* rem pwd required validator
* fix org item overflow
* routing
* move users modules to users page
* reorganize projects
* remove child init of translate
* hide same preferred loginname
2020-07-13 13:38:49 +02:00
|
|
|
loadChildren: () => import('./pages/projects/owned-projects/owned-projects.module')
|
|
|
|
.then(m => m.OwnedProjectsModule),
|
2020-05-13 14:41:43 +02:00
|
|
|
canActivate: [AuthGuard, RoleGuard],
|
|
|
|
data: {
|
|
|
|
roles: ['project.read'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'users',
|
feat(console): pinned org list, project grant detail view, state change, i18n, domain dialog, policy refactor, theme fixes, refactor user and projects (#449)
* pinned organisations
* project grant detail, state update, user-list pad
* rm entry components
* members nav, i18n, disable actions on non active
* add org domain dialog
* mv password policy rm to detail view
* prefix pinned orgs for userid, fix collapsed pad
* fix app back navigation
* rem pwd required validator
* fix org item overflow
* routing
* move users modules to users page
* reorganize projects
* remove child init of translate
* hide same preferred loginname
2020-07-13 13:38:49 +02:00
|
|
|
loadChildren: () => import('./pages/users/users.module').then(m => m.UsersModule),
|
2020-05-13 14:41:43 +02:00
|
|
|
canActivate: [AuthGuard, RoleGuard],
|
|
|
|
data: {
|
|
|
|
roles: ['user.read'],
|
|
|
|
},
|
|
|
|
},
|
2020-06-25 12:52:57 +02:00
|
|
|
{
|
|
|
|
path: 'iam',
|
|
|
|
loadChildren: () => import('./pages/iam/iam.module').then(m => m.IamModule),
|
|
|
|
canActivate: [AuthGuard, RoleGuard],
|
|
|
|
data: {
|
|
|
|
roles: ['iam.read'],
|
|
|
|
},
|
|
|
|
},
|
2020-05-13 14:41:43 +02:00
|
|
|
{
|
2020-06-23 18:56:29 +02:00
|
|
|
path: 'org',
|
2020-05-13 14:41:43 +02:00
|
|
|
loadChildren: () => import('./pages/orgs/orgs.module').then(m => m.OrgsModule),
|
|
|
|
canActivate: [AuthGuard, RoleGuard],
|
|
|
|
data: {
|
|
|
|
roles: ['org.read'],
|
|
|
|
},
|
|
|
|
},
|
2020-07-06 16:17:06 +02:00
|
|
|
{
|
|
|
|
path: 'grant-create/project/:projectid/grant/:grantid',
|
|
|
|
loadChildren: () => import('src/app/pages/user-grant-create/user-grant-create.module')
|
|
|
|
.then(m => m.UserGrantCreateModule),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'grant-create/project/:projectid',
|
|
|
|
loadChildren: () => import('src/app/pages/user-grant-create/user-grant-create.module')
|
|
|
|
.then(m => m.UserGrantCreateModule),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'grant-create/user/:userid',
|
|
|
|
loadChildren: () => import('src/app/pages/user-grant-create/user-grant-create.module')
|
|
|
|
.then(m => m.UserGrantCreateModule),
|
|
|
|
},
|
2020-07-01 17:48:34 +02:00
|
|
|
{
|
|
|
|
path: 'grant-create',
|
|
|
|
loadChildren: () => import('src/app/pages/user-grant-create/user-grant-create.module')
|
|
|
|
.then(m => m.UserGrantCreateModule),
|
|
|
|
},
|
2020-07-06 16:17:06 +02:00
|
|
|
|
2020-05-13 14:41:43 +02:00
|
|
|
{
|
|
|
|
path: 'signedout',
|
|
|
|
loadChildren: () => import('./pages/signedout/signedout.module').then(m => m.SignedoutModule),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: '/',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forRoot(routes)],
|
|
|
|
exports: [RouterModule],
|
|
|
|
})
|
|
|
|
export class AppRoutingModule { }
|