Starter Projekt angefangen, etwas aufzubohren und ein paar grundlegend benötigte Collections, Teheming-Styles und Komponenten hinzugefügt. (WIP)

This commit is contained in:
2022-05-24 16:44:55 +02:00
parent f4b6bb17ca
commit 47fdee2396
75 changed files with 2086 additions and 1234 deletions

104
types/global.d.ts vendored
View File

@@ -1,3 +1,12 @@
interface APIParams {
offset?: number
limit?: number
sort?: string | "ASC" | "DESC"
filter?: {
[key: string]: any
}
count?: 1
}
interface ContentBlock {
layout: 1 | 2 | 3 | 4
title?: string
@@ -10,31 +19,46 @@ interface ContentBlock {
interface Content {
id: string
name: string
path: string
blocks: ContentBlock[]
}
interface GeneralInformation {
interface GeneralInfo {
id: string
active: boolean
firstname: string
lastname: string
street: string
postcode: number
city: string
tel: string
mobile: string
email: string
images: GeneralImage[]
public: boolean
meta: {
metaTitle: string
metaDescription: string
metaTagRobots: string
metaKeywords: string
}
person: {
salutation: string
firstname: string
lastname: string
additional: string
street: string
postcode: number
city: string
tel: string
fax: string
mobile: string
email: string
}
media: {
favicon: File
brand: File
mediaFiles: {
title: string
alternateText: string
id: string
file: File
}[]
}
copyrightText: string
insertTime: string
updateTime: string
lastPageUpdate: string
}
interface GeneralImage {
file: File[]
id: string
label: string
}
interface TibiArticle {
@@ -57,3 +81,47 @@ interface File {
src: string
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
locale: string
items: NavigationItem[]
insertTime: string
updateTime: string
}
interface NavigationItem {
settings: {
title: string
page: string
items: NavigationItem[]
url: {
url: string
target: string
}
}
}
interface Locale {
key: string
title: string
}
interface GeneralImage {
file: File[]
id: string
label: string
}