Article-Collection etwas aufgeräumt und in einzelne Files ausgelagert.

This commit is contained in:
2022-06-09 14:24:32 +02:00
parent de6968f3d8
commit 9cf3a814e3
10 changed files with 290 additions and 221 deletions

45
types/global.d.ts vendored
View File

@@ -72,11 +72,54 @@ interface GeneralInfo {
interface TibiArticle {
id: string
article: any
article: {
general: {
public: boolean
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: {}
link: {}
}
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