Commit graph

2924 commits

Author SHA1 Message Date
Erik Michelson
7e597226ec
Add HTTP 404 error on non-existent note downloads
When FreeURL mode is enabled and you called the /download route, the note was created and the user redirected to the blank note.
This is caused because the findNote method automatically creates a note when no existing one is found.
This commit adds a new parameter to the findNote method which allows to disable this behaviour. In that case a HTTP 404 error will be returned.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2021-02-17 22:02:47 +01:00
David Mehren
929ceca20f
Merge pull request #914 from hedgedoc/renovate/master-lock-file-maintenance
Lock file maintenance (master)
2021-02-16 22:42:48 +01:00
Renovate Bot
d4026855dc
Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-16 21:17:12 +00:00
David Mehren
a4b0976ab7
Merge pull request #888 from hedgedoc/renovate/master-turndown-7.x 2021-02-16 22:15:42 +01:00
David Mehren
0f7f11e4f3
Fix HTML clipboard import
jQuery's .html() method escapes contained text (e.g. '<' becomes
'&lt;'). This confuses the turndown parser, which then only performs
unescaping, but does not convert to markdown.
By using .text() instead, the unescaped content is returned and turndown
can correctly generate markdown.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-02-16 22:06:45 +01:00
Renovate Bot
27ffe2515b
Update dependency turndown to v7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-16 22:06:45 +01:00
David Mehren
da3d51ba6f
Merge pull request #917 from hedgedoc/renovate/master-mini-css-extract-plugin-1.x
Update dependency mini-css-extract-plugin to v1.3.7 (master)
2021-02-16 20:25:12 +01:00
Renovate Bot
02d9799c5e
Update dependency mini-css-extract-plugin to v1.3.7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-16 19:16:17 +00:00
David Mehren
59819be34c
Merge pull request #872 from hedgedoc/renovate/master-major-linters 2021-02-16 20:15:15 +01:00
Philip Molares
136d895d15 Linter: Fix all lint errors
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-15 12:15:14 +01:00
Renovate Bot
b0a45bdf9c
Update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-13 19:16:36 +00:00
David Mehren
6b8fa94402
Merge pull request #859 from hedgedoc/renovate/master-markdown-it-mark-3.x
Update dependency markdown-it-mark to v3 (master)
2021-02-13 20:15:44 +01:00
Renovate Bot
f0d0070b46
Update dependency markdown-it-mark to v3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-13 19:05:07 +00:00
Yannick Bungers
b01421c470
Merge pull request #841 from hedgedoc/renovate/master-ejs-3.x 2021-02-13 20:03:45 +01:00
David Mehren
7c6abe09b7
Merge pull request #858 from hedgedoc/renovate/master-markdown-it-ins-3.x
Update dependency markdown-it-ins to v3 (master)
2021-02-13 19:44:01 +01:00
Renovate Bot
eaaa929dd2
Update dependency markdown-it-ins to v3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-13 18:34:59 +00:00
David Mehren
5ad05a97bc
Merge pull request #857 from hedgedoc/renovate/master-markdown-it-emoji-2.x
Update dependency markdown-it-emoji to v2 (master)
2021-02-13 19:33:44 +01:00
Renovate Bot
669c581cd7
Update dependency markdown-it-emoji to v2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-13 18:05:52 +00:00
David Mehren
c8eab63778
Merge pull request #855 from hedgedoc/renovate/master-markdown-it-container-3.x
Update dependency markdown-it-container to v3 (master)
2021-02-13 19:04:47 +01:00
Renovate Bot
9a3b02a7ae
Update dependency markdown-it-container to v3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-13 17:56:13 +00:00
David Mehren
dc89764894
Merge pull request #854 from hedgedoc/renovate/master-markdown-it-12.x
Update dependency markdown-it to v12 (master)
2021-02-13 18:54:51 +01:00
Renovate Bot
aa101fd3da
Update dependency markdown-it to v12
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-13 17:24:00 +00:00
David Mehren
7d813162c9
Merge pull request #846 from hedgedoc/renovate/master-highlight.js-10.x
Update dependency highlight.js to v10 (master)
2021-02-13 18:22:53 +01:00
Renovate Bot
391316fef9
Update dependency highlight.js to v10
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-13 17:07:59 +00:00
David Mehren
6c0b200698
Merge pull request #845 from hedgedoc/renovate/master-helmet-4.x
Update dependency helmet to v4 (master)
2021-02-13 18:06:56 +01:00
Renovate Bot
453faf21e9
Update dependency helmet to v4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-13 16:01:13 +00:00
David Mehren
3b4f96bd4d
Merge pull request #884 from hedgedoc/renovate/master-sequelize-cli-6.x
Update dependency sequelize-cli to v6 (master)
2021-02-13 17:00:00 +01:00
Renovate Bot
18b3a98f23
Update dependency sequelize-cli to v6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 23:00:55 +00:00
David Mehren
f3b733dd40
Merge pull request #885 from hedgedoc/renovate/master-spin.js-4.x 2021-02-12 23:57:34 +01:00
David Mehren
788e7d460a
Update webpack config and JS import for spin.js v4
Signed-off-by: David Mehren <git@herrmehren.de>
2021-02-12 23:47:58 +01:00
Renovate Bot
faffe806b7
Update dependency spin.js to v4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 22:25:41 +00:00
David Mehren
34faec890c
Merge pull request #866 from hedgedoc/renovate/master-minio-7.x 2021-02-12 23:22:01 +01:00
David Mehren
252141560f
Switch to minio v7 API
The secure parameter is now called useSSL
https://github.com/minio/minio-js/releases/tag/7.0.0

