2020-05-13 14:41:43 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
fix(console): cleanup structure, role guard, paginated requests, cleanup policies, toast i18n, view timestamp, preloading strategy, maennchenfindings, fix passwordchange (#483)
* routes, move grid to list comopnent
* rename app list component, move to project sub
* add owned-project-detail child module
* seperate pipes
* set password validators only if needed
* create org initialize without pwd
* no caps
* self xss message
* fix user table
* fix project member paginator
* fix project members pagination, user grant pag
* move project grants, fix imports
* fix owned project detail imports
* use pipe and directives
* ng content bindings, rem custom schemas
* i18n, fix error toast parameter
* toast i18n
* side background
* fix: sequence, add timestamp
* audit
* fix metanav background
* org domain label
* cleanup policy component
* shorten user grant roles, mk cols visible as bind
* move user components, show otp only if available
* preload modules
* fix password change
* fix org create buttons
* class css
2020-07-16 15:13:36 +02:00
|
|
|
import { QuicklinkStrategy } from 'ngx-quicklink';
|
2020-05-13 14:41:43 +02:00
|
|
|
|
|
|
|
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',
|
2020-07-13 14:14:02 +02:00
|
|
|
canActivate: [AuthGuard],
|
fix(console): cleanup structure, role guard, paginated requests, cleanup policies, toast i18n, view timestamp, preloading strategy, maennchenfindings, fix passwordchange (#483)
* routes, move grid to list comopnent
* rename app list component, move to project sub
* add owned-project-detail child module
* seperate pipes
* set password validators only if needed
* create org initialize without pwd
* no caps
* self xss message
* fix user table
* fix project member paginator
* fix project members pagination, user grant pag
* move project grants, fix imports
* fix owned project detail imports
* use pipe and directives
* ng content bindings, rem custom schemas
* i18n, fix error toast parameter
* toast i18n
* side background
* fix: sequence, add timestamp
* audit
* fix metanav background
* org domain label
* cleanup policy component
* shorten user grant roles, mk cols visible as bind
* move user components, show otp only if available
* preload modules
* fix password change
* fix org create buttons
* class css
2020-07-16 15:13:36 +02:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'all',
|
|
|
|
loadChildren: () => import('src/app/pages/users/user-list/user-list.module')
|
|
|
|
.then(m => m.UserListModule),
|
|
|
|
canActivate: [RoleGuard],
|
|
|
|
data: {
|
|
|
|
roles: ['user.read'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
loadChildren: () => import('src/app/pages/users/user-detail/user-detail.module')
|
|
|
|
.then(m => m.UserDetailModule),
|
|
|
|
},
|
|
|
|
],
|
2020-05-13 14:41:43 +02:00
|
|
|
},
|
2020-06-25 12:52:57 +02:00
|
|
|
{
|
|
|
|
path: 'iam',
|
|
|
|
loadChildren: () => import('./pages/iam/iam.module').then(m => m.IamModule),
|
|
|
|
canActivate: [AuthGuard, RoleGuard],
|
|
|
|
data: {
|
fix(console): cleanup structure, role guard, paginated requests, cleanup policies, toast i18n, view timestamp, preloading strategy, maennchenfindings, fix passwordchange (#483)
* routes, move grid to list comopnent
* rename app list component, move to project sub
* add owned-project-detail child module
* seperate pipes
* set password validators only if needed
* create org initialize without pwd
* no caps
* self xss message
* fix user table
* fix project member paginator
* fix project members pagination, user grant pag
* move project grants, fix imports
* fix owned project detail imports
* use pipe and directives
* ng content bindings, rem custom schemas
* i18n, fix error toast parameter
* toast i18n
* side background
* fix: sequence, add timestamp
* audit
* fix metanav background
* org domain label
* cleanup policy component
* shorten user grant roles, mk cols visible as bind
* move user components, show otp only if available
* preload modules
* fix password change
* fix org create buttons
* class css
2020-07-16 15:13:36 +02:00
|
|
|
roles: ['iam.read', 'iam.write'],
|
2020-06-25 12:52:57 +02:00
|
|
|
},
|
|
|
|
},
|
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-01 17:48:34 +02:00
|
|
|
{
|
|
|
|
path: 'grant-create',
|
fix(console): cleanup structure, role guard, paginated requests, cleanup policies, toast i18n, view timestamp, preloading strategy, maennchenfindings, fix passwordchange (#483)
* routes, move grid to list comopnent
* rename app list component, move to project sub
* add owned-project-detail child module
* seperate pipes
* set password validators only if needed
* create org initialize without pwd
* no caps
* self xss message
* fix user table
* fix project member paginator
* fix project members pagination, user grant pag
* move project grants, fix imports
* fix owned project detail imports
* use pipe and directives
* ng content bindings, rem custom schemas
* i18n, fix error toast parameter
* toast i18n
* side background
* fix: sequence, add timestamp
* audit
* fix metanav background
* org domain label
* cleanup policy component
* shorten user grant roles, mk cols visible as bind
* move user components, show otp only if available
* preload modules
* fix password change
* fix org create buttons
* class css
2020-07-16 15:13:36 +02:00
|
|
|
canActivate: [AuthGuard],
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'project/:projectid/grant/:grantid',
|
|
|
|
loadChildren: () => import('src/app/pages/user-grant-create/user-grant-create.module')
|
|
|
|
.then(m => m.UserGrantCreateModule),
|
|
|
|
canActivate: [RoleGuard],
|
|
|
|
data: {
|
|
|
|
roles: ['project.grant.user.grant.write'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'project/:projectid',
|
|
|
|
loadChildren: () => import('src/app/pages/user-grant-create/user-grant-create.module')
|
|
|
|
.then(m => m.UserGrantCreateModule),
|
|
|
|
canActivate: [RoleGuard],
|
|
|
|
data: {
|
|
|
|
roles: ['project.user.grant.write'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2020-07-01 17:48:34 +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({
|
fix(console): cleanup structure, role guard, paginated requests, cleanup policies, toast i18n, view timestamp, preloading strategy, maennchenfindings, fix passwordchange (#483)
* routes, move grid to list comopnent
* rename app list component, move to project sub
* add owned-project-detail child module
* seperate pipes
* set password validators only if needed
* create org initialize without pwd
* no caps
* self xss message
* fix user table
* fix project member paginator
* fix project members pagination, user grant pag
* move project grants, fix imports
* fix owned project detail imports
* use pipe and directives
* ng content bindings, rem custom schemas
* i18n, fix error toast parameter
* toast i18n
* side background
* fix: sequence, add timestamp
* audit
* fix metanav background
* org domain label
* cleanup policy component
* shorten user grant roles, mk cols visible as bind
* move user components, show otp only if available
* preload modules
* fix password change
* fix org create buttons
* class css
2020-07-16 15:13:36 +02:00
|
|
|
imports: [
|
|
|
|
RouterModule.forRoot(
|
|
|
|
routes,
|
|
|
|
{
|
|
|
|
preloadingStrategy: QuicklinkStrategy,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
2020-05-13 14:41:43 +02:00
|
|
|
exports: [RouterModule],
|
|
|
|
})
|
|
|
|
export class AppRoutingModule { }
|