aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types/app.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-132/+0
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* fix(types): add custom types to pageProps with translationArmand Philippot2022-09-211-2/+12
|
* fix(comments): load all comments on a postArmand Philippot2022-08-211-2/+2
| | | | | | | | | 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.
* fix: ensure all topics/thematics have the base urlArmand Philippot2022-05-231-1/+1
|
* refactor: reduce the number of data transformationArmand Philippot2022-05-231-3/+2
|
* 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-161-0/+1
| | | | | | * add logo to topics pages and links * add Prism styles to articles * and a few other adjustements
* chore: add Project single pagesArmand Philippot2022-05-131-8/+9
|
* chore: add a Projects pageArmand Philippot2022-05-051-1/+9
|
* chore: add a LegalNotice pageArmand Philippot2022-05-031-5/+11
|
* chore: fetch posts for rss feedArmand Philippot2022-05-021-0/+86
|
* chore: remove old pages, components, helpers and typesArmand Philippot2022-04-291-160/+0
| | | | | Since I'm using new components, I will also rewrite the GraphQL queries so it is easier to start from scratch.
* feat: provide pagination for users with js disabled (#13)Armand Philippot2022-03-091-1/+8
| | | | | | | | | * 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
|
* chore: improve comment form user experienceArmand Philippot2022-02-141-0/+2
|
* fix: update comments list when a new comment is sendArmand Philippot2022-02-141-1/+4
| | | | | 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-4/+5
|
* 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-251-0/+6
|
* chore: display total found posts in page metaArmand Philippot2022-01-251-0/+1
|
* refactor: rename all subject occurrences into topicArmand Philippot2022-01-231-8/+8
| | | | | I change the name in graphql endpoint, so I decided to repercute this change here.
* chore: add single project viewArmand Philippot2022-01-201-2/+11
|
* chore: add a page for projectsArmand Philippot2022-01-201-0/+17
|
* 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 a widget to list all blog topicsArmand Philippot2022-01-071-0/+2
|
* chore: add a widget to list all blog thematicsArmand Philippot2022-01-071-0/+2
|
* chore: add a button-like component for linksArmand Philippot2021-12-291-0/+2
|
* chore: replace CV content with mdx contentArmand Philippot2021-12-241-7/+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-241-2/+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-201-0/+75
| | | | | | | 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: create homepage with graphql dataArmand Philippot2021-12-131-1/+1
|
* chore: change app to use a layoutArmand Philippot2021-12-131-0/+11
I can now insert header/footer on each pages.