| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Since #93db24b MSW is used in Cypress tests to intercept requests. Some
tests relied on WordPress data so it becames broken. Tests are now
successful but there are still some issues with hydration because all
GraphQL requests are not intercepted and data are mixed between
WordPress and fixtures.
|
| |
|
|
|
| |
* add Jest test
* add a Cypress test in article pages spec
|
| |
|
|
|
|
|
|
|
|
|
| |
* add favicon
* add item categories
* add item image
* add item author
* add item update date (it seems `date` is used as update date by Feed)
* change copyright format
* fix ESlint errors
* fix atom and json links
|
| |
|
|
|
|
| |
I don't know when it happens but the rewrites was no longer working.
Also it is more a redirect than a rewrite so I switch the setting key
and set "permanent" to true.
|
| |
|
|
|
|
|
| |
Instead of repeating the overriding on each pages, we should define
it in one place and reuse it in pages.
By default it is not possible to override native HTML tags with MDX
so I added a plugin in next config to allow it.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since #be4d907 the ids was no longer addded to headings in
useHeadingsTree hook. It was a bad practice to manipulate the DOM
that way. However, I did not move the implementation elsewhere...
To fix this, I now use rehype-slug on both markdown contents and
html string coming from WordPress.
I'm not sure the dynamic imports are really useful here since the
table of contents is on almost all pages but Jest was failing with
regular import because of ESM. It is the only thing that makes the
tests functional again so... However if we want to test the
`updateContentTree` function, Jest fails for the same reason. So I
decided to not test this function. I've already spend too much time
on this issue.
Another problem: the ToC on projects page. Currently we use the ref
on the body but the page contents are imported dynamically so the
hook is executed before the contents are loaded. It makes the ToC
empty... We should refactor the pages so we can use the ref
directly on the imported contents.
|
| |
|
|
|
|
|
| |
* `images.domains` has been replaced with `images.remotePatterns`
* remove `experimental.scrollRestoration` (I don't find the doc anymore
and removing it seems to change nothing so I assume we don't need it
now)
|
| |
|
|
|
|
| |
In my opinion, next/core-web-vitals rules are too loose so I added
a custom config to improve code consistency and to enforce best
practices.
|
| | |
|
| |
|
|
|
| |
The Next config has also been updated: the experimental config
`outputStandalone` is no longer experimental.
|
| |
|
|
| |
Some webm video was not loaded because of Content Security Policy.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
* build: add experimental feature outputStandalone
With this option, Next.js can create a standalone folder with the
necessary files for a production deployment. It will be useful for
Docker deployment.
* chore: add Docker configuration
* docs: update README with Docker instructions
|
| | |
|
| | |
|
| |
|
|
|
| |
I do not use all Matomo features so I was searching a lightweight
analytics tools. I will give a try to Ackee.
|
| |
|
|
|
| |
It seems Matomo need to be declared at least in connect-src in addition
to script-src.
See: https://fr.matomo.org/faq/general/faq_20904/
|
| | |
|
| |
|
|
|
| |
I also renamed and changed the format of some environment variables so
I can reuse them inside the CSP security header.
|
| |
|
|
|
|
|
| |
I don't know if I misunderstand the purpose of no-parser but I can't
get it to work with strings containing a variable or plurals. They are
always fallback to the english message. So I decided to disable this
config.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
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...
|
| |
|
|
|
|
| |
It would be nice to restore focus as well, but it seems I can not
retrieve which posts was click on history back. I should find an
alternative later.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|