1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[PM-1512] Upgrade prettier (#5028)

* Upgrade prettier

* Lock prettier version
This commit is contained in:
Oscar Hinton
2023-03-21 11:28:15 +01:00
committed by GitHub
parent 9c60b2b54a
commit ff4293b7bd
107 changed files with 294 additions and 223 deletions

View File

@@ -49,7 +49,7 @@
}}</span>
</td>
<td bitCell class="tw-text-muted">
{{ orgDomain.lastCheckedDate | date: "medium" }}
{{ orgDomain.lastCheckedDate | date : "medium" }}
</td>
<td bitCell class="table-list-options tw-text-right">

View File

@@ -39,7 +39,7 @@
</ng-container>
<ng-container
*ngIf="!loading && (clients | search: searchText:'organizationName':'id') as searchedClients"
*ngIf="!loading && (clients | search : searchText : 'organizationName' : 'id') as searchedClients"
>
<p *ngIf="!searchedClients.length">{{ "noClientsInList" | i18n }}</p>
<ng-container *ngIf="searchedClients.length">

View File

@@ -76,7 +76,7 @@
</thead>
<tbody>
<tr *ngFor="let e of events">
<td>{{ e.date | date: "medium" }}</td>
<td>{{ e.date | date : "medium" }}</td>
<td>
<i
class="text-muted bwi bwi-lg {{ e.appIcon }}"

View File

@@ -100,7 +100,9 @@
<ng-container
*ngIf="
!loading &&
(isPaging() ? pagedUsers : (users | search: searchText:'name':'email':'id')) as searchedUsers
(isPaging()
? pagedUsers
: (users | search : searchText : 'name' : 'email' : 'id')) as searchedUsers
"
>
<p *ngIf="!searchedUsers.length">{{ "noUsersInList" | i18n }}</p>

View File

@@ -43,7 +43,7 @@
required
appAutoFocus
/>
<small class="text-muted">{{ "inviteMultipleEmailDesc" | i18n: "20" }}</small>
<small class="text-muted">{{ "inviteMultipleEmailDesc" | i18n : "20" }}</small>
</div>
</ng-container>
<h3>

View File

@@ -5,7 +5,7 @@
<div class="tw-text-lg">{{ title }}</div>
<bit-progress class="tw-flex-1" [showText]="false" [barWidth]="barWidth"></bit-progress>
<span *ngIf="tasks.length > 0; else spinner">
{{ "complete" | i18n: amountCompleted:tasks.length }}
{{ "complete" | i18n : amountCompleted : tasks.length }}
</span>
<i
class="bwi tw-my-auto"

View File

@@ -50,7 +50,7 @@
[projects]="view.latestProjects"
></sm-projects-list>
<div *ngIf="view.allProjects.length > 0" class="tw-ml-auto tw-mt-4 tw-max-w-max">
{{ "showingPortionOfTotal" | i18n: view.latestProjects.length:view.allProjects.length }}
{{ "showingPortionOfTotal" | i18n : view.latestProjects.length : view.allProjects.length }}
<a bitLink routerLink="projects" class="tw-ml-2">{{ "viewAll" | i18n }}</a>
</div>
</sm-section>
@@ -66,7 +66,7 @@
[secrets]="view.latestSecrets"
></sm-secrets-list>
<div *ngIf="view.allSecrets.length > 0" class="tw-ml-auto tw-mt-4 tw-max-w-max">
{{ "showingPortionOfTotal" | i18n: view.latestSecrets.length:view.allSecrets.length }}
{{ "showingPortionOfTotal" | i18n : view.latestSecrets.length : view.allSecrets.length }}
<a bitLink routerLink="secrets" class="tw-ml-2">{{ "viewAll" | i18n }}</a>
</div>
</sm-section>

View File

