diff --git a/frontend/src/app/app.routes.ts b/frontend/src/app/app.routes.ts
index 8e75f90..3f246d2 100644
--- a/frontend/src/app/app.routes.ts
+++ b/frontend/src/app/app.routes.ts
@@ -61,7 +61,7 @@ const appChildRoutes: Routes = [
'Scopri il team 3D fab e il laboratorio di stampa 3D con sedi in Ticino e Bienne.',
},
},
- /* {
+ /* {
path: 'materials',
loadComponent: () =>
import('./features/materials/materials-page.component').then(
diff --git a/frontend/src/app/core/layout/navbar.component.html b/frontend/src/app/core/layout/navbar.component.html
index f402152..944ca86 100644
--- a/frontend/src/app/core/layout/navbar.component.html
+++ b/frontend/src/app/core/layout/navbar.component.html
@@ -130,7 +130,9 @@
{{ cartItemName(item) }}
@if (cartItemVariant(item); as variant) {
-
{{ variant | translate }}
+
{{
+ variant | translate
+ }}
}
@if (cartItemColor(item); as color) {
diff --git a/frontend/src/app/core/services/seo.service.ts b/frontend/src/app/core/services/seo.service.ts
index b918f71..426e632 100644
--- a/frontend/src/app/core/services/seo.service.ts
+++ b/frontend/src/app/core/services/seo.service.ts
@@ -59,9 +59,11 @@ export class SeoService {
applyPageSeo(override: PageSeoOverride): void {
const cleanPath = this.getCleanPath(this.router.url);
const lang = this.resolveLangFromPath(cleanPath);
- const title = this.asString(override.title) ?? this.defaultTitleByLang[lang];
+ const title =
+ this.asString(override.title) ?? this.defaultTitleByLang[lang];
const description =
- this.asString(override.description) ?? this.defaultDescriptionByLang[lang];
+ this.asString(override.description) ??
+ this.defaultDescriptionByLang[lang];
const robots = this.asString(override.robots) ?? 'index, follow';
const ogTitle = this.asString(override.ogTitle) ?? title;
const ogDescription = this.asString(override.ogDescription) ?? description;
@@ -135,7 +137,11 @@ export class SeoService {
): string | undefined {
const mapKey = `${key}ByLang`;
const localized = routeData[mapKey];
- if (localized && typeof localized === 'object' && !Array.isArray(localized)) {
+ if (
+ localized &&
+ typeof localized === 'object' &&
+ !Array.isArray(localized)
+ ) {
const mapped = localized as SeoMap;
const byLang = this.asString(mapped[lang]);
if (byLang) {
@@ -152,7 +158,10 @@ export class SeoService {
private resolveLangFromPath(path: string): SupportedLang {
const firstSegment = path.split('/').filter(Boolean)[0]?.toLowerCase();
- if (firstSegment && this.supportedLangs.has(firstSegment as SupportedLang)) {
+ if (
+ firstSegment &&
+ this.supportedLangs.has(firstSegment as SupportedLang)
+ ) {
return firstSegment as SupportedLang;
}
return 'it';
diff --git a/frontend/src/app/features/admin/pages/admin-shop.component.html b/frontend/src/app/features/admin/pages/admin-shop.component.html
index 001bdfa..f2d83d1 100644
--- a/frontend/src/app/features/admin/pages/admin-shop.component.html
+++ b/frontend/src/app/features/admin/pages/admin-shop.component.html
@@ -212,10 +212,10 @@
+ [(ngModel)]="categoryForm.slug"
+ name="categorySlug"
+ placeholder="desk-accessories"
+ />
{{ "CHECKOUT.MATERIAL" | translate }}:
diff --git a/frontend/src/app/features/shop/product-detail.component.html b/frontend/src/app/features/shop/product-detail.component.html
index 1ade3ee..76badd8 100644
--- a/frontend/src/app/features/shop/product-detail.component.html
+++ b/frontend/src/app/features/shop/product-detail.component.html
@@ -20,7 +20,9 @@
}}
@for (crumb of p.breadcrumbs; track crumb.id) {
/
- {{ crumb.name }}
}
@@ -143,12 +145,15 @@
{{ selectedMaterial()?.label }}
}
@if (
- colorLabel(activeVariant) !== selectedMaterial()?.label
+ colorLabel(activeVariant) !==
+ selectedMaterial()?.label
) {
@if (selectedMaterial()?.label) {
ยท
}
- {{ colorLabel(activeVariant) | translate }}
+ {{
+ colorLabel(activeVariant) | translate
+ }}
}
}
@@ -174,7 +179,10 @@
- @for (material of materialOptions(); track material.key) {
+ @for (
+ material of materialOptions();
+ track material.key
+ ) {