feat(console): domain verification, create org, regexp route guards, change org, iam member (#573)

* verification dialog, service

* i18n, verification dialog

* file saver

* savefile

* verify trigger

* delete project, i18n

* org create dialog

* org-create-self

* stylelint

* fix signout redirect

* rm unused dialog component, import

* project i18n de

* regexp roles

* use regex to check permissions

* border radius

* change validation flow

* update org member

* iam member change

* lint

* rm unused css

* Update console/src/assets/i18n/de.json

Co-authored-by: Fabi <[email protected]>

* Update console/src/assets/i18n/de.json

Co-authored-by: Fabi <[email protected]>

* change guard

Co-authored-by: Fabi <[email protected]>
This commit is contained in:
Max Peintner
2020-08-12 08:47:53 +02:00
committed by GitHub
co-authored by Fabi
parent 29831111ae
commit 65058ed17c
42 changed files with 757 additions and 255 deletions
+2 -3
View File
@@ -7,10 +7,9 @@ import { AuthService } from '../services/auth.service';
name: 'hasRole',
})
export class HasRolePipe implements PipeTransform {
constructor(private authService: AuthService) { }
public transform(values: string[], each: boolean = false): Observable<boolean> {
return this.authService.isAllowed(values, each);
public transform(values: string[]): Observable<boolean> {
return this.authService.isAllowed(values);
}
}
@@ -0,0 +1,18 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RegexpPipe } from './regexp.pipe';
@NgModule({
declarations: [
RegexpPipe,
],
imports: [
CommonModule,
],
exports: [
RegexpPipe,
],
})
export class RegExpPipeModule { }
+10
View File
@@ -0,0 +1,10 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'regexp',
})
export class RegexpPipe implements PipeTransform {
public transform(value: string): RegExp {
return new RegExp(value);
}
}