Commit graph

3870 commits

Author SHA1 Message Date
renovate[bot]
b8d23c79f3 chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-11-14 05:23:57 +00:00
renovate[bot]
1e666d056e chore(deps): update dependency mkdocs-material to v8.5.10
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-11-12 07:29:18 +00:00
renovate[bot]
3ef73f051c chore(deps): update dependency eslint-plugin-n to v15.5.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-11-12 05:18:17 +00:00
renovate[bot]
c1656aef25 chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-11-07 01:13:19 +00:00
David Mehren
9ad995d0f6 Update yarn.lock
Signed-off-by: David Mehren <git@herrmehren.de>
2022-11-06 23:10:59 +01:00
David Mehren
6bad318c35 Bump version to 1.9.6
Signed-off-by: David Mehren <git@herrmehren.de>
2022-11-06 23:10:59 +01:00
David Mehren
5f988de6a2 docs: update release notes
Signed-off-by: David Mehren <git@herrmehren.de>
2022-11-06 22:24:48 +01:00
David Mehren
f606a7825f refactor(migrations): move cleanup code into migration
We cannot execute the cleanup script as a subprocess with sqlite,
as we now wrap the migrations in a SAVEPOINT, which blocks a second
process.

This moves the cleanup code into the migration file, so it can be
executed in-process.

Signed-off-by: David Mehren <git@herrmehren.de>
2022-11-06 22:24:48 +01:00
David Mehren
c83eb7ec7e style(migrations): fix formatting errors
Signed-off-by: David Mehren <git@herrmehren.de>
2022-11-06 22:24:48 +01:00
Philip Molares
638c2f6740 fix(migrations): don't run with foreign keys activated
This PR deactivates and reactivates the foreign_keys in the DB for the duration of all migrations.
This prevents a cascade of deletion, when table columns are changed and tables get recreated by sequelize.

Fixes #2809

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-11-06 22:24:48 +01:00
Philip Molares
912bea3e23 docs: add changelog entry about migration fix
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-11-06 22:24:48 +01:00
Sheogorath
cf7712639a chore: update mastodon badge
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2022-11-06 21:39:32 +01:00
renovate[bot]
f6d0496e1e chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-11-06 21:39:09 +01:00
Sheogorath
f98a96eaa6 docs: Fix keycloak guide
Since Keycloak version 20.0.0 it's needed to explicitly request the
openid scope. Since we define it anyway, why not request all the scopes
hedgedoc needs to function.

This patch should help to fix people's HedgeDoc deployments.

References:
https://github.com/keycloak/keycloak/pull/14237
https://shivering-isles.com/fixing-hedgedoc-profile-info-keycloak-20

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2022-11-06 21:38:27 +01:00
renovate[bot]
81ca171895 chore(deps): update dependency mkdocs-material to v8.5.8
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-11-05 06:18:39 +00:00
renovate[bot]
99908efa01 chore(deps): update dependency mkdocs to v1.4.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-11-05 03:51:30 +00:00
renovate[bot]
59191b1529 chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-31 06:33:00 +00:00
David Mehren
63f33f1737 Fix express deprecation warning
Signed-off-by: David Mehren <git@herrmehren.de>
2022-10-30 22:15:16 +01:00
David Mehren
bed9835d36 Add contributors and update AUTHORS
Signed-off-by: David Mehren <git@herrmehren.de>
2022-10-30 22:15:16 +01:00
David Mehren
d4f1a1b6bf Import translations from POEditor
Signed-off-by: David Mehren <git@herrmehren.de>
2022-10-30 22:15:16 +01:00
David Mehren
50cac714ce Bump version and update release notes
Signed-off-by: David Mehren <git@herrmehren.de>
2022-10-30 22:15:16 +01:00
David Mehren
0bb1e92324 Update yarn.lock
Signed-off-by: David Mehren <git@herrmehren.de>
2022-10-30 22:15:16 +01:00
David Mehren
c5b9882432 Update dependencies
Signed-off-by: David Mehren <git@herrmehren.de>
2022-10-30 22:15:16 +01:00
renovate[bot]
57759cc407 chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-24 04:43:04 +00:00
renovate[bot]
ddf8edd699 chore(deps): update dependency pymdown-extensions to v9.7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-23 21:19:55 +02:00
renovate[bot]
109ec19bcc chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-22 12:14:01 +02:00
renovate[bot]
79cc175c99 chore(deps): update dependency mkdocs-material to v8.5.7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-22 05:55:21 +00:00
renovate[bot]
47b1bb6b6d chore(deps): update dependency mocha to v10.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-18 23:30:08 +02:00
renovate[bot]
56d4c402bd chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-17 05:37:30 +00:00
Yannick Bungers
14534ee884 Update lockfile
Signed-off-by: Yannick Bungers <git@innay.de>
2022-10-16 21:05:34 +02:00
David Mehren
e2b0117c3e Fix missing syntax highlighting in the markdown editor
In e17cc644 the Webpack build process for CodeMirror was changed.
For unknown reasons, not all plugins and modes were added.
This adds all plugins currently enabled in
https://github
.com/hedgedoc/CodeMirror/blob/951b3d94bb5ad9ac7b44642adbe595e843390506/release.sh

