34 Commits

Author SHA1 Message Date
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