mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-07 15:04:33 +00:00
fix: update console deps (#9628)
# Which Problems Are Solved Closes most of the dependabot alerts # How the Problems Are Solved Updating Versions as much as possible. Angular upgrade was left out on purpose. # Additional Changes Some refactoring of unused code, which I stumbled upon looking at our used deps.
This commit is contained in:
parent
febf410d80
commit
b04babb4ef
@ -12,47 +12,43 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^16.2.5",
|
"@angular/animations": "^16.2.12",
|
||||||
"@angular/cdk": "^16.2.4",
|
"@angular/cdk": "^16.2.14",
|
||||||
"@angular/common": "^16.2.5",
|
"@angular/common": "^16.2.12",
|
||||||
"@angular/compiler": "^16.2.5",
|
"@angular/compiler": "^16.2.12",
|
||||||
"@angular/core": "^16.2.5",
|
"@angular/core": "^16.2.12",
|
||||||
"@angular/forms": "^16.2.5",
|
"@angular/forms": "^16.2.12",
|
||||||
"@angular/material": "^16.2.4",
|
"@angular/material": "^16.2.14",
|
||||||
"@angular/material-moment-adapter": "^16.2.4",
|
"@angular/material-moment-adapter": "^16.2.14",
|
||||||
"@angular/platform-browser": "^16.2.5",
|
"@angular/platform-browser": "^16.2.12",
|
||||||
"@angular/platform-browser-dynamic": "^16.2.5",
|
"@angular/platform-browser-dynamic": "^16.2.12",
|
||||||
"@angular/router": "^16.2.5",
|
"@angular/router": "^16.2.12",
|
||||||
"@angular/service-worker": "^16.2.5",
|
"@angular/service-worker": "^16.2.12",
|
||||||
"@connectrpc/connect": "^2.0.0",
|
"@connectrpc/connect": "^2.0.0",
|
||||||
"@connectrpc/connect-web": "^2.0.0",
|
"@connectrpc/connect-web": "^2.0.0",
|
||||||
"@ctrl/ngx-codemirror": "^6.1.0",
|
"@ctrl/ngx-codemirror": "^6.1.0",
|
||||||
"@fortawesome/angular-fontawesome": "^0.13.0",
|
"@fortawesome/angular-fontawesome": "^0.13.0",
|
||||||
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
||||||
"@fortawesome/free-brands-svg-icons": "^6.4.2",
|
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
||||||
"@grpc/grpc-js": "^1.11.2",
|
|
||||||
"@netlify/framework-info": "^9.8.13",
|
|
||||||
"@ngx-translate/core": "^15.0.0",
|
"@ngx-translate/core": "^15.0.0",
|
||||||
"@zitadel/client": "^1.0.7",
|
"@zitadel/client": "^1.0.7",
|
||||||
"@zitadel/proto": "^1.0.4",
|
"@zitadel/proto": "^1.0.4",
|
||||||
"angular-oauth2-oidc": "^15.0.1",
|
"angular-oauth2-oidc": "^15.0.1",
|
||||||
"angularx-qrcode": "^16.0.0",
|
"angularx-qrcode": "^16.0.2",
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
"codemirror": "^5.65.8",
|
"codemirror": "^5.65.19",
|
||||||
"cors": "^2.8.5",
|
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"flag-icons": "^7.1.0",
|
"flag-icons": "^7.3.2",
|
||||||
"google-proto-files": "^4.0.0",
|
"google-protobuf": "^3.21.4",
|
||||||
"google-protobuf": "^3.21.2",
|
"grpc-web": "^1.5.0",
|
||||||
"grpc-web": "^1.4.1",
|
"i18n-iso-countries": "^7.14.0",
|
||||||
"i18n-iso-countries": "^7.7.0",
|
"libphonenumber-js": "^1.12.6",
|
||||||
"libphonenumber-js": "^1.11.8",
|
"material-design-icons-iconfont": "^6.7.0",
|
||||||
"material-design-icons-iconfont": "^6.1.1",
|
"moment": "^2.30.1",
|
||||||
"moment": "^2.29.4",
|
|
||||||
"ngx-color": "^9.0.0",
|
"ngx-color": "^9.0.0",
|
||||||
"opentype.js": "^1.3.4",
|
"opentype.js": "^1.3.4",
|
||||||
"posthog-js": "^1.191.0",
|
"posthog-js": "^1.232.7",
|
||||||
"rxjs": "~7.8.0",
|
"rxjs": "^7.8.2",
|
||||||
"tinycolor2": "^1.6.0",
|
"tinycolor2": "^1.6.0",
|
||||||
"tslib": "^2.7.0",
|
"tslib": "^2.7.0",
|
||||||
"uuid": "^10.0.0",
|
"uuid": "^10.0.0",
|
||||||
@ -79,19 +75,18 @@
|
|||||||
"@types/qrcode": "^1.5.2",
|
"@types/qrcode": "^1.5.2",
|
||||||
"@types/uuid": "^10.0.0",
|
"@types/uuid": "^10.0.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
||||||
"@typescript-eslint/parser": "^5.60.1",
|
"@typescript-eslint/parser": "^5.62.0",
|
||||||
"codelyzer": "^6.0.2",
|
"eslint": "^8.57.1",
|
||||||
"eslint": "^8.50.0",
|
"jasmine-core": "~5.6.0",
|
||||||
"jasmine-core": "~5.3.0",
|
|
||||||
"jasmine-spec-reporter": "~7.0.0",
|
"jasmine-spec-reporter": "~7.0.0",
|
||||||
"karma": "^6.4.2",
|
"karma": "^6.4.4",
|
||||||
"karma-chrome-launcher": "^3.2.0",
|
"karma-chrome-launcher": "^3.2.0",
|
||||||
"karma-coverage-istanbul-reporter": "^3.0.3",
|
"karma-coverage-istanbul-reporter": "^3.0.3",
|
||||||
"karma-jasmine": "^5.1.0",
|
"karma-jasmine": "^5.1.0",
|
||||||
"karma-jasmine-html-reporter": "^2.1.0",
|
"karma-jasmine-html-reporter": "^2.1.0",
|
||||||
"prettier": "^3.1.1",
|
"prettier": "^3.5.3",
|
||||||
"prettier-plugin-organize-imports": "^4.0.0",
|
"prettier-plugin-organize-imports": "^4.1.0",
|
||||||
"protractor": "~7.0.0",
|
"typescript": "5.1",
|
||||||
"typescript": "5.1"
|
"@netlify/framework-info": "^9.8.13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,23 +1,12 @@
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { Component, EventEmitter, OnDestroy, OnInit, Output, effect, signal } from '@angular/core';
|
import { Component, EventEmitter, OnDestroy, OnInit, Output } from '@angular/core';
|
||||||
import { ActivatedRoute, Params, RouterModule } from '@angular/router';
|
import { ActivatedRoute, Params, RouterModule } from '@angular/router';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import frameworkDefinition from '../../../../../docs/frameworks.json';
|
import frameworkDefinition from '../../../../../docs/frameworks.json';
|
||||||
import { MatButtonModule } from '@angular/material/button';
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
import { listFrameworks, hasFramework, getFramework } from '@netlify/framework-info';
|
|
||||||
import { FrameworkName } from '@netlify/framework-info/lib/generated/frameworkNames';
|
|
||||||
import { FrameworkAutocompleteComponent } from '../framework-autocomplete/framework-autocomplete.component';
|
|
||||||
import { Framework } from '../quickstart/quickstart.component';
|
import { Framework } from '../quickstart/quickstart.component';
|
||||||
import { BehaviorSubject, Subject, takeUntil } from 'rxjs';
|
import { BehaviorSubject, Subject, takeUntil } from 'rxjs';
|
||||||
import {
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
MatDialog,
|
|
||||||
MatDialogActions,
|
|
||||||
MatDialogClose,
|
|
||||||
MatDialogContent,
|
|
||||||
MatDialogModule,
|
|
||||||
MatDialogRef,
|
|
||||||
MatDialogTitle,
|
|
||||||
} from '@angular/material/dialog';
|
|
||||||
import { FrameworkChangeDialogComponent } from './framework-change-dialog.component';
|
import { FrameworkChangeDialogComponent } from './framework-change-dialog.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -25,12 +14,11 @@ import { FrameworkChangeDialogComponent } from './framework-change-dialog.compon
|
|||||||
selector: 'cnsl-framework-change',
|
selector: 'cnsl-framework-change',
|
||||||
templateUrl: './framework-change.component.html',
|
templateUrl: './framework-change.component.html',
|
||||||
styleUrls: ['./framework-change.component.scss'],
|
styleUrls: ['./framework-change.component.scss'],
|
||||||
imports: [TranslateModule, RouterModule, CommonModule, MatButtonModule, FrameworkAutocompleteComponent],
|
imports: [TranslateModule, RouterModule, CommonModule, MatButtonModule],
|
||||||
})
|
})
|
||||||
export class FrameworkChangeComponent implements OnInit, OnDestroy {
|
export class FrameworkChangeComponent implements OnInit, OnDestroy {
|
||||||
private destroy$: Subject<void> = new Subject();
|
private destroy$: Subject<void> = new Subject();
|
||||||
public framework: BehaviorSubject<Framework | undefined> = new BehaviorSubject<Framework | undefined>(undefined);
|
public framework: BehaviorSubject<Framework | undefined> = new BehaviorSubject<Framework | undefined>(undefined);
|
||||||
public showFrameworkAutocomplete = signal<boolean>(false);
|
|
||||||
@Output() public frameworkChanged: EventEmitter<Framework> = new EventEmitter();
|
@Output() public frameworkChanged: EventEmitter<Framework> = new EventEmitter();
|
||||||
public frameworks: Framework[] = frameworkDefinition.map((f) => {
|
public frameworks: Framework[] = frameworkDefinition.map((f) => {
|
||||||
return {
|
return {
|
||||||
|
@ -2,10 +2,8 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import frameworkDefinition from '../../../../../docs/frameworks.json';
|
|
||||||
import { MatButtonModule } from '@angular/material/button';
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
import { listFrameworks, hasFramework, getFramework } from '@netlify/framework-info';
|
import type { FrameworkName } from '@netlify/framework-info/lib/generated/frameworkNames';
|
||||||
import { FrameworkName } from '@netlify/framework-info/lib/generated/frameworkNames';
|
|
||||||
import { AddOIDCAppRequest } from 'src/app/proto/generated/zitadel/management_pb';
|
import { AddOIDCAppRequest } from 'src/app/proto/generated/zitadel/management_pb';
|
||||||
|
|
||||||
export type FrameworkDefinition = {
|
export type FrameworkDefinition = {
|
||||||
|
@ -4,8 +4,7 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import frameworkDefinition from '../../../../../docs/frameworks.json';
|
import frameworkDefinition from '../../../../../docs/frameworks.json';
|
||||||
import { MatButtonModule } from '@angular/material/button';
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
import { listFrameworks, hasFramework, getFramework } from '@netlify/framework-info';
|
import type { FrameworkName } from '@netlify/framework-info/lib/generated/frameworkNames';
|
||||||
import { FrameworkName } from '@netlify/framework-info/lib/generated/frameworkNames';
|
|
||||||
import { OIDC_CONFIGURATIONS } from 'src/app/utils/framework';
|
import { OIDC_CONFIGURATIONS } from 'src/app/utils/framework';
|
||||||
|
|
||||||
export type FrameworkDefinition = {
|
export type FrameworkDefinition = {
|
||||||
|
@ -71,14 +71,7 @@ const _MatInputBase = mixinErrorState(
|
|||||||
})
|
})
|
||||||
export class InputDirective
|
export class InputDirective
|
||||||
extends _MatInputBase
|
extends _MatInputBase
|
||||||
implements
|
implements MatFormFieldControl<any>, OnChanges, CanUpdateErrorState, OnDestroy, AfterViewInit, DoCheck, CanUpdateErrorState
|
||||||
MatFormFieldControl<any>,
|
|
||||||
OnChanges,
|
|
||||||
CanUpdateErrorState,
|
|
||||||
OnDestroy,
|
|
||||||
AfterViewInit,
|
|
||||||
DoCheck,
|
|
||||||
CanUpdateErrorState
|
|
||||||
{
|
{
|
||||||
protected _uid: string = `cnsl-input-${nextUniqueId++}`;
|
protected _uid: string = `cnsl-input-${nextUniqueId++}`;
|
||||||
protected _previousNativeValue: any;
|
protected _previousNativeValue: any;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||||
import { ColorEvent } from 'ngx-color';
|
import type { ColorEvent } from 'ngx-color';
|
||||||
import { BehaviorSubject, debounceTime } from 'rxjs';
|
import { BehaviorSubject, debounceTime } from 'rxjs';
|
||||||
|
|
||||||
import { ColorType } from '../private-labeling-policy.component';
|
import { ColorType } from '../private-labeling-policy.component';
|
||||||
|
@ -46,7 +46,7 @@ import { RedirectUrisComponent } from './redirect-uris/redirect-uris.component';
|
|||||||
import { IntegrateAppComponent } from './integrate/integrate.component';
|
import { IntegrateAppComponent } from './integrate/integrate.component';
|
||||||
import { OIDCConfigurationComponent } from 'src/app/components/oidc-configuration/oidc-configuration.component';
|
import { OIDCConfigurationComponent } from 'src/app/components/oidc-configuration/oidc-configuration.component';
|
||||||
import { FrameworkChangeComponent } from 'src/app/components/framework-change/framework-change.component';
|
import { FrameworkChangeComponent } from 'src/app/components/framework-change/framework-change.component';
|
||||||
import { CopyRowComponent } from '../../../components/copy-row/copy-row.component';
|
import { CopyRowComponent } from 'src/app/components/copy-row/copy-row.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Injectable, OnDestroy } from '@angular/core';
|
import { DestroyRef, Injectable, OnDestroy } from '@angular/core';
|
||||||
import { EnvironmentService } from './environment.service';
|
import { EnvironmentService } from './environment.service';
|
||||||
import { Subscription } from 'rxjs';
|
|
||||||
import posthog from 'posthog-js';
|
import posthog from 'posthog-js';
|
||||||
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
@ -9,17 +9,16 @@ import posthog from 'posthog-js';
|
|||||||
export class PosthogService implements OnDestroy {
|
export class PosthogService implements OnDestroy {
|
||||||
private posthogToken?: string;
|
private posthogToken?: string;
|
||||||
private posthogUrl?: string;
|
private posthogUrl?: string;
|
||||||
private envSubscription: Subscription;
|
|
||||||
|
|
||||||
constructor(private envService: EnvironmentService) {
|
constructor(envService: EnvironmentService, destroyRef: DestroyRef) {
|
||||||
this.envSubscription = this.envService.env.subscribe((env) => {
|
envService.env.pipe(takeUntilDestroyed(destroyRef)).subscribe((env) => {
|
||||||
this.posthogToken = env.posthog_token;
|
this.posthogToken = env.posthog_token;
|
||||||
this.posthogUrl = env.posthog_url;
|
this.posthogUrl = env.posthog_url;
|
||||||
this.init();
|
this.init();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async init() {
|
init() {
|
||||||
if (this.posthogToken && this.posthogUrl) {
|
if (this.posthogToken && this.posthogUrl) {
|
||||||
posthog.init(this.posthogToken, {
|
posthog.init(this.posthogToken, {
|
||||||
api_host: this.posthogUrl,
|
api_host: this.posthogUrl,
|
||||||
@ -34,10 +33,6 @@ export class PosthogService implements OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
if (this.envSubscription) {
|
|
||||||
this.envSubscription.unsubscribe();
|
|
||||||
}
|
|
||||||
|
|
||||||
posthog.reset();
|
posthog.reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
import { Framework } from '@netlify/framework-info/lib/types';
|
|
||||||
import { AddOIDCAppRequest } from '../proto/generated/zitadel/management_pb';
|
import { AddOIDCAppRequest } from '../proto/generated/zitadel/management_pb';
|
||||||
import { FrameworkName } from '@netlify/framework-info/lib/generated/frameworkNames';
|
|
||||||
import { OIDCAppType, OIDCAuthMethodType, OIDCGrantType, OIDCResponseType } from '../proto/generated/zitadel/app_pb';
|
import { OIDCAppType, OIDCAuthMethodType, OIDCGrantType, OIDCResponseType } from '../proto/generated/zitadel/app_pb';
|
||||||
|
|
||||||
type OidcAppConfigurations = {
|
type OidcAppConfigurations = {
|
||||||
|
1338
console/yarn.lock
1338
console/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user