aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql/queries.ts
Commit message (Collapse)AuthorAgeFilesLines
* chore: remove old pages, components, helpers and typesArmand Philippot2022-04-291-535/+0
| | | | | Since I'm using new components, I will also rewrite the GraphQL queries so it is easier to start from scratch.
* refactor: update graphql queries (#14)Armand Philippot2022-03-091-28/+24
| | | | | | | | | | | | | | | | | | * refactor: replace postBy query postBy is now deprecated in WPGraphQL v1.7 * refactor: update post comments query PostBy is deprecated and it is now possible to use the post ID to query comments. * refactor: update get topic by slug query topicBy is deprecated * refactor: update get thematic by slug query thematicBy is deprecated
* feat: provide pagination for users with js disabled (#13)Armand Philippot2022-03-091-1/+28
| | | | | | | | | * chore: add a Pagination component * chore: add blog pages * chore: fallback to page number based navigation if JS disabled * chore: update translation
* refactor: remove unused graphql fieldsArmand Philippot2022-02-141-45/+1
|
* fix: update comments list when a new comment is sendArmand Philippot2022-02-141-19/+41
| | | | | The comments list was static before. If an user posted a comment, even after it was approved, the comments list was keeping the old state.
* chore: improve RSS feed generation timeArmand Philippot2022-02-131-1/+16
|
* chore: add reading time in posts metaArmand Philippot2022-01-251-0/+24
|
* chore: display total found posts in page metaArmand Philippot2022-01-251-0/+1
|
* refactor: rename all subject occurrences into topicArmand Philippot2022-01-231-32/+32
| | | | | I change the name in graphql endpoint, so I decided to repercute this change here.
* fix(widget): remove items limit for ThematicsList and TopicsListArmand Philippot2022-01-111-2/+7
| | | | | | | By default WPGraphQL gets only the 10 first items if first is not specified. So some subjects was not displayed. I also add an order by title to the query. So I no longer need to sort arrays inside components.
* chore: add a widget to list all blog topicsArmand Philippot2022-01-071-0/+19
|
* chore: add a widget to list all blog thematicsArmand Philippot2022-01-071-0/+19
|
* refactor: avoid useless assignement before return statementArmand Philippot2022-01-041-12/+5
|
* chore: display comments as a treeArmand Philippot2021-12-271-1/+1
| | | | | | I was displaying comments without the parent/children link. Now, each child is displayed under its parent. I also remove the reply button for children to avoid too many child depth.
* chore: replace CV content with mdx contentArmand Philippot2021-12-241-28/+0
| | | | | Since I replace the other pages, there is no reason to fetch this page content through WP GraphQL.
* chore: replace homepage content with MDX contentArmand Philippot2021-12-241-19/+0
| | | | | I cannot import custom blocks through WP GraphQL, so I prefer to use MDX file. This way I cannot import custom components.
* chore: create search viewArmand Philippot2021-12-201-3/+12
|
* refactor: rewrite types and servicesArmand Philippot2021-12-201-0/+496
I was repeating myself a lot in services. So I rewrited the different functions to improve readability and I extracted some formatting functions to put them in utils. I also rewrited/reorganized some types to keep consistent names.