Commit graph

3410 commits

Author SHA1 Message Date
Renovate Bot
cd0f8026d3
Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-15 07:54:51 +00:00
David Mehren
4113a1c0a8
Merge pull request #1023 from hedgedoc/renovate/develop-ts-loader-8.x
Update dependency ts-loader to v8.0.18 (develop)
2021-03-14 19:00:48 +01:00
Renovate Bot
3d56d43c70
Update dependency ts-loader to v8.0.18
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 17:52:33 +00:00
David Mehren
ec891c4900
Merge pull request #1018 from hedgedoc/renovate/develop-azure-storage-blob-12.x
Update dependency @azure/storage-blob to v12.5.0 (develop)
2021-03-14 18:51:31 +01:00
Renovate Bot
13badf8108
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
David Mehren
ab0d315ad6
Merge pull request #1016 from hedgedoc/renovate/develop-definitelytyped
Update dependency @types/node to v13.13.46 (develop)
2021-03-14 18:48:37 +01:00
Renovate Bot
14ad803368
Update dependency @types/node to v13.13.46
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 17:46:28 +00:00
David Mehren
c2832d6f23
Merge pull request #1015 from hedgedoc/renovate/develop-nestjs-packages
Update NestJS packages (develop)
2021-03-14 18:45:14 +01:00
Renovate Bot
4632fac586
Update NestJS packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 17:42:57 +00:00
David Mehren
d3c8366b92
Merge pull request #1014 from hedgedoc/renovate/develop-linters
Update linters (develop)
2021-03-14 18:41:54 +01:00
Philip Molares
c77773c247 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
Yannick Bungers
ef352a1313 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
Renovate Bot
5fbfe27973
Update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 16:21:22 +00:00
David Mehren
cae78ca8e5
Merge pull request #1030 from hedgedoc/renovate/develop-mkdocs-material-7.x
Update dependency mkdocs-material to v7.0.6 (develop)
2021-03-14 17:15:31 +01:00
David Mehren
b67ec817e6
Merge pull request #993 from hedgedoc/publicApi/me 2021-03-14 16:28:49 +01:00
David Mehren
99439af25e
Merge pull request #937 from hedgedoc/feature/forbiddenNoteIds 2021-03-14 16:06:48 +01:00
Renovate Bot
a1afb16e96
Update dependency mkdocs-material to v7.0.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 14:36:58 +00:00
David Mehren
e8f35a0638
Merge pull request #977 from hedgedoc/renovate/develop-lock-file-maintenance
Lock file maintenance (develop)
2021-03-07 22:39:51 +01:00
Renovate Bot
48ed275225
Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-07 21:36:19 +00:00
David Mehren
0289ce38de
Merge pull request #974 from hedgedoc/renovate/develop-linters
Update linters (develop)
2021-03-07 22:35:13 +01:00
Renovate Bot
bf919e2309
Update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-07 21:23:35 +00:00
David Mehren
a94334bf7c
Merge pull request #991 from hedgedoc/renovate/develop-typescript-4.x
Update dependency typescript to v4.2.3 (develop)
2021-03-07 22:21:25 +01:00
David Mehren
20a8ff7689
Merge pull request #1007 from hedgedoc/renovate/develop-file-type-16.x 2021-03-07 22:21:08 +01:00
Renovate Bot
2f0d37404e
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
fca4920d1f
Update dependency file-type to v16.3.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-07 21:16:11 +00:00
David Mehren
a0ae140ab2
Merge pull request #986 from hedgedoc/renovate/develop-mkdocs-material-7.x
Update dependency mkdocs-material to v7.0.5 (develop)
2021-03-07 22:14:04 +01:00
Renovate Bot
209a0b6db3
Update dependency mkdocs-material to v7.0.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-07 19:04:16 +00:00
Yannick Bungers
32a6823314
Merge pull request #975 from hedgedoc/docs/mediaBackends
Docs: Add Azure, Filesystem, Imgur and S3
2021-03-06 17:59:13 +01:00
Philip Molares
9199bd21a1 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-06 17:55:48 +01:00
Philip Molares
d4b2dc9e4a PublicAPI: Add /me/history/:note
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-06 17:55:48 +01:00
Philip Molares
de098cf68e HistoryService: Add unit test for getEntryByNoteIdOrAlias
Also add extra test to deleteHistoryEntry

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-06 17:55:24 +01:00
Philip Molares
1df0bda61d NotesService: Add e2e tests for forbidden note alias
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-06 17:49:33 +01:00
Philip Molares
4034fa6495 NotesService: Add unit tests for forbidden note alias
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-06 17:49:33 +01:00
Philip Molares
9b25f401f7 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-03-06 17:49:25 +01:00
Philip Molares
48052c609f Docs: Add Azure, Filesystem, Imgur and S3
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-06 17:12:14 +01:00
David Mehren
6dd60d545b
Merge branch 'fix/tsconfig' into develop 2021-03-05 17:16:51 +01:00
Philip Molares
0e478dab86
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 17:15:33 +01:00
Philip Molares
df2f14ffbf HistoryService: Add JSDocs for all methods
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-05 11:59:07 +01:00
David Mehren
cc50a1f49c
Merge pull request #982 from hedgedoc/renovate/develop-ts-jest-26.x
Update dependency ts-jest to v26.5.3 (develop)
2021-03-04 21:04:02 +01:00
Renovate Bot
dfbe2a2e35
Update dependency ts-jest to v26.5.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-04 08:30:33 +00:00
Yannick Bungers
83e6949807
Merge pull request #971 from hedgedoc/renovate/develop-pin-dependencies
Pin dependencies (develop)
2021-02-27 23:18:58 +01:00
Renovate Bot
cc2c5808e9
Pin dependencies
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-27 22:12:19 +00:00
David Mehren
8de1e4b938
Merge pull request #970 from hedgedoc/typeOrm/synchronizeToDo
AppModule: Add reminder to remove synchronize
2021-02-27 23:09:52 +01:00
Philip Molares
cbc88fd315 Errors: Add ForbiddenIdError
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-27 23:04:52 +01:00
Philip Molares
2f028a4aae Config: Add forbiddenNoteIds to AppConfig
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-27 23:04:49 +01:00
Yannick Bungers
cfa43412d8
Merge pull request #947 from hedgedoc/mediaBackend/s3 2021-02-27 23:01:04 +01:00
Philip Molares
1042954e98 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
2d98e2f8b4 S3Backend: Add S3 MediaBackend
Add minio dependency

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-27 22:40:56 +01:00
Philip Molares
cf6c08e3d6 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-27 22:34:27 +01:00
Philip Molares
942360ea22 MediaConfig: Fix Joi schema alternatives
'...use' tries to go up one level and grab the value of 'use' there and not the same level 'use' as we want here

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-27 22:34:27 +01:00