Commit graph

3027 commits

Author SHA1 Message Date
Renovate Bot
6eef37bed7
Update dependency @nestjs/swagger to v4.7.11
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-15 21:34:51 +00:00
David Mehren
a70ebb2677
Merge pull request #731 from hedgedoc/renovate/definitelytyped
Update dependency @types/node to v13.13.40
2021-01-15 22:34:13 +01:00
Renovate Bot
bf3a35a44b
Update dependency @types/node to v13.13.40
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-15 21:28:54 +00:00
David Mehren
4dcb380549
Merge pull request #726 from hedgedoc/renovate/class-transformer-0.x
Update dependency class-transformer to v0.3.2
2021-01-15 22:28:00 +01:00
Renovate Bot
0a40edf8a7
Update dependency class-transformer to v0.3.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-15 21:24:49 +00:00
David Mehren
695e343b8e
Merge pull request #725 from hedgedoc/renovate/class-validator-0.x
Update dependency class-validator to v0.13.1
2021-01-15 22:23:38 +01:00
Renovate Bot
6018760779
Update dependency class-validator to v0.13.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-14 05:45:22 +00:00
David Mehren
9bc68671c0
Merge pull request #711 from hedgedoc/renovate/lock-file-maintenance
Lock file maintenance
2021-01-13 22:58:24 +01:00
Renovate Bot
251ffcb5dc
Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-13 21:32:17 +00:00
David Mehren
2925d85ea3
Merge pull request #723 from hedgedoc/renovate/pin-dependencies
Pin dependencies
2021-01-13 22:31:38 +01:00
Renovate Bot
0f2ed457d8
Pin dependencies
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-13 21:29:09 +00:00
Yannick Bungers
58fc65d65c
Merge pull request #549 from hedgedoc/feat/config 2021-01-13 22:24:27 +01:00
Philip Molares
929795637a
Extend config with various options from 1.x
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-13 22:09:07 +01:00
David Mehren
ce65f2c51a
Add config to tests in various places
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-13 21:45:23 +01:00
David Mehren
9f170bca4c
FilesystemBackend: Use scoped appConfig
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-13 21:45:23 +01:00
David Mehren
75b6d3cc2b
MediaService: Get media backend from configuration
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-13 21:45:23 +01:00
David Mehren
0e7845e38f
Get port and upload path from config
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2021-01-13 21:45:23 +01:00
David Mehren
cbd4684785
Load config to global scope
Otherwise every module would have to parse the config again

Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-13 21:45:23 +01:00
David Mehren
c55f7060be
Add proof of concept config system
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2021-01-13 21:45:21 +01:00
David Mehren
2516f8a1b5
Merge pull request #715 from hedgedoc/renovate/linters
Update linters to v4.13.0
2021-01-13 18:19:08 +01:00
Renovate Bot
7b89c94060
Update linters to v4.13.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-13 17:16:35 +00:00
David Mehren
bb1119e7d8
Merge pull request #718 from hedgedoc/renovate/typeorm-0.x
Update dependency typeorm to v0.2.30
2021-01-13 18:16:01 +01:00
Renovate Bot
3c324ab9c6
Update dependency typeorm to v0.2.30
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-13 17:07:58 +00:00
David Mehren
335b5ecc13
Merge pull request #720 from hedgedoc/renovate/file-type-16.x
Update dependency file-type to v16.2.0
2021-01-13 18:07:21 +01:00
Renovate Bot
e4f2b25370
Update dependency file-type to v16.2.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-13 16:58:34 +00:00
David Mehren
bc14f527f6
Merge pull request #714 from hedgedoc/renovate/class-validator-0.x
Update dependency class-validator to v0.13.0
2021-01-13 17:57:59 +01:00
Renovate Bot
9f38e596d4
Update dependency class-validator to v0.13.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-13 16:46:10 +00:00
David Mehren
8cce5f49cf
Merge pull request #717 from hedgedoc/renovate/nestjs-packages 2021-01-13 17:45:40 +01:00
Renovate Bot
762e2fda09
Update dependency @nestjs/swagger to v4.7.10
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-13 16:35:13 +00:00
David Mehren
06cea24f62
Merge pull request #716 from hedgedoc/renovate/definitelytyped
Update dependency @types/express to v4.17.11
2021-01-13 17:34:39 +01:00
Renovate Bot
b1101c8b0b
Update dependency @types/express to v4.17.11
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 22:29:20 +00:00
David Mehren
f2eb16238b
Merge pull request #707 from hedgedoc/feat/note-created-at 2021-01-11 09:05:46 +01:00
David Mehren
0f215fc8ad
Add missing license header in CodeQL workflow
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-10 20:20:30 +01:00
David Mehren
a1b53f93d6
Enable GitHub CodeQL analysis
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-10 20:17:21 +01:00
David Mehren
d182aabc7c
Merge pull request #701 from hedgedoc/renovate/mkdocs-material-6.x
Update dependency mkdocs-material to v6.2.4
2021-01-10 20:13:35 +01:00
David Mehren
c9a998ab73
Note E2E tests: Check that create & update dates are updated correctly
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-10 20:12:39 +01:00
David Mehren
65c76d0998
NotesService: Get note creation time from database
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-10 20:12:39 +01:00
David Mehren
32feb5ee10
NotesService: rename getLastRevision to getLatestRevision
This fixes an inconsistency with `RevisionsService`

Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-10 20:12:39 +01:00
Renovate Bot
01b44082f3
Update dependency mkdocs-material to v6.2.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-10 19:09:49 +00:00
David Mehren
432ebe1386
Merge pull request #708 from hedgedoc/feat/swagger-markdown-body
MarkdownBody: Register swagger metadata
2021-01-10 19:29:57 +01:00
David Mehren
644d7a278a
MarkdownBody: Register swagger metadata
As explained in https://github.com/nestjs/swagger/issues/32#issuecomment-716169471, it's possible to register swagger metadata in custom decorators by providing an array of `enhancers`.
We now add metadata with the `MarkdownBody` decorator: The request needs a `body` with content-type `text/markdown`.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-10 19:21:19 +01:00
David Mehren
8d3406175b
Merge pull request #696 from kosssi/develop
docs: Fix indentation of code
2021-01-10 18:07:01 +01:00
David Mehren
e15fb2c8a3
Merge branch 'develop' into develop 2021-01-10 18:04:32 +01:00
David Mehren
75eac293bb
Merge pull request #699 from hedgedoc/docs/cherrypickHistory
Cherry picked history.md from master
2021-01-10 17:55:00 +01:00
David Mehren
ffce2de2db
Merge branch 'develop' into docs/cherrypickHistory 2021-01-10 17:52:49 +01:00
David Mehren
0402864123
Merge pull request #703 from hedgedoc/fix/missing-notes-404
NotesController: Do not crash on nonexistent notes
2021-01-10 17:42:21 +01:00
David Mehren
141dc349e3
NotesController: Do not crash on nonexistent notes
This commit adds proper error handling and returns 404 when a note does not exist.
Previously, we leaked the `NotInDBError` and sent a 500 status code.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-09 22:58:16 +01:00
David Mehren
a893f9c230
Merge pull request #704 from hedgedoc/fix/ideaCopyrightTemplate
fixed copyright template for idea
2021-01-09 22:57:48 +01:00
Philip Molares
40a6e2d381 fixed copyright template for idea
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-09 22:55:15 +01:00
Philip Molares
6d5710a917 Fix some typos in history.md
(cherry picked from commit 0195d074a8)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-09 12:35:51 +01:00