Commit graph

6533 commits

Author SHA1 Message Date
renovate[bot]
99d9625f9a chore(deps): update dependency eslint-plugin-jest to v26.9.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 19:57:49 +02:00
renovate[bot]
b57da1e6ea fix(deps): update dependency pg to v8.8.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 19:57:35 +02:00
Erik Michelson
9eb619b957 chore(deps): bump @hedgedoc/realtime to 0.2.0
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-08-28 18:03:19 +02:00
Erik Michelson
1938b6eefe fix(websocket): error when leaving realtime-note
When a user left a realtime-note, the awareness tried to send events even after the socket was closed, resulting in the app crashing.
This fix adds the check that the socket is still open before sending any messages.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-08-28 18:03:19 +02:00
renovate[bot]
26d9bf4dde Update dependency eslint-plugin-jest to v27
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 17:57:23 +02:00
renovate[bot]
e0ecda478a Update dependency eslint-plugin-jest to v26.9.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 17:35:50 +02:00
renovate[bot]
146c1f5a4d Update dependency katex to v0.16.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 17:31:56 +02:00
Tilman Vatteroth
03d87f59f8 improve: Move notifications from redux into context
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-28 17:04:56 +02:00
Tilman Vatteroth
b797f07aa5 fix: Move file upload logic into hook
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-28 17:04:56 +02:00
Tilman Vatteroth
ccbbaeb843 fix: Let upload-input also accept non-async-change-callbacks
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-28 17:04:56 +02:00
Tilman Vatteroth
d4493aed95 improve: Refactor use-code-mirror-file-insert-extension
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-28 17:04:56 +02:00
renovate[bot]
00a454f37b fix(deps): update dependency @mrdrogdrog/optional to v0.2.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 13:20:47 +02:00
renovate[bot]
3553ece212 chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 13:03:54 +02:00
renovate[bot]
2101a53b1c chore(deps): update nestjs packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 13:03:23 +02:00
Philip Molares
b81761fcd0 test(public-api): fix test for get note metadata call
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-08-28 13:02:33 +02:00
Philip Molares
6293bf72b2 test(private-api): add test for get note metadata call
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-08-28 13:02:33 +02:00
Philip Molares
ccacbd22b2 feat(private-api): add get note metadata call
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-08-28 13:02:33 +02:00
Tilman Vatteroth
8245a519e0 fix: Use more strict vimeo id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-27 18:26:01 +02:00
Tilman Vatteroth
9996df1abd fix: Use more strict speakerdeck id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-27 18:26:01 +02:00
Tilman Vatteroth
8274fe0dad fix: Use more strict slideshare id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-27 18:26:01 +02:00
Tilman Vatteroth
bb90f31d0f fix: Use more strict pdf id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-27 18:26:01 +02:00
Tilman Vatteroth
db93b33eb3 fix: Use more strict gist id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-27 18:26:01 +02:00
Tilman Vatteroth
56744db3a2 fix: Use more strict youtube id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-27 18:26:01 +02:00
renovate[bot]
95228c5d19 Update Yarn to v3.2.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 18:14:27 +02:00
renovate[bot]
2d276d0cb3 Update dependency typescript to v4.8.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 17:53:59 +02:00
renovate[bot]
aad7ddb836 fix(deps): update dependency minio to v7.0.32
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 15:03:49 +00:00
renovate[bot]
ee76d5886e
Update jest monorepo to v29 (major) (#2321)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
2022-08-27 16:56:42 +02:00
renovate[bot]
bb2d26b46e chore(deps): update yarn to v3.2.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 14:48:01 +00:00
renovate[bot]
0312e85315 chore(deps): update dependency mkdocs-material to v8.4.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 14:24:38 +00:00
renovate[bot]
92e3558bbc
Update dependency dompurify to v2.4.0 (#2317)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-27 16:20:14 +02:00
renovate[bot]
6a2ea9a01d
Update linters (#2320)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-27 16:19:03 +02:00
renovate[bot]
89ec9ece56
Update dependency netlify-cli to v11.5.0 (#2318)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-27 16:18:13 +02:00
renovate[bot]
de9f546204 Update dependency abcjs to v6.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 15:14:51 +02:00
renovate[bot]
a86e2a53cb Update dependency react-bootstrap to v1.6.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 15:09:22 +02:00
renovate[bot]
06fae613fe Update definitely typed
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 15:08:44 +02:00
renovate[bot]
ead297ae4d Update dependency react-i18next to v11.18.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 15:00:55 +02:00
renovate[bot]
2c2b4c6b67 Update actions/cache action to v3.0.8
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 14:33:31 +02:00
renovate[bot]
265730f97b Update dependency @uiw/react-codemirror to v4.11.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 14:32:31 +02:00
renovate[bot]
8b65120409 Update dependency @mrdrogdrog/optional to v0.2.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 14:30:25 +02:00
renovate[bot]
a2d53bc768 chore(deps): update definitelytyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 11:59:18 +00:00
renovate[bot]
352047e39e chore(deps): update dependency @types/jest to v28.1.8
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 13:45:16 +02:00
renovate[bot]
0f41e6c036 chore(deps): update node.js to 9b43593
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-27 06:20:14 +00:00
Tilman Vatteroth
a19384a91c fix: e2e dependency install
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-25 20:19:54 +02:00
renovate[bot]
a41255a367 Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-25 20:19:54 +02:00
Tilman Vatteroth
b14a7998e2 chore: Update @codemirror/view to 6.2.1
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-25 20:19:54 +02:00
renovate[bot]
a94fa5a184 Update dependency @reduxjs/toolkit to v1.8.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-25 18:36:57 +02:00
Erik Michelson
6cc11d07e3 fix(note-deletion): Add required keepMedia property and redirect
The backend requires a property "keepMedia" that states whether uploaded media should be kept around or not.
This property was missing in our API call.
Additionally, after deleting a note, the user is now redirected to the history page.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-08-25 17:50:24 +02:00
Erik Michelson
d57b2f27fd fix(pinning): Use new object for redux mutations
Elements retrieved from the redux state must not be manipulated.
Instead, a new object is created with the adjusted properties and committed to the redux store.
A missing css class has been additionally added, so that the pinning state can be deduced from the color of the sidebar icon.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-08-25 17:50:24 +02:00
Erik Michelson
761f112491 fix(revisions): Sort revisions by newest descending
Users probably expect the revision list to be sorted with the newest revision being the first one in the list.
This change sorts the revisions by their timestamp descending.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-08-25 17:50:24 +02:00
Erik Michelson
a064d57387 feat(register): Show success message and rediredt after register
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-08-25 17:50:24 +02:00