Article-Collection etwas aufgeräumt und in einzelne Files ausgelagert.
This commit is contained in:
45
types/global.d.ts
vendored
45
types/global.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user