Commit graph

6248 commits

Author SHA1 Message Date
Renovate Bot
dc825bc200
Update dependency @types/node to v13.13.47
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-15 22:49:00 +00:00
Philip Molares
6e29ffba65
MediaService: Remove allowedMimeType application/pdf
Uploading PDFs does not work with imgur and therefore HedgeDoc should not offer that.

See #533

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-15 22:41:40 +01:00
Renovate Bot
96396ea237
Update linters to v4.18.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-15 19:22:12 +00:00
Yannick Bungers
f47d85b301
Add GET /me/media
Returns all media files uploaded by the authenticated user.

Signed-off-by: Yannick Bungers <git@innay.de>
2021-03-14 17:47:16 +01:00
Philip Molares
7a7b3d3a50
AppConfig: Fix bug in the schema of forbiddenNoteIds
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-14 17:54:50 +01:00
Renovate Bot
d09bbf661d
Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-15 07:54:51 +00:00
Renovate Bot
981aecaa99
Update dependency ts-loader to v8.0.18
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 17:52:33 +00:00
Renovate Bot
4942b4b922
Update dependency @azure/storage-blob to v12.5.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 17:49:35 +00:00
Renovate Bot
793ab84e0f
Update dependency @types/node to v13.13.46
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 17:46:28 +00:00
Renovate Bot
9d192567e5
Update NestJS packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 17:42:57 +00:00
Renovate Bot
45a0bae1e8
Update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 16:21:22 +00:00
Renovate Bot
10835b53bd
Update dependency mkdocs-material to v7.0.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 14:36:58 +00:00
Philip Molares
50d950c5f2
PublicE2E: Add test for GET /me/history/{note} in me.e2e-spec.ts
add test for GET /me/history/{note}
add error cases to PUT /me/history/{note} and DELETE /me/history/{note}
activate missing test GET /me/notes/

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-05 12:04:06 +01:00
Philip Molares
82ef4a10cb
PublicAPI: Add /me/history/:note
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-05 12:01:43 +01:00
Philip Molares
521ddc36c6
HistoryService: Add unit test for getEntryByNoteIdOrAlias
Also add extra test to deleteHistoryEntry

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-05 12:01:04 +01:00
Philip Molares
6ed686e657
HistoryService: Add JSDocs for all methods
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-05 11:59:07 +01:00
Renovate Bot
640f425781 Update dependency @types/luxon to v1.26.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 23:07:51 +01:00
Renovate Bot
3993e41a55 Update dependency vega-lite to v5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 16:06:15 +01:00
Renovate Bot
a54711e287 Update dependency vega-embed to v6.15.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 15:53:44 +01:00
Renovate Bot
0c0c2c2d2c Update dependency codemirror to v5.59.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 15:15:21 +01:00
Renovate Bot
31034c3e8d Update dependency i18next to v19.9.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 13:54:35 +01:00
Renovate Bot
568a1dbe1e Update dependency eslint-plugin-flowtype to v5.3.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 12:35:05 +01:00
Renovate Bot
afa4088eb2 Update JS test packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 12:22:28 +01:00
Renovate Bot
6327fead01 Update dependency i18next-http-backend to v1.1.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 11:19:52 +01:00
Renovate Bot
3523f2d077 Update dependency react-i18next to v11.8.8
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 11:15:11 +01:00
Renovate Bot
97eda114ca Update dependency react-scripts to v4.0.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 10:51:43 +01:00
Renovate Bot
ba7dfac489 Update dependency typescript to v4.2.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 10:38:28 +01:00
Renovate Bot
1f3578af14 Update typescript-eslint monorepo to v4.15.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 10:38:14 +01:00
Erik Michelson
a1698047a8
Set sanitized note title as filename for download (#1057) 2021-02-22 23:36:09 +01:00
Erik Michelson
7dd91c7b46
Change top slide mode button dynamically to read-only-mode (#1056) 2021-02-22 22:54:28 +01:00
Erik Michelson
f9809a4edf
Add e2e tests for diagrams and embeddings (#1025) 2021-02-22 22:27:59 +01:00
Renovate Bot
c2664b68f0 Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-22 01:37:24 +01:00
Renovate Bot
ca12cfd312 Update dependency codemirror to v5.59.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-21 13:23:25 +01:00
Philip Molares
66e2340009
NotesService: Add e2e tests for forbidden note alias
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-20 22:24:17 +01:00
Philip Molares
54d0aa2197
NotesService: Add unit tests for forbidden note alias
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-20 22:23:52 +01:00
Philip Molares
c82f317ef0
NotesService: Check if note alias is forbidden
If the note alias is forbidden return a BadRequest.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-20 22:21:31 +01:00
Philip Molares
dbbee13913
Errors: Add ForbiddenIdError
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-20 22:16:50 +01:00
Philip Molares
966f5ee2fe
Config: Add forbiddenNoteIds to AppConfig
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-20 22:15:04 +01:00
Renovate Bot
2a83c9b2ac
Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-07 21:36:19 +00:00
Renovate Bot
68fdfebc23
Update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-07 21:23:35 +00:00
Renovate Bot
2abc81134d
Update dependency typescript to v4.2.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-07 21:16:23 +00:00
Renovate Bot
aeda6fb577
Update dependency file-type to v16.3.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-07 21:16:11 +00:00
Renovate Bot
8bbc89bed2
Update dependency mkdocs-material to v7.0.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-07 19:04:16 +00:00
Philip Molares
bb6d34c88c
Docs: Add Azure, Filesystem, Imgur and S3
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-28 17:46:00 +01:00
Philip Molares
0ac88439ea
Fix compilation with ts-node
ts-node by default does not respect the `files` setting in `tsconfig.json`
and therefore does not respect the d.ts file under `types/`.

This commit adds an explicit `typeRoots` option, as recommended by
https://github.com/TypeStrong/ts-node#help-my-types-are-missing

Fixes #989

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-05 00:37:35 +01:00
Renovate Bot
e1cf539b1c
Update dependency ts-jest to v26.5.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-04 08:30:33 +00:00
Renovate Bot
4e532a2c5a
Pin dependencies
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 22:12:19 +00:00
Philip Molares
b2008ae734
AppModule: Add reminder to remove synchronize
This auto creates schema on startup and is not intended for production use
See https://typeorm.io/#/connection-options/common-connection-options

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-27 22:58:34 +01:00
Philip Molares
d6e8d9a592
S3Backend: Add S3 MediaBackend
Add minio dependency

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-23 16:14:14 +01:00
Philip Molares
d2bce6e091
MediaConfig: Change s3 config
remove region as this is specified by endPoint now
add bucket in schema and actual assignment

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-23 16:13:33 +01:00