1266 Commits

Author SHA1 Message Date
Valentyne Stigloher
a86e7927dc Merge branch 'main' into simple 2025-03-15 14:15:26 +01:00
Valentyne Stigloher
a70de3d972 (ts) migrate some components to composition API with typescript 2025-03-14 19:26:52 +01:00
Valentyne Stigloher
8959e84889 (nuxt) replace NUXT_PUBLIC_BASE_URL with calculating it from NUXT_PUBLIC_DOMAIN_BASE 2025-03-14 19:26:51 +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
6f9f8fc6e0 (nuxt) detect locale from requested origin 2025-03-14 19:25:57 +01:00
Valentyne Stigloher
da2e37eb42 (api) support locale query parameter for choosing different locale 2025-03-14 19:25:57 +01:00
Valentyne Stigloher
765d9a0c51 (dependencies) upgrade eslint to 9.22.0 and reconfigure @stylistic/generator-star-spacing to match prettier output 2025-03-14 18:47:32 +01:00
Valentyne Stigloher
ec992a772d (dependencies) remove vue3-lazy-hydration, the only application is fine without it, for future usages use Nuxt’s mechanism
https://nuxt.com/docs/guide/directory-structure/components#delayed-or-lazy-hydration
2025-03-14 18:24:41 +01:00
Valentyne Stigloher
cec15d7c77 (calendar) move calendar banner generation back to script (too slow as JIT-API), add locale to url to future-proof for single instance 2025-03-08 19:09:33 +01:00
Valentyne Stigloher
977d6bd652 Merge branch 'fix-calendar-banner-p' into 'main'
fix calendar banner

See merge request PronounsPage/PronounsPage!588
2025-03-08 14:13:27 +00:00
Andrea Vos
ea1d99de1a (pl)(links) publikacja poradnika z kph 2025-03-08 14:49:15 +01:00
Valentyne Stigloher
3b457ae676 (admin) storage inspector 2025-03-07 14:28:19 +01:00
Valentyne Stigloher
e2efc1b980 (banner) move calendar banner generation to /api/banner 2025-03-07 14:15:39 +01:00
Valentyne Stigloher
d9af447924 (style) fix <NounsTemplatesTable> 2025-02-26 22:28:57 +01:00
Valentyne Stigloher
3ead228fb9 (nuxt) call /api/admin/moderation only when permissions are detected to prevent 401 response (not user-visible) 2025-02-23 12:41:36 +01:00
Valentyne Stigloher
e7c8a1e698 (header) remove 1M celebration with canvas-confetti dependency 2025-02-21 13:58:47 +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
d5032b4443 (nuxt) replace rtlcss with postcss-rtl which generates a stylesheet with both ltr and rtl 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
dc787977e5 (nuxt) dynamically load nouns data 2025-02-15 14:27:00 +01:00
Valentyne Stigloher
9e13955bfa (nuxt) dynamically load pronouns data 2025-02-15 14:27:00 +01:00
Valentyne Stigloher
5b77e76a37 (vue) migrate <Header> to composition API with typescript to prevent accessing Nuxt context before it is initialized 2025-02-15 14:04:09 +01:00
Valentyne Stigloher
889570cbae (nuxt) dynamically load docs/** in fetchJson 2025-02-15 14:04:09 +01:00
Valentyne Stigloher
99fb2a3fd7 (nuxt) dynamically load nouns/cases.ts in <NounsDeclension> 2025-02-15 14:04:09 +01:00
Valentyne Stigloher
8948ed1541 (nuxt) dynamically load names/nameCount.ts in <NameCount> 2025-02-15 14:04:09 +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
beed980c7f (fmt) 2025-02-10 13:30:07 +01:00
Valentyne Stigloher
2584e4011b (lint) replace remaining .hasOwnProperty calls with Object.hasOwn, bump lint to error 2025-02-10 12:26:04 +01:00
Valentyne Stigloher
bead722c48 (test)(pronouns) move config.pronouns.default to config.pronouns.generator.startPronoun to have a more clear name and add tests for it 2025-02-10 12:22:35 +01:00
Andrea Vos
d57de4a570 Merge branch 'search-kbd-width' into 'main'
fix search button <kbd> too wide on mac

See merge request PronounsPage/PronounsPage!568
2025-02-06 21:07:11 +00:00
Andrea Vos
8597f05ca8 another ads experiment 2025-02-06 21:06:22 +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
Andrea Vos
3e23c2d9d3 (lint) 2025-02-01 16:55:29 +01:00
Andrea Vos
6e55f80782 fix search button <kbd> too wide on mac – second attempt 2025-01-31 22:29:10 +01:00
Andrea Vos
272d59ea19 allow complex code in a tooltip 2025-01-31 22:27:25 +01:00
Andrea Vos
53d089dfab fix CI 2025-01-31 22:25:35 +01:00
Andrea Vos
6ab120441a Merge remote-tracking branch 'origin/main' 2025-01-31 22:14:52 +01:00
Andrea Vos
908605375e fix CI 2025-01-31 22:14:43 +01:00
Andrea Vos
be8b95c445 Merge branch 'auth-method-count-warning' into 'main'
(auth)(ux) warn users if they only have a single login method set up

See merge request PronounsPage/PronounsPage!569
2025-01-31 21:09:00 +00:00
Andrea Vos
09e0fa9f2d (lint) 2025-01-31 22:04:35 +01:00
Andrea Vos
cc2dc6bfa2 CR feedback 2025-01-31 22:02:11 +01:00
Andrea Vos
9340b4fb8e (bug) fix <ExpendableList>'s only-one-item-hidden behaviour 2025-01-31 21:57:19 +01:00
Andrea Vos
af7c47d079 (dark) fix switches styling in dark mode 2025-01-31 21:49:08 +01:00
Andrea Vos
01631e413a use avris-vue-share after v1.0 release instead of copying the code with modifications 2025-01-31 21:44:47 +01:00
Andrea Vos
7d70c620aa (lint) 2025-01-29 22:15:53 +01:00
Andrea Vos
5a426770d3 (auth)(ux) warn users if they only have a single login method set up 2025-01-29 22:13:40 +01:00
Andrea Vos
28d624b6d1 fix search button <kbd> too wide on mac 2025-01-29 21:19:09 +01:00
Andrea Vos
7c8727ab97 show feedback to unlogged users when hovering over blog reaction buttons 2025-01-29 21:16:12 +01:00
Valentyne Stigloher
ce684b2dcf (nouns) fix missing diff for proposed changes 2025-01-28 22:16:10 +01:00
Valentyne Stigloher
a0b8959749 (admin) have a spinner next to the filter of the users list whenever queries change and the response is pending 2025-01-27 19:35:36 +01:00