chore: add husky pre-commit hook and lint-staged configuration
- Created a pre-commit hook in .husky to run lint-staged. - Added .lintstagedrc.mjs to format frontend files with Prettier and apply Spotless to backend Java files. - Introduced .prettierignore to exclude specific directories from formatting.
This commit is contained in:
1 parent
5d2d85aa8c
commit
878da155bd
564 files changed
+61467
-47179
No files matched your search
+45
-38
@@ -1,41 +1,48 @@
|
||||
<h2 mat-dialog-title>Contrepasser le règlement</h2>
|
||||
<form [formGroup]="form" (ngSubmit)="submit()">
|
||||
<mat-dialog-content class="action-dialog-content">
|
||||
<p>
|
||||
Les affectations de ce règlement de <strong>{{ formatEuro(payment.amount) }}</strong> seront
|
||||
annulées. Le règlement restera visible dans l’historique.
|
||||
</p>
|
||||
@if (payment.refundedAmount > 0) {
|
||||
<p class="refund-warning" role="note">
|
||||
Les remboursements déjà confirmés, pour {{ formatEuro(payment.refundedAmount) }}, resteront
|
||||
des sorties historiques.
|
||||
</p>
|
||||
}
|
||||
<fieldset class="dialog-fieldset" [disabled]="saving()">
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>Motif de la contrepassation</mat-label>
|
||||
<textarea matInput rows="4" maxlength="500" formControlName="reason" required></textarea>
|
||||
@if (form.controls.reason.invalid) {
|
||||
<mat-error>Le motif est obligatoire.</mat-error>
|
||||
}
|
||||
</mat-form-field>
|
||||
</fieldset>
|
||||
@if (error()) {
|
||||
<p class="dialog-error" role="alert">{{ error() }}</p>
|
||||
}
|
||||
</mat-dialog-content>
|
||||
<mat-dialog-actions align="end">
|
||||
<button mat-button mat-dialog-close type="button" [disabled]="saving()">Annuler</button>
|
||||
<button
|
||||
mat-flat-button
|
||||
type="submit"
|
||||
class="danger-action"
|
||||
[disabled]="form.invalid || saving()"
|
||||
>
|
||||
@if (saving()) {
|
||||
<mat-spinner diameter="18" aria-label="Contrepassation en cours" />
|
||||
}
|
||||
Contrepasser
|
||||
</button>
|
||||
</mat-dialog-actions>
|
||||
<mat-dialog-content class="action-dialog-content">
|
||||
<p>
|
||||
Les affectations de ce règlement de
|
||||
<strong>{{ formatEuro(payment.amount) }}</strong> seront annulées. Le règlement restera
|
||||
visible dans l’historique.
|
||||
</p>
|
||||
@if (payment.refundedAmount > 0) {
|
||||
<p class="refund-warning" role="note">
|
||||
Les remboursements déjà confirmés, pour {{ formatEuro(payment.refundedAmount) }},
|
||||
resteront des sorties historiques.
|
||||
</p>
|
||||
}
|
||||
<fieldset class="dialog-fieldset" [disabled]="saving()">
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>Motif de la contrepassation</mat-label>
|
||||
<textarea
|
||||
matInput
|
||||
rows="4"
|
||||
maxlength="500"
|
||||
formControlName="reason"
|
||||
required
|
||||
></textarea>
|
||||
@if (form.controls.reason.invalid) {
|
||||
<mat-error>Le motif est obligatoire.</mat-error>
|
||||
}
|
||||
</mat-form-field>
|
||||
</fieldset>
|
||||
@if (error()) {
|
||||
<p class="dialog-error" role="alert">{{ error() }}</p>
|
||||
}
|
||||
</mat-dialog-content>
|
||||
<mat-dialog-actions align="end">
|
||||
<button mat-button mat-dialog-close type="button" [disabled]="saving()">Annuler</button>
|
||||
<button
|
||||
mat-flat-button
|
||||
type="submit"
|
||||
class="danger-action"
|
||||
[disabled]="form.invalid || saving()"
|
||||
>
|
||||
@if (saving()) {
|
||||
<mat-spinner diameter="18" aria-label="Contrepassation en cours" />
|
||||
}
|
||||
Contrepasser
|
||||
</button>
|
||||
</mat-dialog-actions>
|
||||
</form>
|
||||
Reference in new issue
Block a user