From 6f700c923aef5f8fa2000f309cf046f5c994b82c Mon Sep 17 00:00:00 2001
From: printcalc-ci
Date: Sat, 14 Mar 2026 14:15:10 +0000
Subject: [PATCH] style: apply prettier formatting
---
.../interceptors/server-origin.interceptor.ts | 5 +++-
.../upload-form/upload-form.component.html | 4 +--
.../user-details/user-details.component.html | 9 ++----
.../features/checkout/checkout.component.html | 9 ++----
.../contact-form/contact-form.component.html | 13 +++------
.../src/app/features/home/home.component.html | 28 +++++--------------
.../features/shop/product-detail.component.ts | 9 ++++--
.../app/features/shop/shop-page.component.ts | 11 +++++---
frontend/src/core/request-origin.ts | 8 +++---
9 files changed, 39 insertions(+), 57 deletions(-)
diff --git a/frontend/src/app/core/interceptors/server-origin.interceptor.ts b/frontend/src/app/core/interceptors/server-origin.interceptor.ts
index 70767ab..d2d1585 100644
--- a/frontend/src/app/core/interceptors/server-origin.interceptor.ts
+++ b/frontend/src/app/core/interceptors/server-origin.interceptor.ts
@@ -1,6 +1,9 @@
import { HttpInterceptorFn } from '@angular/common/http';
import { inject, REQUEST } from '@angular/core';
-import { RequestLike, resolveRequestOrigin } from '../../../core/request-origin';
+import {
+ RequestLike,
+ resolveRequestOrigin,
+} from '../../../core/request-origin';
function isAbsoluteUrl(url: string): boolean {
return /^[a-z][a-z\d+\-.]*:/i.test(url) || url.startsWith('//');
diff --git a/frontend/src/app/features/calculator/components/upload-form/upload-form.component.html b/frontend/src/app/features/calculator/components/upload-form/upload-form.component.html
index dba731a..21c1e7b 100644
--- a/frontend/src/app/features/calculator/components/upload-form/upload-form.component.html
+++ b/frontend/src/app/features/calculator/components/upload-form/upload-form.component.html
@@ -105,9 +105,7 @@
[href]="languageService.localizedPath('/privacy')"
target="_blank"
rel="noopener"
- >{{
- "LEGAL.CONSENT.UPLOAD_NOTICE_LINK" | translate
- }}{{ "LEGAL.CONSENT.UPLOAD_NOTICE_LINK" | translate }}.
diff --git a/frontend/src/app/features/calculator/components/user-details/user-details.component.html b/frontend/src/app/features/calculator/components/user-details/user-details.component.html
index a109304..935c504 100644
--- a/frontend/src/app/features/calculator/components/user-details/user-details.component.html
+++ b/frontend/src/app/features/calculator/components/user-details/user-details.component.html
@@ -124,17 +124,14 @@
[href]="languageService.localizedPath('/terms')"
target="_blank"
rel="noopener"
- >{{
- "LEGAL.CONSENT.TERMS_LINK" | translate
- }}
+ >{{ "LEGAL.CONSENT.TERMS_LINK" | translate }}
{{ "LEGAL.CONSENT.AND" | translate }}
{{
- "LEGAL.CONSENT.PRIVACY_LINK" | translate
- }}{{ "LEGAL.CONSENT.PRIVACY_LINK" | translate }}.
diff --git a/frontend/src/app/features/checkout/checkout.component.html b/frontend/src/app/features/checkout/checkout.component.html
index 153b107..b7be023 100644
--- a/frontend/src/app/features/checkout/checkout.component.html
+++ b/frontend/src/app/features/checkout/checkout.component.html
@@ -208,17 +208,14 @@
[href]="languageService.localizedPath('/terms')"
target="_blank"
rel="noopener"
- >{{
- "LEGAL.CONSENT.TERMS_LINK" | translate
- }}
+ >{{ "LEGAL.CONSENT.TERMS_LINK" | translate }}
{{ "LEGAL.CONSENT.AND" | translate }}
{{
- "LEGAL.CONSENT.PRIVACY_LINK" | translate
- }}{{ "LEGAL.CONSENT.PRIVACY_LINK" | translate }}.
diff --git a/frontend/src/app/features/contact/components/contact-form/contact-form.component.html b/frontend/src/app/features/contact/components/contact-form/contact-form.component.html
index 7145b2f..c43ac35 100644
--- a/frontend/src/app/features/contact/components/contact-form/contact-form.component.html
+++ b/frontend/src/app/features/contact/components/contact-form/contact-form.component.html
@@ -89,9 +89,7 @@
[href]="languageService.localizedPath('/privacy')"
target="_blank"
rel="noopener"
- >{{
- "LEGAL.CONSENT.UPLOAD_NOTICE_LINK" | translate
- }}{{ "LEGAL.CONSENT.UPLOAD_NOTICE_LINK" | translate }}.
@@ -169,17 +167,14 @@
[href]="languageService.localizedPath('/terms')"
target="_blank"
rel="noopener"
- >{{
- "LEGAL.CONSENT.TERMS_LINK" | translate
- }}
+ >{{ "LEGAL.CONSENT.TERMS_LINK" | translate }}
{{ "LEGAL.CONSENT.AND" | translate }}
{{
- "LEGAL.CONSENT.PRIVACY_LINK" | translate
- }}{{ "LEGAL.CONSENT.PRIVACY_LINK" | translate }}.
diff --git a/frontend/src/app/features/home/home.component.html b/frontend/src/app/features/home/home.component.html
index 81a96be..7d79ab3 100644
--- a/frontend/src/app/features/home/home.component.html
+++ b/frontend/src/app/features/home/home.component.html
@@ -19,23 +19,17 @@
{{
- "HOME.BTN_CALCULATE" | translate
- }}{{ "HOME.BTN_CALCULATE" | translate }}
{{
- "HOME.BTN_SHOP" | translate
- }}{{ "HOME.BTN_SHOP" | translate }}
{{
- "HOME.BTN_CONTACT" | translate
- }}{{ "HOME.BTN_CONTACT" | translate }}
@@ -182,16 +176,12 @@
{{
- "HOME.BTN_DISCOVER" | translate
- }}{{ "HOME.BTN_DISCOVER" | translate }}
{{
- "HOME.BTN_REQ_SOLUTION" | translate
- }}{{ "HOME.BTN_REQ_SOLUTION" | translate }}
@@ -260,16 +250,12 @@
{{
- "HOME.SEC_ABOUT_TITLE" | translate
- }}{{ "HOME.SEC_ABOUT_TITLE" | translate }}
{{
- "HOME.BTN_CONTACT" | translate
- }}{{ "HOME.BTN_CONTACT" | translate }}
diff --git a/frontend/src/app/features/shop/product-detail.component.ts b/frontend/src/app/features/shop/product-detail.component.ts
index 40f46af..09cc991 100644
--- a/frontend/src/app/features/shop/product-detail.component.ts
+++ b/frontend/src/app/features/shop/product-detail.component.ts
@@ -366,9 +366,12 @@ export class ProductDetailComponent {
if (!sessionId) {
return;
}
- this.router.navigate(['/', this.languageService.selectedLang(), 'checkout'], {
- queryParams: { session: sessionId },
- });
+ this.router.navigate(
+ ['/', this.languageService.selectedLang(), 'checkout'],
+ {
+ queryParams: { session: sessionId },
+ },
+ );
}
priceLabel(): number {
diff --git a/frontend/src/app/features/shop/shop-page.component.ts b/frontend/src/app/features/shop/shop-page.component.ts
index 694940c..ed192df 100644
--- a/frontend/src/app/features/shop/shop-page.component.ts
+++ b/frontend/src/app/features/shop/shop-page.component.ts
@@ -242,11 +242,14 @@ export class ShopPageComponent {
if (!sessionId) {
return;
}
- this.router.navigate(['/', this.languageService.selectedLang(), 'checkout'], {
- queryParams: {
- session: sessionId,
+ this.router.navigate(
+ ['/', this.languageService.selectedLang(), 'checkout'],
+ {
+ queryParams: {
+ session: sessionId,
+ },
},
- });
+ );
}
trackByCategory(_index: number, item: ShopCategoryNavNode): string {
diff --git a/frontend/src/core/request-origin.ts b/frontend/src/core/request-origin.ts
index 033edac..e2b6a32 100644
--- a/frontend/src/core/request-origin.ts
+++ b/frontend/src/core/request-origin.ts
@@ -4,9 +4,7 @@ export type RequestLike = {
headers?: Record;
};
-function firstHeaderValue(
- value: string | string[] | undefined,
-): string | null {
+function firstHeaderValue(value: string | string[] | undefined): string | null {
if (Array.isArray(value)) {
return value[0] ?? null;
}
@@ -29,7 +27,9 @@ function firstForwardedValue(
);
}
-export function resolveRequestOrigin(request: RequestLike | null): string | null {
+export function resolveRequestOrigin(
+ request: RequestLike | null,
+): string | null {
if (!request) {
return null;
}