aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/helpers
Commit message (Collapse)AuthorAgeFilesLines
* chore: use image title as figure label if no caption is providedArmand Philippot2022-06-071-0/+1
|
* fix: ensure all topics/thematics have the base urlArmand Philippot2022-05-231-10/+6
|
* refactor(schema): use helpers function to avoid repeat between pagesArmand Philippot2022-05-231-0/+224
|
* refactor: reduce the number of data transformationArmand Philippot2022-05-231-17/+32
|
* refactor: rewrite Prism hooks and providersArmand Philippot2022-05-191-0/+10
| | | | | It avoid some hydratation errors on project pages (not in article however) and the hooks are now reusable.
* chore: adjust and complete missing stylesArmand Philippot2022-05-161-1/+4
| | | | | | * add logo to topics pages and links * add Prism styles to articles * and a few other adjustements
* chore: add Thematic pageArmand Philippot2022-05-131-1/+46
|
* chore: handle blog paginationArmand Philippot2022-05-131-2/+11
|
* chore: add Project single pagesArmand Philippot2022-05-133-50/+77
|
* refactor: rewrite DescriptionList and Meta componentsArmand Philippot2022-05-091-15/+0
| | | | | | The meta can have different layout. The previous implementation was not enough to easily change the layout. Also, I prefer to restrict the meta types and it prevents me to repeat myself for the labels.
* chore: add a Projects pageArmand Philippot2022-05-051-0/+85
|
* chore: add a LegalNotice pageArmand Philippot2022-05-031-5/+5
|
* chore: fetch posts for rss feedArmand Philippot2022-05-025-19/+156
|
* chore: remove old pages, components, helpers and typesArmand Philippot2022-04-295-474/+1
| | | | | Since I'm using new components, I will also rewrite the GraphQL queries so it is easier to start from scratch.
* chore: add a PageLayout componentArmand Philippot2022-04-251-3/+25
|
* refactor: load prism plugins without babelArmand Philippot2022-03-241-11/+10
|
* refactor: update graphql queries (#14)Armand Philippot2022-03-091-3/+3
| | | | | | | | | | | | | | | | | | * 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/+16
| | | | | | | | | * 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-7/+6
| | | | | | 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.
* feat: add HTTP security headersArmand Philippot2022-02-151-3/+3
| | | | | I also renamed and changed the format of some environment variables so I can reuse them inside the CSP security header.
* fix: update comments list when a new comment is sendArmand Philippot2022-02-141-8/+6
| | | | | 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(matomo): use another dependency to track page viewsArmand Philippot2022-02-141-7/+0
| | | | | | I though the previous package would track all visits with the provided but it seems that I need to add trackPageView on all pages. So I decided to use another package.
* chore: improve RSS feed generation timeArmand Philippot2022-02-131-10/+5
|
* fix(prism): translate toolbar buttons on single article pagesArmand Philippot2022-02-101-49/+0
| | | | | The translation was not always loaded the first time. So I decided to put the prism attributes manually instead.
* chore(prism): translate color scheme toggle buttonArmand Philippot2022-02-081-0/+21
|
* fix: handle getStaticPaths fallbackArmand Philippot2022-02-021-0/+12
| | | | | | | | 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.
* chore: add MatomoArmand Philippot2022-01-311-0/+7
|
* chore(baseline): handle baseline translation manuallyArmand Philippot2022-01-301-1/+1
| | | | | | I cannot use formatjs to translate the website baseline since I need an async function to load the message. If I use the getIntlInstance helper outside NextJS, webpack is complaining about fs and path.
* refactor(config): move config from config dir to utilsArmand Philippot2022-01-292-7/+7
|
* chore: replace lingui functions with react-intlArmand Philippot2022-01-292-6/+39
|
* chore(i18n): replace i18n provider and helpersArmand Philippot2022-01-291-75/+17
|
* fix: handle translation with linguiArmand Philippot2022-01-281-22/+72
| | | | | | | | The previous method was not working so I tried a different approach. Translation is loaded but I'm still getting warnings: * Plurals for locale undefined aren't loaded * Text content did not match I can't figure how to fix them...
* chore: update project preview appearanceArmand Philippot2022-01-271-3/+3
|
* chore: wrap dates with time tagArmand Philippot2022-01-251-0/+16
|
* chore: add reading time in posts metaArmand Philippot2022-01-251-0/+8
|
* refactor: rename all subject occurrences into topicArmand Philippot2022-01-231-26/+26
| | | | | I change the name in graphql endpoint, so I decided to repercute this change here.
* chore: add single project viewArmand Philippot2022-01-201-36/+50
|
* chore: add a page for projectsArmand Philippot2022-01-201-0/+72
|
* refactor(config): move defaultLocale as property of config.localesArmand Philippot2022-01-192-2/+3
| | | | | I will need the country code, so I think it makes more sense to gather them inside the same property.
* 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: add all posts from CMS to feedArmand Philippot2022-01-131-2/+10
|
* chore: add different feed formats (feed.xml, atom.xml, feed.json)Armand Philippot2022-01-131-2/+1
|
* chore: generate feedArmand Philippot2022-01-121-0/+54
| | | | | | I could loop until hasNextPage is false, but I'm not sure if it is the best solution. So, for now, only the first 100 posts will be added to the file.
* chore: add title and meta desc to subjects and thematicsArmand Philippot2022-01-111-2/+13
|
* chore(meta): display subjects instead of thematics on Thematic pagesArmand Philippot2022-01-111-0/+2
|
* refactor: improve regex readability by grouping partsArmand Philippot2022-01-041-1/+1
|
* refactor: avoid useless assignement before return statementArmand Philippot2022-01-041-6/+2
|
* chore: add line numbers to all prism blocks and translate copy buttonArmand Philippot2022-01-031-0/+51
|
* chore: display subjects list under articlesArmand Philippot2022-01-031-1/+19
|
* chore: display comments as a treeArmand Philippot2021-12-271-1/+30
| | | | | | 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.