diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-12-05 19:11:34 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-12-07 19:12:11 +0100 |
| commit | 802285872a2c57e7a5e130f32a2b45497d7687f1 (patch) | |
| tree | 9803af7e06f8b59353e5458f33e54d02b4b9613b /src/types | |
| parent | e9d5a40432c451090e17859c764e52a96120b712 (diff) | |
refactor(pages): refine Projects page
* add a `contexts` meta key to projects
* replace `technologies` with `contexts` key in projects list
* make getProjectsFilenames async
* add Cypress tests
Diffstat (limited to 'src/types')
| -rw-r--r-- | src/types/data.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/types/data.ts b/src/types/data.ts index 80a8bf3..1d0746d 100644 --- a/src/types/data.ts +++ b/src/types/data.ts @@ -252,6 +252,7 @@ export type Repos = { }; export type ProjectMeta = Omit<PageMeta, 'wordsCount'> & { + contexts?: string[]; license?: string; repos?: Repos; tagline?: string; @@ -264,7 +265,7 @@ export type Project = Omit<Page, 'content'> & { }; export type ProjectPreview = Omit<Project, 'meta'> & { - meta: Omit<ProjectMeta, 'license' | 'repos'>; + meta: Pick<ProjectMeta, 'contexts' | 'cover' | 'dates' | 'tagline'>; }; export type ThematicMeta = Omit<PageMeta, 'wordsCount'> & { |
