Skip to content

Commit

Permalink
NAS-132522: Remove unused component imports (#11037)
Browse files Browse the repository at this point in the history
  • Loading branch information
undsoft authored Nov 15, 2024
1 parent 0c71811 commit 034ce21
Show file tree
Hide file tree
Showing 86 changed files with 19 additions and 195 deletions.
4 changes: 4 additions & 0 deletions eslint/eslint-ts-rules-extra.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ export const extraRules = {
"importNames": ["NgIf"],
"message": "Use built-in control flow syntax instead"
},
{
"name": "@angular/core",
"importNames": ["CUSTOM_ELEMENTS_SCHEMA"],
},
{
"name": "@angular/common",
"importNames": ["CommonModule"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
Component, output, ChangeDetectionStrategy,
} from '@angular/core';
import { MatButton } from '@angular/material/button';
import { TranslateModule } from '@ngx-translate/core';
import { IxIconComponent } from 'app/modules/ix-icon/ix-icon.component';
import { TestDirective } from 'app/modules/test-id/test.directive';
Expand All @@ -10,7 +9,6 @@ import { TestDirective } from 'app/modules/test-id/test.directive';
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
MatButton,
IxIconComponent,
TranslateModule,
TestDirective,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import {
ChangeDetectionStrategy,
Component, Inject,
Expand All @@ -22,7 +21,6 @@ import { TestDirective } from 'app/modules/test-id/test.directive';
standalone: true,
imports: [
MatDialogTitle,
CdkScrollable,
MatDialogContent,
MatCheckbox,
ReactiveFormsModule,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import { HttpErrorResponse } from '@angular/common/http';
import {
ChangeDetectionStrategy, Component, ElementRef, ViewChild,
Expand Down Expand Up @@ -28,7 +27,6 @@ import { ErrorHandlerService } from 'app/services/error-handler.service';
imports: [
MatDialogTitle,
IxIconComponent,
CdkScrollable,
MatDialogContent,
CopyButtonComponent,
MatDialogActions,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { MatButton } from '@angular/material/button';
import {
Expand Down Expand Up @@ -35,7 +34,6 @@ export interface GeneralDialogConfig {
imports: [
MatDialogTitle,
IxIconComponent,
CdkScrollable,
MatDialogContent,
MatDialogActions,
MatButton,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { MatButton } from '@angular/material/button';
import {
Expand All @@ -17,7 +16,6 @@ import { TestDirective } from 'app/modules/test-id/test.directive';
imports: [
MatDialogTitle,
IxIconComponent,
CdkScrollable,
MatDialogContent,
MatDialogActions,
MatButton,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import { DecimalPipe } from '@angular/common';
import {
AfterViewChecked, ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject, OnInit, output,
Expand Down Expand Up @@ -53,7 +52,6 @@ export interface JobProgressDialogConfig<Result> {
standalone: true,
imports: [
MatDialogTitle,
CdkScrollable,
MatDialogContent,
MatProgressBar,
MatDialogActions,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
import { MatButton } from '@angular/material/button';
import {
Expand All @@ -18,7 +17,6 @@ import { TestDirective } from 'app/modules/test-id/test.directive';
standalone: true,
imports: [
MatDialogTitle,
CdkScrollable,
MatDialogContent,
ErrorTemplateComponent,
MatDivider,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import {
ChangeDetectionStrategy, Component, ElementRef, Inject, ViewChild,
} from '@angular/core';
Expand All @@ -20,7 +19,6 @@ import {
standalone: true,
imports: [
MatDialogTitle,
CdkScrollable,
MatDialogContent,
MatDialogActions,
MatButton,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import {
ChangeDetectionStrategy,
Component, Inject,
Expand All @@ -20,7 +19,6 @@ import { TestDirective } from 'app/modules/test-id/test.directive';
standalone: true,
imports: [
MatDialogTitle,
CdkScrollable,
MatDialogContent,
MatDialogActions,
MatButton,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import {
ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject, OnInit,
} from '@angular/core';
Expand Down Expand Up @@ -37,7 +36,6 @@ export interface StartServiceDialogResult {
standalone: true,
imports: [
MatDialogTitle,
CdkScrollable,
MatDialogContent,
IxSlideToggleComponent,
ReactiveFormsModule,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import { AsyncPipe } from '@angular/common';
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { MatDialogContent, MatDialogTitle } from '@angular/material/dialog';
Expand All @@ -18,7 +17,6 @@ import { selectUpdateJob } from 'app/modules/jobs/store/job.selectors';
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
CdkScrollable,
MatDialogContent,
MatDialogTitle,
TranslateModule,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import { AsyncPipe } from '@angular/common';
import {
ChangeDetectionStrategy, Component, Input, output,
Expand Down Expand Up @@ -36,7 +35,6 @@ export const maxFileSizeBytes = 5 * MiB;
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
CdkScrollable,
MatDialogContent,
ReactiveFormsModule,
IxStarRatingComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import {
ChangeDetectionStrategy,
Component, Inject, Input, output,
Expand Down Expand Up @@ -47,7 +46,6 @@ import { ApiService } from 'app/services/api.service';
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
CdkScrollable,
MatDialogContent,
ReactiveFormsModule,
IxInputComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import {
ChangeDetectionStrategy,
Component, Input, output,
Expand Down Expand Up @@ -34,7 +33,6 @@ import { ApiService } from 'app/services/api.service';
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
CdkScrollable,
MatDialogContent,
ReactiveFormsModule,
IxInputComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import { AsyncPipe } from '@angular/common';
import {
Component, ChangeDetectionStrategy, Inject, ChangeDetectorRef, OnInit,
} from '@angular/core';
import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatButton } from '@angular/material/button';
import {
MatDialogRef, MAT_DIALOG_DATA, MatDialogTitle, MatDialogContent, MatDialogActions, MatDialogClose,
MatDialogRef, MAT_DIALOG_DATA, MatDialogTitle, MatDialogActions, MatDialogClose,
} from '@angular/material/dialog';
import { MatProgressBar } from '@angular/material/progress-bar';
import { FormBuilder } from '@ngneat/reactive-forms';
Expand Down Expand Up @@ -37,8 +36,6 @@ import { ErrorHandlerService } from 'app/services/error-handler.service';
imports: [
MatDialogTitle,
MatProgressBar,
CdkScrollable,
MatDialogContent,
FormsModule,
ReactiveFormsModule,
IxInputComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
ChangeDetectionStrategy, Component, input,
} from '@angular/core';
import { MatDivider } from '@angular/material/divider';
import { TranslateModule } from '@ngx-translate/core';
import { TooltipComponent } from 'app/modules/tooltip/tooltip.component';

Expand All @@ -13,7 +12,6 @@ import { TooltipComponent } from 'app/modules/tooltip/tooltip.component';
standalone: true,
imports: [
TooltipComponent,
MatDivider,
TranslateModule,
],
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import { AsyncPipe } from '@angular/common';
import {
Component, ChangeDetectionStrategy,
Expand Down Expand Up @@ -40,7 +39,6 @@ import { ErrorHandlerService } from 'app/services/error-handler.service';
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
CdkScrollable,
MatDialogContent,
MatTooltip,
IxIconComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgClass, AsyncPipe, LowerCasePipe } from '@angular/common';
import { AsyncPipe } from '@angular/common';
import {
AfterViewInit,
ChangeDetectionStrategy,
Expand Down Expand Up @@ -31,7 +31,6 @@ import { NavigationComponent } from 'app/modules/layout/navigation/navigation.co
import { SecondaryMenuComponent } from 'app/modules/layout/secondary-menu/secondary-menu.component';
import { TopbarComponent } from 'app/modules/layout/topbar/topbar.component';
import { DefaultPageHeaderComponent } from 'app/modules/page-header/default-page-header/default-page-header.component';
import { MapValuePipe } from 'app/modules/pipes/map-value/map-value.pipe';
import { ChainedSlideInComponent } from 'app/modules/slide-ins/components/chained-slide-in/chained-slide-in.component';
import { SlideInComponent } from 'app/modules/slide-ins/slide-in.component';
import { TestDirective } from 'app/modules/test-id/test.directive';
Expand All @@ -56,7 +55,6 @@ import {
imports: [
MatSidenavContainer,
MatSidenav,
NgClass,
RouterLink,
IxIconComponent,
NavigationComponent,
Expand All @@ -72,9 +70,7 @@ import {
SlideInComponent,
ChainedSlideInComponent,
AsyncPipe,
LowerCasePipe,
TranslateModule,
MapValuePipe,
TestDirective,
],
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import { AsyncPipe } from '@angular/common';
import {
ChangeDetectionStrategy, Component, ElementRef, OnInit, ViewChild,
Expand All @@ -18,7 +17,6 @@ import { TestDirective } from 'app/modules/test-id/test.directive';
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
CdkScrollable,
MatDialogContent,
MatDialogActions,
MatButton,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ import { MatDialogRef, MatDialogContent, MatDialogActions } from '@angular/mater
import { Store } from '@ngrx/store';
import { TranslateModule } from '@ngx-translate/core';
import { map } from 'rxjs';
import { LetDirective } from 'app/directives/app-let.directive';
import { helptextAbout } from 'app/helptext/about';
import { IxIconComponent } from 'app/modules/ix-icon/ix-icon.component';
import { CopyrightLineComponent } from 'app/modules/layout/copyright-line/copyright-line.component';
import { MapValuePipe } from 'app/modules/pipes/map-value/map-value.pipe';
import { TestDirective } from 'app/modules/test-id/test.directive';
import { AppState } from 'app/store';
import { selectIsEnterprise, selectSystemInfoState } from 'app/store/system-info/system-info.selectors';
Expand All @@ -28,8 +26,6 @@ import { selectIsEnterprise, selectSystemInfoState } from 'app/store/system-info
CopyrightLineComponent,
MatButton,
TranslateModule,
MapValuePipe,
LetDirective,
TestDirective,
AsyncPipe,
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import {
ChangeDetectionStrategy, Component, OnInit,
signal,
Expand All @@ -25,7 +24,6 @@ import { ErrorHandlerService } from 'app/services/error-handler.service';
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
CdkScrollable,
MatDialogContent,
MatIconButton,
IxIconComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import { DecimalPipe } from '@angular/common';
import {
ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit,
Expand All @@ -25,7 +24,6 @@ import { ApiService } from 'app/services/api.service';
standalone: true,
imports: [
MatDialogTitle,
CdkScrollable,
MatDialogContent,
MatProgressBar,
MatDialogActions,
Expand Down
3 changes: 1 addition & 2 deletions src/app/modules/lists/dual-listbox/dual-listbox.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NgClass, NgStyle } from '@angular/common';
import { Component, ChangeDetectionStrategy, input } from '@angular/core';
import { MatButton, MatIconButton } from '@angular/material/button';
import { MatIconButton } from '@angular/material/button';
import { MatListModule } from '@angular/material/list';
import { MatTooltip } from '@angular/material/tooltip';
import { TranslateModule } from '@ngx-translate/core';
Expand All @@ -18,7 +18,6 @@ import { TestDirective } from 'app/modules/test-id/test.directive';
imports: [
NgClass,
NgStyle,
MatButton,
AngularDualListBoxModule,
IxIconComponent,
MatIconButton,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import {
Component, Input, ChangeDetectionStrategy,
} from '@angular/core';
Expand All @@ -13,7 +12,6 @@ import { TranslateModule } from '@ngx-translate/core';
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
CdkScrollable,
MatDialogContent,
MatProgressSpinner,
TranslateModule,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { MatButton } from '@angular/material/button';
import {
Expand All @@ -15,7 +14,6 @@ import { TestDirective } from 'app/modules/test-id/test.directive';
standalone: true,
imports: [
MatDialogTitle,
CdkScrollable,
MatDialogContent,
MatDialogActions,
MatButton,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import {
ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject, OnInit,
} from '@angular/core';
Expand Down Expand Up @@ -38,7 +37,6 @@ export type TruecommandSignupModalResult = boolean | { deregistered: boolean };
imports: [
MatDialogTitle,
ReactiveFormsModule,
CdkScrollable,
MatDialogContent,
IxInputComponent,
IxCheckboxComponent,
Expand Down
Loading

0 comments on commit 034ce21

Please sign in to comment.