base structure and display
This commit is contained in:
parent
de049e9125
commit
9d96e3a6dc
22 changed files with 1210 additions and 15 deletions
13
types/collection/page.ts
Normal file
13
types/collection/page.ts
Normal 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[];
|
||||
}
|
8
types/component/footer.ts
Normal file
8
types/component/footer.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import type FooterLink from "./footerLink";
|
||||
|
||||
export default interface Footer {
|
||||
id: number;
|
||||
copyright: string;
|
||||
designed_developed_by: string;
|
||||
links: FooterLink[];
|
||||
}
|
6
types/component/footerLink.ts
Normal file
6
types/component/footerLink.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
export default interface FooterLink {
|
||||
id: number;
|
||||
text: string;
|
||||
URL: string;
|
||||
target: string;
|
||||
}
|
21
types/component/image.ts
Normal file
21
types/component/image.ts
Normal 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;
|
||||
}
|
8
types/component/navbar.ts
Normal file
8
types/component/navbar.ts
Normal 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[];
|
||||
}
|
10
types/component/navbarItem.ts
Normal file
10
types/component/navbarItem.ts
Normal 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[];
|
||||
}
|
8
types/component/navbarSubItem.ts
Normal file
8
types/component/navbarSubItem.ts
Normal 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
13
types/single/global.ts
Normal 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
12
types/single/homepage.ts
Normal 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>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue