19 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
Benjamin
bbfa210340 JS Modernization (@benshawmean) 2025-01-16 22:24:08 +00:00
Valentyne Stigloher
5b3bb04c6c (ts) migrate many components to composition API with typescript 2025-01-12 14:12:15 +01:00
Andrea Vos
23fc8e3bd9 CR improvements 2025-01-02 12:59:19 +01:00
Andrea Vos
7c49f14368 Merge branch 'refs/heads/main' into split-audit
# Conflicts:
#	pnpm-lock.yaml
2024-12-31 19:45:30 +01:00
Andrea Vos
1055e3b5bd split audit log into a separate database and compress payload 2024-12-31 11:17:37 +01:00
Valentyne Stigloher
3c81de9c16 (dependencies) upgrade typescript to 5.7.2 2024-12-29 14:35:23 +01:00
Andrea Vos
15b9f0225a (bug)(profile) timezone not set correctly when area&loc not published 2024-12-28 12:09:36 +01:00
Andrea Vos
b5246b2cf5 Merge branch 'refs/heads/main' into visibility
# Conflicts:
#	components/Profile.vue
#	locale/pl/translations.suml
#	pages/profile/editor.vue
#	server/express/profile.ts
#	src/profile.ts
2024-11-09 15:51:40 +01:00
Andrea Vos
34a49b0750 (profile) display card creation date next to last modification 2024-11-09 13:46:00 +01:00
Andrea Vos
b4120e164a (profile) visibility setting - linter 2024-11-08 23:19:52 +01:00
Andrea Vos
9c782537b9 (profile) visibility setting 2024-11-07 08:48:53 +01:00
Valentyne Stigloher
b25afefc49 (fmt) 2024-10-29 10:56:32 +01:00
Valentyne Stigloher
c1e6450f8a (api) use defineCachedFunction which properly handles concurrent generation 2024-10-18 18:30:01 +02:00
Andrea Vos
c41fdd3acc minor timezone fixes 2024-10-15 14:14:41 +02:00
Valentyne Stigloher
590e770229 (profile) add icon to custom events 2024-10-12 16:29:03 +02:00
Valentyne Stigloher
8e00dd04bb (api) replace multer as express middleware with matching h3 calls 2024-09-12 10:11:25 +02:00
Valentyne Stigloher
71a562bba9 (nuxt) do not use import.meta.url directly to reference other files as this breaks in Nitro, use current working directory as convention 2024-09-12 10:11:25 +02:00
Valentyne Stigloher
a99199f322 (nuxt) integrate express as server handler while preventing Nuxt from scanning server directory 2024-09-11 21:29:35 +02:00