146 Commits

Author SHA1 Message Date
Valentyne Stigloher
b7e6111d64 fix(types): add helpers directory to node typescript subproject 2025-09-21 13:55:22 +02:00
Valentyne Stigloher
7403e97478 (nuxt) add yaml rollup plugin to nitro (apparently, iconsMetadata.ts gets built even when not imported in server context) 2025-08-17 18:13:59 +02:00
Valentyne Stigloher
73005d0d2c (test) use vitest projects to define .nuxt.test.ts files to have nuxt environment, everything else node environment 2025-08-17 18:13:59 +02:00
Valentyne Stigloher
9425d88df1 (nuxt) remove some configuration which is or became default 2025-08-17 18:13:59 +02:00
Valentyne Stigloher
a869d92095 (ts) fix types 2025-08-17 18:13:59 +02:00
Valentyne Stigloher
d6fa269699 (ts) reference multiple configuration files for better separation between app, server and shared 2025-08-17 18:13:59 +02:00
Valentyne Stigloher
72d574a039 (ts) disable noUncheckedIndexedAccess because of the huge count of errors
https://nuxt.com/docs/4.x/getting-started/upgrade#default-typescript-configuration-changes
2025-08-17 18:13:59 +02:00
Valentyne Stigloher
8e6f812a9a (nuxt) rename imports ~/locale, ~/public, ~/server, ~/test to resolve to root directory ~~ 2025-08-17 18:13:52 +02:00
Valentyne Stigloher
4568616359 (nuxt) rename src to shared to be consistent with nuxt default directory structure 2025-08-17 18:12:42 +02:00
Valentyne Stigloher
24c9ffb134 (refactor) fix sass import deprecation warnings for built-in globals and ignore the rest 2025-07-28 23:59:48 +02:00
Valentyne Stigloher
42f2ac6426 (pnpm) use sass-embedded instead of sass as recommended by Vite 2025-07-28 23:59:48 +02:00
Valentyne Stigloher
bf39ca90a4 (nouns) display noun convention group on details page 2025-04-22 14:29:10 +02:00
Valentyne Stigloher
f021cd08ea (nouns) move noun convention links to top level 2025-04-22 14:29:10 +02:00
Valentyne Stigloher
5911d89ef5 (pronouns) move pronoun parsing in route middleware (404 is now handled in error.vue, highlighting no nav item there) 2025-04-22 14:29:10 +02:00
Valentyne Stigloher
83a9a601c5 (lint) 2025-03-28 23:37:07 +01:00
Valentyne Stigloher
740195d15e (fix) generate locale fonts file instead of using addTemplate
looks like it has issues with type checking and building
2025-03-28 18:52:39 +01:00
Valentyne Stigloher
c118b4da8a (style) use headings font of the locale on home and admin
see #378
2025-03-28 00:59:51 +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
95c2ca0b7c (nuxt) add env runtime config to redis keys to ensure that production and test environments are separated in redis 2025-03-20 10:14:36 +01:00
Valentyne Stigloher
8db436dab1 (nuxt) move storage config from nitro plugin into nuxt.config.ts because the workaround should be unnecessary after newest Nitro release 2025-03-19 14:29:40 +01:00
Valentyne Stigloher
b34fe7ea69 (nuxt) use redis to store cache 2025-03-19 14:27:23 +01:00
Valentyne Stigloher
546326fe6a (nuxt) use redis to store sessions 2025-03-19 14:25:46 +01:00
Valentyne Stigloher
f6ba9ff4ae (nuxt) reenable node-cluster preset 2025-03-17 13:02:19 +01:00
Andrea Vos
96ff0ccd74 (auth)(bug) disable node-cluster, it's possible that it's breaking social login 2025-03-16 12:56:27 +01:00
Valentyne Stigloher
e5ebda3f7a (nuxt) use node-cluster build preset to enable usage of mulitple cores 2025-03-14 22:18:09 +01:00
Valentyne Stigloher
4f7ccab2c6 (nuxt) use --env-file to read .env before nitro reads process.env, make dotenv.ts an import with side effects that only sets additional variables
care must be taken because everything initialized later will not be picked up by Nitro useRuntimeConfig() without passing an event
2025-03-14 22:18:09 +01: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
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
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
6f9f8fc6e0 (nuxt) detect locale from requested origin 2025-03-14 19:25:57 +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
e6d3e52d96 (nuxt) update dependencies in optimizeDeps.include 2025-02-25 10:58:28 +01:00
Valentyne Stigloher
d3a76a3c7e (test) apply single build to snapshot tests 2025-02-15 14:27:01 +01:00
Valentyne Stigloher
2d80b315dd (nuxt) read public key at startup, not during build time 2025-02-15 14:27:01 +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
8298bcc21a (nuxt) dynamically include nouns subroutes 2025-02-15 14:27:00 +01:00
Valentyne Stigloher
41b4d6d668 (nuxt) dynamically load config.suml in router and plugin 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
bee5f30ad6 (nuxt) update dependencies in optimizeDeps.include 2025-02-10 12:44:10 +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
00acc8d028 (nuxt) add new dependencies trigerring a reload to optimizeDeps.include 2025-01-24 16:25:26 +01:00
Valentyne Stigloher
5fe42b4387 (nuxt) replace symlink ~/public/docs-local with dynamic public assets configuration 2025-01-19 21:24:57 +01:00
Valentyne Stigloher
75dde4c2b3 (nuxt) replace symlink ~/public/img-local with dynamic public assets configuration 2025-01-19 21:24:57 +01:00
Adaline Simonian
979aa097c7
feat: macrolanguage landing page for no locale
Auto-redirects:
- if the page requested is a user profile, and the user has one profile
  out of the multiple individual languages, to the one profile that was
  found
- otherwise based on user's accept-language header
- if all else fails, shows language selection landing page
2025-01-15 16:18:01 -08:00
Valentyne Stigloher
bc6dc8d0cd (dependencies) upgrade nuxt to 3.15 2024-12-29 13:56:57 +01:00
Valentyne Stigloher
4a27f81e90 (nuxt) update @floating-ui/vue dependency name in optimizeDeps 2024-11-10 21:59:56 +01:00
Valentyne Stigloher
19e230207d (nuxt) disable pwa during development as this causes unexpected redirects in some cases 2024-11-10 21:59:56 +01:00