component formatting and types
This commit is contained in:
parent
c2a7d15eeb
commit
ce745c06e5
60 changed files with 464 additions and 301 deletions
|
@ -1,4 +1,3 @@
|
|||
import type BaseFile from "../component/baseFile";
|
||||
import type BaseCollection from "./baseCollection";
|
||||
|
||||
export default interface Article extends BaseCollection {}
|
||||
|
|
|
@ -12,7 +12,7 @@ export default interface BaseCollection {
|
|||
|
||||
title: string;
|
||||
description: string;
|
||||
date: string | undefined;
|
||||
date: string;
|
||||
content: ContentField | undefined;
|
||||
image: BaseFile | undefined;
|
||||
attachment: Array<BaseFile>;
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
import type BaseCollection from "./baseCollection";
|
||||
|
||||
export default interface Event extends BaseCollection {
|
||||
image: undefined;
|
||||
content: undefined;
|
||||
}
|
||||
export default interface Event extends BaseCollection {}
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
export default interface Lookup {
|
||||
id: number;
|
||||
documentId: string;
|
||||
collection: string;
|
||||
image_item: boolean;
|
||||
date_list: boolean;
|
||||
numbered_item: boolean;
|
||||
inverse_count: boolean;
|
||||
reference: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
publishedAt: string;
|
||||
|
||||
reference: string;
|
||||
collection: "events" | "vehicles" | "articles" | "operations";
|
||||
show_image: boolean;
|
||||
show_date: boolean;
|
||||
list_with_date: "none" | "by-year" | "by-month";
|
||||
items_with_number: "none" | "numbered" | "inverted";
|
||||
enable_detail: boolean;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import type BaseCollection from "./baseCollection";
|
||||
|
||||
export default interface Operation extends BaseCollection {
|
||||
image: undefined;
|
||||
}
|
||||
export default interface Operation extends BaseCollection {}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type { ComponentTypes } from "../component/baseComponent";
|
||||
import type SharedHero from "../component/sharedHero";
|
||||
import type ItemsHero from "../component/items/hero";
|
||||
|
||||
export default interface Page {
|
||||
id: number;
|
||||
|
@ -10,7 +10,7 @@ export default interface Page {
|
|||
publishedAt: string;
|
||||
locale: string;
|
||||
slug: string;
|
||||
hero: SharedHero;
|
||||
hero: ItemsHero;
|
||||
content: Array<ComponentTypes>;
|
||||
localizations: any[];
|
||||
}
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
import type BaseFile from "../component/baseFile";
|
||||
import type BaseCollection from "./baseCollection";
|
||||
|
||||
export default interface Vehicle extends BaseCollection {
|
||||
date: undefined;
|
||||
}
|
||||
export default interface Vehicle extends BaseCollection {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue