Valentyne Stigloher
10180aa6a3
(refactor) use #shared alias instead of ~~/shared
...
the #shared alias used by Nuxt cannot be easily disabled and to prevent breackage with jiti, we make use of it
2025-08-17 18:56:02 +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
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
546326fe6a
(nuxt) use redis to store sessions
2025-03-19 14:25:46 +01:00
Valentyne Stigloher
c7910e938e
(api) use filesystem-based storage instead of memory storage for sessions
...
the implementation is incomplete, e.g. it misses pruning old sessions, this is more meant as proof-of-concept
this should reenable the usage of multiple workers
2025-03-17 13:00:35 +01:00
Valentyne Stigloher
c4de67e29b
(api) set db to null when closing it, hopefully fxing some database handle is closed errors or providing a better stack for others
2025-03-16 15:16:27 +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
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
37ddddce03
(nuxt) choose config and translations by env variable in server
2025-02-15 14:27:00 +01:00
Adaline Simonian
f9b24efa15
chore: fix lint error
2025-01-16 14:26:58 -08:00
Adaline Simonian
e275e6e1ae
refactor: disable api routes for macrolanguages
2025-01-16 14:24:49 -08: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
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
bbfe946ac7
(refactor) migrate /blog routes from express to h3
2024-12-28 00:03:28 +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
1dc34ba425
(fmt) manually reorder unbounded imports
2024-10-29 10:56:32 +01:00
Valentyne Stigloher
b25afefc49
(fmt)
2024-10-29 10:56:32 +01:00
Valentyne Stigloher
051784b5da
(nuxt) use dotenv closure to ensure that env variables on the server are set during production runtime
2024-09-12 10:11:25 +02:00
Valentyne Stigloher
6825cf7821
(nuxt) replace @privyid/nuxt-csrf with nuxt-csurf
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
71a562bba9
(nuxt) do not use import.meta.url directly to reference other files as this breaks in Nitro, use current working directory as convention
2024-09-12 10:11:25 +02:00
Valentyne Stigloher
a99199f322
(nuxt) integrate express as server handler while preventing Nuxt from scanning server directory
2024-09-11 21:29:35 +02:00
Valentyne Stigloher
82051afc2f
(nuxt) migrate plugins
2024-09-11 21:29:21 +02:00
Valentyne Stigloher
9ce94f8383
(sentry) use tunnel to circumvent tracker blocking
...
see: https://docs.sentry.io/platforms/javascript/troubleshooting/ , Dealing with Ad-Blockers
code inspired from: https://github.com/BLOCKMATERIAL/sentry-tunnel-using-node/blob/main/routes/tunnel.js
2024-08-27 10:41:11 +02:00
Valentyne Stigloher
39127c5943
(ts) convert server/routes
2024-06-26 13:59:53 +02:00
Valentyne Stigloher
61ecf5025d
(ts) migrate
2024-06-26 13:57:06 +02:00
Valentyne Stigloher
5326c4ade5
(ts) convert server/routes/discord.ts and add some null checks
2024-06-15 21:15:17 +02:00
Valentyne Stigloher
7c25397a9f
(admin) hopefully decrease peak memory usage of /admin/stats/user-charts/:locale by streaming rows
2024-06-03 19:39:39 +02:00
Benjamin
78c3da122a
Discord Linked Roles
2024-05-22 19:28:45 +00:00
Andrea Vos
202dd19d3c
(auth)(bug) fix apple login 🤞
2024-05-15 21:44:42 +02:00
Valentyne Stigloher
720d57bbe8
(cookies) add SameSite=Lax by default and upgrade some cookies in their length for consistency
2024-04-08 14:52:18 +02:00
Andrea Vos
9e46c72ac3
(perf) some low hanging fruit from https://kerkour.com/sqlite-for-servers to optimise sqlite for a web server
2024-04-07 15:26:17 +02:00
Valentyne Stigloher
9434b9b5e4
(ts) convert usage of aws to TypeScript
...
params at client creation cannot be type checked, Bucket was explicitely added to each call
2024-03-28 13:56:07 +01:00
Valentyne Stigloher
4678c325f8
(ts) convert adminTranslationsAwaiting.vue with its dependencies
...
tricky part was mixin, but apparently you should use Vue.extend for mixins and extend from that
https://stackoverflow.com/questions/51873087/unable-to-use-mixins-in-vue-with-typescript
2024-03-10 17:08:26 +01:00
Valentyne Stigloher
b0a11cf07c
(sentry) monitor database query performance
2024-03-05 18:19:34 +01:00
Valentyne Stigloher
f8156d5204
(sentry) activate sentry in server scripts
2024-03-05 18:19:34 +01:00
Valentyne Stigloher
c36705efcb
(sentry) use @nuxt/sentry to setup sentry
...
requires that the following environment variable is set:
SENTRY_DSN={sentry dsn}
2024-03-05 18:19:33 +01:00
Valentyne Stigloher
7ce1bb0e83
(ts) convert a lot to TypeScript
...
Co-authored-by: Sky <msurvival65@gmail.com>
Co-authored-by: tecc <tecc@tecc.me>
2024-02-23 17:48:16 +01:00
Valentyne Stigloher
2364e2543c
(ts) convert locale/locales.ts to TypeScript
2024-02-23 17:48:16 +01:00
Valentyne Stigloher
210fc73655
(ts) use TypeScript in Nuxt
2024-02-23 17:48:15 +01:00