summaryrefslogtreecommitdiffstats
path: root/src/ts
Commit message (Collapse)AuthorAgeFilesLines
* fix(comments): load all comments on a postArmand Philippot2022-08-213-4/+10
| | | | | | | | | Previously, only the first 10 comments was loaded. So I update the fetching method to retrieve all the comments on a post. Also, I choose to order comments on client side because of a bug with WPGraphQL. Finally, I renamed the Comment type to SingleComment to avoid conflict with existing types.
* refactor(types): move and rename GraphQL typesArmand Philippot2022-08-204-5/+238
| | | | | | | The api file in services was not really readable. So I move the types and I also rewrite a little the fetch function. I also rename most of the type to avoid conflict with preexisting types (like Node) and to keep consistency.
* chore: use image title as figure label if no caption is providedArmand Philippot2022-06-071-1/+6
|
* fix: ensure all topics/thematics have the base urlArmand Philippot2022-05-231-1/+1
|
* refactor: reduce the number of data transformationArmand Philippot2022-05-233-9/+4
|
* chore: use persistent layoutArmand Philippot2022-05-171-0/+21
| | | | | It prevents to rerender the common components between pages (header, footer...).
* chore: adjust and complete missing stylesArmand Philippot2022-05-162-2/+6
| | | | | | * add logo to topics pages and links * add Prism styles to articles * and a few other adjustements
* chore: add Project single pagesArmand Philippot2022-05-132-8/+14
|
* chore: add a Projects pageArmand Philippot2022-05-051-1/+9
|
* chore: add a LegalNotice pageArmand Philippot2022-05-033-8/+34
|
* chore: fetch posts for rss feedArmand Philippot2022-05-022-0/+189
|
* chore: remove old pages, components, helpers and typesArmand Philippot2022-04-2911-575/+0
| | | | | Since I'm using new components, I will also rewrite the GraphQL queries so it is easier to start from scratch.
* refactor: load prism plugins without babelArmand Philippot2022-03-241-0/+51
|
* refactor: update graphql queries (#14)Armand Philippot2022-03-093-16/+10
| | | | | | | | | | | | | | | | | | * 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-092-2/+17
| | | | | | | | | * chore: add a Pagination component * chore: add blog pages * chore: fallback to page number based navigation if JS disabled * chore: update translation
* refactor: split posts meta into smaller componentsArmand Philippot2022-03-011-0/+2
|
* chore(homepage): use next/image for images and specify width/heightArmand Philippot2022-02-221-0/+6
|
* refactor: remove unused graphql fieldsArmand Philippot2022-02-141-15/+0
|
* chore: display initial posts, thematics & topicsArmand Philippot2022-02-142-1/+7
| | | | | By fetching the data in getStaticProps, I can display the data even for users with Javascript disabled.
* chore: improve comment form user experienceArmand Philippot2022-02-141-0/+2
|
* fix: update comments list when a new comment is sendArmand Philippot2022-02-143-3/+13
| | | | | 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-132-4/+13
|
* fix: handle getStaticPaths fallbackArmand Philippot2022-02-021-0/+4
| | | | | | | | I had errors with next build because of fallback. I need to return early if the path does not exists, if not Next complains about undefined variables. I don't think it was related but I also fix the paths format in getStaticPaths, I forgot the params object in some dynamic routes.
* fix(project): make sure the project cover is displayedArmand Philippot2022-01-271-10/+11
| | | | | | | | Next.js does not support the dynamic import of images. Sometimes the images was displayed and other times the loading did not finish. So even if I would like to keep the content in a same place, I choose to put the projects covers inside the public directory. Then I use a hasCover boolean to determine if the project cover need to be printed.
* chore: add reading time in posts metaArmand Philippot2022-01-253-6/+26
|
* chore: display total found posts in page metaArmand Philippot2022-01-252-0/+2
|
* refactor(project): replace repo api call method with hook and swrArmand Philippot2022-01-241-0/+2
| | | | | | | | | | 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-233-34/+30
| | | | | 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/+5
|
* chore: add single project viewArmand Philippot2022-01-201-2/+11
|
* chore: add a page for projectsArmand Philippot2022-01-201-0/+17
|
* chore: add structured data using schema.org and JSON-LDArmand Philippot2022-01-191-0/+2
| | | | I also added the featured image on single article.
* chore: update sidebar and widgets stylesArmand Philippot2022-01-151-0/+4
| | | | | | | | | I'm now using a widget that can be expanded/collapsed. It also allows me to handle more effectively widgets overflow and to avoid styles repetitions. However, with stylelint rule "no-descending-specificity", I'm not sure if the stylesheets are really logical... Maybe I should deactivate this rule.
* chore: add title and meta desc to subjects and thematicsArmand Philippot2022-01-111-1/+3
|
* chore(meta): display subjects instead of thematics on Thematic pagesArmand Philippot2022-01-111-2/+3
|
* chore: add a widget to list all blog topicsArmand Philippot2022-01-072-4/+12
|
* chore: add a widget to list all blog thematicsArmand Philippot2022-01-072-0/+8
|
* refactor: reuse PostMeta components on single articles/pagesArmand Philippot2022-01-061-0/+8
|
* chore: display subjects list under articlesArmand Philippot2022-01-032-2/+15
|
* chore: add a button-like component for linksArmand Philippot2021-12-291-0/+2
|
* chore: display comments as a treeArmand Philippot2021-12-271-0/+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-242-30/+1
| | | | | 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-242-14/+0
| | | | | I cannot import custom blocks through WP GraphQL, so I prefer to use MDX file. This way I cannot import custom components.
* build: add a typescript declaration file for MDXArmand Philippot2021-12-241-0/+6
| | | | | I need to inform Typescript than I am exporting a meta constant from MDX files.
* chore: add a table of contentsArmand Philippot2021-12-211-0/+7
|
* refactor: rewrite types and servicesArmand Philippot2021-12-2010-194/+224
| | | | | | | 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-3/+38
|
* chore: create mutation to add a new comment on postsArmand Philippot2021-12-171-0/+22
|
* chore: create mutation to send mail from contact formArmand Philippot2021-12-171-0/+19
|
* chore: add meta to single postsArmand Philippot2021-12-171-0/+10
|