1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

[CL-694] Remove unused imports (#14795)

* Remove unused imports

* Remove more unused imports
This commit is contained in:
Oscar Hinton
2025-05-16 17:11:18 +02:00
committed by GitHub
parent 5cf93921b5
commit c8629b92d3
25 changed files with 2 additions and 59 deletions

View File

@@ -4,13 +4,12 @@ import { Component } from "@angular/core";
import { LayoutComponent } from "@bitwarden/components"; import { LayoutComponent } from "@bitwarden/components";
import { ProductSwitcherModule } from "./product-switcher/product-switcher.module"; import { ProductSwitcherModule } from "./product-switcher/product-switcher.module";
import { ToggleWidthComponent } from "./toggle-width.component";
@Component({ @Component({
selector: "app-layout", selector: "app-layout",
templateUrl: "web-layout.component.html", templateUrl: "web-layout.component.html",
standalone: true, standalone: true,
imports: [CommonModule, LayoutComponent, ProductSwitcherModule, ToggleWidthComponent], imports: [CommonModule, LayoutComponent, ProductSwitcherModule],
}) })
export class WebLayoutComponent { export class WebLayoutComponent {
constructor() {} constructor() {}

View File

@@ -32,7 +32,6 @@ import { HeaderModule } from "@bitwarden/web-vault/app/layouts/header/header.mod
import { AllApplicationsComponent } from "./all-applications.component"; import { AllApplicationsComponent } from "./all-applications.component";
import { CriticalApplicationsComponent } from "./critical-applications.component"; import { CriticalApplicationsComponent } from "./critical-applications.component";
import { NotifiedMembersTableComponent } from "./notified-members-table.component";
import { PasswordHealthMembersURIComponent } from "./password-health-members-uri.component"; import { PasswordHealthMembersURIComponent } from "./password-health-members-uri.component";
import { PasswordHealthMembersComponent } from "./password-health-members.component"; import { PasswordHealthMembersComponent } from "./password-health-members.component";
import { PasswordHealthComponent } from "./password-health.component"; import { PasswordHealthComponent } from "./password-health.component";
@@ -59,7 +58,6 @@ export enum RiskInsightsTabType {
PasswordHealthComponent, PasswordHealthComponent,
PasswordHealthMembersComponent, PasswordHealthMembersComponent,
PasswordHealthMembersURIComponent, PasswordHealthMembersURIComponent,
NotifiedMembersTableComponent,
TabsModule, TabsModule,
DrawerComponent, DrawerComponent,
DrawerBodyComponent, DrawerBodyComponent,

View File

@@ -10,7 +10,7 @@ import {
} from "@angular/core"; } from "@angular/core";
import { takeUntilDestroyed } from "@angular/core/rxjs-interop"; import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
import { FormBuilder, ReactiveFormsModule, Validators } from "@angular/forms"; import { FormBuilder, ReactiveFormsModule, Validators } from "@angular/forms";
import { ActivatedRoute, Router, RouterLink } from "@angular/router"; import { ActivatedRoute, Router } from "@angular/router";
import { lastValueFrom, firstValueFrom } from "rxjs"; import { lastValueFrom, firstValueFrom } from "rxjs";
import { JslibModule } from "@bitwarden/angular/jslib.module"; import { JslibModule } from "@bitwarden/angular/jslib.module";
@@ -84,10 +84,8 @@ import {
ReactiveFormsModule, ReactiveFormsModule,
FormFieldModule, FormFieldModule,
AsyncActionsModule, AsyncActionsModule,
RouterLink,
CheckboxModule, CheckboxModule,
ButtonModule, ButtonModule,
TwoFactorOptionsComponent, // used as dialog
TwoFactorAuthAuthenticatorComponent, TwoFactorAuthAuthenticatorComponent,
TwoFactorAuthEmailComponent, TwoFactorAuthEmailComponent,
TwoFactorAuthDuoComponent, TwoFactorAuthDuoComponent,

View File

@@ -2,7 +2,6 @@
// @ts-strict-ignore // @ts-strict-ignore
import { import {
CdkVirtualScrollViewport, CdkVirtualScrollViewport,
CdkVirtualScrollableWindow,
CdkFixedSizeVirtualScroll, CdkFixedSizeVirtualScroll,
CdkVirtualForOf, CdkVirtualForOf,
} from "@angular/cdk/scrolling"; } from "@angular/cdk/scrolling";
@@ -56,7 +55,6 @@ export class BitRowDef {
imports: [ imports: [
CommonModule, CommonModule,
CdkVirtualScrollViewport, CdkVirtualScrollViewport,
CdkVirtualScrollableWindow,
CdkFixedSizeVirtualScroll, CdkFixedSizeVirtualScroll,
CdkVirtualForOf, CdkVirtualForOf,
RowDirective, RowDirective,

View File

@@ -49,7 +49,6 @@ import {
ButtonModule, ButtonModule,
CalloutModule, CalloutModule,
CardComponent, CardComponent,
ContainerComponent,
DialogService, DialogService,
FormFieldModule, FormFieldModule,
IconButtonModule, IconButtonModule,
@@ -119,7 +118,6 @@ const safeProviders: SafeProvider[] = [
ImportLastPassComponent, ImportLastPassComponent,
RadioButtonModule, RadioButtonModule,
CardComponent, CardComponent,
ContainerComponent,
SectionHeaderComponent, SectionHeaderComponent,
SectionComponent, SectionComponent,
LinkModule, LinkModule,

View File

@@ -80,7 +80,6 @@ import { ExportScopeCalloutComponent } from "./export-scope-callout.component";
CalloutModule, CalloutModule,
RadioButtonModule, RadioButtonModule,
ExportScopeCalloutComponent, ExportScopeCalloutComponent,
UserVerificationDialogComponent,
PasswordStrengthV2Component, PasswordStrengthV2Component,
GeneratorServicesModule, GeneratorServicesModule,
], ],

View File

@@ -25,10 +25,8 @@ import {
AsyncActionsModule, AsyncActionsModule,
BitSubmitDirective, BitSubmitDirective,
ButtonComponent, ButtonComponent,
CardComponent,
FormFieldModule, FormFieldModule,
ItemModule, ItemModule,
SectionComponent,
SelectModule, SelectModule,
ToastService, ToastService,
TypographyModule, TypographyModule,
@@ -52,8 +50,6 @@ import { SendDetailsComponent } from "./send-details/send-details.component";
], ],
imports: [ imports: [
AsyncActionsModule, AsyncActionsModule,
CardComponent,
SectionComponent,
TypographyModule, TypographyModule,
ItemModule, ItemModule,
FormFieldModule, FormFieldModule,

View File

@@ -13,7 +13,6 @@ import {
CheckboxModule, CheckboxModule,
FormFieldModule, FormFieldModule,
LinkModule, LinkModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
} from "@bitwarden/components"; } from "@bitwarden/components";
@@ -28,7 +27,6 @@ import { CustomFieldsComponent } from "../custom-fields/custom-fields.component"
standalone: true, standalone: true,
imports: [ imports: [
CommonModule, CommonModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
JslibModule, JslibModule,

View File

@@ -22,7 +22,6 @@ import {
FormFieldModule, FormFieldModule,
IconButtonModule, IconButtonModule,
LinkModule, LinkModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
SelectModule, SelectModule,
TypographyModule, TypographyModule,
@@ -43,7 +42,6 @@ interface UriField {
standalone: true, standalone: true,
imports: [ imports: [
DragDropModule, DragDropModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
JslibModule, JslibModule,

View File

@@ -16,7 +16,6 @@ import {
CardComponent, CardComponent,
FormFieldModule, FormFieldModule,
IconButtonModule, IconButtonModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
SelectModule, SelectModule,
TypographyModule, TypographyModule,
@@ -30,7 +29,6 @@ import { CipherFormContainer } from "../../cipher-form-container";
standalone: true, standalone: true,
imports: [ imports: [
CardComponent, CardComponent,
SectionComponent,
TypographyModule, TypographyModule,
FormFieldModule, FormFieldModule,
ReactiveFormsModule, ReactiveFormsModule,

View File

@@ -26,10 +26,8 @@ import {
AsyncActionsModule, AsyncActionsModule,
BitSubmitDirective, BitSubmitDirective,
ButtonComponent, ButtonComponent,
CardComponent,
FormFieldModule, FormFieldModule,
ItemModule, ItemModule,
SectionComponent,
SelectModule, SelectModule,
ToastService, ToastService,
TypographyModule, TypographyModule,
@@ -63,8 +61,6 @@ import { SshKeySectionComponent } from "./sshkey-section/sshkey-section.componen
], ],
imports: [ imports: [
AsyncActionsModule, AsyncActionsModule,
CardComponent,
SectionComponent,
TypographyModule, TypographyModule,
ItemModule, ItemModule,
FormFieldModule, FormFieldModule,

View File

@@ -37,7 +37,6 @@ import {
FormFieldModule, FormFieldModule,
IconButtonModule, IconButtonModule,
LinkModule, LinkModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
SelectModule, SelectModule,
TypographyModule, TypographyModule,
@@ -79,7 +78,6 @@ export type CustomField = {
FormsModule, FormsModule,
FormFieldModule, FormFieldModule,
ReactiveFormsModule, ReactiveFormsModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
CardComponent, CardComponent,

View File

@@ -14,7 +14,6 @@ import {
CardComponent, CardComponent,
FormFieldModule, FormFieldModule,
IconButtonModule, IconButtonModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
SelectModule, SelectModule,
TypographyModule, TypographyModule,
@@ -31,7 +30,6 @@ import { CipherFormContainer } from "../../cipher-form-container";
ButtonModule, ButtonModule,
JslibModule, JslibModule,
ReactiveFormsModule, ReactiveFormsModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
CardComponent, CardComponent,
FormFieldModule, FormFieldModule,

View File

@@ -19,7 +19,6 @@ import {
CardComponent, CardComponent,
FormFieldModule, FormFieldModule,
IconButtonModule, IconButtonModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
SelectItemView, SelectItemView,
SelectModule, SelectModule,
@@ -38,7 +37,6 @@ import { CipherFormContainer } from "../../cipher-form-container";
standalone: true, standalone: true,
imports: [ imports: [
CardComponent, CardComponent,
SectionComponent,
TypographyModule, TypographyModule,
FormFieldModule, FormFieldModule,
ReactiveFormsModule, ReactiveFormsModule,

View File

@@ -20,7 +20,6 @@ import {
IconButtonModule, IconButtonModule,
LinkModule, LinkModule,
PopoverModule, PopoverModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
ToastService, ToastService,
TypographyModule, TypographyModule,
@@ -36,7 +35,6 @@ import { AutofillOptionsComponent } from "../autofill-options/autofill-options.c
templateUrl: "./login-details-section.component.html", templateUrl: "./login-details-section.component.html",
standalone: true, standalone: true,
imports: [ imports: [
SectionComponent,
ReactiveFormsModule, ReactiveFormsModule,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,

View File

@@ -16,7 +16,6 @@ import {
CardComponent, CardComponent,
FormFieldModule, FormFieldModule,
IconButtonModule, IconButtonModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
SelectModule, SelectModule,
TypographyModule, TypographyModule,
@@ -32,7 +31,6 @@ import { CipherFormContainer } from "../../cipher-form-container";
standalone: true, standalone: true,
imports: [ imports: [
CardComponent, CardComponent,
SectionComponent,
TypographyModule, TypographyModule,
FormFieldModule, FormFieldModule,
ReactiveFormsModule, ReactiveFormsModule,

View File

@@ -6,7 +6,6 @@ import {
IconButtonModule, IconButtonModule,
CardComponent, CardComponent,
InputModule, InputModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
FormFieldModule, FormFieldModule,
@@ -22,7 +21,6 @@ import {
CardComponent, CardComponent,
IconButtonModule, IconButtonModule,
InputModule, InputModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
FormFieldModule, FormFieldModule,

View File

@@ -15,7 +15,6 @@ import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
import { import {
ItemModule, ItemModule,
IconButtonModule, IconButtonModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
} from "@bitwarden/components"; } from "@bitwarden/components";
@@ -32,7 +31,6 @@ import { DownloadAttachmentComponent } from "../../components/download-attachmen
JslibModule, JslibModule,
ItemModule, ItemModule,
IconButtonModule, IconButtonModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
DownloadAttachmentComponent, DownloadAttachmentComponent,

View File

@@ -14,7 +14,6 @@ import {
CardComponent, CardComponent,
FormFieldModule, FormFieldModule,
IconButtonModule, IconButtonModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
} from "@bitwarden/components"; } from "@bitwarden/components";
@@ -27,7 +26,6 @@ import {
CommonModule, CommonModule,
JslibModule, JslibModule,
CardComponent, CardComponent,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
FormFieldModule, FormFieldModule,

View File

@@ -9,8 +9,6 @@ import { EventType } from "@bitwarden/common/enums";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service"; import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
import { import {
CardComponent,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
FormFieldModule, FormFieldModule,
@@ -26,8 +24,6 @@ import { ReadOnlyCipherCardComponent } from "../read-only-cipher-card/read-only-
imports: [ imports: [
CommonModule, CommonModule,
JslibModule, JslibModule,
CardComponent,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
FormFieldModule, FormFieldModule,

View File

@@ -17,7 +17,6 @@ import {
IconButtonModule, IconButtonModule,
FormFieldModule, FormFieldModule,
InputModule, InputModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
CheckboxModule, CheckboxModule,
@@ -37,7 +36,6 @@ import { VaultAutosizeReadOnlyTextArea } from "../../directives/readonly-textare
IconButtonModule, IconButtonModule,
FormFieldModule, FormFieldModule,
InputModule, InputModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
CheckboxModule, CheckboxModule,

View File

@@ -11,7 +11,6 @@ import { FolderView } from "@bitwarden/common/vault/models/view/folder.view";
import { import {
CardComponent, CardComponent,
FormFieldModule, FormFieldModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
} from "@bitwarden/components"; } from "@bitwarden/components";
@@ -26,7 +25,6 @@ import { OrgIconDirective } from "../../components/org-icon.directive";
CommonModule, CommonModule,
JslibModule, JslibModule,
CardComponent, CardComponent,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
OrgIconDirective, OrgIconDirective,

View File

@@ -23,7 +23,6 @@ import { PremiumUpgradePromptService } from "@bitwarden/common/vault/abstraction
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
import { import {
FormFieldModule, FormFieldModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
LinkModule, LinkModule,
@@ -47,7 +46,6 @@ type TotpCodeValues = {
imports: [ imports: [
CommonModule, CommonModule,
JslibModule, JslibModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
FormFieldModule, FormFieldModule,

View File

@@ -7,15 +7,12 @@ import { JslibModule } from "@bitwarden/angular/jslib.module";
import { SshKeyView } from "@bitwarden/common/vault/models/view/ssh-key.view"; import { SshKeyView } from "@bitwarden/common/vault/models/view/ssh-key.view";
import { import {
CardComponent, CardComponent,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
FormFieldModule, FormFieldModule,
IconButtonModule, IconButtonModule,
} from "@bitwarden/components"; } from "@bitwarden/components";
import { OrgIconDirective } from "../../components/org-icon.directive";
@Component({ @Component({
selector: "app-sshkey-view", selector: "app-sshkey-view",
templateUrl: "sshkey-view.component.html", templateUrl: "sshkey-view.component.html",
@@ -24,10 +21,8 @@ import { OrgIconDirective } from "../../components/org-icon.directive";
CommonModule, CommonModule,
JslibModule, JslibModule,
CardComponent, CardComponent,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
OrgIconDirective,
FormFieldModule, FormFieldModule,
IconButtonModule, IconButtonModule,
], ],

View File

@@ -6,7 +6,6 @@ import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
import { import {
FormFieldModule, FormFieldModule,
IconButtonModule, IconButtonModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
} from "@bitwarden/components"; } from "@bitwarden/components";
@@ -20,7 +19,6 @@ import { ReadOnlyCipherCardComponent } from "../read-only-cipher-card/read-only-
imports: [ imports: [
NgIf, NgIf,
JslibModule, JslibModule,
SectionComponent,
SectionHeaderComponent, SectionHeaderComponent,
TypographyModule, TypographyModule,
FormFieldModule, FormFieldModule,