Update and rework project structure with new pagebuilder concept. (based on RK Architekten and SFU Politik configs and sources)

This commit is contained in:
2022-11-17 16:01:52 +00:00
parent 825dfc18f9
commit 30c05143fe
1421 changed files with 3875 additions and 4975 deletions

144
types/global.d.ts vendored
View File

@@ -15,24 +15,35 @@ interface CollectionEntry {
[key: string]: any
}
interface ContentBlock {
article: {
interface Content {
id: string
public: boolean
path: string
locale: string
type: string[]
tags?: string[]
pageBuilder?: PageBuilderRow[]
meta: {
[key: string]: any
}
}
interface Content {
id: string
locale: string
tags?: string[]
path: string
name: string
blocks?: ContentBlock[]
meta: {
[key: string]: any
interface PageBuilderRow {
publish: boolean
columns: {
column1: PageBuilderColumn
column2: PageBuilderColumn
column3: PageBuilderColumn
column4: PageBuilderColumn
}
}
interface PageBuilderColumn {
width: string
html: string
module: string
}
interface GeneralInfo {
id: string
public: boolean
@@ -42,7 +53,7 @@ interface GeneralInfo {
metaTagRobots: string
metaKeywords: string
}
person: {
person?: {
salutation: string
firstname: string
lastname: string
@@ -55,6 +66,22 @@ interface GeneralInfo {
mobile: string
email: string
}
company?: {
companyName: string
companyWebUrl: string
facebookUrl: string
instagramUrl: string
twitterUrl: string
companyAddresses: {
street: string
houseNumber: string
postcode: number
city: string
tel: string
fax: string
email: string
}[]
}
media: {
favicon: File
brand: File
@@ -70,71 +97,6 @@ interface GeneralInfo {
updateTime: string
}
interface TibiArticle {
id?: string
article: {
general: {
public: boolean
type: string
locale: string
publish_date: {
from: string
until: string
interval: number
}
tags: string[]
sort: number
}
content: {
slug: string
title: string
subtitle: string
types: {
teaser: string
details: string
media: {
files: TibiArticleMediaFile[]
}
attachments: {
files: TibiArticleAttachmentFile[]
}
}
}
layout: {
[key: string]: any
}
assignments: {
pages: string[]
articles: string[]
tags: string[]
}
}
insertTime?: string
updateTime?: string
}
interface TibiArticleMediaFile {
title: string
id: string
file: File
}
interface TibiArticleAttachmentFile {
title: string
alternateText: string
id: string
file: File
caption: string
}
interface TibiArticleImage {
id: string
title: string
alternateText: string
caption: string
file: File[]
}
interface File {
lastModified?: number
path: string
@@ -143,18 +105,6 @@ interface File {
type: string
}
interface Gallery {
id: string
title: string
variant: string
items: {
file: File
title: string
descrition: string
alt: string
}[]
}
interface Navigation {
id: string
ident: string
@@ -182,8 +132,14 @@ interface Locale {
title?: string
}
interface GeneralImage {
file: File[]
id: string
label: string
}
// interface Gallery {
// id: string
// title: string
// variant: string
// items: {
// file: File
// title: string
// descrition: string
// alt: string
// }[]
// }