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
This commit is contained in:
Max Peintner
2020-07-16 15:13:36 +02:00
committed by GitHub
parent 2a3ecc0c6a
commit 4f3ccbfad0
125 changed files with 807 additions and 614 deletions
@@ -0,0 +1,18 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { HasRolePipe } from './has-role.pipe';
@NgModule({
declarations: [
HasRolePipe,
],
imports: [
CommonModule,
],
exports: [
HasRolePipe,
],
})
export class HasRolePipeModule { }
+2 -2
View File
@@ -1,16 +1,16 @@
import { Pipe, PipeTransform } from '@angular/core';
import { Observable } from 'rxjs';
import { AuthUserService } from '../services/auth-user.service';
@Pipe({
name: 'hasRole',
pure: false,
})
export class HasRolePipe implements PipeTransform {
constructor(private authUserService: AuthUserService) { }
public transform(values: string[], each: boolean = false): any {
public transform(values: string[], each: boolean = false): Observable<boolean> {
return this.authUserService.isAllowed(values, each);
}
}
@@ -2,16 +2,12 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { MomentModule } from 'ngx-moment';
import { HasRolePipe } from './has-role.pipe';
import { LocalizedDatePipe } from './localized-date.pipe';
import { TimestampToDatePipe } from './timestamp-to-date.pipe';
@NgModule({
declarations: [
LocalizedDatePipe,
TimestampToDatePipe,
HasRolePipe,
],
imports: [
CommonModule,
@@ -19,8 +15,6 @@ import { TimestampToDatePipe } from './timestamp-to-date.pipe';
],
exports: [
LocalizedDatePipe,
TimestampToDatePipe,
HasRolePipe,
],
})
export class PipesModule { }
export class LocalizedDatePipeModule { }
@@ -4,7 +4,6 @@ import { TranslateService } from '@ngx-translate/core';
@Pipe({
name: 'localizedDate',
pure: false,
})
export class LocalizedDatePipe implements PipeTransform {
@@ -0,0 +1,18 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { TimestampToDatePipe } from './timestamp-to-date.pipe';
@NgModule({
declarations: [
TimestampToDatePipe,
],
imports: [
CommonModule,
],
exports: [
TimestampToDatePipe,
],
})
export class TimestampToDatePipeModule { }