1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-23 19:53:43 +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

@@ -24,7 +24,7 @@ export class AccountComponent {
constructor(
private modalService: ModalService,
private userVerificationService: UserVerificationService
private userVerificationService: UserVerificationService,
) {}
async ngOnInit() {

View File

@@ -28,7 +28,7 @@ export class ApiKeyComponent {
constructor(
private userVerificationService: UserVerificationService,
private logService: LogService
private logService: LogService,
) {}
async submit() {

View File

@@ -55,7 +55,7 @@ export class ChangeAvatarComponent implements OnInit, OnDestroy {
private i18nService: I18nService,
private platformUtilsService: PlatformUtilsService,
private logService: LogService,
private accountUpdateService: AvatarUpdateService
private accountUpdateService: AvatarUpdateService,
) {}
async ngOnInit() {

View File

@@ -35,7 +35,7 @@
</div>
<ng-container *ngIf="tokenSent">
<hr />
<p>{{ "changeEmailDesc" | i18n : newEmail }}</p>
<p>{{ "changeEmailDesc" | i18n: newEmail }}</p>
<app-callout type="warning">{{ "loggedOutWarning" | i18n }}</app-callout>
<div class="row">
<div class="col-6">

View File

@@ -31,13 +31,13 @@ export class ChangeEmailComponent implements OnInit {
private cryptoService: CryptoService,
private messagingService: MessagingService,
private logService: LogService,
private stateService: StateService
private stateService: StateService,
) {}
async ngOnInit() {
const twoFactorProviders = await this.apiService.getTwoFactorProviders();
this.showTwoFactorEmailWarning = twoFactorProviders.data.some(
(p) => p.type === TwoFactorProviderType.Email && p.enabled
(p) => p.type === TwoFactorProviderType.Email && p.enabled,
);
}
@@ -48,7 +48,7 @@ export class ChangeEmailComponent implements OnInit {
request.newEmail = this.newEmail;
request.masterPasswordHash = await this.cryptoService.hashMasterKey(
this.masterPassword,
await this.cryptoService.getOrDeriveMasterKey(this.masterPassword)
await this.cryptoService.getOrDeriveMasterKey(this.masterPassword),
);
try {
this.formPromise = this.apiService.postEmailToken(request);
@@ -63,7 +63,7 @@ export class ChangeEmailComponent implements OnInit {
request.newEmail = this.newEmail;
request.masterPasswordHash = await this.cryptoService.hashMasterKey(
this.masterPassword,
await this.cryptoService.getOrDeriveMasterKey(this.masterPassword)
await this.cryptoService.getOrDeriveMasterKey(this.masterPassword),
);
const kdf = await this.stateService.getKdfType();
const kdfConfig = await this.stateService.getKdfConfig();
@@ -71,11 +71,11 @@ export class ChangeEmailComponent implements OnInit {
this.masterPassword,
this.newEmail,
kdf,
kdfConfig
kdfConfig,
);
request.newMasterPasswordHash = await this.cryptoService.hashMasterKey(
this.masterPassword,
newMasterKey
newMasterKey,
);
const newUserKey = await this.cryptoService.encryptUserKeyWithMasterKey(newMasterKey);
request.key = newUserKey[1].encryptedString;
@@ -86,7 +86,7 @@ export class ChangeEmailComponent implements OnInit {
this.platformUtilsService.showToast(
"success",
this.i18nService.t("emailChanged"),
this.i18nService.t("logBackIn")
this.i18nService.t("logBackIn"),
);
this.messagingService.send("logout");
} catch (e) {

View File

@@ -37,7 +37,7 @@ export class ChangeKdfConfirmationComponent {
private messagingService: MessagingService,
private stateService: StateService,
private logService: LogService,
@Inject(DIALOG_DATA) params: { kdf: KdfType; kdfConfig: KdfConfig }
@Inject(DIALOG_DATA) params: { kdf: KdfType; kdfConfig: KdfConfig },
) {
this.kdf = params.kdf;
this.kdfConfig = params.kdfConfig;
@@ -53,7 +53,7 @@ export class ChangeKdfConfirmationComponent {
this.platformUtilsService.showToast(
"success",
this.i18nService.t("encKeySettingsChanged"),
this.i18nService.t("logBackIn")
this.i18nService.t("logBackIn"),
);
this.messagingService.send("logout");
} catch (e) {
@@ -77,11 +77,11 @@ export class ChangeKdfConfirmationComponent {
masterPassword,
email,
this.kdf,
this.kdfConfig
this.kdfConfig,
);
request.newMasterPasswordHash = await this.cryptoService.hashMasterKey(
masterPassword,
newMasterKey
newMasterKey,
);
const newUserKey = await this.cryptoService.encryptUserKeyWithMasterKey(newMasterKey);
request.key = newUserKey[1].encryptedString;

View File

@@ -94,10 +94,10 @@
<div class="col-12">
<ng-container *ngIf="kdf == kdfType.PBKDF2_SHA256">
<p class="small form-text text-muted">
{{ "kdfIterationsDesc" | i18n : (recommendedPbkdf2Iterations | number) }}
{{ "kdfIterationsDesc" | i18n: (recommendedPbkdf2Iterations | number) }}
</p>
<bit-callout type="warning">
{{ "kdfIterationsWarning" | i18n : (100000 | number) }}
{{ "kdfIterationsWarning" | i18n: (100000 | number) }}
</bit-callout>
</ng-container>
<ng-container *ngIf="kdf == kdfType.Argon2id">

View File

@@ -25,7 +25,10 @@ export class ChangeKdfComponent implements OnInit {
kdfOptions: any[] = [];
recommendedPbkdf2Iterations = DEFAULT_PBKDF2_ITERATIONS;
constructor(private stateService: StateService, private dialogService: DialogService) {
constructor(
private stateService: StateService,
private dialogService: DialogService,
) {
this.kdfOptions = [
{ name: "PBKDF2 SHA-256", value: KdfType.PBKDF2_SHA256 },
{ name: "Argon2id", value: KdfType.Argon2id },
@@ -44,7 +47,7 @@ export class ChangeKdfComponent implements OnInit {
this.kdfConfig = new KdfConfig(
DEFAULT_ARGON2_ITERATIONS,
DEFAULT_ARGON2_MEMORY,
DEFAULT_ARGON2_PARALLELISM
DEFAULT_ARGON2_PARALLELISM,
);
} else {
throw new Error("Unknown KDF type.");

View File

@@ -23,7 +23,7 @@ export class DeleteAccountComponent {
private platformUtilsService: PlatformUtilsService,
private formBuilder: FormBuilder,
private accountApiService: AccountApiService,
private logService: LogService
private logService: LogService,
) {}
async submit() {
@@ -34,7 +34,7 @@ export class DeleteAccountComponent {
this.platformUtilsService.showToast(
"success",
this.i18nService.t("accountDeleted"),
this.i18nService.t("accountDeletedDesc")
this.i18nService.t("accountDeletedDesc"),
);
} catch (e) {
this.logService.error(e);

View File

@@ -16,7 +16,7 @@
<div class="form-group d-flex" *ngFor="let d of custom; let i = index; trackBy: indexTrackBy">
<div class="flex-fill">
<label for="customDomain_{{ i }}" class="sr-only">{{
"customDomainX" | i18n : i + 1
"customDomainX" | i18n: i + 1
}}</label>
<textarea
class="form-control"

View File

@@ -20,7 +20,7 @@ export class DomainRulesComponent implements OnInit {
private apiService: ApiService,
private i18nService: I18nService,
private platformUtilsService: PlatformUtilsService,
private logService: LogService
private logService: LogService,
) {}
async ngOnInit() {

View File

@@ -9,14 +9,14 @@
<span *ngIf="policy.timeout && policy.action">
{{
"vaultTimeoutPolicyWithActionInEffect"
| i18n : policy.timeout.hours : policy.timeout.minutes : (policy.action | i18n)
| i18n: policy.timeout.hours : policy.timeout.minutes : (policy.action | i18n)
}}
</span>
<span *ngIf="policy.timeout && !policy.action">
{{ "vaultTimeoutPolicyInEffect" | i18n : policy.timeout.hours : policy.timeout.minutes }}
{{ "vaultTimeoutPolicyInEffect" | i18n: policy.timeout.hours : policy.timeout.minutes }}
</span>
<span *ngIf="!policy.timeout && policy.action">
{{ "vaultTimeoutActionPolicyInEffect" | i18n : (policy.action | i18n) }}
{{ "vaultTimeoutActionPolicyInEffect" | i18n: (policy.action | i18n) }}
</span>
</app-callout>
<app-vault-timeout-input

View File

@@ -57,7 +57,7 @@ export class PreferencesComponent implements OnInit {
private messagingService: MessagingService,
private themingService: AbstractThemingService,
private settingsService: SettingsService,
private dialogService: DialogService
private dialogService: DialogService,
) {
this.vaultTimeoutOptions = [
{ name: i18nService.t("oneMinute"), value: 1 },
@@ -112,7 +112,7 @@ export class PreferencesComponent implements OnInit {
} else {
this.form.controls.vaultTimeoutAction.enable({ emitEvent: false });
}
})
}),
);
this.form.controls.vaultTimeoutAction.valueChanges
@@ -133,13 +133,13 @@ export class PreferencesComponent implements OnInit {
}
}
}),
takeUntil(this.destroy$)
takeUntil(this.destroy$),
)
.subscribe();
const initialFormValues = {
vaultTimeout: await this.vaultTimeoutSettingsService.getVaultTimeout(),
vaultTimeoutAction: await firstValueFrom(
this.vaultTimeoutSettingsService.vaultTimeoutAction$()
this.vaultTimeoutSettingsService.vaultTimeoutAction$(),
),
enableFavicons: !(await this.settingsService.getDisableFavicon()),
enableFullWidth: await this.stateService.getEnableFullWidth(),
@@ -156,7 +156,7 @@ export class PreferencesComponent implements OnInit {
this.platformUtilsService.showToast(
"error",
null,
this.i18nService.t("vaultTimeoutRangeError")
this.i18nService.t("vaultTimeoutRangeError"),
);
return;
}
@@ -164,7 +164,7 @@ export class PreferencesComponent implements OnInit {
await this.vaultTimeoutSettingsService.setVaultTimeoutOptions(
values.vaultTimeout,
values.vaultTimeoutAction
values.vaultTimeoutAction,
);
await this.settingsService.setDisableFavicon(!values.enableFavicons);
await this.stateService.setEnableFullWidth(values.enableFullWidth);
@@ -180,7 +180,7 @@ export class PreferencesComponent implements OnInit {
this.platformUtilsService.showToast(
"success",
null,
this.i18nService.t("preferencesUpdated")
this.i18nService.t("preferencesUpdated"),
);
}
}

View File

@@ -32,7 +32,7 @@ export class ProfileComponent implements OnInit, OnDestroy {
private platformUtilsService: PlatformUtilsService,
private logService: LogService,
private stateService: StateService,
private modalService: ModalService
private modalService: ModalService,
) {}
async ngOnInit() {
@@ -55,7 +55,7 @@ export class ProfileComponent implements OnInit, OnDestroy {
modal.changeColor.pipe(takeUntil(this.destroy$)).subscribe(() => {
modalOpened[0].close();
});
}
},
);
}

View File

@@ -23,7 +23,7 @@ export class SecurityKeysComponent implements OnInit {
private userVerificationService: UserVerificationService,
private stateService: StateService,
private modalService: ModalService,
private apiService: ApiService
private apiService: ApiService,
) {}
async ngOnInit() {

View File

@@ -27,7 +27,7 @@ export class SettingsComponent implements OnInit, OnDestroy {
private platformUtilsService: PlatformUtilsService,
private organizationService: OrganizationService,
private stateService: StateService,
private apiService: ApiService
private apiService: ApiService,
) {}
async ngOnInit() {