chore: update content, sitemap and lib files
This commit is contained in:
@@ -6,7 +6,6 @@ export interface FaqItem {
|
||||
}
|
||||
|
||||
export const faqData: FaqItem[] = [
|
||||
// Klimatyzacja
|
||||
{
|
||||
id: 'klimatyzacja-moc',
|
||||
question: 'Jak dobrać odpowiednią moc klimatyzatora?',
|
||||
|
||||
+2
-2
@@ -2,8 +2,8 @@ export interface PricingItem {
|
||||
id: string;
|
||||
name: string;
|
||||
priceNet: number;
|
||||
priceGrossPrivate: number; // 8% VAT
|
||||
priceGrossCompany: number; // 23% VAT
|
||||
priceGrossPrivate: number;
|
||||
priceGrossCompany: number;
|
||||
category: 'split' | 'multisplit' | 'additional';
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { ProcessStep } from "@/types/types";
|
||||
|
||||
// MOCK
|
||||
export const mainProcessSteps: ProcessStep[] = [
|
||||
{
|
||||
number: 1,
|
||||
|
||||
@@ -21,7 +21,6 @@ export function getProductVariants(slug: string): ProductVariants | null {
|
||||
const currentProduct = products.find(p => p.slug === slug);
|
||||
if (!currentProduct) return null;
|
||||
|
||||
// Extract series from SKU (e.g., GREE-PULAR-PU09S -> GREE-PULAR)
|
||||
const skuParts = currentProduct.sku.split('-');
|
||||
if (skuParts.length < 2) return null;
|
||||
const series = skuParts.slice(0, -1).join('-');
|
||||
@@ -31,7 +30,6 @@ export function getProductVariants(slug: string): ProductVariants | null {
|
||||
const currentMoc = currentProduct.specs['Moc chłodnicza'] || '';
|
||||
const currentWykończenie = currentProduct.specs['Wykończenie'] || '';
|
||||
|
||||
// Moce: same series, same wykończenie
|
||||
const moceProducts = seriesProducts.filter(p => (p.specs['Wykończenie'] || '') === currentWykończenie);
|
||||
const moce = moceProducts
|
||||
.filter(p => p.specs['Moc chłodnicza'] && p.price)
|
||||
@@ -46,7 +44,6 @@ export function getProductVariants(slug: string): ProductVariants | null {
|
||||
})
|
||||
.sort((a, b) => (a.moc_float || 0) - (b.moc_float || 0));
|
||||
|
||||
// Wykończenia: same series, same moc
|
||||
const wykończeniaProducts = seriesProducts.filter(p => (p.specs['Moc chłodnicza'] || '') === currentMoc);
|
||||
let wykończenia = wykończeniaProducts
|
||||
.filter(p => p.specs['Wykończenie'] && p.price)
|
||||
@@ -56,7 +53,7 @@ export function getProductVariants(slug: string): ProductVariants | null {
|
||||
cena: p.price as number,
|
||||
}));
|
||||
|
||||
// If there's only 1 finish available in the entire series, don't show the variants selector
|
||||
|
||||
const allFinishesInSeries = new Set(seriesProducts.map(p => p.specs['Wykończenie'] || '').filter(Boolean));
|
||||
if (allFinishesInSeries.size <= 1) {
|
||||
wykończenia = [];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Testimonial } from "@/types/types";
|
||||
|
||||
// MOCK
|
||||
|
||||
export const testimonials: Testimonial[] = [
|
||||
{
|
||||
name: "Mariusz Wójcik",
|
||||
|
||||
Reference in New Issue
Block a user