mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 05:43:41 +00:00
Remove unused imports in browser and desktop (#14875)
Removes unused imports from browser and desktop. These were missed in #14795.
This commit is contained in:
@@ -10,8 +10,6 @@ import {
|
|||||||
ButtonModule,
|
ButtonModule,
|
||||||
IconButtonModule,
|
IconButtonModule,
|
||||||
ItemModule,
|
ItemModule,
|
||||||
SectionComponent,
|
|
||||||
SectionHeaderComponent,
|
|
||||||
TypographyModule,
|
TypographyModule,
|
||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
|
|
||||||
@@ -27,8 +25,6 @@ import {
|
|||||||
IconButtonModule,
|
IconButtonModule,
|
||||||
ItemModule,
|
ItemModule,
|
||||||
JslibModule,
|
JslibModule,
|
||||||
SectionComponent,
|
|
||||||
SectionHeaderComponent,
|
|
||||||
TypographyModule,
|
TypographyModule,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
|
|
||||||
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
|
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
|
||||||
import { PopupFooterComponent } from "../../../platform/popup/layout/popup-footer.component";
|
|
||||||
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
|
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
|
||||||
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
|
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
|
||||||
|
|
||||||
@@ -31,7 +30,6 @@ import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.co
|
|||||||
RouterModule,
|
RouterModule,
|
||||||
PopupPageComponent,
|
PopupPageComponent,
|
||||||
PopupHeaderComponent,
|
PopupHeaderComponent,
|
||||||
PopupFooterComponent,
|
|
||||||
PopOutComponent,
|
PopOutComponent,
|
||||||
ItemModule,
|
ItemModule,
|
||||||
CardComponent,
|
CardComponent,
|
||||||
|
|||||||
@@ -185,7 +185,6 @@ class MockVaultPageComponent {}
|
|||||||
PopupPageComponent,
|
PopupPageComponent,
|
||||||
PopupHeaderComponent,
|
PopupHeaderComponent,
|
||||||
MockAddButtonComponent,
|
MockAddButtonComponent,
|
||||||
MockPopoutButtonComponent,
|
|
||||||
MockCurrentAccountComponent,
|
MockCurrentAccountComponent,
|
||||||
VaultComponent,
|
VaultComponent,
|
||||||
],
|
],
|
||||||
@@ -290,9 +289,7 @@ class MockSettingsPageComponent {}
|
|||||||
PopupHeaderComponent,
|
PopupHeaderComponent,
|
||||||
PopupFooterComponent,
|
PopupFooterComponent,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
MockAddButtonComponent,
|
|
||||||
MockPopoutButtonComponent,
|
MockPopoutButtonComponent,
|
||||||
MockCurrentAccountComponent,
|
|
||||||
VaultComponent,
|
VaultComponent,
|
||||||
IconButtonModule,
|
IconButtonModule,
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import { GeneratorModule } from "@bitwarden/generator-components";
|
|||||||
|
|
||||||
import { CurrentAccountComponent } from "../../../auth/popup/account-switching/current-account.component";
|
import { CurrentAccountComponent } from "../../../auth/popup/account-switching/current-account.component";
|
||||||
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
|
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
|
||||||
import { PopupFooterComponent } from "../../../platform/popup/layout/popup-footer.component";
|
|
||||||
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
|
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
|
||||||
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
|
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
|
||||||
|
|
||||||
@@ -22,7 +21,6 @@ import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.co
|
|||||||
PopOutComponent,
|
PopOutComponent,
|
||||||
PopupHeaderComponent,
|
PopupHeaderComponent,
|
||||||
PopupPageComponent,
|
PopupPageComponent,
|
||||||
PopupFooterComponent,
|
|
||||||
RouterModule,
|
RouterModule,
|
||||||
ItemModule,
|
ItemModule,
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import { CommonModule } from "@angular/common";
|
import { CommonModule } from "@angular/common";
|
||||||
import { Component } from "@angular/core";
|
import { Component } from "@angular/core";
|
||||||
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
||||||
import { ActivatedRoute, Router, RouterLink, RouterModule } from "@angular/router";
|
import { ActivatedRoute, Router, RouterModule } from "@angular/router";
|
||||||
import { firstValueFrom } from "rxjs";
|
import { firstValueFrom } from "rxjs";
|
||||||
|
|
||||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||||
@@ -31,7 +31,6 @@ import { PopupPageComponent } from "../../../../platform/popup/layout/popup-page
|
|||||||
PopOutComponent,
|
PopOutComponent,
|
||||||
PopupHeaderComponent,
|
PopupHeaderComponent,
|
||||||
PopupPageComponent,
|
PopupPageComponent,
|
||||||
RouterLink,
|
|
||||||
RouterModule,
|
RouterModule,
|
||||||
PopupFooterComponent,
|
PopupFooterComponent,
|
||||||
IconModule,
|
IconModule,
|
||||||
|
|||||||
@@ -18,13 +18,7 @@ import { ProductTierType } from "@bitwarden/common/billing/enums";
|
|||||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
import { CipherId } from "@bitwarden/common/types/guid";
|
import { CipherId } from "@bitwarden/common/types/guid";
|
||||||
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
||||||
import {
|
import { BadgeModule, ItemModule, ToastService, TypographyModule } from "@bitwarden/components";
|
||||||
BadgeModule,
|
|
||||||
CardComponent,
|
|
||||||
ItemModule,
|
|
||||||
ToastService,
|
|
||||||
TypographyModule,
|
|
||||||
} from "@bitwarden/components";
|
|
||||||
|
|
||||||
import BrowserPopupUtils from "../../../../../../platform/popup/browser-popup-utils";
|
import BrowserPopupUtils from "../../../../../../platform/popup/browser-popup-utils";
|
||||||
import { FilePopoutUtilsService } from "../../../../../../tools/popup/services/file-popout-utils.service";
|
import { FilePopoutUtilsService } from "../../../../../../tools/popup/services/file-popout-utils.service";
|
||||||
@@ -33,7 +27,7 @@ import { FilePopoutUtilsService } from "../../../../../../tools/popup/services/f
|
|||||||
standalone: true,
|
standalone: true,
|
||||||
selector: "app-open-attachments",
|
selector: "app-open-attachments",
|
||||||
templateUrl: "./open-attachments.component.html",
|
templateUrl: "./open-attachments.component.html",
|
||||||
imports: [BadgeModule, CommonModule, ItemModule, JslibModule, TypographyModule, CardComponent],
|
imports: [BadgeModule, CommonModule, ItemModule, JslibModule, TypographyModule],
|
||||||
})
|
})
|
||||||
export class OpenAttachmentsComponent implements OnInit {
|
export class OpenAttachmentsComponent implements OnInit {
|
||||||
/** Cipher `id` */
|
/** Cipher `id` */
|
||||||
|
|||||||
@@ -6,12 +6,7 @@ import { combineLatest, map, Observable } from "rxjs";
|
|||||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||||
import { VaultSettingsService } from "@bitwarden/common/vault/abstractions/vault-settings/vault-settings.service";
|
import { VaultSettingsService } from "@bitwarden/common/vault/abstractions/vault-settings/vault-settings.service";
|
||||||
import { CipherType } from "@bitwarden/common/vault/enums";
|
import { CipherType } from "@bitwarden/common/vault/enums";
|
||||||
import {
|
import { IconButtonModule, TypographyModule } from "@bitwarden/components";
|
||||||
IconButtonModule,
|
|
||||||
SectionComponent,
|
|
||||||
SectionHeaderComponent,
|
|
||||||
TypographyModule,
|
|
||||||
} from "@bitwarden/components";
|
|
||||||
|
|
||||||
import BrowserPopupUtils from "../../../../../platform/popup/browser-popup-utils";
|
import BrowserPopupUtils from "../../../../../platform/popup/browser-popup-utils";
|
||||||
import { VaultPopupAutofillService } from "../../../services/vault-popup-autofill.service";
|
import { VaultPopupAutofillService } from "../../../services/vault-popup-autofill.service";
|
||||||
@@ -23,11 +18,9 @@ import { VaultListItemsContainerComponent } from "../vault-list-items-container/
|
|||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
SectionComponent,
|
|
||||||
TypographyModule,
|
TypographyModule,
|
||||||
VaultListItemsContainerComponent,
|
VaultListItemsContainerComponent,
|
||||||
JslibModule,
|
JslibModule,
|
||||||
SectionHeaderComponent,
|
|
||||||
IconButtonModule,
|
IconButtonModule,
|
||||||
],
|
],
|
||||||
selector: "app-autofill-vault-list-items",
|
selector: "app-autofill-vault-list-items",
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ import { ItemMoreOptionsComponent } from "../item-more-options/item-more-options
|
|||||||
ScrollingModule,
|
ScrollingModule,
|
||||||
DisclosureComponent,
|
DisclosureComponent,
|
||||||
DisclosureTriggerForDirective,
|
DisclosureTriggerForDirective,
|
||||||
DecryptionFailureDialogComponent,
|
|
||||||
],
|
],
|
||||||
selector: "app-vault-list-items-container",
|
selector: "app-vault-list-items-container",
|
||||||
templateUrl: "vault-list-items-container.component.html",
|
templateUrl: "vault-list-items-container.component.html",
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import { AccountService } from "@bitwarden/common/auth/abstractions/account.serv
|
|||||||
import { getUserId } from "@bitwarden/common/auth/services/account.service";
|
import { getUserId } from "@bitwarden/common/auth/services/account.service";
|
||||||
import { CardComponent, LinkModule, TypographyModule } from "@bitwarden/components";
|
import { CardComponent, LinkModule, TypographyModule } from "@bitwarden/components";
|
||||||
|
|
||||||
import { CurrentAccountComponent } from "../../../auth/popup/account-switching/current-account.component";
|
|
||||||
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
|
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
|
||||||
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
|
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
|
||||||
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
|
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
|
||||||
@@ -26,7 +25,6 @@ import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.co
|
|||||||
PopOutComponent,
|
PopOutComponent,
|
||||||
CardComponent,
|
CardComponent,
|
||||||
TypographyModule,
|
TypographyModule,
|
||||||
CurrentAccountComponent,
|
|
||||||
LinkModule,
|
LinkModule,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ import { PopupCipherView } from "../../views/popup-cipher.view";
|
|||||||
IconButtonModule,
|
IconButtonModule,
|
||||||
OrgIconDirective,
|
OrgIconDirective,
|
||||||
TypographyModule,
|
TypographyModule,
|
||||||
DecryptionFailureDialogComponent,
|
|
||||||
],
|
],
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import { ItemModule, ToastOptions, ToastService } from "@bitwarden/components";
|
|||||||
import { BrowserApi } from "../../../platform/browser/browser-api";
|
import { BrowserApi } from "../../../platform/browser/browser-api";
|
||||||
import BrowserPopupUtils from "../../../platform/popup/browser-popup-utils";
|
import BrowserPopupUtils from "../../../platform/popup/browser-popup-utils";
|
||||||
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
|
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
|
||||||
import { PopupFooterComponent } from "../../../platform/popup/layout/popup-footer.component";
|
|
||||||
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
|
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
|
||||||
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
|
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
|
||||||
|
|
||||||
@@ -22,7 +21,6 @@ import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.co
|
|||||||
JslibModule,
|
JslibModule,
|
||||||
RouterModule,
|
RouterModule,
|
||||||
PopupPageComponent,
|
PopupPageComponent,
|
||||||
PopupFooterComponent,
|
|
||||||
PopupHeaderComponent,
|
PopupHeaderComponent,
|
||||||
PopOutComponent,
|
PopOutComponent,
|
||||||
ItemModule,
|
ItemModule,
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import {
|
|||||||
IconButtonModule,
|
IconButtonModule,
|
||||||
DialogService,
|
DialogService,
|
||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
import { CipherFormGeneratorComponent } from "@bitwarden/vault";
|
|
||||||
|
|
||||||
export interface ApproveSshRequestParams {
|
export interface ApproveSshRequestParams {
|
||||||
cipherName: string;
|
cipherName: string;
|
||||||
@@ -30,7 +29,6 @@ export interface ApproveSshRequestParams {
|
|||||||
DialogModule,
|
DialogModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
JslibModule,
|
JslibModule,
|
||||||
CipherFormGeneratorComponent,
|
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
IconButtonModule,
|
IconButtonModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
|
|||||||
Reference in New Issue
Block a user