116 Commits

Author SHA1 Message Date
Valentyne Stigloher
72a58accc2 (lint) 2025-07-07 18:29:14 +02:00
Valentyne Stigloher
57f376e5ee (refactor) move /api/admin/authenticators/:id to own file and improve its typings 2025-07-04 17:29:52 +02:00
Valentyne Stigloher
1b52fa8ade (refactor) move /api/admin/list to own file and improve its typings 2025-07-04 17:29:52 +02:00
Benjamin
8b87a57f75 Merge branch 'main' into 'ben-updates'
# Conflicts:
#   server/express/census.ts
2025-06-22 15:52:41 -04:00
Andrea Vos
0ba8cfaf4f (census)(admin) allow downloading previous years 2025-06-21 15:06:45 +02:00
Benjamin
b53f23b420
Merge branch 'main' into ben-updates 2025-06-19 18:03:32 -04:00
Benjamin
1570f340ba
make some changes 2025-06-19 13:37:21 -04:00
Andrea Vos
ae4bed0c41 (pl)(spis) fix missing 19_nie_znam 2025-06-19 10:54:59 +02:00
Benjamin
665e4c7123
(lint) linted files and converted some to TypeScript 2025-06-13 19:54:21 -04:00
Andrea Vos
2a143724ba Merge branch 'user-external' into 'main'
add role "external" (only timesheets) and unit tests for isGranted logic

See merge request PronounsPage/PronounsPage!608
2025-05-03 16:57:26 +00:00
Andrea Vos
8b594c719c fix images in calendar bot 2025-05-03 18:31:33 +02:00
Andrea Vos
8f74d83a43 add role "external" (only timesheets) and unit tests for isGranted logic 2025-05-03 15:48:47 +02:00
Valentyne Stigloher
d0b884c527 (profile) use sha256 instead of md5 to request gravatar 2025-05-03 14:25:34 +02:00
Andrea Vos
32f86cec86 (user) allow blocking accounts 2025-04-12 17:13:38 +02:00
Andrea Vos
c8b790ba62 (lint) 2025-04-03 21:41:28 +02:00
Andrea Vos
7592e7ce13 (pl)(census) optionsLast were not included in the CSV export 2025-04-03 21:29:36 +02:00
Valentyne Stigloher
0299dbec0e (refactor) migrate /api/names/** from express to h3 2025-03-23 11:44:39 +01:00
Valentyne Stigloher
317758db01 (refactor) migrate /api/inclusive/** from express to h3 2025-03-23 11:44:39 +01:00
Valentyne Stigloher
8fbb8f0bb9 (refactor) migrate /api/terms/** from express to h3 2025-03-23 11:44:39 +01:00
Valentyne Stigloher
ad8ee97954 (refactor) migrate /api/sources/** from express to h3 2025-03-23 11:44:39 +01:00
Valentyne Stigloher
b93ddf2f2b (refactor) migrate /api/pronouns/** from express to h3 2025-03-23 11:44:39 +01:00
Valentyne Stigloher
bdec6fa2b8 (refactor) migrate /api/nouns/** from express to h3 2025-03-23 11:44:39 +01:00
Valentyne Stigloher
cfa9aca170 (refactor) migrate /version from express to h3 and replace cache/version file with runtimeconfig / define 2025-03-23 11:44:39 +01:00
Valentyne Stigloher
6480e3e97e (refactor) migrate /versions and /locales from express to h3 2025-03-23 11:44:39 +01:00
Andrea Vos
7820291e10 lint 2025-03-16 13:11:03 +01:00
Andrea Vos
ba5728700d Merge branch 'refs/heads/main' into fix-socials-p 2025-03-16 12:55:07 +01:00
Andrea Vos
a4f53c6e76 (bug) fix personal calendar links (earlier route catches it and thinks en-@andrea is a locale) 2025-03-16 12:53:26 +01:00
Andrea Vos
b4eb230b3d (auth) attempt to fix mastodon & indieauth 2025-03-16 12:28:01 +01:00
Valentyne Stigloher
56d60d1df8 (api)(nouns) support different locales in the same runtime 2025-03-14 19:26:52 +01:00
Valentyne Stigloher
e902b22c3a (api)(calendar) support different locales in the same runtime 2025-03-14 19:26:52 +01:00
Valentyne Stigloher
bd3cf9b2e7 (mailer) support different locales in the same runtime 2025-03-14 19:26:52 +01:00
Valentyne Stigloher
dd5a8f49b0 (nuxt) replace NUXT_PUBLIC_HOME_URL with calculating it from _ value of NUXT_PUBLIC_DOMAIN_BASE 2025-03-14 19:26:16 +01:00
Valentyne Stigloher
68efcb7263 (nuxt) replace NUXT_PUBLIC_ALL_LOCALES_URLS with calculating it from locale and NUXT_PUBLIC_DOMAIN_BASE 2025-03-14 19:26:16 +01:00
Valentyne Stigloher
da2e37eb42 (api) support locale query parameter for choosing different locale 2025-03-14 19:25:57 +01:00
Valentyne Stigloher
56aa0b27a2 (server) remove global.config and global.translations and replace them by dynamic loading 2025-03-14 19:25:57 +01:00
Valentyne Stigloher
f120779899 (refactor) migrate /api/banner/** route from express to h3 2025-03-07 14:14:14 +01:00
Valentyne Stigloher
e0679941a6 (miscommit) 2025-02-23 16:00:30 +01:00
Valentyne Stigloher
cbcc1d1053 (dependencies) migrate code to canvas v3.1.0
- regular font must be specified by simply leaving out modifier, using regular in context.font does not work
- loading svg directly is no longer supported, have to load it via sharp
2025-02-23 14:04:37 +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
Valentyne Stigloher
6dcb92bdd8 (nuxt) dynamically load calendar events 2025-02-15 14:27:00 +01:00
Valentyne Stigloher
e00b8adc68 (nuxt) load pronoun data by env variable in server 2025-02-15 14:27:00 +01:00
Valentyne Stigloher
66627a8212 (nuxt) move scss variables to config.style which then renders them as css custom properties 2025-02-15 14:04:09 +01:00
Valentyne Stigloher
97e72190f0 Merge branch 'chores' into 'main'
update dependencies, small fixes

See merge request PronounsPage/PronounsPage!574
2025-02-15 10:32:34 +00:00
Andrea Vos
16f51c60bd (census) minor fix 2025-02-10 20:57:05 +01:00
Valentyne Stigloher
beed980c7f (fmt) 2025-02-10 13:30:07 +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
Valentyne Stigloher
adf85b28dd (ts) migrate <ServerTable> to composition API with typescript 2025-01-27 19:24:59 +01:00
Andrea Vos
d3c49194b9 lint + miscommit 2025-01-19 20:23:00 +01:00
Andrea Vos
2990abe59e (pronunciation) finish narakeet implementation 2025-01-19 20:14:51 +01:00
Andrea Vos
2a24e83ff2 Merge branch 'refs/heads/main' into naski 2025-01-19 16:24:36 +01:00