195 Commits

Author SHA1 Message Date
Andrea Vos
f1a78c1ad3 Merge branch 'refs/heads/geniee-p' 2025-05-05 18:51:33 +02:00
Andrea Vos
9682965918 implement CR feedback 2025-05-03 18:11:56 +02:00
Andrea Vos
77d33c7a7a geniee test 2025-04-19 15:04:06 +02:00
Andrea Vos
0a7ed699e8 lint 2025-03-30 16:07:44 +02:00
Andrea Vos
9e5af93b8f try fixing issues with GTM 2025-03-30 15:51:11 +02:00
Valentyne Stigloher
930fdef9b4 (refactor) common interface between loadSuml and loadTsv, bring them to the same file 2025-03-14 19:26:52 +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
6edb822d9a (refactor) inline /admin/all-locales route for better caching opportunities 2025-03-14 19:25:57 +01:00
Andrea Vos
b0c7082bbe lint 2025-02-23 16:26:55 +01:00
Andrea Vos
54eb35f45c speculationrules – js object instead of json 2025-02-23 16:04:15 +01:00
Andrea Vos
82e9bb0087 miscommit 2025-02-23 15:24:53 +01:00
Andrea Vos
f15c7fe030 oh json… 2025-02-23 15:06:05 +01:00
Andrea Vos
e6787f8d60 (perf) start using speculationrules API 2025-02-23 14:46:57 +01:00
Valentyne Stigloher
1f16d81df7 (fix) move luxon configuration to locale.ts plugin, where config actually is defined 2025-02-17 16:54:44 +01:00
Valentyne Stigloher
065aa2ae42 (nuxt) dynamically load translations.suml for Translator 2025-02-15 14:04:09 +01:00
Valentyne Stigloher
41b4d6d668 (nuxt) dynamically load config.suml in router and plugin 2025-02-15 14:04:09 +01:00
Valentyne Stigloher
413af9bcee (fix) set token cookie even before changing the store to prevent a race condition 2025-02-10 13:27:00 +01: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
f14ad8eb85 (lint) 2025-01-28 20:04:24 +01:00
Andrea Vos
9bc7ba399a (bug) plausible not counting initial page view 2025-01-28 11:13:38 +01: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
Valentyne Stigloher
253e8700da (ts) migrate pages to composition API with typescript 2025-01-12 14:12:15 +01:00
Valentyne Stigloher
9efcc1e960 (nuxt) ensure that token cookie is updated in the same synchronous chunk like user store update to prevent race condition with /api/user/current 2024-11-10 23:56:26 +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
1a435b9759 (nuxt) add empty source map to rollup plugins to remove warnings 2024-11-10 21:35:07 +01:00
Valentyne Stigloher
b25afefc49 (fmt) 2024-10-29 10:56:32 +01:00
Valentyne Stigloher
772a8c5d54 (plausible) only track once when query params change 2024-09-18 10:36:19 +02:00
Valentyne Stigloher
8c554a38fd (test) use nuxt environment for integrated pages testing 2024-09-12 10:11:25 +02:00
Valentyne Stigloher
7ec6ac5043 (ts) fix typecheck errors 2024-09-12 10:11:25 +02:00
Valentyne Stigloher
38a307d76b (nuxt) replace @nuxtjs/sentry with plugins
https://www.lichter.io/articles/nuxt3-sentry-recipe/
2024-09-12 10:11:25 +02:00
Valentyne Stigloher
04aaaaec9c (nuxt) replace vue-plausible with @nuxtjs/plausible 2024-09-12 10:11:25 +02:00
Valentyne Stigloher
8b58541079 (nuxt) replace process.env replacement with runtimeConfig.public 2024-09-12 10:11:25 +02:00
Valentyne Stigloher
ec73f288dd (nuxt) replace $axios with useFetch, useAsyncData or $fetch
https://nuxt.com/docs/getting-started/data-fetching
2024-09-12 10:11:25 +02:00
Valentyne Stigloher
f98fb55c4f (vue) replace $eventHub with state management
https://v3-migration.vuejs.org/breaking-changes/events-api.html
2024-09-11 21:29:35 +02:00
Valentyne Stigloher
f34ce40549 (nuxt) replace $cookies with useCookie 2024-09-11 21:29:35 +02:00
Valentyne Stigloher
d059994863 (vue) convert vue mixins to composables 2024-09-11 21:29:35 +02:00
Valentyne Stigloher
1f953117fa (refactor) migrate from vuex to pinia 2024-09-11 21:29:35 +02:00
Valentyne Stigloher
481a395f30 (nuxt) replace Webpack with Vite 2024-09-11 21:29:35 +02:00
Valentyne Stigloher
6090078689 (nuxt) use useConfig composable instead of $config global as this can only be controlled via runtimeConfig and is better protected than in Nuxt 2 2024-09-11 21:29:35 +02:00
Valentyne Stigloher
82051afc2f (nuxt) migrate plugins 2024-09-11 21:29:21 +02:00
Andrea Vos
5bf053c8b2 fix types 2024-09-11 17:48:40 +02:00
Andrea Vos
52b86eb385 (lint) 2024-09-09 13:21:21 +02:00
Valentyne Stigloher
91ffd2e49d (ts) add missing types for injects $datetime, $date, $ulidTime 2024-09-05 23:42:42 +02:00
Andrea Vos
54767c7c26 fix $loadScript/$loadStylesheet race condition - CR 2024-07-08 20:16:39 +02:00
Andrea Vos
2a5399d5a3 fix $loadScript/$loadStylesheet race condition 2024-07-08 20:01:13 +02:00
Valentyne Stigloher
0c69484b85 (pnpm) remove unused vue-matomo 2024-06-26 14:19:26 +02:00
Valentyne Stigloher
61ecf5025d (ts) migrate 2024-06-26 13:57:06 +02:00