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 <livio.a@gmail.com>
This commit is contained in:
Max Peintner
2022-04-28 12:35:02 +02:00
committed by GitHub
parent 00f7dbe875
commit 08ae39ae19
668 changed files with 47747 additions and 19118 deletions

View File

@@ -167,7 +167,7 @@ export class GrpcAuthService {
} else {
let orgs = this.cachedOrgs;
if (orgs.length === 0) {
orgs = (await this.listMyProjectOrgs(10, 0)).resultList;
orgs = (await this.listMyProjectOrgs()).resultList;
this.cachedOrgs = orgs;
}
@@ -310,22 +310,24 @@ export class GrpcAuthService {
}
public listMyProjectOrgs(
limit: number,
offset: number,
limit?: number,
offset?: number,
queryList?: OrgQuery[],
): Promise<ListMyProjectOrgsResponse.AsObject> {
const req = new ListMyProjectOrgsRequest();
const metadata = new ListQuery();
const query = new ListQuery();
if (offset) {
metadata.setOffset(offset);
query.setOffset(offset);
}
if (limit) {
metadata.setLimit(limit);
query.setLimit(limit);
}
if (queryList) {
req.setQueriesList(queryList);
}
req.setQuery(query);
return this.grpcService.auth.listMyProjectOrgs(req, null).then((resp) => resp.toObject());
}