Signed-off-by: David Mehren <git@herrmehren.de>
2021-02-12 23:11:37 +01:00
Renovate Bot
1153b9a1bb
Update dependency minio to v7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 21:58:43 +00:00
David Mehren
fbac2d7ef8
Merge pull request #895 from hedgedoc/renovate/master-webpack-merge-5.x 2021-02-12 22:53:05 +01:00
David Mehren
6cbf233fe7
Merge pull request #896 from hedgedoc/renovate/master-ws-7.x
Update dependency ws to v7 (master)
2021-02-12 22:50:19 +01:00
David Mehren
87909b599e
Use named import for webpack-merge
Signed-off-by: David Mehren <git@herrmehren.de>
2021-02-12 22:43:31 +01:00
Renovate Bot
ac7b9c0e5c
Update dependency ws to v7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 21:39:46 +00:00
Renovate Bot
6b2b0d3b38
Update dependency webpack-merge to v5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 21:35:47 +00:00
David Mehren
eb93369824
Merge pull request #890 from hedgedoc/renovate/master-validator-13.x
Update dependency validator to v13 (master)
2021-02-12 22:30:21 +01:00
Renovate Bot
db292838b6
Update dependency validator to v13
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 21:19:34 +00:00
David Mehren
39de07031a
Merge pull request #891 from hedgedoc/renovate/master-visibilityjs-2.x
Update dependency visibilityjs to v2 (master)
2021-02-12 22:14:36 +01:00
Renovate Bot
40a751ca32
Update dependency visibilityjs to v2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 11:45:21 +00:00
David Mehren
b2889e458b
Merge pull request #886 from hedgedoc/renovate/master-sqlite3-5.x
Update dependency sqlite3 to v5 (master)
2021-02-12 12:38:18 +01:00
Renovate Bot
8faf50d517
Update dependency sqlite3 to v5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-11 21:33:58 +00:00
David Mehren
e1e7df0f54
Merge pull request #883 from hedgedoc/renovate/master-test-packages
Update dependency mocha to v8.3.0 (master)
2021-02-11 22:24:13 +01:00
David Mehren
3db954dba7
Merge pull request #882 from hedgedoc/renovate/master-linters
Update dependency eslint-plugin-promise to v4.3.1 (master)
2021-02-11 22:23:42 +01:00
David Mehren
6684e38980
Merge pull request #873 from hedgedoc/renovate/master-passport-ldapauth-3.x
Update dependency passport-ldapauth to v3 (master)
2021-02-11 22:22:49 +01:00
Renovate Bot
8f3d0d3de5
Update dependency passport-ldapauth to v3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-11 21:12:57 +00:00
Renovate Bot
b32ac1b03b
Update dependency mocha to v8.3.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-11 21:10:21 +00:00