navigation on collections and dynamic routing improvements

This commit is contained in:
Julian Krauser 2024-11-03 11:21:44 +01:00
parent 5c56af0dad
commit 44b55d9bbb
11 changed files with 117 additions and 48 deletions

View file

@ -1,13 +1,5 @@
export default interface Article {
id: number;
documentId: string;
title: string;
description: string;
slug: string;
import type BaseCollection from "./baseCollection";
export default interface Article extends BaseCollection {
content: Array<{ type: string; children: Array<{ type: string; text: string }>; level?: number }>;
date: string;
createdAt: string;
updatedAt: string;
publishedAt: string;
locale: string;
}

View file

@ -0,0 +1,12 @@
export default interface BaseCollection {
id: number;
documentId: string;
title: string;
description: string;
slug: string;
date: string;
createdAt: string;
updatedAt: string;
publishedAt: string;
locale: string;
}

View file

@ -0,0 +1,5 @@
import type BaseCollection from "./baseCollection";
export default interface Event extends BaseCollection {
content: Array<{ type: string; children: Array<{ type: string; text: string }>; level?: number }>;
}

View file

@ -0,0 +1,9 @@
export default interface Lookup {
id: number;
documentId: string;
collection: string;
reference: string;
createdAt: Date;
updatedAt: Date;
publishedAt: Date;
}

View file

@ -0,0 +1,5 @@
import type BaseCollection from "./baseCollection";
export default interface Operation extends BaseCollection {
content: Array<{ type: string; children: Array<{ type: string; text: string }>; level?: number }>;
}