51 Commits

Author SHA1 Message Date
Valentyne Stigloher
f83da9066b (vue) require [type] on <button>, fixes issue with the custom pronoun generator embedded in the editor submitting the form 2025-06-05 23:32:31 +02:00
Valentyne Stigloher
2bafc81c3a (lint) activate import/consistent-type-specifier-style for consistency of import type 2025-05-19 20:20:31 +02:00
Valentyne Stigloher
859522f98e (fix) open external <LocaleLink> in new tab, fix some admin links not correctly linking to current locale 2025-05-19 20:07:55 +02:00
Andrea Vos
9682965918 implement CR feedback 2025-05-03 18:11:56 +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
f4c67bea9a (lint) activate vue/require-typed-ref and add typing to ensure no implicit any on refs 2025-04-25 13:32:47 +02:00
Andrea Vos
fcb5e35342 (admin) fix timesheets disabling fields (types issue) 2025-03-31 17:45:42 +02: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
8807590ce7 (admin) feature to delete storage items 2025-03-16 15:13:20 +01:00
Valentyne Stigloher
6ea09dbb6e (admin) display contents of storage items 2025-03-16 15:01:31 +01:00
Valentyne Stigloher
ad3a4879f1 (admin) calculate size from value if not present in meta, remove atime and mtime because not present for memory driver 2025-03-16 14:28:19 +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
Valentyne Stigloher
3b457ae676 (admin) storage inspector 2025-03-07 14:28:19 +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
af7c47d079 (dark) fix switches styling in dark mode 2025-01-31 21:49:08 +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
Valentyne Stigloher
75dde4c2b3 (nuxt) replace symlink ~/public/img-local with dynamic public assets configuration 2025-01-19 21:24:57 +01:00
Andrea Vos
6dbd121186 Merge branch 'nynorsk' into 'main'
Publish Nynorsk

See merge request PronounsPage/PronounsPage!554
2025-01-19 17:08:35 +00:00
Benjamin
bbfa210340 JS Modernization (@benshawmean) 2025-01-16 22:24:08 +00:00
Adaline Simonian
12edd655b6
chore: fix lint errors 2025-01-14 18:20:30 -08:00
Adaline Simonian
9aedcfb166
fix: distinguish better between sublanguages 2025-01-14 18:08:25 -08:00
Andrea Vos
240c67e727 (admin) fix timesheets monthly sum 2025-01-13 23:21:02 +01: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
374f8b8120 (ts) migrate remaining .js files in ~/src to typescript 2025-01-11 15:48:43 +01:00
Valentyne Stigloher
14d629bc26 (fix)(admin) correct stats format in ~/pages/admin/users.vue 2025-01-02 19:03:16 +01:00
Valentyne Stigloher
9335a1bd48 Merge branch 'admin-blog-preview' into 'main'
admin blog preview

See merge request PronounsPage/PronounsPage!548
2025-01-02 13:27:45 +00:00
Valentyne Stigloher
98472dc635 (admin) hide blog editor card when filtering for attention 2025-01-02 14:18:53 +01:00
Andrea Vos
02d2e92fdb CR fixes 2025-01-02 13:43:39 +01:00
Andrea Vos
690bff7043 Merge branch 'refs/heads/main' into split-audit 2025-01-02 12:54:54 +01:00
Andrea Vos
932657c1b4 (admin) minor fixes to timesheets view 2025-01-02 12:12:48 +01:00
Valentyne Stigloher
64735cac1b (admin)(blog) very simple post editor 2025-01-01 23:52:44 +01:00
Valentyne Stigloher
9280d797ba (ts) migrate pages/admin/index.vue to composition API with typescript 2025-01-01 23:52:44 +01:00
Valentyne Stigloher
2369ce1057 (ts) migrate /api/admin/stats and /api/admin/stats-public from express to h3, improving their types 2025-01-01 23:52:44 +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
3e5a0b12f2 (dependencies) replace jsonwebtoken with jose which does not need crypto polyfill 2024-11-10 21:59:56 +01:00
Valentyne Stigloher
b25afefc49 (fmt) 2024-10-29 10:56:32 +01:00
Valentyne Stigloher
904dd92d6f (admin) check for global *-users or *-community roles when accessing /api/admin/users 2024-10-19 17:20:31 +02:00
Valentyne Stigloher
160cde5d2c (admin) put user / profile charts behind a loading spinner and make user charts optional to load 2024-09-26 18:55:22 +02:00
Valentyne Stigloher
c336d8f2f3 (admin) hide approved translation proposals after hitting merge confirmation button 2024-09-26 18:36:14 +02:00
Andrea Vos
4fa2c86715 (lint) 2024-09-25 20:01:35 +02:00
Andrea Vos
6046815f05 (bug)(admin) fix timesheets ('transferMethod is readonly') 2024-09-24 10:52:49 +02:00
Andrea Vos
f795186d81 (admin) expenses info 2024-09-23 20:52:47 +02:00
Andrea Vos
bcfa7307d4 make audit log bidirectional (eg. mod banning a user should show up in both mod's and user's log) 2024-09-22 15:54:05 +00:00
Andrea Vos
e78123c8b8 fix audit log link 2024-09-22 09:46:53 +02:00
Valentyne Stigloher
7aaa57880d (nuxt) use name of routes / pages instead of building urls as this breaks sometimes when encodeURIComponent is used (and it’s shorter) 2024-09-20 22:53:57 +02:00
Valentyne Stigloher
8317692e68 (format) put <nuxt-link> on a single line when it would be for <a> 2024-09-15 17:34:56 +02:00
Valentyne Stigloher
ab26434117 (nuxt) use only one await in setup in /admin/translations/awaiting 2024-09-15 17:34:05 +02:00
Valentyne Stigloher
db8a6d21cf (nuxt) disable csrf
reverts commit 6825cf78217f14bb709a96b341d35514f1fbbcad.
2024-09-14 15:08:34 +02:00