base structure and display

This commit is contained in:
Julian Krauser 2024-11-01 14:15:09 +01:00
parent de049e9125
commit 9d96e3a6dc
22 changed files with 1210 additions and 15 deletions

13
types/collection/page.ts Normal file
View file

@ -0,0 +1,13 @@
export default interface Page {
id: number;
documentId: string;
identifier: string;
createdAt: string;
updatedAt: string;
publishedAt: string;
locale: string;
slug: string;
Hero: { id: number; titel: string };
content: { __component: string; id: number; list: string; enable_detail: boolean }[];
localizations: any[];
}

View file

@ -0,0 +1,8 @@
import type FooterLink from "./footerLink";
export default interface Footer {
id: number;
copyright: string;
designed_developed_by: string;
links: FooterLink[];
}

View file

@ -0,0 +1,6 @@
export default interface FooterLink {
id: number;
text: string;
URL: string;
target: string;
}

21
types/component/image.ts Normal file
View file

@ -0,0 +1,21 @@
export default interface Image {
id: number;
documentId: string;
name: string;
alternativeText: string | null;
caption: string | null;
width: number;
height: number;
formats: any;
hash: string;
ext: string;
mime: string;
size: number;
url: string;
previewUrl: string | null;
provider: string;
provider_metadata: any;
createdAt: string;
updatedAt: string;
publishedAt: string;
}

View file

@ -0,0 +1,8 @@
import type Image from "./image";
import type NavbarItem from "./navbarItem";
export default interface Navbar {
id: number;
logo: Image;
navbar_items: NavbarItem[];
}

View file

@ -0,0 +1,10 @@
import type NavbarSubItem from "./navbarSubItem";
export default interface NavbarItem {
id: number;
name: string;
URL: string;
default_active_child: string;
page: any;
navbar_sub_items: NavbarSubItem[];
}

View file

@ -0,0 +1,8 @@
import type Page from "../collection/page";
export default interface NavbarSubItem {
id: number;
name: string;
URL: string;
page: Page | null;
}

13
types/single/global.ts Normal file
View file

@ -0,0 +1,13 @@
import type Footer from "../component/footer";
import type Navbar from "../component/navbar";
export default interface Global {
id: number;
documentId: string;
createdAt: string;
updatedAt: string;
publishedAt: string;
locale: string;
navbar: Navbar;
footer: Footer;
}

12
types/single/homepage.ts Normal file
View file

@ -0,0 +1,12 @@
import type Image from "../component/image";
export default interface Homepage {
id: number;
documentId: string;
createdAt: string;
updatedAt: string;
publishedAt: string;
locale: string;
backdrop: Image;
content: Array<any>;
}