@@ -59,9 +59,9 @@
<td bitCell>{{ token.name }}</td>
<td bitCell>{{ permission(token) | i18n }}</td>
<td bitCell>
{{ token.expireAt === null ? ("never" | i18n) : (token.expireAt | date: "medium") }}
{{ token.expireAt === null ? ("never" | i18n) : (token.expireAt | date : "medium") }}
</td>
<td bitCell>{{ token.revisionDate | date: "medium" }}</td>
<td bitCell>{{ token.revisionDate | date : "medium" }}</td>
<td bitCell>
<button
type="button"

View File

@@ -10,7 +10,9 @@
<bit-callout type="info" [title]="'accessTokenCallOutTitle' | i18n">
{{ "downloadAccessToken" | i18n }}<br />
{{ "expiresOnAccessToken" | i18n }}
{{ data.expirationDate === null ? ("never" | i18n) : (data.expirationDate | date: "medium") }}
{{
data.expirationDate === null ? ("never" | i18n) : (data.expirationDate | date : "medium")
}}
</bit-callout>
<bit-form-field class="tw-mb-0">
@@ -18,7 +20,7 @@
<textarea bitInput disabled rows="4">{{ data.accessToken }}</textarea>
</bit-form-field>
{{ "expiresOnAccessToken" | i18n }}
{{ data.expirationDate === null ? ("never" | i18n) : (data.expirationDate | date: "medium") }}
{{ data.expirationDate === null ? ("never" | i18n) : (data.expirationDate | date : "medium") }}
</div>
<div bitDialogFooter class="tw-flex tw-gap-2">

View File

@@ -4,7 +4,7 @@
<select bitInput formControlName="expires">
<option ngValue="never">{{ "never" | i18n }}</option>
<option *ngFor="let day of expirationDayOptions" [ngValue]="day">
{{ "days" | i18n: day }}
{{ "days" | i18n : day }}
</option>
<option ngValue="custom">{{ "custom" | i18n }}</option>
</select>
@@ -14,7 +14,7 @@
<input
bitInput
type="datetime-local"
[min]="currentDate | date: 'YYYY-MM-ddThh:mm'"
[min]="currentDate | date : 'YYYY-MM-ddThh:mm'"
formControlName="expireDateTime"
/>
</bit-form-field>

View File

@@ -67,7 +67,7 @@
<!-- TODO add number of secrets once mapping is implemented-->
<span> 0 </span>
</td>
<td bitCell>{{ serviceAccount.revisionDate | date: "medium" }}</td>
<td bitCell>{{ serviceAccount.revisionDate | date : "medium" }}</td>
<td bitCell>
<button
type="button"

View File

@@ -3,7 +3,7 @@
<form [formGroup]="formGroup" [bitSubmit]="submit">
<div class="tw-my-4 tw-max-w-xl">
<app-callout type="info" title="{{ 'exportingOrganizationSecretDataTitle' | i18n }}">
{{ "exportingOrganizationSecretDataDescription" | i18n: orgName }}
{{ "exportingOrganizationSecretDataDescription" | i18n : orgName }}
</app-callout>
</div>

View File

@@ -62,7 +62,7 @@
}}</a>
</div>
</td>
<td bitCell class="tw-whitespace-nowrap">{{ project.revisionDate | date: "medium" }}</td>
<td bitCell class="tw-whitespace-nowrap">{{ project.revisionDate | date : "medium" }}</td>
<td bitCell>
<button
type="button"

View File

@@ -78,14 +78,14 @@
class="tw-ml-1"
[title]="project.name"
>
{{ project.name | ellipsis: 32 }}
{{ project.name | ellipsis : 32 }}
</span>
<span *ngIf="secret.projects.length === 0" bitBadge badgeType="warning" class="tw-ml-1"
><i class="bwi bwi-fw bwi-exclamation-triangle tw-mr-1" aria-hidden="true"></i
>{{ "unassigned" | i18n }}</span
>
</td>
<td bitCell class="tw-whitespace-nowrap">{{ secret.revisionDate | date: "medium" }}</td>
<td bitCell class="tw-whitespace-nowrap">{{ secret.revisionDate | date : "medium" }}</td>
<td bitCell>
<button
type="button"