feat(console): split granted from owned project modules, general ui ux fixes (#286)

* add iam label, user avatar

* avatar component

* split granted and owned modules

* move components to resp module

* refactor project contributors, g project nav

* rem console logs, add avatar for org members

* fix changes loading, auth user page

* refactor home, i18n

* fix changes side overflow

* lint
This commit is contained in:
Max Peintner
2020-06-26 14:15:05 +02:00
committed by GitHub
parent ee73dc07dd
commit 0a488eb1fb
141 changed files with 1133 additions and 742 deletions
@@ -10,8 +10,6 @@ export class AuthInterceptorService implements HttpInterceptor {
constructor() { }
public intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
console.log(req.url);
return next.handle(req);
}
}
@@ -121,7 +121,6 @@ export class AuthUserService {
if (preferredLanguage) {
req.setPreferredLanguage(preferredLanguage);
}
console.log(req.toObject());
return await this.request(
c => c.updateMyUserProfile,
req,
@@ -145,9 +144,9 @@ export class AuthUserService {
);
}
public async SaveMyUserEmail(email: UserEmail.AsObject): Promise<UserEmail> {
public async SaveMyUserEmail(email: string): Promise<UserEmail> {
const req = new UpdateUserEmailRequest();
req.setEmail(email.email);
req.setEmail(email);
return await this.request(
c => c.changeMyUserEmail,
req,
@@ -185,9 +184,9 @@ export class AuthUserService {
);
}
public async SaveMyUserPhone(phone: UserPhone.AsObject): Promise<UserPhone> {
public async SaveMyUserPhone(phone: string): Promise<UserPhone> {
const req = new UpdateUserPhoneRequest();
req.setPhone(phone.phone);
req.setPhone(phone);
return await this.request(
c => c.changeMyUserPhone,
req,
@@ -297,7 +296,6 @@ export class AuthUserService {
userRoles = ['user.resourceowner'];
}
this._roleCache = userRoles;
console.log(roles);
return of(this.hasRoles(userRoles, roles, each));
}),
);
-2
View File
@@ -65,8 +65,6 @@ export class AuthService {
this.config.issuer = config?.issuer || this.grpcService.issuer;
this.config.clientId = config?.clientId || this.grpcService.clientid;
this.config.customQueryParams = config?.customQueryParams;
console.log(this.config);
this.oauthService.configure(this.config);
// this.oauthService.setupAutomaticSilentRefresh();
this.oauthService.strictDiscoveryDocumentValidation = false;
-1
View File
@@ -31,7 +31,6 @@ export class GrpcService {
this.issuer = data.issuer;
if (data.clientid) {
console.log(data.clientid);
this.clientid = data.clientid;
}
}