13 Commits

Author SHA1 Message Date
Adaline Simonian
23a3862ca0
test: introduce snapshot-based smoke tests
- Adds a new test suite with Docker-based smoke tests for all locales.
  Can be run using the ./smoketest.sh script.
- Replaces all calls to Math.random() with a new helper that returns 0.5
  in snapshot testing mode, ensuring deterministic snapshots.
- Similarly replaces all calls to new Date() and Date.now() with new
  helpers that return a fixed date in snapshot testing mode.
- Replaces checks against NODE_ENV with APP_ENV, to ensure that the
  bundles can be built with Nuxt for testing without losing code that
  would otherwise be stripped out by production optimizations.
- Adds a database init script that can be used to initialize the
  database with a single admin user and a long-lived JWT token for use
  in automation tests.
- Adds a JWT decoding/encoding CLI tool for debugging JWTs.

Note: Snapshots are not checked in, and must be generated manually. See
test/__snapshots__/.gitignore for more information.
2025-02-02 23:11:19 -08:00
Andrea Vos
af7c47d079 (dark) fix switches styling in dark mode 2025-01-31 21:49:08 +01:00
Adaline Simonian
12edd655b6
chore: fix lint errors 2025-01-14 18:20:30 -08:00
Adaline Simonian
9aedcfb166
fix: distinguish better between sublanguages 2025-01-14 18:08:25 -08:00
Valentyne Stigloher
98472dc635 (admin) hide blog editor card when filtering for attention 2025-01-02 14:18:53 +01:00
Valentyne Stigloher
64735cac1b (admin)(blog) very simple post editor 2025-01-01 23:52:44 +01:00
Valentyne Stigloher
9280d797ba (ts) migrate pages/admin/index.vue to composition API with typescript 2025-01-01 23:52:44 +01:00
Valentyne Stigloher
2369ce1057 (ts) migrate /api/admin/stats and /api/admin/stats-public from express to h3, improving their types 2025-01-01 23:52:44 +01:00
Valentyne Stigloher
3e5a0b12f2 (dependencies) replace jsonwebtoken with jose which does not need crypto polyfill 2024-11-10 21:59:56 +01:00
Valentyne Stigloher
b25afefc49 (fmt) 2024-10-29 10:56:32 +01:00
Valentyne Stigloher
7aaa57880d (nuxt) use name of routes / pages instead of building urls as this breaks sometimes when encodeURIComponent is used (and it’s shorter) 2024-09-20 22:53:57 +02:00
Valentyne Stigloher
db8a6d21cf (nuxt) disable csrf
reverts commit 6825cf78217f14bb709a96b341d35514f1fbbcad.
2024-09-14 15:08:34 +02:00
Valentyne Stigloher
55050c658f (nuxt) move routes to pages for usage of definePageMeta 2024-09-12 10:11:25 +02:00