Commit Graph

6695 Commits

Author SHA1 Message Date
Erik Michelson
de461e395c
chore(esdoc): update and unify ESDoc and parameter names (1)
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-26 23:22:35 +02:00
Erik Michelson
d199a81c28
fix(auth): guest login fixes, more reliable pending user session handler
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-26 23:22:35 +02:00
Erik Michelson
779ce1e954
feat(auth): add guest login
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-26 23:22:35 +02:00
Erik Michelson
ff347653fd
feat(database): show information about migration status
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-26 23:22:34 +02:00
Erik Michelson
b8399ec43a
fix(backend): correct user permissions, photo urls, events, etc.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-26 23:22:34 +02:00
Erik Michelson
e67deac89c
chore: linting and build fixes
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-26 23:22:33 +02:00
Erik Michelson
b00330b75c
fix(realtime): use number[] for transport but ArrayBuffer for database
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-26 23:22:33 +02:00
Erik Michelson
ae78204965
refactor(database): run knex migrations on startup
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-26 23:22:32 +02:00
Erik Michelson
7f7493d5aa
refactor: remove history page
This needs to be done since the backend does not include code
for the history page anymore. This will be replaced with the
explore page in the near future anyway.

Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-26 23:22:32 +02:00
Erik Michelson
fa9b35384e
refactor: replace TypeORM with knex.js
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-26 23:22:27 +02:00
Erik Michelson
5dadc553b4
refactor(knex): export partial types for insert and update
We need these types when crafting objects to be passed into knex's
.insert() and .update() methods.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-26 23:20:33 +02:00
Philip Molares
95b07b13ca
feat: add seeding
This allows us to get a pre-populated database to develop new functionality

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-09-26 23:20:32 +02:00
Philip Molares
a52c43d8a7
refactor: extract api token hash and equality checks
As we need these functions for the seeding it makes sense to extract them into the password.ts and test them accordingly.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-09-26 23:20:32 +02:00
Erik Michelson
1b97340ef6
feat(knex): initial knexjs migration
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-09-26 23:20:31 +02:00
Erik Michelson
ac8e11a7d5
feat(knex): create database interfaces and knexjs nest integration
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-26 23:20:31 +02:00
Erik Michelson
6aa16f4956 chore(renovate): disable automerge
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-09 09:35:35 +02:00
renovate[bot]
d2c7b7ab80
fix(deps): update dependency next to v14.2.32 [security] (develop) (#6116)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-02 16:13:39 +00:00
Erik Michelson
03df1f66ee
chore(renovate): update label name
Signed-off-by: Erik Michelson <github@erik.michelson.eu>

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-09-02 18:07:56 +02:00
pl7ofit
d6011578de
fix(docker): wrong vars in .env 2025-08-14 13:45:06 +00:00
Matthias Schiffer
4e9d15280d fix(frontend): fix dompurify.sanitize import
The update to dompurify 3.2.4 broke the import of dompurify.sanitize,
which now fails with a TypeScript error (likely related to the
introduction of type definitions in 3.2.0). Using the DOMPurify default
export fixes the issue.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2025-07-08 01:25:05 +02:00
renovate[bot]
1f3e3545a0
fix(deps): update dependency next to v14.2.30 [security] (develop) (#6091)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-15 05:14:40 +00:00
Erik Michelson
b771f1c1bf fix(media): initialize backends only if configured
Signed-off-by: Erik Michelson <erik@michelson.eu>
2025-05-17 10:41:04 +00:00
renovate[bot]
902abf72e6 fix(deps): update dependency dompurify to v3.2.4 [security]
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-20 20:33:13 +02:00
Tilman Vatteroth
4ee9997256 ci: unpin actions
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2025-04-20 19:55:35 +02:00
Tilman Vatteroth
5d16557616 ci: unpin actions
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2025-04-20 19:55:35 +02:00
Erik Michelson
15f6e12bee fix(ci): cache cypress binary correctly
It seems cypress installs its own binary under a different path than
the path where it later looks for it for running the tests. This
change adds proper versioned caching for the binary to avoid re-
downloads and configures the binary path accordingly.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-04-20 19:55:35 +02:00
Tilman Vatteroth
c7f318e525 ci: unpin actions
some of the hashes dont exist anymore. but i'm too lazy to look for the new hashes. So i let renovate update them later.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2025-04-20 19:29:05 +02:00
Erik Michelson
20834e3ff9 misc(ide): add search scopes and IDE ignore files to git
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-04-20 18:26:38 +02:00
renovate[bot]
adcbea1bcc
fix(deps): update dependency @nestjs/common to v10.4.16 [security] (develop) (#6067)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-20 16:15:10 +00:00
Erik Michelson
d0d1fbaa5f chore: remove joi package
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-04-20 18:09:57 +02:00
Erik Michelson
ff2dce1692 test(backend): remove app.e2e-spec as it is unnecessary
This test is unnecessary since it does not use the shared app-init which
 is used to set up tests and the real main app.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-04-20 18:09:57 +02:00
Erik Michelson
748702daf5 refactor(backend): config validation joi to zod
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-04-20 18:09:57 +02:00
renovate[bot]
91ebd519a8
fix(deps): update dependency next to v14.2.26 [security] (develop) (#6036)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-03 03:10:58 +00:00
renovate[bot]
d69ce5dee4
fix(deps): update dependency next to v14.2.25 [security] (develop) (#6033)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-29 21:15:14 +00:00
Erik Michelson
e411ddf099 refactor(frontend): switch to DTOs from @hedgedoc/commons
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-03-29 22:09:01 +01:00
Erik Michelson
deee8e885f fix(commons): type of deep partial utility type
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-03-29 22:09:01 +01:00
Philip Molares
b11dbd51c8 refactor(backend): use @hedgedoc/commons DTOs
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-03-29 22:09:01 +01:00
Philip Molares
7285c2bc50 chore(backend): add zod dependency
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-03-29 22:09:01 +01:00
Philip Molares
1bb0c5eb2c refactor(backend): remove extra dot in base dto filename
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-03-29 22:09:01 +01:00
Philip Molares
4b5bf870f2 feat(commons): add DTOs
Moving the DTOs to commons so frontend and backend use the same types.
Also introducing zod for validation.

Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-03-29 22:09:01 +01:00
Philip Molares
aa87ff35b3 chore(commons): prettier
enforce trailing commas as this is the norm in the frontend and makes diffs better readable

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-03-29 22:09:01 +01:00
Philip Molares
59744b65ea chore(commons): add zod dependency
This dependency will be used to define our DTOs in the commons project and define the type only once.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-03-29 22:09:01 +01:00
Philip Molares
098322cef8 docs(database): remove mention of mysql
We don't test it, and so we should not tell people HD2 could work with mysql

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-03-05 19:29:50 +01:00
Erik Michelson
055d2b6c5b fix(login): prevent default for new user confirmation form event
The new user form which is shown when a new user logs in via an external
auth provider did not include the event.preventDefault() statement.
This meant that on submitting the form there was a race-condition
between the JS code sending the data to the API and the browser
reloading the page. Chromium-based browsers seem to handle events before
handling page navigation, and because the form event initiates a page
navigation on a successful API response it worked. Firefox seems to call
the event handler and the page navigation in parallel, resulting in a
loop on the new user form.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-02-19 19:20:05 +01:00
renovate[bot]
a522380c4c chore(deps): update actions/cache action to v4.2.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-19 18:55:51 +01:00
Erik Michelson
420c711155 fix(turborepo): passthrough HD_* env vars by config option
It seems there's a bug in turborepo which results in turbo
not passing through arbitrary environment variables despite
--env-mode=loose being set. This config option resolves the
problem by passing through all HedgeDoc environment
variables prefixed by `HD_`. This somewhat also enhances
stability and reproducability of builds since other env
vars wouldn't interfere anymore.
The additional variable CADDY_HOST is required to make
overriding the listening port in our Caddyfile work.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-02-14 20:59:05 +01:00
renovate[bot]
aeafc3abc5
fix(deps): update nextjs monorepo to v14.2.23 (develop) (patch) (#5992)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-04 09:39:05 +00:00
renovate[bot]
34ed28f304
fix(deps): update i18next (develop) (patch) (#5990)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-04 04:40:33 +00:00
renovate[bot]
72afb4f4f0
fix(deps): update nestjs packages (develop) (patch) (#5991)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-04 04:40:07 +00:00
renovate[bot]
1349a62cd9
fix(deps): update dependency yjs to v13.6.23 (develop) (#5989)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-04 02:13:15 +00:00