aboutsummaryrefslogtreecommitdiffstats
path: root/src/services
Commit message (Collapse)AuthorAgeFilesLines
* 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
* chore: use a different configuration depending on app envArmand Philippot2022-03-041-1/+2
| | | | | | It will be useful with Docker. Instead of cloning the project with a different configuration, I can manage two different configuration thanks to dotenv and some checking inside the app.
* 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(project): replace repo api call method with hook and swrArmand Philippot2022-01-241-15/+0
| | | | | | | | | | Instead of using post slug and an environment variable to fetch repo data, I use the given repo in each project MDX file. It allows me to fetch data from another user/organization if needed. To make it work, I no longer provide the full URL in MDX file. The new format is: "User/repo-slug". I also replaced the fetch method with SWR to improve caching and to avoid React complaining about cleanup useEffect.
* 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.
* chore: add a project summary componentArmand Philippot2022-01-201-0/+15
|
* chore: add a service to handle local storageArmand Philippot2022-01-171-0/+26
|
* 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-042-17/+7
|
* 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-2011-880/+605
| | | | | | | 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.
* chore: add subject viewArmand Philippot2021-12-181-2/+184
|
* chore: create mutation to add a new comment on postsArmand Philippot2021-12-172-0/+69
|
* chore: create mutation to send mail from contact formArmand Philippot2021-12-171-0/+49
|
* chore: add title and meta desc to postsArmand Philippot2021-12-171-0/+1
|
* chore: add meta to single postsArmand Philippot2021-12-171-0/+9
|
* chore: display comments list on postsArmand Philippot2021-12-171-1/+4
|
* chore: create thematic page viewArmand Philippot2021-12-161-0/+166
| | | | | | | For now I have to repeat some markup/styles, I cannot reuse PostsList component. WP GraphQL does not offer edges for ACF Post2Post or filters to get thematic posts with another way. I should create custom fields in backend to improve the posts fetching.
* chore: display featuredImage and meta on posts listArmand Philippot2021-12-162-3/+6
|
* chore: fix typoArmand Philippot2021-12-161-4/+4
|
* chore: create legal notice viewArmand Philippot2021-12-151-8/+20
|
* chore: create CV viewArmand Philippot2021-12-151-0/+48
|
* chore: create single post viewArmand Philippot2021-12-152-4/+165
|
* chore: add pagination (load more) to blog pageArmand Philippot2021-12-151-3/+3
|
* chore: retrieve posts list on blog pageArmand Philippot2021-12-151-0/+130
|
* chore: add main-nav componentArmand Philippot2021-12-131-1/+0
| | | | | I choose to implement main-nav paths manually instead of fetching them from GraphQL to ensure functional navigation without JS.
* chore: create homepage with graphql dataArmand Philippot2021-12-132-0/+48