Commit graph

4173 commits

Author SHA1 Message Date
renovate[bot]
23eac929e7 chore(deps): update jest monorepo to v29.1.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-01 09:24:01 +02:00
renovate[bot]
63dac1107a chore(deps): update node.js to 7e68e0a
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-01 06:13:55 +00:00
renovate[bot]
706a72ef69 Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-27 16:57:48 +02:00
renovate[bot]
65987e67a2 Update dependency ws to v8.9.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-26 22:59:45 +02:00
renovate[bot]
1b3eaf20cc chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-26 03:21:00 +00:00
Philip Molares
def5cacceb
refactor(package.json): fix dev:for-real-backend npm script to use HD_EDITOR_BASE_URL instead of NEXT_PUBLIC_BACKEND_BASE_URL (#2394)
Signed-off-by: Philip Molares <philip.molares@udo.edu>

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-09-25 20:25:15 +00:00
Tilman Vatteroth
92a77d0489 fix: rename directory, fix script and correct README.md
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-25 17:00:10 +02:00
Tilman Vatteroth
a9435e3652
Replace @matejmazur/react-katex with own katex component (#2381)
* Replace @matejmazur/react-katex with self-made katex component

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-25 15:17:08 +02:00
renovate[bot]
c57df024f3 Update CodeMirror
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-25 13:15:38 +02:00
renovate[bot]
469ed41512 Update dependency @testing-library/dom to v8.18.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-25 12:59:13 +02:00
Tilman Vatteroth
3b15b83fe1 refactor(code highlighter): Use sanitizer directly instead of building a node preprocessor
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-25 12:48:28 +02:00
Philip Molares
0fc6271b57
feat: add hooks for METADATA_UPDATED DOCUMENT_DELETED messages (#2343)
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
2022-09-25 10:35:54 +00:00
renovate[bot]
359c7e8242 Update dependency react-redux to v8.0.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-25 12:08:48 +02:00
renovate[bot]
c7ff4df6d0 Update dependency sass to v1.55.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-25 11:39:51 +02:00
renovate[bot]
aa5120e530 Update nextjs monorepo to v12.3.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-25 11:39:04 +02:00
renovate[bot]
3a36277f90
Update dependency netlify-cli to v11.8.3 (#2386)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-25 11:36:11 +02:00
renovate[bot]
991fc845e3
Update dependency i18next to v21.9.2 (#2385)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-25 11:35:22 +02:00
renovate[bot]
12c381f33b
Update dependency @types/react to v18.0.21 (#2384)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-25 11:32:14 +02:00
renovate[bot]
74e0d3beca
Update dependency ts-loader to v9.4.1 (#2391)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-25 11:31:10 +02:00
Philip Molares
1aa7dd618e refactor: delete unused function useUnless
This function was introduced by 0da7d01dec to proxy request to the frontend, but it's not used anymore and can therefore be removed.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-09-25 11:12:10 +02:00
renovate[bot]
122de62b93 fix(deps): update nestjs packages to v9.1.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-25 11:11:09 +02:00
renovate[bot]
244884526e fix(deps): update dependency ws to v8.9.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-24 23:22:23 +02:00
renovate[bot]
e55a57be7e fix(deps): update dependency joi to v17.6.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-24 19:34:27 +00:00
renovate[bot]
3a91a4aba9 chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-24 19:09:36 +02:00
renovate[bot]
3d08ee3fdc chore(deps): update dependency ts-jest to v29.0.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-24 15:35:52 +00:00
renovate[bot]
2f5c2a85a4 chore(deps): update dependency mkdocs-material to v8.5.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-24 12:31:04 +00:00
renovate[bot]
2fb936c6b5 chore(deps): update dependency @types/node to v16.11.60
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-24 06:58:46 +00:00
renovate[bot]
8d2473e6fd chore(deps): update node.js to 831d5ec
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-24 04:00:28 +00:00
Philip Molares
d75095bce4 test: add tests for methods in RealtimeNote
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-09-22 14:15:05 +02:00
Philip Molares
331747f61b feat: add realtime announcements for permission changes and note deletion
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>
2022-09-22 14:15:05 +02:00
Philip Molares
c363d0834e refactor: rename realtime-note-store.service.ts to realtime-note-store.ts
This was committed by mistake, the store should not have the extension `.service`

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-09-22 14:15:05 +02:00
Erik Michelson
488876e949
Add interface for managing aliases (#1347)
* Add alias management

Signed-off-by: Erik Michelson <github@erik.michelson.eu>

* Use React components instead of css classes

Signed-off-by: Erik Michelson <github@erik.michelson.eu>

* Add tests

Signed-off-by: Erik Michelson <github@erik.michelson.eu>

* Use notifications hook instead of redux methods

Signed-off-by: Erik Michelson <github@erik.michelson.eu>

* Use test ids

Signed-off-by: Erik Michelson <github@erik.michelson.eu>

* Use test ids in other place as well

Signed-off-by: Erik Michelson <github@erik.michelson.eu>

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-09-21 19:44:26 +02:00
Tilman Vatteroth
7d2c71b392 chore(cypress): Update version of the cypress browsers image
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-21 19:01:20 +02:00
renovate[bot]
a60af614bb Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-21 18:09:41 +02:00
Tilman Vatteroth
e3093d1e4f GITHUB!
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:54:13 +02:00
Tilman Vatteroth
06f159794b AHH
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:54:13 +02:00
Tilman Vatteroth
b41c9b762c Fix environment variable in netlify deployment
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:54:13 +02:00
Philip Molares
fd949a77b8 feat(permission): use new HD_GUEST_ACCESS config
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-09-18 21:29:35 +02:00
Philip Molares
754e725b7f test(e2e): fix notes service
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:29:35 +02:00
Philip Molares
5cdc0edfb9 feat(group): add helper functions for special groups
This is syntactic sugar.

Co-Authored-By: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:29:35 +02:00
Philip Molares
f11f3b0931 test: default permissions on newly created notes
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:29:35 +02:00
Philip Molares
16c6f6e572 feat: add default permissions to newly created notes
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:29:35 +02:00
Philip Molares
df976b5fe1 feat(config): add config vars for default permissions for special groups
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-09-18 21:29:35 +02:00
Tilman Vatteroth
7dd093a44f test: Add helper functions for creation of mock config
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:29:35 +02:00
Tilman Vatteroth
290fea2703 refactor(permissions): Add docs and simplify functions
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:29:35 +02:00
Philip Molares
bdedf783ec refactor: remove additional copyright text
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-09-18 21:29:35 +02:00
Philip Molares
2ea2459c9b test(unit): fix notes service
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:29:35 +02:00
David Mehren
4188b21685 docs: clarify comments for orphanedRowAction
Co-authored-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <git@herrmehren.de>
2022-09-18 20:57:52 +02:00
David Mehren
a626ace4b9 fix(history-entry): remove composite primary keys
TypeORM promises to support composite primary keys,
but that does not work in reality.
This replaces the composite key used in the permission entities with
a single generated primary key and
a unique index on the relation columns.

See https://github.com/typeorm/typeorm/issues/8513

Signed-off-by: David Mehren <git@herrmehren.de>
2022-09-18 20:57:52 +02:00
David Mehren
d1c3058655 fix(permissions): remove composite primary keys
TypeORM promises to support composite primary keys,
but that does not work in reality.
This replaces the composite key used in the permission entities with
a single generated primary key and
a unique index on the relation columns.

See https://github.com/typeorm/typeorm/issues/8513

Signed-off-by: David Mehren <git@herrmehren.de>
2022-09-18 20:57:52 +02:00