fix(console): add missing login interface texts, update dependencies, cleanup storage (#2430)

* name

* core cli

* material cdk

* chore(deps): bump libphonenumber-js from 1.9.23 to 1.9.34 in /console (#2386)

Bumps [libphonenumber-js](https://gitlab.com/catamphetamine/libphonenumber-js) from 1.9.23 to 1.9.34.
- [Release notes](https://gitlab.com/catamphetamine/libphonenumber-js/tags)
- [Changelog](https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/CHANGELOG.md)
- [Commits](https://gitlab.com/catamphetamine/libphonenumber-js/compare/v1.9.23...v1.9.34)

---
updated-dependencies:
- dependency-name: libphonenumber-js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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-core from 3.7.1 to 3.9.0 in /console (#2373)

Bumps [jasmine-core](https://github.com/jasmine/jasmine) from 3.7.1 to 3.9.0.
- [Release notes](https://github.com/jasmine/jasmine/releases)
- [Changelog](https://github.com/jasmine/jasmine/blob/main/RELEASE.md)
- [Commits](https://github.com/jasmine/jasmine/compare/v3.7.1...v3.9.0)

---
updated-dependencies:
- dependency-name: jasmine-core
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump rxjs from 6.6.7 to 7.3.0 in /console (#2366)

Bumps [rxjs](https://github.com/reactivex/rxjs) from 6.6.7 to 7.3.0.
- [Release notes](https://github.com/reactivex/rxjs/releases)
- [Changelog](https://github.com/ReactiveX/rxjs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reactivex/rxjs/compare/6.6.7...7.3.0)

---
updated-dependencies:
- dependency-name: rxjs
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add missing login texts, fix application table

* storage cleanup

* storage location local

* org session storage, remember in local

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
Max Peintner
2021-09-30 08:33:58 +02:00
committed by GitHub
parent 440030b20b
commit 7579bf56f6
19 changed files with 762 additions and 547 deletions

View File

@@ -3,6 +3,7 @@ import { SetCustomLoginTextsRequest } from 'src/app/proto/generated/zitadel/mana
import {
EmailVerificationDoneScreenText,
EmailVerificationScreenText,
ExternalRegistrationUserOverviewScreenText,
ExternalUserNotFoundScreenText,
FooterText,
InitializeUserDoneScreenText,
@@ -61,6 +62,11 @@ export function mapRequestValues(map: Partial<Map>, req: Req): Req {
r2.setDescription(map.externalUserNotFoundText?.description ?? '');
r2.setLinkButtonText(map.externalUserNotFoundText?.linkButtonText ?? '');
r2.setTitle(map.externalUserNotFoundText?.title ?? '');
r2.setTosAndPrivacyLabel(map.externalUserNotFoundText?.tosAndPrivacyLabel ?? '');
r2.setTosConfirm(map.externalUserNotFoundText?.tosConfirm ?? '');
r2.setTosConfirmAnd(map.externalUserNotFoundText?.tosConfirmAnd ?? '');
r2.setTosLinkText(map.externalUserNotFoundText?.tosLinkText ?? '');
r2.setPrivacyLinkText(map.externalUserNotFoundText?.privacyLinkText ?? '');
req.setExternalUserNotFoundText(r2);
const r3 = new FooterText();
@@ -329,6 +335,7 @@ export function mapRequestValues(map: Partial<Map>, req: Req): Req {
r31.setDescription(map.passwordlessRegistrationDoneText?.description ?? '');
r31.setNextButtonText(map.passwordlessRegistrationDoneText?.nextButtonText ?? '');
r31.setTitle(map.passwordlessRegistrationDoneText?.title ?? '');
r31.setNextButtonText(map.passwordlessRegistrationDoneText?.cancelButtonText ?? '');
req.setPasswordlessRegistrationDoneText(r31);
const r32 = new PasswordlessRegistrationScreenText();
@@ -350,5 +357,24 @@ export function mapRequestValues(map: Partial<Map>, req: Req): Req {
r33.setValidateTokenButtonText(map.passwordlessText?.validateTokenButtonText ?? '');
req.setPasswordlessText(r33);
const r34 = new ExternalRegistrationUserOverviewScreenText();
r34.setBackButtonText(map.externalRegistrationUserOverviewText?.backButtonText ?? '');
r34.setDescription(map.externalRegistrationUserOverviewText?.description ?? '');
r34.setEmailLabel(map.externalRegistrationUserOverviewText?.emailLabel ?? '');
r34.setFirstnameLabel(map.externalRegistrationUserOverviewText?.firstnameLabel ?? '');
r34.setLanguageLabel(map.externalRegistrationUserOverviewText?.languageLabel ?? '');
r34.setLastnameLabel(map.externalRegistrationUserOverviewText?.lastnameLabel ?? '');
r34.setNextButtonText(map.externalRegistrationUserOverviewText?.nextButtonText ?? '');
r34.setNicknameLabel(map.externalRegistrationUserOverviewText?.nicknameLabel ?? '');
r34.setPhoneLabel(map.externalRegistrationUserOverviewText?.phoneLabel ?? '');
r34.setPrivacyLinkText(map.externalRegistrationUserOverviewText?.privacyLinkText ?? '');
r34.setTitle(map.externalRegistrationUserOverviewText?.title ?? '');
r34.setTosAndPrivacyLabel(map.externalRegistrationUserOverviewText?.tosAndPrivacyLabel ?? '');
r34.setTosConfirm(map.externalRegistrationUserOverviewText?.tosConfirm ?? '');
r34.setTosConfirmAnd(map.externalRegistrationUserOverviewText?.tosConfirmAnd ?? '');
r34.setTosLinkText(map.externalRegistrationUserOverviewText?.tosLinkText ?? '');
r34.setUsernameLabel(map.externalRegistrationUserOverviewText?.usernameLabel ?? '');
req.setExternalRegistrationUserOverviewText(r34);
return req;
}

View File

@@ -59,6 +59,7 @@ const KeyNamesArray = [
'passwordlessRegistrationDoneText',
'passwordlessRegistrationText',
'passwordlessText',
'externalRegistrationUserOverviewText'
];
// tslint:enable

View File

@@ -8,7 +8,7 @@ import { Org } from 'src/app/proto/generated/zitadel/org_pb';
import { OrgIAMPolicy } from 'src/app/proto/generated/zitadel/policy_pb';
import { AdminService } from 'src/app/services/admin.service';
import { ManagementService } from 'src/app/services/mgmt.service';
import { StorageService } from 'src/app/services/storage.service';
import { StorageKey, StorageLocation, StorageService } from 'src/app/services/storage.service';
import { ToastService } from 'src/app/services/toast.service';
import { GridPolicy, IAM_POLICY } from '../../policy-grid/policies';
@@ -34,11 +34,11 @@ export class OrgIamPolicyComponent implements OnDestroy {
constructor(
private route: ActivatedRoute,
private toast: ToastService,
private sessionStorage: StorageService,
private storage: StorageService,
private injector: Injector,
private adminService: AdminService,
) {
const temporg = this.sessionStorage.getItem('organization') as Org.AsObject;
const temporg = this.storage.getItem(StorageKey.organization, StorageLocation.session) as Org.AsObject;
if (temporg) {
this.org = temporg;
}

View File

@@ -21,7 +21,7 @@ import { AdminService } from 'src/app/services/admin.service';
import { AssetEndpoint, AssetService, AssetType } from 'src/app/services/asset.service';
import { GrpcAuthService } from 'src/app/services/grpc-auth.service';
import { ManagementService } from 'src/app/services/mgmt.service';
import { StorageService } from 'src/app/services/storage.service';
import { StorageKey, StorageLocation, StorageService } from 'src/app/services/storage.service';
import { ThemeService } from 'src/app/services/theme.service';
import { ToastService } from 'src/app/services/toast.service';
@@ -48,7 +48,6 @@ export enum ColorType {
BACKGROUNDLIGHT,
}
const ORG_STORAGE_KEY = 'organization';
const MAX_ALLOWED_SIZE = 0.5 * 1024 * 1024;
@Component({
@@ -96,10 +95,10 @@ export class PrivateLabelingPolicyComponent implements OnDestroy {
private injector: Injector,
private assetService: AssetService,
private sanitizer: DomSanitizer,
private storageService: StorageService,
private storage: StorageService,
private themeService: ThemeService,
) {
const org: Org.AsObject | null = (this.storageService.getItem(ORG_STORAGE_KEY));
const org: Org.AsObject | null = (this.storage.getItem(StorageKey.organization, StorageLocation.session));
if (org) {
this.org = org;