2020-06-16 14:52:07 +02:00
|
|
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
2020-05-13 14:41:43 +02:00
|
|
|
import { OverlayContainer } from '@angular/cdk/overlay';
|
2020-09-29 13:21:40 +02:00
|
|
|
import { DOCUMENT, ViewportScroller } from '@angular/common';
|
feat(console): organization overview table, table, org context filtering, fix grpc error log, cleanup pipes (#796)
* chore(deps-dev): bump @angular/cli from 10.0.8 to 10.1.3 in /console (#785)
Bumps [@angular/cli](https://github.com/angular/angular-cli) from 10.0.8 to 10.1.3.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v10.0.8...v10.1.3)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @angular-devkit/build-angular in /console (#784)
Bumps [@angular-devkit/build-angular](https://github.com/angular/angular-cli) from 0.1000.8 to 0.1001.3.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/commits)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#783)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 10.1.0 to 10.1.3.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/10.1.3/packages/language-service)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump stylelint from 13.7.1 to 13.7.2 in /console (#782)
Bumps [stylelint](https://github.com/stylelint/stylelint) from 13.7.1 to 13.7.2.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/13.7.1...13.7.2)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump karma from 5.2.1 to 5.2.3 in /console (#781)
Bumps [karma](https://github.com/karma-runner/karma) from 5.2.1 to 5.2.3.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v5.2.1...v5.2.3)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump moment from 2.27.0 to 2.29.0 in /console (#780)
Bumps [moment](https://github.com/moment/moment) from 2.27.0 to 2.29.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.27.0...2.29.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.6.4 to 14.11.2 in /console (#778)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.6.4 to 14.11.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.1.1 to 2.1.2 in /console (#757)
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.1...2.1.2)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ts-protoc-gen from 0.12.0 to 0.13.0 in /console (#737)
Bumps [ts-protoc-gen](https://github.com/improbable-eng/ts-protoc-gen) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/improbable-eng/ts-protoc-gen/releases)
- [Changelog](https://github.com/improbable-eng/ts-protoc-gen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/improbable-eng/ts-protoc-gen/compare/0.12.0...0.13.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump jasmine-spec-reporter in /console (#762)
Bumps [jasmine-spec-reporter](https://github.com/bcaudan/jasmine-spec-reporter) from 5.0.2 to 6.0.0.
- [Release notes](https://github.com/bcaudan/jasmine-spec-reporter/releases)
- [Changelog](https://github.com/bcaudan/jasmine-spec-reporter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcaudan/jasmine-spec-reporter/compare/v5.0.2...v6.0.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* fix: package
* change html lang to translation lang
* disable detail view org idp
* catch errorcode 16 in auth response interceptor
* new icons
* refactor pipes, idp table config
* fix router guard
* lint
* allowed commonjs deps
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* clear table warning
* org overview table, header filter
* toolbar filter
* user table filter
* fix org filter themed color, reject error
* org context filter
* button cleanup
* commonjs deps, remove a11y module
* replace progressbar with spinner
* dynamic user, org filter
* ts lint, scss lint
* cleanup table, row highlighting
* lint
* fix i18n description, refresh idp list in login p
* remove async from grpc services, fix external idp
* remove external idp
* fix theme toggle
* change iam policy header i18n
* sticky action columns
* lint
* add i18n filter to user, remove unused org code
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-10-01 15:53:43 +02:00
|
|
|
import { Component, ElementRef, HostBinding, Inject, OnDestroy, ViewChild } from '@angular/core';
|
2020-10-16 16:42:22 +02:00
|
|
|
import { FormControl } from '@angular/forms';
|
2020-05-13 14:41:43 +02:00
|
|
|
import { MatIconRegistry } from '@angular/material/icon';
|
|
|
|
import { MatDrawer } from '@angular/material/sidenav';
|
|
|
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
|
|
import { Router, RouterOutlet } from '@angular/router';
|
2020-09-29 13:21:40 +02:00
|
|
|
import { LangChangeEvent, TranslateService } from '@ngx-translate/core';
|
2020-10-16 16:42:22 +02:00
|
|
|
import { BehaviorSubject, from, Observable, of, Subscription } from 'rxjs';
|
|
|
|
import { catchError, debounceTime, finalize, map, take } from 'rxjs/operators';
|
2020-05-13 14:41:43 +02:00
|
|
|
|
fix(console): formfield changes and ux (#1020)
* cnsl-formfield, cnsl-label, cnsl-input, ch prefix
* create user cnsl-fields, add cnsl-error
* replace user forms with cnsl-fields
* replace all other occurrences of mat-form-field with cnsl-fields
* improve hover, active, focus behavior, headlin styling
* user-grant refactor
* style cleanup
* stylelint
* fix detail layout flexstart, user table header
* input dir
* error, input directives instead components, on blur handler
* error directive, formfield content children
* formfield control directive
* use new field for new contact dialog
* formfield hint, error directive, scss
* hint or error binding, animation after view init
* avatar changes, policy header
* style lint
* lint
* input control within formfield, errorstatematcher
* use matformcontrol to merge with selects
* member table min width, lint
* lint
* implement from matformcontrol insteat custom, add selector
* find error
* add focus listener
* labelfloat
* fix input directive
* renaming
* rm logs
* user search overflow, org create i18n, meta cleanup
* sidenav shadow
* redirect to org table
* lint
* lint test files
* remove usage of formfieldmodule, use input module, layout optim
* replace formfieldmodule usage with inputmodule
* lint input dir, scss
* user grant, user table optimisations
* reorganize sidenav, project table empty, tooltips, avatar ch
* user grant tooltips, form field error directive accessor
* checkbox overflow fix, table dateblock, i18n tooltips
* app placeholder, i18n, optimize mobile layout
* change refresh table order, i18n, redirect chips
* stylelint
* chore(deps-dev): bump stylelint from 13.7.2 to 13.8.0 in /console (#1007)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump stylelint from 13.7.2 to 13.8.0 in /console
Bumps [stylelint](https://github.com/stylelint/stylelint) from 13.7.2 to 13.8.0.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/13.7.2...13.8.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @angular/cli from 11.0.1 to 11.0.2 in /console (#1006)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump @angular/cli from 11.0.1 to 11.0.2 in /console
Bumps [@angular/cli](https://github.com/angular/angular-cli) from 11.0.1 to 11.0.2.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v11.0.1...v11.0.2)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump google-proto-files from 2.2.0 to 2.3.0 in /console (#1005)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps): bump google-proto-files from 2.2.0 to 2.3.0 in /console
Bumps [google-proto-files](https://github.com/googleapis/nodejs-proto-files) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/googleapis/nodejs-proto-files/releases)
- [Changelog](https://github.com/googleapis/nodejs-proto-files/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/nodejs-proto-files/compare/v2.2.0...v2.3.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.14.6 to 14.14.9 in /console (#1004)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump @types/node from 14.14.6 to 14.14.9 in /console
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.6 to 14.14.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @angular/language-service from 11.0.0 to 11.0.2 in /console (#999)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump @angular/language-service in /console
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 11.0.0 to 11.0.2.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/11.0.2/packages/language-service)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @angular-devkit/build-angular from 0.1100.1 to 0.1100.2 in /console (#1003)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump @angular-devkit/build-angular in /console
Bumps [@angular-devkit/build-angular](https://github.com/angular/angular-cli) from 0.1100.1 to 0.1100.2.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/commits)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump prettier from 2.1.2 to 2.2.0 in /console (#1002)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump prettier from 2.1.2 to 2.2.0 in /console
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.2 to 2.2.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.2...2.2.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/jasmine from 3.6.1 to 3.6.2 in /console (#1001)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump @types/jasmine from 3.6.1 to 3.6.2 in /console
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.1 to 3.6.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps): bump file-saver from 2.0.2 to 2.0.5 in /console (#1000)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps): bump file-saver from 2.0.2 to 2.0.5 in /console
Bumps [file-saver](https://github.com/eligrey/FileSaver.js) from 2.0.2 to 2.0.5.
- [Release notes](https://github.com/eligrey/FileSaver.js/releases)
- [Changelog](https://github.com/eligrey/FileSaver.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eligrey/FileSaver.js/commits)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump jasmine-spec-reporter in /console (#974)
Bumps [jasmine-spec-reporter](https://github.com/bcaudan/jasmine-spec-reporter) from 5.0.2 to 6.0.0.
- [Release notes](https://github.com/bcaudan/jasmine-spec-reporter/releases)
- [Changelog](https://github.com/bcaudan/jasmine-spec-reporter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcaudan/jasmine-spec-reporter/compare/v5.0.2...v6.0.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* input field border improvements, primary color
* redirect form, conventional ux
* redirects inputs on app create
* fix dynamic suffix padding, user grant layout, lint
* input style accessor, contact view optim, ext idp, card fixes
* hide error on untouched formfield, border red on error touched
* fix change detector
* change, user, form validation, delete refresh
* safari font weight adjustment, change refresh emitter
* key validation
* remove tabls layout from projects
* app changes, refactor project, app state, meta layout
* add key dialog validation, startdate, rever change tabs
* stylelint
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* finnaly fix fckntimestamp picker
* optional key expiry
* small state badge
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-11-25 16:53:14 +01:00
|
|
|
import { accountCard, adminLineAnimation, navAnimations, routeAnimations, toolbarAnimation } from './animations';
|
feat(console): organization overview table, table, org context filtering, fix grpc error log, cleanup pipes (#796)
* chore(deps-dev): bump @angular/cli from 10.0.8 to 10.1.3 in /console (#785)
Bumps [@angular/cli](https://github.com/angular/angular-cli) from 10.0.8 to 10.1.3.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v10.0.8...v10.1.3)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @angular-devkit/build-angular in /console (#784)
Bumps [@angular-devkit/build-angular](https://github.com/angular/angular-cli) from 0.1000.8 to 0.1001.3.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/commits)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#783)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 10.1.0 to 10.1.3.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/10.1.3/packages/language-service)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump stylelint from 13.7.1 to 13.7.2 in /console (#782)
Bumps [stylelint](https://github.com/stylelint/stylelint) from 13.7.1 to 13.7.2.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/13.7.1...13.7.2)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump karma from 5.2.1 to 5.2.3 in /console (#781)
Bumps [karma](https://github.com/karma-runner/karma) from 5.2.1 to 5.2.3.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v5.2.1...v5.2.3)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump moment from 2.27.0 to 2.29.0 in /console (#780)
Bumps [moment](https://github.com/moment/moment) from 2.27.0 to 2.29.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.27.0...2.29.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.6.4 to 14.11.2 in /console (#778)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.6.4 to 14.11.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.1.1 to 2.1.2 in /console (#757)
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.1...2.1.2)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ts-protoc-gen from 0.12.0 to 0.13.0 in /console (#737)
Bumps [ts-protoc-gen](https://github.com/improbable-eng/ts-protoc-gen) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/improbable-eng/ts-protoc-gen/releases)
- [Changelog](https://github.com/improbable-eng/ts-protoc-gen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/improbable-eng/ts-protoc-gen/compare/0.12.0...0.13.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump jasmine-spec-reporter in /console (#762)
Bumps [jasmine-spec-reporter](https://github.com/bcaudan/jasmine-spec-reporter) from 5.0.2 to 6.0.0.
- [Release notes](https://github.com/bcaudan/jasmine-spec-reporter/releases)
- [Changelog](https://github.com/bcaudan/jasmine-spec-reporter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcaudan/jasmine-spec-reporter/compare/v5.0.2...v6.0.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* fix: package
* change html lang to translation lang
* disable detail view org idp
* catch errorcode 16 in auth response interceptor
* new icons
* refactor pipes, idp table config
* fix router guard
* lint
* allowed commonjs deps
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* clear table warning
* org overview table, header filter
* toolbar filter
* user table filter
* fix org filter themed color, reject error
* org context filter
* button cleanup
* commonjs deps, remove a11y module
* replace progressbar with spinner
* dynamic user, org filter
* ts lint, scss lint
* cleanup table, row highlighting
* lint
* fix i18n description, refresh idp list in login p
* remove async from grpc services, fix external idp
* remove external idp
* fix theme toggle
* change iam policy header i18n
* sticky action columns
* lint
* add i18n filter to user, remove unused org code
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-10-01 15:53:43 +02:00
|
|
|
import {
|
|
|
|
MyProjectOrgSearchKey,
|
|
|
|
MyProjectOrgSearchQuery,
|
|
|
|
Org,
|
|
|
|
SearchMethod,
|
|
|
|
UserProfileView,
|
|
|
|
} from './proto/generated/auth_pb';
|
2020-08-29 10:43:35 +02:00
|
|
|
import { AuthenticationService } from './services/authentication.service';
|
|
|
|
import { GrpcAuthService } from './services/grpc-auth.service';
|
|
|
|
import { ManagementService } from './services/mgmt.service';
|
2020-05-13 14:41:43 +02:00
|
|
|
import { ThemeService } from './services/theme.service';
|
|
|
|
import { UpdateService } from './services/update.service';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-root',
|
|
|
|
templateUrl: './app.component.html',
|
|
|
|
styleUrls: ['./app.component.scss'],
|
|
|
|
animations: [
|
fix(console): hide granted project navigation if none, cache zitadel permissions, emit refresh on org change, cleanup contributors, styling (#511)
* fix iam member model
* fix org member model
* fix auth user loading
* copytoclipboard directive
* directive logs, load bar on init, create user
* typo
* welcome section, contributor spinner
* fix home link
* fix stepper flow
* show dialog on invalid token
* fix app table refresh, pin icons light theme
* cleanup contributor
* inherit parent color, animations
* use localized date pipe everywhere
* cmp styles refactor, dont show granted p if none
* fix navitem desc, fixed header
* change permissions, caching
* roles on org emit, use prom instead of hot obs
* dont calc 100vh
2020-07-28 09:09:18 +02:00
|
|
|
toolbarAnimation,
|
|
|
|
...navAnimations,
|
|
|
|
accountCard,
|
|
|
|
routeAnimations,
|
fix(console): formfield changes and ux (#1020)
* cnsl-formfield, cnsl-label, cnsl-input, ch prefix
* create user cnsl-fields, add cnsl-error
* replace user forms with cnsl-fields
* replace all other occurrences of mat-form-field with cnsl-fields
* improve hover, active, focus behavior, headlin styling
* user-grant refactor
* style cleanup
* stylelint
* fix detail layout flexstart, user table header
* input dir
* error, input directives instead components, on blur handler
* error directive, formfield content children
* formfield control directive
* use new field for new contact dialog
* formfield hint, error directive, scss
* hint or error binding, animation after view init
* avatar changes, policy header
* style lint
* lint
* input control within formfield, errorstatematcher
* use matformcontrol to merge with selects
* member table min width, lint
* lint
* implement from matformcontrol insteat custom, add selector
* find error
* add focus listener
* labelfloat
* fix input directive
* renaming
* rm logs
* user search overflow, org create i18n, meta cleanup
* sidenav shadow
* redirect to org table
* lint
* lint test files
* remove usage of formfieldmodule, use input module, layout optim
* replace formfieldmodule usage with inputmodule
* lint input dir, scss
* user grant, user table optimisations
* reorganize sidenav, project table empty, tooltips, avatar ch
* user grant tooltips, form field error directive accessor
* checkbox overflow fix, table dateblock, i18n tooltips
* app placeholder, i18n, optimize mobile layout
* change refresh table order, i18n, redirect chips
* stylelint
* chore(deps-dev): bump stylelint from 13.7.2 to 13.8.0 in /console (#1007)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump stylelint from 13.7.2 to 13.8.0 in /console
Bumps [stylelint](https://github.com/stylelint/stylelint) from 13.7.2 to 13.8.0.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/13.7.2...13.8.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @angular/cli from 11.0.1 to 11.0.2 in /console (#1006)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump @angular/cli from 11.0.1 to 11.0.2 in /console
Bumps [@angular/cli](https://github.com/angular/angular-cli) from 11.0.1 to 11.0.2.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v11.0.1...v11.0.2)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump google-proto-files from 2.2.0 to 2.3.0 in /console (#1005)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps): bump google-proto-files from 2.2.0 to 2.3.0 in /console
Bumps [google-proto-files](https://github.com/googleapis/nodejs-proto-files) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/googleapis/nodejs-proto-files/releases)
- [Changelog](https://github.com/googleapis/nodejs-proto-files/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/nodejs-proto-files/compare/v2.2.0...v2.3.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.14.6 to 14.14.9 in /console (#1004)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump @types/node from 14.14.6 to 14.14.9 in /console
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.6 to 14.14.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @angular/language-service from 11.0.0 to 11.0.2 in /console (#999)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump @angular/language-service in /console
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 11.0.0 to 11.0.2.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/11.0.2/packages/language-service)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @angular-devkit/build-angular from 0.1100.1 to 0.1100.2 in /console (#1003)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump @angular-devkit/build-angular in /console
Bumps [@angular-devkit/build-angular](https://github.com/angular/angular-cli) from 0.1100.1 to 0.1100.2.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/commits)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump prettier from 2.1.2 to 2.2.0 in /console (#1002)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump prettier from 2.1.2 to 2.2.0 in /console
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.2 to 2.2.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.2...2.2.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/jasmine from 3.6.1 to 3.6.2 in /console (#1001)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps-dev): bump @types/jasmine from 3.6.1 to 3.6.2 in /console
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.1 to 3.6.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps): bump file-saver from 2.0.2 to 2.0.5 in /console (#1000)
* fix: add project validation (#996)
* fix: project add validation (#997)
* fix: add project validation
* fix: removed loop
* chore(deps): bump file-saver from 2.0.2 to 2.0.5 in /console
Bumps [file-saver](https://github.com/eligrey/FileSaver.js) from 2.0.2 to 2.0.5.
- [Release notes](https://github.com/eligrey/FileSaver.js/releases)
- [Changelog](https://github.com/eligrey/FileSaver.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eligrey/FileSaver.js/commits)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump jasmine-spec-reporter in /console (#974)
Bumps [jasmine-spec-reporter](https://github.com/bcaudan/jasmine-spec-reporter) from 5.0.2 to 6.0.0.
- [Release notes](https://github.com/bcaudan/jasmine-spec-reporter/releases)
- [Changelog](https://github.com/bcaudan/jasmine-spec-reporter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcaudan/jasmine-spec-reporter/compare/v5.0.2...v6.0.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* input field border improvements, primary color
* redirect form, conventional ux
* redirects inputs on app create
* fix dynamic suffix padding, user grant layout, lint
* input style accessor, contact view optim, ext idp, card fixes
* hide error on untouched formfield, border red on error touched
* fix change detector
* change, user, form validation, delete refresh
* safari font weight adjustment, change refresh emitter
* key validation
* remove tabls layout from projects
* app changes, refactor project, app state, meta layout
* add key dialog validation, startdate, rever change tabs
* stylelint
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* finnaly fix fckntimestamp picker
* optional key expiry
* small state badge
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-11-25 16:53:14 +01:00
|
|
|
adminLineAnimation,
|
2020-05-13 14:41:43 +02:00
|
|
|
],
|
|
|
|
})
|
|
|
|
export class AppComponent implements OnDestroy {
|
2020-08-29 10:43:35 +02:00
|
|
|
@ViewChild('drawer') public drawer!: MatDrawer;
|
feat(console): organization overview table, table, org context filtering, fix grpc error log, cleanup pipes (#796)
* chore(deps-dev): bump @angular/cli from 10.0.8 to 10.1.3 in /console (#785)
Bumps [@angular/cli](https://github.com/angular/angular-cli) from 10.0.8 to 10.1.3.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v10.0.8...v10.1.3)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @angular-devkit/build-angular in /console (#784)
Bumps [@angular-devkit/build-angular](https://github.com/angular/angular-cli) from 0.1000.8 to 0.1001.3.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/commits)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#783)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 10.1.0 to 10.1.3.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/10.1.3/packages/language-service)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump stylelint from 13.7.1 to 13.7.2 in /console (#782)
Bumps [stylelint](https://github.com/stylelint/stylelint) from 13.7.1 to 13.7.2.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/13.7.1...13.7.2)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump karma from 5.2.1 to 5.2.3 in /console (#781)
Bumps [karma](https://github.com/karma-runner/karma) from 5.2.1 to 5.2.3.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v5.2.1...v5.2.3)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump moment from 2.27.0 to 2.29.0 in /console (#780)
Bumps [moment](https://github.com/moment/moment) from 2.27.0 to 2.29.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.27.0...2.29.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.6.4 to 14.11.2 in /console (#778)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.6.4 to 14.11.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.1.1 to 2.1.2 in /console (#757)
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.1...2.1.2)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ts-protoc-gen from 0.12.0 to 0.13.0 in /console (#737)
Bumps [ts-protoc-gen](https://github.com/improbable-eng/ts-protoc-gen) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/improbable-eng/ts-protoc-gen/releases)
- [Changelog](https://github.com/improbable-eng/ts-protoc-gen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/improbable-eng/ts-protoc-gen/compare/0.12.0...0.13.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump jasmine-spec-reporter in /console (#762)
Bumps [jasmine-spec-reporter](https://github.com/bcaudan/jasmine-spec-reporter) from 5.0.2 to 6.0.0.
- [Release notes](https://github.com/bcaudan/jasmine-spec-reporter/releases)
- [Changelog](https://github.com/bcaudan/jasmine-spec-reporter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcaudan/jasmine-spec-reporter/compare/v5.0.2...v6.0.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* fix: package
* change html lang to translation lang
* disable detail view org idp
* catch errorcode 16 in auth response interceptor
* new icons
* refactor pipes, idp table config
* fix router guard
* lint
* allowed commonjs deps
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* clear table warning
* org overview table, header filter
* toolbar filter
* user table filter
* fix org filter themed color, reject error
* org context filter
* button cleanup
* commonjs deps, remove a11y module
* replace progressbar with spinner
* dynamic user, org filter
* ts lint, scss lint
* cleanup table, row highlighting
* lint
* fix i18n description, refresh idp list in login p
* remove async from grpc services, fix external idp
* remove external idp
* fix theme toggle
* change iam policy header i18n
* sticky action columns
* lint
* add i18n filter to user, remove unused org code
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-10-01 15:53:43 +02:00
|
|
|
@ViewChild('input', { static: false }) input!: ElementRef;
|
2020-05-13 14:41:43 +02:00
|
|
|
public isHandset$: Observable<boolean> = this.breakpointObserver
|
2020-06-16 14:52:07 +02:00
|
|
|
.observe('(max-width: 599px)')
|
2020-05-13 14:41:43 +02:00
|
|
|
.pipe(map(result => {
|
|
|
|
return result.matches;
|
|
|
|
}));
|
|
|
|
@HostBinding('class') public componentCssClass: string = 'dark-theme';
|
|
|
|
|
|
|
|
public showAccount: boolean = false;
|
|
|
|
public org!: Org.AsObject;
|
2020-10-16 16:42:22 +02:00
|
|
|
public orgs$: Observable<Org.AsObject[]> = of([]);
|
2020-07-09 10:54:55 +02:00
|
|
|
public profile!: UserProfileView.AsObject;
|
2020-05-13 14:41:43 +02:00
|
|
|
public isDarkTheme: Observable<boolean> = of(true);
|
|
|
|
|
2020-10-16 16:42:22 +02:00
|
|
|
public orgLoading$: BehaviorSubject<any> = new BehaviorSubject(false);
|
2020-05-13 14:41:43 +02:00
|
|
|
|
|
|
|
public showProjectSection: boolean = false;
|
fix(console): hide granted project navigation if none, cache zitadel permissions, emit refresh on org change, cleanup contributors, styling (#511)
* fix iam member model
* fix org member model
* fix auth user loading
* copytoclipboard directive
* directive logs, load bar on init, create user
* typo
* welcome section, contributor spinner
* fix home link
* fix stepper flow
* show dialog on invalid token
* fix app table refresh, pin icons light theme
* cleanup contributor
* inherit parent color, animations
* use localized date pipe everywhere
* cmp styles refactor, dont show granted p if none
* fix navitem desc, fixed header
* change permissions, caching
* roles on org emit, use prom instead of hot obs
* dont calc 100vh
2020-07-28 09:09:18 +02:00
|
|
|
|
2020-10-16 16:42:22 +02:00
|
|
|
public filterControl: FormControl = new FormControl('');
|
2020-05-13 14:41:43 +02:00
|
|
|
private authSub: Subscription = new Subscription();
|
|
|
|
private orgSub: Subscription = new Subscription();
|
|
|
|
|
feat(console): user grant filtering, org domain verification improvements, fix membership detail link (#916)
* user grant filter
* add filter input
* org domain spinner and reload
* user grant filter templates
* single selection filter for grants, same dl btn
* filter margin
* lint style, remove duplicate code
* project count as observable
* deferred reload on delete
* fix user grant formfield
* lint styles
* fix event propagation on pin, change selection
* propagate counter change
* admin warn, localstorage, i18n, sidenav impv
* overlays
* adapt toolbar elevationn, card
* color vars, i18n, admin section
* fix lint
* selection clear on filter
* ts lint
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/en.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-11-13 09:59:11 +01:00
|
|
|
public hideAdminWarn: boolean = true;
|
2020-05-13 14:41:43 +02:00
|
|
|
constructor(
|
2020-07-20 15:23:29 +02:00
|
|
|
public viewPortScroller: ViewportScroller,
|
|
|
|
@Inject('windowObject') public window: Window,
|
2020-05-13 14:41:43 +02:00
|
|
|
public translate: TranslateService,
|
2020-08-29 10:43:35 +02:00
|
|
|
public authenticationService: AuthenticationService,
|
|
|
|
public authService: GrpcAuthService,
|
2020-05-13 14:41:43 +02:00
|
|
|
private breakpointObserver: BreakpointObserver,
|
|
|
|
public overlayContainer: OverlayContainer,
|
|
|
|
private themeService: ThemeService,
|
feat(console): user grant filtering, org domain verification improvements, fix membership detail link (#916)
* user grant filter
* add filter input
* org domain spinner and reload
* user grant filter templates
* single selection filter for grants, same dl btn
* filter margin
* lint style, remove duplicate code
* project count as observable
* deferred reload on delete
* fix user grant formfield
* lint styles
* fix event propagation on pin, change selection
* propagate counter change
* admin warn, localstorage, i18n, sidenav impv
* overlays
* adapt toolbar elevationn, card
* color vars, i18n, admin section
* fix lint
* selection clear on filter
* ts lint
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/en.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-11-13 09:59:11 +01:00
|
|
|
public mgmtService: ManagementService,
|
2020-05-13 14:41:43 +02:00
|
|
|
public matIconRegistry: MatIconRegistry,
|
|
|
|
public domSanitizer: DomSanitizer,
|
|
|
|
private router: Router,
|
|
|
|
update: UpdateService,
|
2020-09-29 13:21:40 +02:00
|
|
|
@Inject(DOCUMENT) private document: Document,
|
2020-05-13 14:41:43 +02:00
|
|
|
) {
|
feat(console): user grant filtering, org domain verification improvements, fix membership detail link (#916)
* user grant filter
* add filter input
* org domain spinner and reload
* user grant filter templates
* single selection filter for grants, same dl btn
* filter margin
* lint style, remove duplicate code
* project count as observable
* deferred reload on delete
* fix user grant formfield
* lint styles
* fix event propagation on pin, change selection
* propagate counter change
* admin warn, localstorage, i18n, sidenav impv
* overlays
* adapt toolbar elevationn, card
* color vars, i18n, admin section
* fix lint
* selection clear on filter
* ts lint
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/en.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-11-13 09:59:11 +01:00
|
|
|
console.log('%cWait!', 'text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; color: #5469D4; font-size: 50px');
|
2020-07-15 09:04:45 +02:00
|
|
|
console.log('%cInserting something here could give attackers access to your zitadel account.', 'color: red; font-size: 18px');
|
2020-05-13 14:41:43 +02:00
|
|
|
console.log('%cIf you don\'t know exactly what you\'re doing, close the window and stay on the safe side', 'font-size: 16px');
|
|
|
|
console.log('%cIf you know exactly what you are doing, you should work for us', 'font-size: 16px');
|
|
|
|
this.setLanguage();
|
|
|
|
|
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
'mdi_account_check_outline',
|
|
|
|
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/account-check-outline.svg'),
|
|
|
|
);
|
|
|
|
|
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
'mdi_account_cancel',
|
|
|
|
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/account-cancel-outline.svg'),
|
|
|
|
);
|
|
|
|
|
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
'mdi_light_on',
|
|
|
|
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/lightbulb-on-outline.svg'),
|
|
|
|
);
|
|
|
|
|
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
'mdi_content_copy',
|
|
|
|
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/content-copy.svg'),
|
|
|
|
);
|
|
|
|
|
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
'mdi_light_off',
|
|
|
|
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/lightbulb-off-outline.svg'),
|
|
|
|
);
|
|
|
|
|
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
'mdi_radar',
|
|
|
|
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/radar.svg'),
|
|
|
|
);
|
|
|
|
|
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
'mdi_lock_question',
|
|
|
|
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/lock-question.svg'),
|
|
|
|
);
|
|
|
|
|
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
'mdi_textbox_password',
|
|
|
|
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/textbox-password.svg'),
|
|
|
|
);
|
|
|
|
|
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
'mdi_lock_reset',
|
|
|
|
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/lock-reset.svg'),
|
|
|
|
);
|
|
|
|
|
2020-07-24 09:48:58 +02:00
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
'mdi_broom',
|
|
|
|
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/broom.svg'),
|
|
|
|
);
|
|
|
|
|
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
'mdi_pin_outline',
|
|
|
|
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/pin-outline.svg'),
|
|
|
|
);
|
|
|
|
|
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
'mdi_pin',
|
|
|
|
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/pin.svg'),
|
|
|
|
);
|
fix(console): hide granted project navigation if none, cache zitadel permissions, emit refresh on org change, cleanup contributors, styling (#511)
* fix iam member model
* fix org member model
* fix auth user loading
* copytoclipboard directive
* directive logs, load bar on init, create user
* typo
* welcome section, contributor spinner
* fix home link
* fix stepper flow
* show dialog on invalid token
* fix app table refresh, pin icons light theme
* cleanup contributor
* inherit parent color, animations
* use localized date pipe everywhere
* cmp styles refactor, dont show granted p if none
* fix navitem desc, fixed header
* change permissions, caching
* roles on org emit, use prom instead of hot obs
* dont calc 100vh
2020-07-28 09:09:18 +02:00
|
|
|
this.getProjectCount();
|
2020-07-24 09:48:58 +02:00
|
|
|
|
2020-05-13 14:41:43 +02:00
|
|
|
this.orgSub = this.authService.activeOrgChanged.subscribe(org => {
|
|
|
|
this.org = org;
|
fix(console): hide granted project navigation if none, cache zitadel permissions, emit refresh on org change, cleanup contributors, styling (#511)
* fix iam member model
* fix org member model
* fix auth user loading
* copytoclipboard directive
* directive logs, load bar on init, create user
* typo
* welcome section, contributor spinner
* fix home link
* fix stepper flow
* show dialog on invalid token
* fix app table refresh, pin icons light theme
* cleanup contributor
* inherit parent color, animations
* use localized date pipe everywhere
* cmp styles refactor, dont show granted p if none
* fix navitem desc, fixed header
* change permissions, caching
* roles on org emit, use prom instead of hot obs
* dont calc 100vh
2020-07-28 09:09:18 +02:00
|
|
|
this.getProjectCount();
|
2020-05-13 14:41:43 +02:00
|
|
|
});
|
|
|
|
|
2020-08-29 10:43:35 +02:00
|
|
|
this.authSub = this.authenticationService.authenticationChanged.subscribe((authenticated) => {
|
2020-05-13 14:41:43 +02:00
|
|
|
if (authenticated) {
|
|
|
|
this.authService.GetActiveOrg().then(org => {
|
|
|
|
this.org = org;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
const theme = localStorage.getItem('theme');
|
|
|
|
if (theme) {
|
|
|
|
this.overlayContainer.getContainerElement().classList.add(theme);
|
|
|
|
this.componentCssClass = theme;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.isDarkTheme = this.themeService.isDarkTheme;
|
|
|
|
this.isDarkTheme.subscribe(thema => this.onSetTheme(thema ? 'dark-theme' : 'light-theme'));
|
2020-09-29 13:21:40 +02:00
|
|
|
|
|
|
|
this.translate.onLangChange.subscribe((language: LangChangeEvent) => {
|
|
|
|
this.document.documentElement.lang = language.lang;
|
|
|
|
});
|
2020-10-16 16:42:22 +02:00
|
|
|
|
|
|
|
this.filterControl.valueChanges.pipe(debounceTime(300)).subscribe(value => {
|
|
|
|
this.loadOrgs(
|
|
|
|
value.trim().toLowerCase(),
|
|
|
|
);
|
|
|
|
});
|
feat(console): user grant filtering, org domain verification improvements, fix membership detail link (#916)
* user grant filter
* add filter input
* org domain spinner and reload
* user grant filter templates
* single selection filter for grants, same dl btn
* filter margin
* lint style, remove duplicate code
* project count as observable
* deferred reload on delete
* fix user grant formfield
* lint styles
* fix event propagation on pin, change selection
* propagate counter change
* admin warn, localstorage, i18n, sidenav impv
* overlays
* adapt toolbar elevationn, card
* color vars, i18n, admin section
* fix lint
* selection clear on filter
* ts lint
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/en.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-11-13 09:59:11 +01:00
|
|
|
|
|
|
|
this.hideAdminWarn = localStorage.getItem('hideAdministratorWarning') === 'true' ? true : false;
|
2020-05-13 14:41:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public ngOnDestroy(): void {
|
|
|
|
this.authSub.unsubscribe();
|
|
|
|
this.orgSub.unsubscribe();
|
|
|
|
}
|
|
|
|
|
feat(console): user grant filtering, org domain verification improvements, fix membership detail link (#916)
* user grant filter
* add filter input
* org domain spinner and reload
* user grant filter templates
* single selection filter for grants, same dl btn
* filter margin
* lint style, remove duplicate code
* project count as observable
* deferred reload on delete
* fix user grant formfield
* lint styles
* fix event propagation on pin, change selection
* propagate counter change
* admin warn, localstorage, i18n, sidenav impv
* overlays
* adapt toolbar elevationn, card
* color vars, i18n, admin section
* fix lint
* selection clear on filter
* ts lint
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/en.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-11-13 09:59:11 +01:00
|
|
|
public toggleAdminHide(): void {
|
|
|
|
this.hideAdminWarn = !this.hideAdminWarn;
|
|
|
|
localStorage.setItem('hideAdministratorWarning', this.hideAdminWarn.toString());
|
|
|
|
}
|
|
|
|
|
feat(console): organization overview table, table, org context filtering, fix grpc error log, cleanup pipes (#796)
* chore(deps-dev): bump @angular/cli from 10.0.8 to 10.1.3 in /console (#785)
Bumps [@angular/cli](https://github.com/angular/angular-cli) from 10.0.8 to 10.1.3.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v10.0.8...v10.1.3)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @angular-devkit/build-angular in /console (#784)
Bumps [@angular-devkit/build-angular](https://github.com/angular/angular-cli) from 0.1000.8 to 0.1001.3.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/commits)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#783)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 10.1.0 to 10.1.3.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/10.1.3/packages/language-service)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump stylelint from 13.7.1 to 13.7.2 in /console (#782)
Bumps [stylelint](https://github.com/stylelint/stylelint) from 13.7.1 to 13.7.2.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/13.7.1...13.7.2)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump karma from 5.2.1 to 5.2.3 in /console (#781)
Bumps [karma](https://github.com/karma-runner/karma) from 5.2.1 to 5.2.3.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v5.2.1...v5.2.3)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump moment from 2.27.0 to 2.29.0 in /console (#780)
Bumps [moment](https://github.com/moment/moment) from 2.27.0 to 2.29.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.27.0...2.29.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.6.4 to 14.11.2 in /console (#778)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.6.4 to 14.11.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.1.1 to 2.1.2 in /console (#757)
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.1...2.1.2)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ts-protoc-gen from 0.12.0 to 0.13.0 in /console (#737)
Bumps [ts-protoc-gen](https://github.com/improbable-eng/ts-protoc-gen) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/improbable-eng/ts-protoc-gen/releases)
- [Changelog](https://github.com/improbable-eng/ts-protoc-gen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/improbable-eng/ts-protoc-gen/compare/0.12.0...0.13.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump jasmine-spec-reporter in /console (#762)
Bumps [jasmine-spec-reporter](https://github.com/bcaudan/jasmine-spec-reporter) from 5.0.2 to 6.0.0.
- [Release notes](https://github.com/bcaudan/jasmine-spec-reporter/releases)
- [Changelog](https://github.com/bcaudan/jasmine-spec-reporter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcaudan/jasmine-spec-reporter/compare/v5.0.2...v6.0.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* fix: package
* change html lang to translation lang
* disable detail view org idp
* catch errorcode 16 in auth response interceptor
* new icons
* refactor pipes, idp table config
* fix router guard
* lint
* allowed commonjs deps
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* clear table warning
* org overview table, header filter
* toolbar filter
* user table filter
* fix org filter themed color, reject error
* org context filter
* button cleanup
* commonjs deps, remove a11y module
* replace progressbar with spinner
* dynamic user, org filter
* ts lint, scss lint
* cleanup table, row highlighting
* lint
* fix i18n description, refresh idp list in login p
* remove async from grpc services, fix external idp
* remove external idp
* fix theme toggle
* change iam policy header i18n
* sticky action columns
* lint
* add i18n filter to user, remove unused org code
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-10-01 15:53:43 +02:00
|
|
|
public loadOrgs(filter?: string): void {
|
|
|
|
let query;
|
|
|
|
if (filter) {
|
|
|
|
query = new MyProjectOrgSearchQuery();
|
|
|
|
query.setMethod(SearchMethod.SEARCHMETHOD_CONTAINS_IGNORE_CASE);
|
|
|
|
query.setKey(MyProjectOrgSearchKey.MYPROJECTORGSEARCHKEY_ORG_NAME);
|
|
|
|
query.setValue(filter);
|
|
|
|
}
|
|
|
|
|
2020-10-16 16:42:22 +02:00
|
|
|
this.orgLoading$.next(true);
|
|
|
|
this.orgs$ = from(this.authService.SearchMyProjectOrgs(10, 0, query ? [query] : undefined)).pipe(
|
|
|
|
map(resp => {
|
|
|
|
return resp.toObject().resultList;
|
|
|
|
}),
|
|
|
|
catchError(() => of([])),
|
|
|
|
finalize(() => {
|
|
|
|
this.orgLoading$.next(false);
|
|
|
|
this.focusFilter();
|
|
|
|
}),
|
|
|
|
);
|
2020-05-13 14:41:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public prepareRoute(outlet: RouterOutlet): boolean {
|
|
|
|
return outlet && outlet.activatedRouteData && outlet.activatedRouteData.animation;
|
|
|
|
}
|
|
|
|
|
|
|
|
public closeAccountCard(): void {
|
|
|
|
if (this.showAccount) {
|
|
|
|
this.showAccount = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public onSetTheme(theme: string): void {
|
|
|
|
localStorage.setItem('theme', theme);
|
|
|
|
this.overlayContainer.getContainerElement().classList.add(theme);
|
|
|
|
this.componentCssClass = theme;
|
|
|
|
}
|
|
|
|
|
|
|
|
private setLanguage(): void {
|
|
|
|
this.translate.addLangs(['en', 'de']);
|
|
|
|
this.translate.setDefaultLang('en');
|
|
|
|
|
|
|
|
this.authService.user.subscribe(userprofile => {
|
|
|
|
this.profile = userprofile;
|
2020-10-08 14:49:47 +02:00
|
|
|
const cropped = navigator.language.split('-')[0] ?? 'en';
|
|
|
|
const fallbackLang = cropped.match(/en|de/) ? cropped : 'en';
|
|
|
|
const lang = userprofile.preferredLanguage.match(/en|de/) ? userprofile.preferredLanguage : fallbackLang;
|
2020-05-13 14:41:43 +02:00
|
|
|
this.translate.use(lang);
|
2020-09-29 13:21:40 +02:00
|
|
|
this.document.documentElement.lang = lang;
|
2020-05-13 14:41:43 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public setActiveOrg(org: Org.AsObject): void {
|
|
|
|
this.org = org;
|
|
|
|
this.authService.setActiveOrg(org);
|
2020-10-16 16:42:22 +02:00
|
|
|
this.authService.zitadelPermissionsChanged.pipe(take(1)).subscribe(() => {
|
|
|
|
this.router.navigate(['/']);
|
|
|
|
});
|
2020-05-13 14:41:43 +02:00
|
|
|
}
|
fix(console): hide granted project navigation if none, cache zitadel permissions, emit refresh on org change, cleanup contributors, styling (#511)
* fix iam member model
* fix org member model
* fix auth user loading
* copytoclipboard directive
* directive logs, load bar on init, create user
* typo
* welcome section, contributor spinner
* fix home link
* fix stepper flow
* show dialog on invalid token
* fix app table refresh, pin icons light theme
* cleanup contributor
* inherit parent color, animations
* use localized date pipe everywhere
* cmp styles refactor, dont show granted p if none
* fix navitem desc, fixed header
* change permissions, caching
* roles on org emit, use prom instead of hot obs
* dont calc 100vh
2020-07-28 09:09:18 +02:00
|
|
|
|
feat(console): user memberships, generic member create dialog, fix user autocomplete emitter (#606)
* load manager mgmtservice, user service
* add org memberships
* membership component, generic member creation
* refactor member create dialog
* project autocomplete context
* create batch managers in user component
* project context wrapper
* emit on user removal, preselect user on init
* membership avatar style, service
* auth user memberships, navigate to target
* cursor fix, avatar gen
* lint
* i18n fix
* remove role translations
* membership detail page, i18n
* fix role label i18n, after view init loader
* remove projectid from grant remove
* fix iam race condition
* refresh table ts, fix no permission project search
* change membership colors
* refresh table everywhere, replace assets, routing
* fix logo header size
* lint, fix project grant removal
* timestmp for p mem, user list, grants, p list (#615)
* npm audit
* update deps, resolve vulnerability
* fix tslint config
* update lock
* load 20 changes at once
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* membership i18n
Co-authored-by: Florian Forster <florian@caos.ch>
2020-08-24 08:48:47 +02:00
|
|
|
private getProjectCount(): void {
|
2020-09-30 09:25:11 +02:00
|
|
|
this.authService.isAllowed(['project.read$']).subscribe((allowed) => {
|
feat(console): user memberships, generic member create dialog, fix user autocomplete emitter (#606)
* load manager mgmtservice, user service
* add org memberships
* membership component, generic member creation
* refactor member create dialog
* project autocomplete context
* create batch managers in user component
* project context wrapper
* emit on user removal, preselect user on init
* membership avatar style, service
* auth user memberships, navigate to target
* cursor fix, avatar gen
* lint
* i18n fix
* remove role translations
* membership detail page, i18n
* fix role label i18n, after view init loader
* remove projectid from grant remove
* fix iam race condition
* refresh table ts, fix no permission project search
* change membership colors
* refresh table everywhere, replace assets, routing
* fix logo header size
* lint, fix project grant removal
* timestmp for p mem, user list, grants, p list (#615)
* npm audit
* update deps, resolve vulnerability
* fix tslint config
* update lock
* load 20 changes at once
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* membership i18n
Co-authored-by: Florian Forster <florian@caos.ch>
2020-08-24 08:48:47 +02:00
|
|
|
if (allowed) {
|
feat(console): user grant filtering, org domain verification improvements, fix membership detail link (#916)
* user grant filter
* add filter input
* org domain spinner and reload
* user grant filter templates
* single selection filter for grants, same dl btn
* filter margin
* lint style, remove duplicate code
* project count as observable
* deferred reload on delete
* fix user grant formfield
* lint styles
* fix event propagation on pin, change selection
* propagate counter change
* admin warn, localstorage, i18n, sidenav impv
* overlays
* adapt toolbar elevationn, card
* color vars, i18n, admin section
* fix lint
* selection clear on filter
* ts lint
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/en.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-11-13 09:59:11 +01:00
|
|
|
this.mgmtService.SearchProjects(0, 0);
|
fix(console): hide granted project navigation if none, cache zitadel permissions, emit refresh on org change, cleanup contributors, styling (#511)
* fix iam member model
* fix org member model
* fix auth user loading
* copytoclipboard directive
* directive logs, load bar on init, create user
* typo
* welcome section, contributor spinner
* fix home link
* fix stepper flow
* show dialog on invalid token
* fix app table refresh, pin icons light theme
* cleanup contributor
* inherit parent color, animations
* use localized date pipe everywhere
* cmp styles refactor, dont show granted p if none
* fix navitem desc, fixed header
* change permissions, caching
* roles on org emit, use prom instead of hot obs
* dont calc 100vh
2020-07-28 09:09:18 +02:00
|
|
|
|
feat(console): user grant filtering, org domain verification improvements, fix membership detail link (#916)
* user grant filter
* add filter input
* org domain spinner and reload
* user grant filter templates
* single selection filter for grants, same dl btn
* filter margin
* lint style, remove duplicate code
* project count as observable
* deferred reload on delete
* fix user grant formfield
* lint styles
* fix event propagation on pin, change selection
* propagate counter change
* admin warn, localstorage, i18n, sidenav impv
* overlays
* adapt toolbar elevationn, card
* color vars, i18n, admin section
* fix lint
* selection clear on filter
* ts lint
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/de.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
* Update console/src/assets/i18n/en.json
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-11-13 09:59:11 +01:00
|
|
|
this.mgmtService.SearchGrantedProjects(0, 0);
|
feat(console): user memberships, generic member create dialog, fix user autocomplete emitter (#606)
* load manager mgmtservice, user service
* add org memberships
* membership component, generic member creation
* refactor member create dialog
* project autocomplete context
* create batch managers in user component
* project context wrapper
* emit on user removal, preselect user on init
* membership avatar style, service
* auth user memberships, navigate to target
* cursor fix, avatar gen
* lint
* i18n fix
* remove role translations
* membership detail page, i18n
* fix role label i18n, after view init loader
* remove projectid from grant remove
* fix iam race condition
* refresh table ts, fix no permission project search
* change membership colors
* refresh table everywhere, replace assets, routing
* fix logo header size
* lint, fix project grant removal
* timestmp for p mem, user list, grants, p list (#615)
* npm audit
* update deps, resolve vulnerability
* fix tslint config
* update lock
* load 20 changes at once
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* membership i18n
Co-authored-by: Florian Forster <florian@caos.ch>
2020-08-24 08:48:47 +02:00
|
|
|
}
|
fix(console): hide granted project navigation if none, cache zitadel permissions, emit refresh on org change, cleanup contributors, styling (#511)
* fix iam member model
* fix org member model
* fix auth user loading
* copytoclipboard directive
* directive logs, load bar on init, create user
* typo
* welcome section, contributor spinner
* fix home link
* fix stepper flow
* show dialog on invalid token
* fix app table refresh, pin icons light theme
* cleanup contributor
* inherit parent color, animations
* use localized date pipe everywhere
* cmp styles refactor, dont show granted p if none
* fix navitem desc, fixed header
* change permissions, caching
* roles on org emit, use prom instead of hot obs
* dont calc 100vh
2020-07-28 09:09:18 +02:00
|
|
|
});
|
|
|
|
}
|
feat(console): organization overview table, table, org context filtering, fix grpc error log, cleanup pipes (#796)
* chore(deps-dev): bump @angular/cli from 10.0.8 to 10.1.3 in /console (#785)
Bumps [@angular/cli](https://github.com/angular/angular-cli) from 10.0.8 to 10.1.3.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v10.0.8...v10.1.3)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @angular-devkit/build-angular in /console (#784)
Bumps [@angular-devkit/build-angular](https://github.com/angular/angular-cli) from 0.1000.8 to 0.1001.3.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/commits)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#783)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 10.1.0 to 10.1.3.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/10.1.3/packages/language-service)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump stylelint from 13.7.1 to 13.7.2 in /console (#782)
Bumps [stylelint](https://github.com/stylelint/stylelint) from 13.7.1 to 13.7.2.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/13.7.1...13.7.2)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump karma from 5.2.1 to 5.2.3 in /console (#781)
Bumps [karma](https://github.com/karma-runner/karma) from 5.2.1 to 5.2.3.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v5.2.1...v5.2.3)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump moment from 2.27.0 to 2.29.0 in /console (#780)
Bumps [moment](https://github.com/moment/moment) from 2.27.0 to 2.29.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.27.0...2.29.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.6.4 to 14.11.2 in /console (#778)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.6.4 to 14.11.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.1.1 to 2.1.2 in /console (#757)
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.1...2.1.2)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ts-protoc-gen from 0.12.0 to 0.13.0 in /console (#737)
Bumps [ts-protoc-gen](https://github.com/improbable-eng/ts-protoc-gen) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/improbable-eng/ts-protoc-gen/releases)
- [Changelog](https://github.com/improbable-eng/ts-protoc-gen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/improbable-eng/ts-protoc-gen/compare/0.12.0...0.13.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump jasmine-spec-reporter in /console (#762)
Bumps [jasmine-spec-reporter](https://github.com/bcaudan/jasmine-spec-reporter) from 5.0.2 to 6.0.0.
- [Release notes](https://github.com/bcaudan/jasmine-spec-reporter/releases)
- [Changelog](https://github.com/bcaudan/jasmine-spec-reporter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcaudan/jasmine-spec-reporter/compare/v5.0.2...v6.0.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* fix: package
* change html lang to translation lang
* disable detail view org idp
* catch errorcode 16 in auth response interceptor
* new icons
* refactor pipes, idp table config
* fix router guard
* lint
* allowed commonjs deps
* Update console/src/assets/i18n/en.json
Co-authored-by: Florian Forster <florian@caos.ch>
* Update console/src/assets/i18n/de.json
Co-authored-by: Florian Forster <florian@caos.ch>
* clear table warning
* org overview table, header filter
* toolbar filter
* user table filter
* fix org filter themed color, reject error
* org context filter
* button cleanup
* commonjs deps, remove a11y module
* replace progressbar with spinner
* dynamic user, org filter
* ts lint, scss lint
* cleanup table, row highlighting
* lint
* fix i18n description, refresh idp list in login p
* remove async from grpc services, fix external idp
* remove external idp
* fix theme toggle
* change iam policy header i18n
* sticky action columns
* lint
* add i18n filter to user, remove unused org code
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Florian Forster <florian@caos.ch>
2020-10-01 15:53:43 +02:00
|
|
|
|
|
|
|
focusFilter(): void {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.input.nativeElement.focus();
|
|
|
|
}, 0);
|
|
|
|
}
|
2020-05-13 14:41:43 +02:00
|
|
|
}
|
2020-06-25 12:52:57 +02:00
|
|
|
|