fix: resolve contact form placeholders, restore process block layout, and fix testimonials carousel scroll logic

This commit is contained in:
MichalC
2026-09-17 22:25:25 +02:00
parent 7cc68b9f36
commit ab4c5c83dd
91 changed files with 4790 additions and 319 deletions
+57
View File
@@ -0,0 +1,57 @@
import { getPayload } from 'payload'
import configPromise from '../src/payload.config'
async function run() {
const payload = await getPayload({ config: configPromise })
const pages = await payload.find({
collection: 'pages',
where: {
slug: {
equals: 'kontakt'
}
},
locale: 'pl',
});
if (pages.docs.length === 0) {
console.log("No Kontakt page found");
process.exit(0);
}
const page = pages.docs[0];
console.log("=== LAYOUT PL ===");
if (page.layout) {
page.layout.forEach((block: any, idx: number) => {
console.log(`[${idx}] ${block.blockType}`);
});
} else {
console.log("No layout for PL");
}
console.log("\n=== LAYOUT DE ===");
const pageDe = await payload.findByID({
collection: 'pages',
id: page.id,
locale: 'de',
});
if (pageDe.layout) {
pageDe.layout.forEach((block: any, idx: number) => {
console.log(`[${idx}] ${block.blockType}`);
});
} else {
console.log("No layout for DE");
}
console.log("\n=== FULL DUMP DE ===");
console.log(JSON.stringify(pageDe.layout, null, 2));
console.log("\n=== FULL DUMP PL ===");
console.log(JSON.stringify(page.layout, null, 2));
process.exit(0);
}
run().catch(console.error);