Erste kleine Anpassungen am Tibi-Svelte-Starter um später mehr Zeit in neuen Projekten zu sparen. Hier werden noch weitere Anpassungen folgen, die grundlegend in den meisten Projekten benötigt werden.

This commit is contained in:
2022-03-17 11:12:06 +01:00
parent 75a8906d4a
commit 5caa62eb7e
9 changed files with 585 additions and 26 deletions

45
types/global.d.ts vendored
View File

@@ -8,9 +8,52 @@ interface ContentBlock {
images?: ImageEntry[]
}
interface Content {
id: string
path: string
blocks: ContentBlock[]
}
interface GeneralInformation {
id: string
active: boolean
firstname: string
lastname: string
street: string
postcode: number
city: string
tel: string
mobile: string
email: string
images: GeneralImage[]
insertTime: string
updateTime: string
lastPageUpdate: string
}
interface GeneralImage {
file: File[]
id: string
label: string
}
interface TibiArticle {
id: string
active: boolean
content: string
details: string
image: File
insertTime: string
position: string
subtitle: string
title: string
updateTime: string
}
interface File {
lastModified?: number
path: string
size?: string
src: string
type: string
}