8 Commits

Author SHA1 Message Date
Valentyne Stigloher
82c8ea8547 (refactor) use sha256 instead of md5 for image copy, remove js-md5 dependency 2025-05-03 14:26:58 +02:00
Andrea Vos
dc960c3b03 (bug) fix links queue broken by segfault
not recognising some favicons as SVG files (because they're either data URLs or contain query string) results in it being passed to canvas.loadImage, which blows up for some reason

that's what's been spamming us with "links queue getting too long" emails
2025-03-25 21:01:58 +01:00
Valentyne Stigloher
314c3553ad (nuxt) rename env variables that fill nuxt runtime configuration to NUXT_* so that they can be passed at runtime 2025-02-15 14:27:01 +01:00
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
Benjamin
bbfa210340 JS Modernization (@benshawmean) 2025-01-16 22:24:08 +00:00
Valentyne Stigloher
b25afefc49 (fmt) 2024-10-29 10:56:32 +01:00
Valentyne Stigloher
67156361b2 (ts) replace any type assertion with more specific null assertion 2024-06-14 19:58:55 +02:00
Andrea Vos
00fd9b03d4 (security) proxy favicons to prevent potential leakage of users' IPs 2024-06-14 18:46:23 +02:00