mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-10 16:15:12 +00:00
chore(console): remove all console eslint warnings (#11853)
<!-- Please inform yourself about the contribution guidelines on submitting a PR here: https://github.com/zitadel/zitadel/blob/main/CONTRIBUTING.md#submit-a-pull-request-pr. Take note of how PR/commit titles should be written and replace the template texts in the sections below. Don't remove any of the sections. It is important that the commit history clearly shows what is changed and why. Important: By submitting a contribution you agree to the terms from our Licensing Policy as described here: https://github.com/zitadel/zitadel/blob/main/LICENSING.md#community-contributions. --> # Which Problems Are Solved When running the nx target @zitadel/console:lint-check-ng currently there are a lot of eslint warnings. # How the Problems Are Solved Removed unused variables, imports etc. # Additional Changes # Additional Context
This commit is contained in:
@@ -395,16 +395,16 @@ export class AdminService {
|
||||
}),
|
||||
};
|
||||
});
|
||||
const toArray = Object.entries(obj).sort(([key0, a], [key1, b]) => a.order - b.order);
|
||||
const toArray = Object.entries(obj).sort(([_key0, a], [_key1, b]) => a.order - b.order);
|
||||
|
||||
const toDo = toArray.filter(([key, value]) => value.reached === undefined);
|
||||
const done = toArray.filter(([key, value]) => !!value.reached);
|
||||
const toDo = toArray.filter(([_, value]) => value.reached === undefined);
|
||||
const done = toArray.filter(([_, value]) => !!value.reached);
|
||||
|
||||
return [...toDo, ...done];
|
||||
}),
|
||||
tap((milestones) => {
|
||||
const total = milestones.length;
|
||||
const done = milestones.map(([type, value]) => value.reached !== undefined).filter((res) => !!res).length;
|
||||
const done = milestones.map(([_, value]) => value.reached !== undefined).filter((res) => !!res).length;
|
||||
const percentage = Math.round((done / total) * 100);
|
||||
this.progressDone.next(done);
|
||||
this.progressTotal.next(total);
|
||||
|
||||
@@ -215,8 +215,6 @@ import {
|
||||
GetProjectGrantByIDResponse,
|
||||
GetProviderByIDRequest,
|
||||
GetProviderByIDResponse,
|
||||
GetSupportedLanguagesRequest,
|
||||
GetSupportedLanguagesResponse,
|
||||
GetUserByIDRequest,
|
||||
GetUserByIDResponse,
|
||||
GetUserByLoginNameGlobalRequest,
|
||||
|
||||
@@ -23,7 +23,6 @@ import {
|
||||
ResendHumanInitializationResponse,
|
||||
ResendHumanPhoneVerificationRequestSchema,
|
||||
ResendHumanPhoneVerificationResponse,
|
||||
SendHumanResetPasswordNotificationRequest_Type,
|
||||
SendHumanResetPasswordNotificationRequestSchema,
|
||||
SendHumanResetPasswordNotificationResponse,
|
||||
SetUserMetadataRequestSchema,
|
||||
|
||||
@@ -31,7 +31,7 @@ export class OverlayService {
|
||||
|
||||
const dialogRef = new CnslOverlayRef(overlayRef);
|
||||
|
||||
const overlayComponent = this.attachOverlayContainer(overlayRef, dialogConfig, overlayRef);
|
||||
this.attachOverlayContainer(overlayRef, dialogConfig, overlayRef);
|
||||
|
||||
overlayRef.backdropClick().subscribe((_) => dialogRef.close());
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ export class PosthogService implements OnDestroy {
|
||||
enable_heatmaps: true,
|
||||
persistence: 'memory',
|
||||
loaded: (posthog) => {
|
||||
posthog.onFeatureFlags((flags) => {
|
||||
posthog.onFeatureFlags(() => {
|
||||
if (posthog.isFeatureEnabled('session_recording')) {
|
||||
posthog.startSessionRecording();
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { BehaviorSubject, Observable } from 'rxjs';
|
||||
|
||||
declare const tinycolor: any;
|
||||
|
||||
export interface Color {
|
||||
name: string;
|
||||
hex: string;
|
||||
|
||||
@@ -38,7 +38,7 @@ export class ToastService {
|
||||
|
||||
public showError = (error: any | string, isGrpc: boolean = true, i18nKey: boolean = false) => {
|
||||
if (isGrpc) {
|
||||
const { message, code, metadata } = error;
|
||||
const { message, code } = error;
|
||||
if (code !== 16) {
|
||||
this.translate
|
||||
.get('ACTIONS.CLOSE')
|
||||
|
||||
Reference in New Issue
Block a user