From 65a222fbc7ac9d15a5bffca18f6361b17c2c9612 Mon Sep 17 00:00:00 2001 From: Enguerrand Ozano Date: Sat, 28 Feb 2026 15:13:45 +0100 Subject: [PATCH] feat: activate payload cms collections --- payload/collections/Articles.ts | 19 ------------------- payload/collections/FAQ.ts | 12 ------------ payload/collections/Realisations.ts | 17 ----------------- payload/collections/Services.ts | 22 +--------------------- payload/collections/Testimonials.ts | 18 +----------------- 5 files changed, 2 insertions(+), 86 deletions(-) diff --git a/payload/collections/Articles.ts b/payload/collections/Articles.ts index d9d9dcf..f237c0e 100644 --- a/payload/collections/Articles.ts +++ b/payload/collections/Articles.ts @@ -1,8 +1,3 @@ -// payload/collections/Articles.ts -// Schéma Payload CMS pour les articles de blog. -// COMMENTÉ — activé lors de la migration vers Payload. - -/* import type { CollectionConfig } from 'payload' import { lexicalEditor } from '@payloadcms/richtext-lexical' @@ -78,17 +73,3 @@ export const Articles: CollectionConfig = { }, ], } -*/ - -export type PayloadArticle = { - id: string; - slug: string; - title: string; - excerpt: string; - content: unknown; // Lexical rich text - category: string; - publishedAt: string; - status: "draft" | "published"; - seoTitle?: string; - seoDescription?: string; -}; diff --git a/payload/collections/FAQ.ts b/payload/collections/FAQ.ts index a0ca1d6..5bc7f6e 100644 --- a/payload/collections/FAQ.ts +++ b/payload/collections/FAQ.ts @@ -1,8 +1,3 @@ -// payload/collections/FAQ.ts -// Schéma Payload CMS pour la FAQ. -// COMMENTÉ — activé lors de la migration vers Payload. - -/* import type { CollectionConfig } from 'payload' export const FAQ: CollectionConfig = { @@ -32,11 +27,4 @@ export const FAQ: CollectionConfig = { }, ], } -*/ -export type PayloadFAQItem = { - id: string; - question: string; - answer: string; - order: number; -}; diff --git a/payload/collections/Realisations.ts b/payload/collections/Realisations.ts index fc22383..86f9afb 100644 --- a/payload/collections/Realisations.ts +++ b/payload/collections/Realisations.ts @@ -1,8 +1,3 @@ -// payload/collections/Realisations.ts -// Schéma Payload CMS pour les réalisations / portfolio. -// COMMENTÉ — activé lors de la migration vers Payload. - -/* import type { CollectionConfig } from 'payload' export const Realisations: CollectionConfig = { @@ -70,15 +65,3 @@ export const Realisations: CollectionConfig = { }, ], } -*/ - -export type PayloadRealisation = { - id: string; - title: string; - ville: string; - service: string; - description: string; - image: string; - featured: boolean; - publishedAt: string; -}; diff --git a/payload/collections/Services.ts b/payload/collections/Services.ts index e83f411..e95d788 100644 --- a/payload/collections/Services.ts +++ b/payload/collections/Services.ts @@ -1,10 +1,3 @@ -// payload/collections/Services.ts -// Schéma Payload CMS pour les services OBC Maçonnerie. -// COMMENTÉ — activé lors de la migration vers Payload. -// -// Pour activer : décommenter et importer dans payload.config.ts - -/* import type { CollectionConfig } from 'payload' export const Services: CollectionConfig = { @@ -58,21 +51,8 @@ export const Services: CollectionConfig = { { name: 'order', type: 'number', - label: 'Ordre d\'affichage', + label: "Ordre d'affichage", defaultValue: 0, }, ], } -*/ - -// Type exporté pour l'autocomplétion — reste actif même sans Payload -export type PayloadService = { - id: string; - slug: string; - title: string; - shortDescription: string; - longDescription: string; - icon: string; - keywords: { keyword: string }[]; - order: number; -}; diff --git a/payload/collections/Testimonials.ts b/payload/collections/Testimonials.ts index 5df6493..0da246d 100644 --- a/payload/collections/Testimonials.ts +++ b/payload/collections/Testimonials.ts @@ -1,8 +1,3 @@ -// payload/collections/Testimonials.ts -// Schéma Payload CMS pour les témoignages clients. -// COMMENTÉ — activé lors de la migration vers Payload. - -/* import type { CollectionConfig } from 'payload' export const Testimonials: CollectionConfig = { @@ -46,19 +41,8 @@ export const Testimonials: CollectionConfig = { { name: 'featured', type: 'checkbox', - label: 'Afficher sur la page d\'accueil', + label: "Afficher sur la page d'accueil", defaultValue: true, }, ], } -*/ - -export type PayloadTestimonial = { - id: string; - name: string; - ville: string; - service: string; - text: string; - rating: number; - featured: boolean; -};