navigation on collections and dynamic routing improvements
This commit is contained in:
parent
5c56af0dad
commit
44b55d9bbb
11 changed files with 117 additions and 48 deletions
|
@ -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;
|
||||
}
|
||||
|
|
12
types/collection/baseCollection.ts
Normal file
12
types/collection/baseCollection.ts
Normal 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;
|
||||
}
|
5
types/collection/event.ts
Normal file
5
types/collection/event.ts
Normal 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 }>;
|
||||
}
|
9
types/collection/lookup.ts
Normal file
9
types/collection/lookup.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
export default interface Lookup {
|
||||
id: number;
|
||||
documentId: string;
|
||||
collection: string;
|
||||
reference: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
publishedAt: Date;
|
||||
}
|
5
types/collection/operation.ts
Normal file
5
types/collection/operation.ts
Normal 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 }>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue