David Mehren
7cfc372f83
Merge pull request #1055 from hedgedoc/renovate/develop-nestjs-packages
...
Update NestJS packages to v7.6.15 (develop)
2021-03-25 20:24:46 +01:00
David Mehren
85cd0e4553
Merge pull request #1056 from hedgedoc/renovate/develop-linters
...
Update linters to v4.19.0 (develop)
2021-03-25 20:24:39 +01:00
Philip Molares
1249302321
PublicE2EMedia: Port the extra test from the private api
...
This ports the extra tests in the POST /media test from the private apis to the public apis E2E tests.
Also the whole test suit was renamed to 'Media'.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-25 20:12:22 +01:00
David Mehren
374f675353
Merge pull request #1059 from hedgedoc/fix/e2eUploads
...
PublicE2E: Remove uploaded files after test
2021-03-25 20:08:31 +01:00
Renovate Bot
7114aa3b9b
Update linters to v4.19.0
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-25 11:21:20 +00:00
Renovate Bot
e65b5f21e8
Update NestJS packages to v7.6.15
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-25 11:21:07 +00:00
David Mehren
8d904b70e7
Merge pull request #1054 from hedgedoc/renovate/develop-lock-file-maintenance
...
Lock file maintenance (develop)
2021-03-25 12:18:54 +01:00
Renovate Bot
951f726c3f
Lock file maintenance
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-24 21:58:48 +00:00
Philip Molares
69550a8243
PublicE2E: Remove uploaded files after test
...
This way the tests can run in any order as some of the media tests rely on an empty (or non-existing) uploads directory.
Also the me e2e test was renamed to the correct name.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-24 22:20:20 +01:00
David Mehren
6e03f876db
Merge pull request #1033 from hedgedoc/docs/delete_revisions
2021-03-24 22:15:27 +01:00
David Mehren
e66c3a9ceb
Merge pull request #980 from hedgedoc/privateApi/frontendConfig
2021-03-24 22:14:45 +01:00
Philip Molares
db9d42e7f3
Docs: Fix dev doc 'documentation'
...
Fix typos
Rewrite 'Deployment' paragraph. We currently don't and probably won't use Messor Structor.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-24 20:32:56 +01:00
Philip Molares
bd9235c5c9
DevDocs: Add explanations for new config modules
...
The new config modules `customization` and `external-services` are explained in the dev doc overview of all config modules now.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 20:08:13 +01:00
Philip Molares
dd7ca87337
PrivateApi: Add config controller
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 20:08:13 +01:00
Philip Molares
e471342497
FrontendConfig: Add new service
...
This service handles the config for the frontend.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 20:08:13 +01:00
Philip Molares
c4161cec98
Config: Add rendererOrigin and maxDocumentLength to AppConfig
...
These are used in the /config private API call.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 20:08:13 +01:00
Philip Molares
f63d37dbf7
Config: Add identifier to all multi auth provider to AuthConfig
...
These are used in the /config private API call and needed to distinguish with which of the multiple auth providers a login should occur.
This also fixes the types of the multiple auth provider arrays to something that works, as `[{}]` specifics exactly on object in an array.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 20:08:13 +01:00
Philip Molares
de82b72b62
Config: Create new config mocks for tests
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 20:08:09 +01:00
Philip Molares
e8339e0976
Config: Add two new Subconfigs
...
CustomizationConfig holds all possible customization configs.
ExternalConfig holds external services that may be configured.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 19:59:07 +01:00
Philip Molares
19318ae518
Config: Extend AppConfig mock
...
This is now more in line what you would get from the regular config code
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 19:59:07 +01:00
Philip Molares
381718f0eb
Config: Move config mocks in own folder
...
To clean up the config folder, all mocks are now in it's own folder.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 19:59:05 +01:00
Philip Molares
942cb44e05
Utils: Extract getServerVersionFromPackageJson into own file
...
We need this function in at least on other part of the application so extracting it into an util file was only logical.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 19:58:37 +01:00
David Mehren
6fab7583f0
Merge pull request #1049 from hedgedoc/publicApi/noteMedia
2021-03-21 19:25:33 +01:00
Philip Molares
9b427dc6d1
NotesE2ETest: Add GET /api/v2/notes/{note}/media test
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 19:22:40 +01:00
Philip Molares
37fa75fc91
PublicApi: Add GET /api/v2/notes/{note}/media
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 19:18:40 +01:00
Philip Molares
3ef2fce067
MediaService: Add listUploadsByNote method
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 19:18:40 +01:00
David Mehren
6d8780de4b
Merge pull request #1047 from hedgedoc/docs/apidocs
2021-03-21 19:07:14 +01:00
David Mehren
f442fe9f6c
Merge pull request #1048 from hedgedoc/renovate/develop-nestjs-packages
2021-03-21 19:01:27 +01:00
David Mehren
d3e7be491a
Merge pull request #981 from hedgedoc/privateApi/history
...
PrivateAPI: history
2021-03-21 19:00:21 +01:00
David Mehren
c01eb61f19
Add dev docs about deleting notes & revisions
...
Fixes #560
Signed-off-by: David Mehren <git@herrmehren.de>
2021-03-21 17:45:45 +01:00
Philip Molares
168d85778c
Docs: Add more documentation to the public api
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-20 10:18:44 +01:00
Philip Molares
cb5c135cb7
Docs: Add description for common http codes
...
These are the descriptions for all 401, 403, 404 and 204 HTTP responses in HedgeDoc.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-20 10:18:42 +01:00
Renovate Bot
534af7b059
Update dependency @nestjs/swagger to v4.8.0
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-19 14:43:34 +00:00
Philip Molares
3620416ed6
Docs: Add ApiProperty to all Dtos
...
This makes it possible for the autogenerated openapi file to contain all the dtos instead of nothing.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-19 12:08:34 +01:00
Philip Molares
25126eb03f
PrivateE2E: Add history test
...
Test the /me/history route in the private API.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-18 21:56:39 +01:00
Philip Molares
7f399735f6
PrivateAPI: Add history controller
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-18 21:56:35 +01:00
David Mehren
4cea16e454
Merge pull request #1043 from hedgedoc/renovate/develop-definitelytyped
...
Update dependency @types/jest to v26.0.21 (develop)
2021-03-18 21:36:58 +01:00
David Mehren
9d0d7a1f7a
Merge pull request #1042 from hedgedoc/renovate/develop-ts-jest-26.x
...
Update dependency ts-jest to v26.5.4 (develop)
2021-03-18 21:36:52 +01:00
Renovate Bot
761a0e621f
Update dependency @types/jest to v26.0.21
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-17 16:05:02 +00:00
Renovate Bot
a2a5080348
Update dependency ts-jest to v26.5.4
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-17 13:46:03 +00:00
Yannick Bungers
254501d3e5
Merge pull request #1036 from hedgedoc/renovate/develop-definitelytyped
...
Update dependency @types/node to v13.13.47 (develop)
2021-03-16 22:00:49 +01:00
Renovate Bot
37ff95c8c3
Update dependency @types/node to v13.13.47
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-15 22:49:00 +00:00
Yannick Bungers
5f9affd32e
Merge pull request #1037 from hedgedoc/fix/mediaUploadPdf
...
MediaService: Remove allowedMimeType application/pdf
2021-03-15 23:08:46 +01:00
Philip Molares
b5575bbebe
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
Philip Molares
9e55af1247
HistoryService: Add deleteHistory method
...
This method deletes all history entries of a user.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-15 21:14:56 +01:00
Yannick Bungers
c0b35b8ee8
Merge pull request #1035 from hedgedoc/renovate/develop-linters
...
Update linters to v4.18.0 (develop)
2021-03-15 21:07:54 +01:00
Yannick Bungers
7183d1fabb
Merge pull request #1021 from hedgedoc/publicApi/listMediaUpload
...
PublicAPI: Add GET /me/media
2021-03-15 20:26:59 +01:00
Renovate Bot
963e425713
Update linters to v4.18.0
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-15 19:22:12 +00:00
David Mehren
fe5cd09678
Merge pull request #1031 from hedgedoc/fix/forbiddenNoteId
...
AppConfig: Fix bug in the schema of forbiddenNoteIds
2021-03-15 09:10:25 +01:00
David Mehren
2b832b42d4
Merge pull request #1012 from hedgedoc/renovate/develop-lock-file-maintenance
...
Lock file maintenance (develop)
2021-03-15 08:59:10 +01:00