feat: rehauled console (#3525)

* new console

* move npm ci to angular build

* rel path for assets

* local grpc copy

* login policy, rm clear views, features rel path

* lock

Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
Max Peintner
2022-04-28 10:35:02 +00:00
committed by GitHub
co-authored by Livio Amstutz
parent 00f7dbe875
commit 08ae39ae19
668 changed files with 47746 additions and 19117 deletions
@@ -1,7 +1,8 @@
import { HttpClient } from '@angular/common/http';
import { Component, Input, OnInit } from '@angular/core';
import { Component, Input } from '@angular/core';
import { App, AppState } from 'src/app/proto/generated/zitadel/app_pb';
import { IDP, IDPState } from 'src/app/proto/generated/zitadel/idp_pb';
import { Org, OrgState } from 'src/app/proto/generated/zitadel/org_pb';
import { GrantedProject, Project, ProjectGrantState, ProjectState } from 'src/app/proto/generated/zitadel/project_pb';
import { User, UserState } from 'src/app/proto/generated/zitadel/user_pb';
@Component({
@@ -9,30 +10,22 @@ import { User, UserState } from 'src/app/proto/generated/zitadel/user_pb';
templateUrl: './info-row.component.html',
styleUrls: ['./info-row.component.scss'],
})
export class InfoRowComponent implements OnInit {
export class InfoRowComponent {
@Input() public user!: User.AsObject;
@Input() public org!: Org.AsObject;
@Input() public app!: App.AsObject;
@Input() public idp!: IDP.AsObject;
@Input() public project!: Project.AsObject;
@Input() public grantedProject!: GrantedProject.AsObject;
public UserState: any = UserState;
public OrgState: any = OrgState;
public AppState: any = AppState;
public IDPState: any = IDPState;
public ProjectState: any = ProjectState;
public ProjectGrantState: any = ProjectGrantState;
public copied: string = '';
public environmentMap: { [key: string]: string; } = {};
constructor(private http: HttpClient) { }
ngOnInit(): void {
if (this.app) {
this.http.get('./assets/environment.json')
.toPromise().then((env: any) => {
this.environmentMap = {
issuer: env.issuer,
api: env.api,
};
});
}
}
constructor() {}
}