project setup with core files including configuration, package management, and basic structure. Added .gitignore, README, and various TypeScript types for CMS components. Implemented initial components and layouts for the application.
This commit is contained in:
24
middlelayer/__cms/Contentful_Post_Overview.ts
Normal file
24
middlelayer/__cms/Contentful_Post_Overview.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import type { CF_ContentType } from "src/@types/Contentful_ContentType.enum";
|
||||
import type { CF_Content } from "./Contentful_Content";
|
||||
import type { CF_SEO } from "src/@types/Contentful_SEO";
|
||||
import type { CF_ComponentLayout } from "src/@types/Contentful_Layout";
|
||||
import type { CF_PostEntrySkeleton } from "src/@types/Contentful_Post";
|
||||
import type { CF_TagSkeleton } from "src/@types/Contentful_Tag";
|
||||
import type { Document } from "@contentful/rich-text-types";
|
||||
|
||||
export interface CF_Post_Overview extends CF_Content, CF_SEO {
|
||||
id: string;
|
||||
headline: string;
|
||||
text: Document;
|
||||
layout: CF_ComponentLayout;
|
||||
allPosts: boolean;
|
||||
filterByTag: CF_TagSkeleton[];
|
||||
posts: CF_PostEntrySkeleton[];
|
||||
numberItems: number;
|
||||
design?: "cards" | "list";
|
||||
}
|
||||
|
||||
export type CF_Post_OverviewEntrySkeleton = {
|
||||
contentTypeId: CF_ContentType.post;
|
||||
fields: CF_Post_Overview;
|
||||
};
|
||||
Reference in New Issue
Block a user