mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
* [deps] Autofill: Update prettier to v3 * prettier formatting updates --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
58 lines
2.3 KiB
TypeScript
58 lines
2.3 KiB
TypeScript
import { Component, OnInit } from "@angular/core";
|
|
import { UntypedFormBuilder } from "@angular/forms";
|
|
|
|
import { ExportComponent as BaseExportComponent } from "@bitwarden/angular/tools/export/components/export.component";
|
|
import { EventCollectionService } from "@bitwarden/common/abstractions/event/event-collection.service";
|
|
import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
|
import { UserVerificationService } from "@bitwarden/common/auth/abstractions/user-verification/user-verification.service.abstraction";
|
|
import { BroadcasterService } from "@bitwarden/common/platform/abstractions/broadcaster.service";
|
|
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
|
import { FileDownloadService } from "@bitwarden/common/platform/abstractions/file-download/file-download.service";
|
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
|
import { DialogService } from "@bitwarden/components";
|
|
import { VaultExportServiceAbstraction } from "@bitwarden/exporter/vault-export";
|
|
|
|
const BroadcasterSubscriptionId = "ExportComponent";
|
|
|
|
@Component({
|
|
selector: "app-export",
|
|
templateUrl: "export.component.html",
|
|
})
|
|
export class ExportComponent extends BaseExportComponent implements OnInit {
|
|
constructor(
|
|
cryptoService: CryptoService,
|
|
i18nService: I18nService,
|
|
platformUtilsService: PlatformUtilsService,
|
|
exportService: VaultExportServiceAbstraction,
|
|
eventCollectionService: EventCollectionService,
|
|
policyService: PolicyService,
|
|
userVerificationService: UserVerificationService,
|
|
formBuilder: UntypedFormBuilder,
|
|
private broadcasterService: BroadcasterService,
|
|
logService: LogService,
|
|
fileDownloadService: FileDownloadService,
|
|
dialogService: DialogService,
|
|
) {
|
|
super(
|
|
cryptoService,
|
|
i18nService,
|
|
platformUtilsService,
|
|
exportService,
|
|
eventCollectionService,
|
|
policyService,
|
|
window,
|
|
logService,
|
|
userVerificationService,
|
|
formBuilder,
|
|
fileDownloadService,
|
|
dialogService,
|
|
);
|
|
}
|
|
|
|
ngOnDestroy() {
|
|
this.broadcasterService.unsubscribe(BroadcasterSubscriptionId);
|
|
}
|
|
}
|