component formatting and types

This commit is contained in:
Julian Krauser 2025-02-14 13:57:55 +01:00
parent c2a7d15eeb
commit ce745c06e5
60 changed files with 464 additions and 301 deletions

View file

@ -1,4 +1,3 @@
import type BaseFile from "../component/baseFile";
import type BaseCollection from "./baseCollection";
export default interface Article extends BaseCollection {}

View file

@ -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>;

View file

@ -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 {}

View file

@ -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;
}

View file

@ -1,5 +1,3 @@
import type BaseCollection from "./baseCollection";
export default interface Operation extends BaseCollection {
image: undefined;
}
export default interface Operation extends BaseCollection {}

View file

@ -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[];
}

View file

@ -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 {}