style: apply prettier formatting
All checks were successful
PR Checks / security-sast (pull_request) Successful in 29s
PR Checks / test-backend (pull_request) Successful in 27s
PR Checks / test-frontend (pull_request) Successful in 59s
PR Checks / prettier-autofix (pull_request) Successful in 8s

This commit is contained in:
printcalc-ci
2026-03-13 15:30:28 +00:00
parent d8ad61ec54
commit bed94790d4
10 changed files with 53 additions and 23 deletions

View File

@@ -212,10 +212,10 @@
<input
class="ui-form-control"
type="text"
[(ngModel)]="categoryForm.slug"
name="categorySlug"
placeholder="desk-accessories"
/>
[(ngModel)]="categoryForm.slug"
name="categorySlug"
placeholder="desk-accessories"
/>
<button
type="button"
class="ui-button ui-button--ghost"

View File

@@ -1343,7 +1343,9 @@ export class AdminShopComponent implements OnInit, OnDestroy {
seoTitleEn: this.optionalValue(this.categoryForm.seoTitles['en']),
seoTitleDe: this.optionalValue(this.categoryForm.seoTitles['de']),
seoTitleFr: this.optionalValue(this.categoryForm.seoTitles['fr']),
seoDescription: this.optionalValue(this.categoryForm.seoDescriptions['it']),
seoDescription: this.optionalValue(
this.categoryForm.seoDescriptions['it'],
),
seoDescriptionIt: this.optionalValue(
this.categoryForm.seoDescriptions['it'],
),

View File

@@ -239,7 +239,8 @@
<div class="order-item-meta">
<span
>{{ "CHECKOUT.QTY" | translate }}: {{ item.quantity }}</span
>{{ "CHECKOUT.QTY" | translate }}:
{{ item.quantity }}</span
>
<span *ngIf="showItemMaterial(item)">
{{ "CHECKOUT.MATERIAL" | translate }}:

View File

@@ -20,7 +20,9 @@
}}</a>
@for (crumb of p.breadcrumbs; track crumb.id) {
<span class="breadcrumbs__separator">/</span>
<a class="breadcrumbs__item" [routerLink]="categoryLink(crumb.slug)"
<a
class="breadcrumbs__item"
[routerLink]="categoryLink(crumb.slug)"
>{{ crumb.name }}</a
>
}
@@ -143,12 +145,15 @@
<span>{{ selectedMaterial()?.label }}</span>
}
@if (
colorLabel(activeVariant) !== selectedMaterial()?.label
colorLabel(activeVariant) !==
selectedMaterial()?.label
) {
@if (selectedMaterial()?.label) {
<span aria-hidden="true">·</span>
}
<span>{{ colorLabel(activeVariant) | translate }}</span>
<span>{{
colorLabel(activeVariant) | translate
}}</span>
}
</p>
}
@@ -174,7 +179,10 @@
</div>
<div class="material-grid">
@for (material of materialOptions(); track material.key) {
@for (
material of materialOptions();
track material.key
) {
<button
type="button"
class="material-option"

View File

@@ -15,10 +15,7 @@ import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { catchError, combineLatest, finalize, of, switchMap, tap } from 'rxjs';
import { SeoService } from '../../core/services/seo.service';
import { LanguageService } from '../../core/services/language.service';
import {
findColorHex,
getColorHex,
} from '../../core/constants/colors.const';
import { findColorHex, getColorHex } from '../../core/constants/colors.const';
import { AppButtonComponent } from '../../shared/components/app-button/app-button.component';
import { AppCardComponent } from '../../shared/components/app-card/app-card.component';
import { StlViewerComponent } from '../../shared/components/stl-viewer/stl-viewer.component';
@@ -381,7 +378,9 @@ export class ProductDetailComponent {
}
colorLabel(variant: ShopProductVariantOption): string {
return variant.colorLabel || variant.colorName || variant.variantLabel || '-';
return (
variant.colorLabel || variant.colorName || variant.variantLabel || '-'
);
}
colorHex(variant: ShopProductVariantOption | null | undefined): string {

View File

@@ -84,7 +84,9 @@
<div class="cart-line-copy">
<strong>{{ cartItemName(item) }}</strong>
@if (cartItemVariant(item); as variant) {
<span class="cart-line-meta">{{ variant | translate }}</span>
<span class="cart-line-meta">{{
variant | translate
}}</span>
}
@if (cartItemColor(item); as color) {
<span class="cart-line-color">