feat: activate payload cms collections
This commit is contained in:
@@ -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 type { CollectionConfig } from 'payload'
|
||||||
import { lexicalEditor } from '@payloadcms/richtext-lexical'
|
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;
|
|
||||||
};
|
|
||||||
|
|||||||
@@ -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'
|
import type { CollectionConfig } from 'payload'
|
||||||
|
|
||||||
export const FAQ: CollectionConfig = {
|
export const FAQ: CollectionConfig = {
|
||||||
@@ -32,11 +27,4 @@ export const FAQ: CollectionConfig = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
export type PayloadFAQItem = {
|
|
||||||
id: string;
|
|
||||||
question: string;
|
|
||||||
answer: string;
|
|
||||||
order: number;
|
|
||||||
};
|
|
||||||
|
|||||||
@@ -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'
|
import type { CollectionConfig } from 'payload'
|
||||||
|
|
||||||
export const Realisations: CollectionConfig = {
|
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;
|
|
||||||
};
|
|
||||||
|
|||||||
@@ -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'
|
import type { CollectionConfig } from 'payload'
|
||||||
|
|
||||||
export const Services: CollectionConfig = {
|
export const Services: CollectionConfig = {
|
||||||
@@ -58,21 +51,8 @@ export const Services: CollectionConfig = {
|
|||||||
{
|
{
|
||||||
name: 'order',
|
name: 'order',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
label: 'Ordre d\'affichage',
|
label: "Ordre d'affichage",
|
||||||
defaultValue: 0,
|
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;
|
|
||||||
};
|
|
||||||
|
|||||||
@@ -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'
|
import type { CollectionConfig } from 'payload'
|
||||||
|
|
||||||
export const Testimonials: CollectionConfig = {
|
export const Testimonials: CollectionConfig = {
|
||||||
@@ -46,19 +41,8 @@ export const Testimonials: CollectionConfig = {
|
|||||||
{
|
{
|
||||||
name: 'featured',
|
name: 'featured',
|
||||||
type: 'checkbox',
|
type: 'checkbox',
|
||||||
label: 'Afficher sur la page d\'accueil',
|
label: "Afficher sur la page d'accueil",
|
||||||
defaultValue: true,
|
defaultValue: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
export type PayloadTestimonial = {
|
|
||||||
id: string;
|
|
||||||
name: string;
|
|
||||||
ville: string;
|
|
||||||
service: string;
|
|
||||||
text: string;
|
|
||||||
rating: number;
|
|
||||||
featured: boolean;
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user