Files
mintel.me/apps/web/src/payload/blocks/CarouselBlock.ts
Marc Mintel 11f735bbdf
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 16s
Build & Deploy / 🏗️ Build (push) Failing after 6m58s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 QA (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 1s
fix: resolve admin white screen via static ChatWindowProvider import
- Statically declare ChatWindowProvider in payload.config.ts admin.components.providers
- Regenerate importMap.js with correct component mappings
- Update Dockerfile to support _at-mintel monorepo sync for local builds
- Add .gitignore entries for manual build artifacts
- Update blocks and collections (payload-ai integration updates)
- Sync pnpm-lock.yaml
2026-03-07 11:47:52 +01:00

52 lines
1.2 KiB
TypeScript

import { MintelBlock } from "./types";
import type { Block } from "payload";
export const CarouselBlock: MintelBlock = {
slug: "carousel",
labels: {
singular: "Carousel",
plural: "Carousels",
},
admin: {
group: "MDX Components",
},
fields: [
{
name: "slides",
type: "array",
fields: [
{
name: "title",
type: "text",
admin: { description: "Titel der Slide-Karte." },
},
{
name: "content",
type: "textarea",
admin: { description: "Beschreibungstext der Slide-Karte." },
},
{
name: "image",
type: "upload",
relationTo: "media",
admin: { description: "Laden Sie die Datei für image hoch." },
},
{
name: "caption",
type: "text",
admin: {
components: {
afterInput: [
"@mintel/payload-ai/components/FieldGenerators/AiFieldButton#AiFieldButton",
],
},
description: "Geben Sie den Text für caption ein.",
},
},
],
admin: { description: "Fügen Sie Elemente zur Liste slides hinzu." },
},
],
};