summaryrefslogtreecommitdiffstats
path: root/src/ts
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* chore: display comments list on postsArmand Philippot2021-12-171-1/+11
|
* chore: create thematic page viewArmand Philippot2021-12-161-0/+47
| | | | | | | 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 year between blog postsArmand Philippot2021-12-162-4/+4
|
* chore: fix typoArmand Philippot2021-12-162-2/+2
|
* chore: create legal notice viewArmand Philippot2021-12-151-1/+1
|
* chore: create CV viewArmand Philippot2021-12-151-0/+29
|
* chore: create single post viewArmand Philippot2021-12-154-5/+88
|
* chore: add pagination (load more) to blog pageArmand Philippot2021-12-151-5/+7
|
* chore: retrieve posts list on blog pageArmand Philippot2021-12-155-0/+98
|
* chore: add main-nav componentArmand Philippot2021-12-131-0/+5
| | | | | 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-1/+20
|
* chore: change app to use a layoutArmand Philippot2021-12-131-0/+11
I can now insert header/footer on each pages.