fix: resolve contact form placeholders, restore process block layout, and fix testimonials carousel scroll logic
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { getPayload } from 'payload'
|
||||
import configPromise from '../src/payload.config'
|
||||
|
||||
async function run() {
|
||||
const payload = await getPayload({ config: configPromise })
|
||||
|
||||
for (const locale of ['pl', 'de']) {
|
||||
const slug = locale === 'pl' ? 'uslugi' : 'leistungen'
|
||||
const pages = await payload.find({ collection: 'pages', locale: locale as any, where: { slug: { equals: slug } } })
|
||||
|
||||
if (pages.docs.length > 0) {
|
||||
const page = pages.docs[0]
|
||||
console.log(`\n=== INTEGRALNOŚĆ STRONY: ${slug} (${locale}) ===`)
|
||||
page.layout?.forEach((b:any) => {
|
||||
console.log(`Block: ${b.blockType}`)
|
||||
if (b.blockType === 'pageHeader') console.log(` - title: ${b.title}`)
|
||||
if (b.blockType === 'eligibility') console.log(` - eligibleTitle: ${b.eligibleTitle}`)
|
||||
if (b.blockType === 'finalCta') console.log(` - title: ${b.title}`)
|
||||
})
|
||||
} else {
|
||||
console.log(`Nie znaleziono strony ${slug} w języku ${locale}`)
|
||||
}
|
||||
}
|
||||
process.exit(0)
|
||||
}
|
||||
run()
|
||||
Reference in New Issue
Block a user