Commit graph

5349 commits

Author SHA1 Message Date
Renovate Bot
77d03dd4aa
Update definitelyTyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-27 14:46:56 +00:00
Philip Molares
33dce8f607
README: Replace HedgeDoc header with logo
We have such a lovely logo we should use it on our user-facing README.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-25 23:03:33 +02:00
Tilman Vatteroth
58075f787e
Remove banner from frontend config
NestJS adds the headers "Last Modified" and "ETag" to asset serving responses.
Therefore all the information we need for the banner are already given by the
file content or the file meta data.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-04-25 14:45:04 +02:00
Tilman Vatteroth
ff06f368de
Add serving of static assets under the relative URL '/public'
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-04-25 14:41:38 +02:00
Renovate Bot
fc3d98d23a
Update dependency mkdocs-material to v7.1.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-25 19:19:36 +00:00
Philip Molares
1f56ba95f4
Gitignore: Add .env
Because the new config is done via the file `.env`, it should not be possible to include it in the git repository.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-25 12:00:13 +02:00
Renovate Bot
608cc41527
Update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-24 15:33:20 +00:00
Renovate Bot
dbf326d9a8
Update dependency ts-loader to v9.1.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-24 11:22:22 +00:00
Philip Molares
f99b157098
Docs: Fix mkdocs link
The link that was included in the reference was surrounded by paranthesis and therefore faulty.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-25 20:57:13 +02:00
Philip Molares
fac9f2735c
Reuse: Fix typo in HedgeDoc Icon Usage Guidelines
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-25 12:57:41 +02:00
Philip Molares
64e016f181
NotesE2ETest: Changed test for title and description
They should not return null and that's correctly tested now.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-24 21:33:47 +02:00
Philip Molares
6a4e0d96cf
Services: Use replaceNullWithEmptyString
Add the helper method replaceNullWithEmptyString to the services, where it is needed.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-24 21:16:06 +02:00
Philip Molares
4eb9f0dc11
Reuse: Add license information for dark mode logos
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-25 12:54:29 +02:00
Philip Molares
67e1ff3d07
Documentation: Add toggleable dark theme
The dark theme is mostly built on top of the mkdocs slate theme.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
Co-Authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>

(cherry picked from commit 60251d89ee)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-17 12:42:03 +02:00
Tilman Vatteroth
d4354819ae Change mailmap entry for "Tilman Vatteroth"
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-04-01 13:55:27 +02:00
Philip Molares
4640735d18
PublicApi: Add option to keep media to DELETE /notes/{note}
This adds a body to the route DELETE /notes/{note} of the public api to specify if the associated media uploads of the note should be kept or deleted.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 01:23:12 +02:00
Philip Molares
bd4231c1c5
PrivateApi: Add option to keep media to DELETE /notes/{note}
This adds a body to the route DELETE /notes/{note} of the private api to specify if the associated media uploads of the note should be kept or deleted.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 01:22:34 +02:00
Philip Molares
b65297523c
MediaService: Add removeNoteFromMediaUpload method
This method replaces the associated note of a media upload with null.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 01:18:24 +02:00
Philip Molares
41765ac300
MediaUpload: Make note nullable
As it is possible to delete a note without also deleting the associated media uploads this needs to changed in the media upload entity, too.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 01:17:09 +02:00
Philip Molares
e2469eb441
Notes: Add NoteMediaDeletionDto
This is used to specify if the media uploads should be kept or deleted, when deleting a note.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 01:15:44 +02:00
David Mehren
61321fd992
CI: Run tests with Node.js 16
Signed-off-by: David Mehren <git@herrmehren.de>
2021-04-22 19:08:43 +02:00
Philip Molares
36cd0fd246
RevisionsService: Add missing awaits
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-22 18:26:19 +02:00
David Mehren
678f69f562
FilesystemBackend: Fix functionContext logging
This commit adds a few missing `functionContext` parameters in calls to
`this.logger` and fixes a copy-paste error in `ensureDirectory`

Signed-off-by: David Mehren <git@herrmehren.de>
2021-04-22 21:58:03 +02:00
Renovate Bot
e7cdc30eff
Update dependency ts-loader to v9.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-22 20:22:10 +00:00
Philip Molares
8a01720ef4
AppConfigMock: Use correct loglevel
Until now the app config mock used ts-loader's LogLevel instead of our own Loglevel, which is obviously wrong.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-22 22:23:59 +02:00
David Mehren
79065b8d3f
Media E2E tests: Add error handling for upload cleanup
Previously, `fs.rmdir` was called multiple times on the same path,
even when the path was already deleted.
This causes test failures in Node 16.

This commit extracts the cleanup code into a utility function
and ensures that no error is thrown when the given path is already deleted.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-04-22 21:29:23 +02:00
Philip Molares
20f527eb80
GithubWorkflow: Removed build on Node 10
This is not helpful anymore, because node 10 is nearly at the end of its LTS and because ts-loader 9 has node 12 as it minimum supported version and this is a key part of this application.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-20 11:29:20 +02:00
Renovate Bot
380365fc82
Update dependency ts-loader to v9
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-19 22:32:09 +00:00
Renovate Bot
3c45924eb3 Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-29 17:56:49 +02:00
Philip Molares
5f449a3f21 add new renovate group for i18next
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-28 22:04:55 +02:00
Renovate Bot
19e2ef19de Update dependency i18next to v20
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 21:10:52 +01:00
Renovate Bot
4d56025bec Update react monorepo to v17.0.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:55:41 +01:00
Renovate Bot
7c95b50ca1 Update dependency vega-embed to v6.17.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:51:03 +01:00
Renovate Bot
f9a2c1137c Update dependency i18next-http-backend to v1.2.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:49:54 +01:00
renovate[bot]
8374e34286
Update dependency react-redux to v7.2.3 (#1137)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Philip Molares <philip.molares@udo.edu>
2021-03-27 20:45:01 +01:00
Renovate Bot
927b6b989c Update typescript-eslint monorepo to v4.19.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:44:36 +01:00
Renovate Bot
b98be0aede Update definitelyTyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 19:29:51 +00:00
Renovate Bot
ead90963a7 Update dependency react-i18next to v11.8.12
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:15:28 +01:00
Renovate Bot
0c347f46a1 Update dependency i18next-browser-languagedetector to v6.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:11:38 +01:00
Renovate Bot
4668457e06 Update dependency abcjs to v6.0.0-beta.31
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:10:30 +01:00
Renovate Bot
40390fd3c5 Update JS test packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:10:00 +01:00
Tilman Vatteroth
d01c8aa283 Change type of LICENSE
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-03-25 21:55:44 +01:00
Renovate Bot
e868aad315 Update dependency codemirror to v5.60.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-25 21:48:32 +01:00
Renovate Bot
b3c3b87d2f Update markmap
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-25 13:18:34 +01:00
Renovate Bot
a5f56abc5d Update dependency cypress to v6.8.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-23 16:59:31 +01:00
Renovate Bot
f9e14cceb6 Update dependency highlight.js to v10.7.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-23 15:26:03 +01:00
Renovate Bot
2185808b77 Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-22 10:06:18 +01:00
Renovate Bot
e6048765fa Update dependency cypress-file-upload to v5.0.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-21 23:29:38 +01:00
Philip Molares
1ed22ba4bf
PrivateE2EMe: Add E2E test for private api /me routes
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-20 19:01:04 +01:00
Renovate Bot
e4d5e00c4e Update dependency vega-embed to v6.16.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-20 12:51:50 +01:00