Skip to content

Commit 2d00882

Browse files
committed
Refresh yarn.lock #11932
Amongst other things, this update eslint and their rules, helping us prepare for incoming Angular 21.
1 parent 528fd25 commit 2d00882

11 files changed

Lines changed: 1908 additions & 1762 deletions

File tree

client/app/admin/order/order-lines/order-lines.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
[label]="element.name"
3838
[navigate]="['/admin/order/order-line/', element.id]"
3939
/>
40-
}
41-
@if (!element.permissions.update) {
40+
} @else {
4241
<span>{{ element.name }}</span>
4342
}
4443
</td>

client/app/admin/users/import/import.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ <h1 class="mat-font-headline-sm">{{ routeData.seo.title }}</h1>
3838
</ul>
3939
@if (!users.length) {
4040
<p>Tout est OK</p>
41-
}
42-
@if (users.length) {
41+
} @else {
4342
<div>
4443
<p>
4544
Il existe {{ users.length }} utilisateurs dans notre BD qui n'ont pas été importés. Il

client/app/admin/users/user/user.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ <h2 class="mat-font-title-lg">État</h2>
6262
Abonné {{ data.model.subscriptionType | enum: 'ProductType' | async }} jusqu'au numéro{{
6363
data.model.subscriptionLastReviewNumber
6464
}}
65-
}
66-
@if (!data.model.subscriptionLastReviewNumber) {
65+
} @else {
6766
N'est pas abonné
6867
}
6968
</div>

client/app/front-office/components/comment-list/comment-list.component.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828
</div>
2929
}
3030
</div>
31-
}
32-
33-
@if (!dataSource?.data?.items?.length) {
31+
} @else {
3432
<div class="mat-font-title-md">Aucun commentaire</div>
3533
}
3634
</div>

client/app/front-office/components/home-block/home-block.component.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
</button>
1818
}
1919
</div>
20-
}
21-
22-
@if (editMode) {
20+
} @else {
2321
<mat-card class="bloc nat-gap nat-vertical">
2422
<form class="nat-vertical" [formGroup]="form">
2523
<mat-form-field>

client/app/front-office/components/homepage/homepage.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
</div>
136136
}
137137
<!-- If has access -->
138-
@if (currentReview.file) {
138+
@else {
139139
<div>
140140
<a
141141
matButton="filled"

client/app/front-office/components/session-facilitator-private/session-facilitator-private.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ <h3 class="mat-font-title-md">{{ category.key }}</h3>
3333
<mat-icon naturalIcon="download" />
3434
{{ document.name }}
3535
</a>
36-
}
37-
@if (!document.file) {
36+
} @else {
3837
<a mat-list-item>{{ document.name }}</a>
3938
}
4039
</mat-nav-list>

client/app/front-office/front-office.component.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<!-- eslint-disable @angular-eslint/template/cyclomatic-complexity -->
21
<!-- Mobile menu template -->
32
<ng-template #mobileNavigationTemplate let-navigation>
43
@if (navigation?.length) {
@@ -7,8 +6,7 @@
76
<li [class.opened]="item.opened">
87
@if (!item.children?.length) {
98
<a matRipple [routerLink]="item.link" (click)="menu.close()">{{ item.display }}</a>
10-
}
11-
@if (item.children?.length) {
9+
} @else {
1210
<a matRipple (click)="item.opened = !item.opened">{{ item.display }}</a>
1311
}
1412
<ng-container *ngTemplateOutlet="mobileNavigationTemplate; context: {$implicit: item.children}" />

client/app/front-office/modules/shop/components/product-page/product-page.component.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,14 @@ <h1 class="mat-font-headline-lg">{{ data.model.name }}</h1>
105105
<h2 class="mat-font-title-lg">Téléchargement</h2>
106106
@if (data.model.reviewNumber) {
107107
<p>Vous pouvez dès à présent télécharger cette revue en format numérique (PDF)</p>
108-
}
109-
@if (!data.model.reviewNumber) {
108+
} @else {
110109
<p>Vous pouvez dès à présent télécharger cet article en format numérique (PDF)</p>
111110
}
112111
<a matButton="filled" target="_blank" [href]="`/api/file/${data.model.file.id}`">
113112
<mat-icon naturalIcon="get_app" />
114113
@if (data.model.reviewNumber) {
115114
<span>Télécharger cette revue</span>
116-
}
117-
@if (!data.model.reviewNumber) {
115+
} @else {
118116
<span>Télécharger cet article</span>
119117
}
120118
</a>
@@ -125,8 +123,7 @@ <h2 class="mat-font-title-lg">Téléchargement</h2>
125123
<div class="nat-md-expand-50 nat-gap-30 frame-green frame nat-center nat-vertical">
126124
@if (data.model.reviewNumber) {
127125
<div class="mat-font-headline-sm">Acheter le numéro</div>
128-
}
129-
@if (!data.model.reviewNumber) {
126+
} @else {
130127
<div class="mat-font-headline-sm">Acheter cet article</div>
131128
}
132129
<div class="nat-horizontal nat-wrap nat-gap-30">

client/app/front-office/modules/shop/components/products-page/products-page.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@
4747
ou
4848
<app-price class="mat-font-title-md" [product]="product" />
4949
</div>
50-
}
51-
@if (product.file) {
50+
} @else {
5251
<a
5352
matButton="filled"
5453
color="tertiary"

0 commit comments

Comments
 (0)