component formatting and types
This commit is contained in:
parent
c2a7d15eeb
commit
ce745c06e5
60 changed files with 464 additions and 301 deletions
6
types/component/items/footerLink.ts
Normal file
6
types/component/items/footerLink.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
export default interface FooterLink {
|
||||
id: number;
|
||||
text: string;
|
||||
URL: string;
|
||||
target: string;
|
||||
}
|
7
types/component/items/hero.ts
Normal file
7
types/component/items/hero.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import type BaseFile from "../baseFile";
|
||||
|
||||
export default interface ItemsHero {
|
||||
id: number;
|
||||
title: string | undefined;
|
||||
banner: BaseFile | undefined;
|
||||
}
|
5
types/component/items/link.ts
Normal file
5
types/component/items/link.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
export default interface SharedLink {
|
||||
text: string;
|
||||
URL: string;
|
||||
target: "_blank" | "_self" | "_parent" | "_top";
|
||||
}
|
10
types/component/items/navbarItem.ts
Normal file
10
types/component/items/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/items/navbarSubItem.ts
Normal file
8
types/component/items/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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue