- Make
<kbd>tags work in Markdown component - Fix css duplicated by Markdown in
<svelte:head> - Find a way to use
hljs.highlightElementin Markdown to avoid callinghighlighton already highlighted code. Maybe replacehljsbyprismas I do on www.statox.fr because the highlighting is slightly better - Fix
audioContexton iOS Safari in Metronome page - Find a better way to store authentication token. For now they are insecure in the local storage
- Auth is now stored in the cookie
connect.sidnot accessible via javascript.
- Auth is now stored in the cookie
- Svelte 5:
- Most components are migrated some were not migrated because of:
- svelte-markdown. Now replaced with humanspeak/svelte-markdown.
- svelte-jsoneditor. The repo was updated and issues are solved.
- A couple of components still use
runfromsvelte/legacyinstead of$effectbecause the migration break them and I have to look into it. - Replace
createEventDispatcherby callback props
- Most components are migrated some were not migrated because of:
- Add checks to allow Dependabot MRs to be merged automatically
- Add link to the last GitHub Pages deployment
- Rework
fetchcalls into a framework for unified access to api.statox.fr - Rework CSS. Default should be dark theme. Add a button to switch themes
- Extend colors to get warning red, info blue, success green, ...
- Recreate mechanism to open note in its own page
- Rework home page to be more descriptive and useful
- Get toast library from https://github.com/zerodevx/svelte-toast/blob/master/src/lib/ToastItem.svelte
- Clean up the
getAccessToken()function so that it doesn't returnstring | undefinedand handle errors properly.
For now environment variables are all public (only the backend url so far) and can have different values depending on the environment:
- Write values for local dev in
env.local - Write values for prod in
env.prod
A script in svelte.config.js copies the file corresponding to the environment in .env.
The variables can then be read from components with:
import { PUBLIC_ENVIRONMENT } from '$env/static/public';
When adding a new value run npx svelte-kit sync to avoid errors like
Module '"$env/static/public"' has no exported member VARIABLE_NAME
Notes about CSS and Markdown https://joshcollinsworth.com/blog/build-static-sveltekit-markdown-blog