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
6301a264dd
NotesService: updateNoteByIdOrAlias
should return the new note
...
Fixes #702
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-10 20:31:56 +01:00
David Mehren
4a1bec8eec
Move note permission route under metadata
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-10 20:25:28 +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
David Mehren
136c432587
Merge pull request #698 from hedgedoc/renovate/sqlite3-5.x
...
Update dependency sqlite3 to v5.0.1
2021-01-08 19:30:57 +01:00
Renovate Bot
3254d32270
Update dependency sqlite3 to v5.0.1
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-08 15:41:58 +00:00
Simon C
4559d52d52
docs: Fix indentation of code
2021-01-08 14:58:01 +01:00
David Mehren
d69c05ad20
Merge pull request #695 from hedgedoc/maint/maintain-lockfiles
...
Renovate: Maintain lock files once per week
2021-01-07 22:48:26 +01:00
David Mehren
11a5573e7a
Renovate: Maintain lock files once per week
...
This option makes Renovate refresh yarn.lock once per week
See https://docs.renovatebot.com/configuration-options/#lockfilemaintenance
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-07 17:35:17 +01:00
David Mehren
3013a85fed
Merge pull request #668 from hedgedoc/renovate/definitelytyped
2021-01-07 17:16:20 +01:00
David Mehren
5f48b530f2
Update @types/express-serve-static-core and @types/serve-static
...
After updating @types/express these need to be updated to prevent broken typings.
This does not happen automatically, so I needed to delete these two packages from
yarn.lock and run `yarn install` again.
See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/47339#issuecomment-691800846
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-07 17:14:30 +01:00
Renovate Bot
6918b7a0e5
Update definitelyTyped
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-07 09:15:51 +00:00
David Mehren
e6e3d119f9
Merge pull request #682 from hedgedoc/renovate/major-definitelytyped
...
Update dependency @types/jest to v26
2021-01-07 00:03:50 +01:00
Renovate Bot
1f1fadf4f6
Update dependency @types/jest to v26
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 23:00:35 +00:00
David Mehren
64aa4df282
Merge pull request #677 from hedgedoc/renovate/ts-jest-26.x
...
Update dependency ts-jest to v26.4.4
2021-01-06 23:59:49 +01:00
Renovate Bot
4f8bb0f348
Update dependency ts-jest to v26.4.4
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 22:57:36 +00:00
David Mehren
020e018f6b
Merge pull request #683 from hedgedoc/renovate/file-type-16.x
...
Update dependency file-type to v16
2021-01-06 23:56:42 +01:00
Renovate Bot
aabb4e19db
Update dependency file-type to v16
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 22:54:07 +00:00
David Mehren
060eeff44e
Merge pull request #684 from hedgedoc/renovate/prettier-2.x
...
Update dependency prettier to v2
2021-01-06 23:52:38 +01:00
David Mehren
f81e67a3a1
Format with Prettier 2
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-06 23:49:45 +01:00
Renovate Bot
25e74f4ae7
Update dependency prettier to v2
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 22:44:29 +00:00
David Mehren
7b946c5de7
Merge pull request #681 from hedgedoc/renovate/actions-setup-node-2.x
2021-01-06 23:42:49 +01:00
Renovate Bot
5deac7eaf6
Update actions/setup-node action to v2
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 22:40:22 +00:00
David Mehren
b37746891a
Merge pull request #689 from hedgedoc/renovate/major-linters
2021-01-06 23:39:28 +01:00
David Mehren
1c9d9942b3
Cleanup ESLint config
...
The name of the plugin and the recommended config changed at some point, so we adapt to that
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-06 23:37:16 +01:00
Renovate Bot
ffe2c8f557
Update linters
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 22:25:56 +00:00
David Mehren
fd16413dd5
Merge pull request #688 from hedgedoc/renovate/typescript-4.x
2021-01-06 23:23:55 +01:00
Renovate Bot
9429e8d6c5
Update dependency typescript to v4
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 22:21:58 +00:00
David Mehren
9ac0c93d2f
Merge pull request #675 from hedgedoc/renovate/test-packages
...
Update dependency jest to v26.6.3
2021-01-06 23:20:04 +01:00