1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +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 { ProductSwitcherModule } from "./product-switcher/product-switcher.module";
import { ToggleWidthComponent } from "./toggle-width.component";
@Component({
selector: "app-layout",
templateUrl: "web-layout.component.html",
standalone: true,
imports: [CommonModule, LayoutComponent, ProductSwitcherModule, ToggleWidthComponent],
imports: [CommonModule, LayoutComponent, ProductSwitcherModule],
})
export class WebLayoutComponent {
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 { CriticalApplicationsComponent } from "./critical-applications.component";
import { NotifiedMembersTableComponent } from "./notified-members-table.component";
import { PasswordHealthMembersURIComponent } from "./password-health-members-uri.component";
import { PasswordHealthMembersComponent } from "./password-health-members.component";
import { PasswordHealthComponent } from "./password-health.component";
@@ -59,7 +58,6 @@ export enum RiskInsightsTabType {
PasswordHealthComponent,
PasswordHealthMembersComponent,
PasswordHealthMembersURIComponent,
NotifiedMembersTableComponent,
TabsModule,
DrawerComponent,
DrawerBodyComponent,

View File

@@ -10,7 +10,7 @@ import {
} from "@angular/core";
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
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 { JslibModule } from "@bitwarden/angular/jslib.module";
@@ -84,10 +84,8 @@ import {
ReactiveFormsModule,
FormFieldModule,
AsyncActionsModule,
RouterLink,
CheckboxModule,
ButtonModule,
TwoFactorOptionsComponent, // used as dialog
TwoFactorAuthAuthenticatorComponent,
TwoFactorAuthEmailComponent,
TwoFactorAuthDuoComponent,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -11,7 +11,6 @@ import { FolderView } from "@bitwarden/common/vault/models/view/folder.view";
import {
CardComponent,
FormFieldModule,
SectionComponent,
SectionHeaderComponent,
TypographyModule,
} from "@bitwarden/components";
@@ -26,7 +25,6 @@ import { OrgIconDirective } from "../../components/org-icon.directive";
CommonModule,
JslibModule,
CardComponent,
SectionComponent,
SectionHeaderComponent,
TypographyModule,
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 {
FormFieldModule,
SectionComponent,
SectionHeaderComponent,
TypographyModule,
LinkModule,
@@ -47,7 +46,6 @@ type TotpCodeValues = {
imports: [
CommonModule,
JslibModule,
SectionComponent,
SectionHeaderComponent,
TypographyModule,
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 {
CardComponent,
SectionComponent,
SectionHeaderComponent,
TypographyModule,
FormFieldModule,
IconButtonModule,
} from "@bitwarden/components";
import { OrgIconDirective } from "../../components/org-icon.directive";
@Component({
selector: "app-sshkey-view",
templateUrl: "sshkey-view.component.html",
@@ -24,10 +21,8 @@ import { OrgIconDirective } from "../../components/org-icon.directive";
CommonModule,
JslibModule,
CardComponent,
SectionComponent,
SectionHeaderComponent,
TypographyModule,
OrgIconDirective,
FormFieldModule,
IconButtonModule,
],

View File

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