aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/helpers/server
Commit message (Collapse)AuthorAgeFilesLines
* refactor(pages): refine Projects pageArmand Philippot2023-12-071-33/+22
| | | | | | | * add a `contexts` meta key to projects * replace `technologies` with `contexts` key in projects list * make getProjectsFilenames async * add Cypress tests
* refactor(services, types): reorganize GraphQL fetchers and data typesArmand Philippot2023-11-271-24/+14
| | | | | | | | | | | | The Typescript mapped types was useful for autocompletion in fetchers but their are harder to maintain. I think it's better to keep each query close to its fetcher to have a better understanding of the fetched data. So I: * colocate queries with their own fetcher * colocate mutations with their own mutator * remove Typescript mapped types for queries and mutations * move data convertors inside graphql services * rename most of data types and fetchers
* refactor(hooks): remove useSettings hookArmand Philippot2023-11-151-3/+3
| | | | | | | It does not make sense to re-export an existing object through a hook. On some pages both the hook and the object was imported... It is better to use the CONFIG (previously settings) object directly and by doing it we avoid potential errors because of conditional hooks.
* refactor: use named export for everything except pagesArmand Philippot2023-09-203-0/+138
Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.