Signed-off-by: David Mehren <git@herrmehren.de>
2022-10-16 21:05:34 +02:00
David Mehren
58e3dacd61 Update to v5.65.9 of our CodeMirror fork
Signed-off-by: David Mehren <git@herrmehren.de>
2022-10-16 21:05:34 +02:00
renovate[bot]
db6c6c86b5 chore(deps): update dependency mkdocs to v1.4.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-15 23:51:42 +00:00
renovate[bot]
a7b663a01f chore(deps): update dependency abcjs to v6.1.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-15 04:47:50 +00:00
renovate[bot]
f7fa0d9727 chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-10 04:25:11 +00:00
renovate[bot]
f9e9130b97 chore(deps): update dependency eslint to v8.25.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-09 20:34:54 +02:00
David Mehren
3aeb2a619b Pass through breaks option to published note
The markdown for the publish-view is generated
using the `Note.extractMeta` method.
It uses meta-marked to separate the metadata from markdown.
Only the raw markdown is then sent to the client,
so it cannot respect the `breaks` option.

This adds an evil hack to send the `breaks` option with the markdown
if it is contained in the metadata block.

Fixes https://github.com/hedgedoc/hedgedoc/issues/2358

Signed-off-by: David Mehren <git@herrmehren.de>
2022-10-03 20:18:16 +02:00
renovate[bot]
a71b4923e7 chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-03 01:03:22 +00:00
renovate[bot]
78fc336c25 chore(deps): update dependency mkdocs-material to v8.5.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-02 18:31:03 +02:00
renovate[bot]
2547625379 chore(deps): update dependency mkdocs to v1.4.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-02 17:55:03 +02:00
renovate[bot]
f6528fde68 chore(deps): update dependency pymdown-extensions to v9.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-02 17:54:50 +02:00
renovate[bot]
fc71e885eb chore(deps): update dependency mkdocs-material to v8.5.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-01 18:33:42 +00:00
renovate[bot]
78de83777d chore(deps): update dependency mkdocs-material to v8.5.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-10-01 06:12:50 +00:00
Tilman Vatteroth
98e9616af8 fix(docs): Add a note that node 18 is not supported
Node 18 is not supported because of dependency problems. It's already covered by the package.json but not by the docs.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-30 08:53:43 +02:00
renovate[bot]
7067c1a28e chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-26 03:25:31 +00:00
renovate[bot]
16e2b1cd55 chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-25 11:09:58 +02:00
Tilman Vatteroth
68466f6f09 fix: Change data type of history attribute in user table to long text
When using mysql the normal text attribute has a fixed size. When this size is reached then the json will be cut off and becomes invalid.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-25 11:09:23 +02:00
Tilman Vatteroth
9254c0dc39 Convert history attribute in user table to longtext
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-25 11:09:23 +02:00
renovate[bot]
345fab95c5 chore(deps): update dependency mkdocs-material to v8.5.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-24 03:59:17 +00:00
renovate[bot]
50affce8d2 chore(deps): update dependency mkdocs-redirects to v1.2.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-18 19:15:09 +02:00