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

[deps] Autofill: Update prettier to v3 (#7014)

* [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>
This commit is contained in:
renovate[bot]
2023-11-29 16:15:20 -05:00
committed by GitHub
parent 4ff5f38e89
commit 28de9439be
1145 changed files with 5898 additions and 5612 deletions

View File

@@ -1,5 +1,5 @@
<ng-container *ngIf="show">
<app-callout type="info" title="{{ scopeConfig.title | i18n }}">
{{ scopeConfig.description | i18n : scopeConfig.scopeIdentifier }}
{{ scopeConfig.description | i18n: scopeConfig.scopeIdentifier }}
</app-callout>
</ng-container>

View File

@@ -19,7 +19,7 @@ export class ExportScopeCalloutComponent implements OnInit {
constructor(
protected organizationService: OrganizationService,
protected stateService: StateService
protected stateService: StateService,
) {}
async ngOnInit(): Promise<void> {

View File

@@ -59,7 +59,7 @@ export class ExportComponent implements OnInit, OnDestroy {
private userVerificationService: UserVerificationService,
private formBuilder: UntypedFormBuilder,
protected fileDownloadService: FileDownloadService,
protected dialogService: DialogService
protected dialogService: DialogService,
) {}
async ngOnInit() {
@@ -75,7 +75,7 @@ export class ExportComponent implements OnInit, OnDestroy {
merge(
this.exportForm.get("format").valueChanges,
this.exportForm.get("fileEncryptionType").valueChanges
this.exportForm.get("fileEncryptionType").valueChanges,
)
.pipe(takeUntil(this.destroy$))
.pipe(startWith(0))
@@ -109,7 +109,7 @@ export class ExportComponent implements OnInit, OnDestroy {
this.platformUtilsService.showToast(
"error",
null,
this.i18nService.t("personalVaultExportPolicyInEffect")
this.i18nService.t("personalVaultExportPolicyInEffect"),
);
return;
}

View File

@@ -48,7 +48,7 @@ export class GeneratorComponent implements OnInit {
protected i18nService: I18nService,
protected logService: LogService,
protected route: ActivatedRoute,
private win: Window
private win: Window,
) {
this.typeOptions = [
{ name: i18nService.t("password"), value: "password" },
@@ -180,7 +180,7 @@ export class GeneratorComponent implements OnInit {
async generateUsername() {
try {
this.usernameGeneratingPromise = this.usernameGenerationService.generateUsername(
this.usernameOptions
this.usernameOptions,
);
this.username = await this.usernameGeneratingPromise;
if (this.username === "" || this.username === null) {
@@ -196,12 +196,12 @@ export class GeneratorComponent implements OnInit {
const copyOptions = this.win != null ? { window: this.win } : null;
this.platformUtilsService.copyToClipboard(
password ? this.password : this.username,
copyOptions
copyOptions,
);
this.platformUtilsService.showToast(
"info",
null,
this.i18nService.t("valueCopied", this.i18nService.t(password ? "password" : "username"))
this.i18nService.t("valueCopied", this.i18nService.t(password ? "password" : "username")),
);
}
@@ -238,7 +238,7 @@ export class GeneratorComponent implements OnInit {
this.passwordGenerationService.normalizeOptions(
this.passwordOptions,
this.enforcedPasswordPolicyOptions
this.enforcedPasswordPolicyOptions,
);
}

View File

@@ -15,7 +15,7 @@ export class PasswordGeneratorHistoryComponent implements OnInit {
protected passwordGenerationService: PasswordGenerationServiceAbstraction,
protected platformUtilsService: PlatformUtilsService,
protected i18nService: I18nService,
private win: Window
private win: Window,
) {}
async ngOnInit() {
@@ -33,7 +33,7 @@ export class PasswordGeneratorHistoryComponent implements OnInit {
this.platformUtilsService.showToast(
"info",
null,
this.i18nService.t("valueCopied", this.i18nService.t("password"))
this.i18nService.t("valueCopied", this.i18nService.t("password")),
);
}
}

View File

@@ -115,7 +115,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
protected stateService: StateService,
protected sendApiService: SendApiService,
protected dialogService: DialogService,
protected formBuilder: FormBuilder
protected formBuilder: FormBuilder,
) {
this.typeOptions = [
{ name: i18nService.t("sendTypeFile"), value: SendType.File, premium: true },
@@ -238,7 +238,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("sendDisabledWarning")
this.i18nService.t("sendDisabledWarning"),
);
return false;
}
@@ -258,7 +258,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("nameRequired")
this.i18nService.t("nameRequired"),
);
return false;
}
@@ -271,7 +271,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("selectFile")
this.i18nService.t("selectFile"),
);
return;
}
@@ -282,7 +282,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("maxFileSize")
this.i18nService.t("maxFileSize"),
);
return;
}
@@ -309,7 +309,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
this.platformUtilsService.showToast(
"success",
null,
this.i18nService.t(this.editMode ? "editedSend" : "createdSend")
this.i18nService.t(this.editMode ? "editedSend" : "createdSend"),
);
});
try {
@@ -424,7 +424,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
: null,
defaultDeletionDateTime: this.datePipe.transform(
new Date(this.send.deletionDate),
"yyyy-MM-ddTHH:mm"
"yyyy-MM-ddTHH:mm",
),
});
@@ -439,7 +439,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
this.platformUtilsService.showToast(
"success",
null,
this.i18nService.t(this.editMode ? "editedSend" : "createdSend")
this.i18nService.t(this.editMode ? "editedSend" : "createdSend"),
);
} else {
await this.dialogService.openSimpleDialog({
@@ -471,7 +471,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
const now = new Date();
const milliseconds = now.setTime(
now.getTime() +
(this.formGroup.controls.selectedExpirationDatePreset.value as number) * 60 * 60 * 1000
(this.formGroup.controls.selectedExpirationDatePreset.value as number) * 60 * 60 * 1000,
);
return new Date(milliseconds).toString();
}
@@ -489,7 +489,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
const now = new Date();
const milliseconds = now.setTime(
now.getTime() +
(this.formGroup.controls.selectedDeletionDatePreset.value as number) * 60 * 60 * 1000
(this.formGroup.controls.selectedDeletionDatePreset.value as number) * 60 * 60 * 1000,
);
return new Date(milliseconds).toString();
}

View File

@@ -58,7 +58,7 @@ export class SendComponent implements OnInit, OnDestroy {
protected policyService: PolicyService,
private logService: LogService,
protected sendApiService: SendApiService,
protected dialogService: DialogService
protected dialogService: DialogService,
) {}
async ngOnInit() {
@@ -201,7 +201,7 @@ export class SendComponent implements OnInit, OnDestroy {
this.platformUtilsService.showToast(
"success",
null,
this.i18nService.t("valueCopied", this.i18nService.t("sendLink"))
this.i18nService.t("valueCopied", this.i18nService.t("sendLink")),
);
}