Commit graph

3286 commits

Author SHA1 Message Date
David Mehren
c33c2578be
Merge pull request #911 from hedgedoc/renovate/develop-class-transformer-0.x 2021-02-16 20:17:08 +01:00
Renovate Bot
861a970b8c
Update dependency class-transformer to v0.4.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-16 19:14:45 +00:00
Renovate Bot
b1bc079274
Update dependency @types/node to v13.13.42
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-16 19:14:30 +00:00
David Mehren
ca7c253af1
Merge pull request #918 from hedgedoc/renovate/develop-linters 2021-02-16 20:12:08 +01:00
David Mehren
690b0b1211
Merge pull request #919 from hedgedoc/renovate/develop-sqlite3-5.x
Update dependency sqlite3 to v5.0.2 (develop)
2021-02-16 20:11:24 +01:00
Renovate Bot
d3790bf5dc
Update linters to v4.15.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-16 19:09:10 +00:00
Renovate Bot
772b2fac1d
Update dependency sqlite3 to v5.0.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-16 19:08:39 +00:00
David Mehren
f29af8e855
Merge pull request #921 from hedgedoc/fix/yarnFormat
Package.json: Switch yarn format and format:check
2021-02-16 19:57:10 +01:00
Philip Molares
2a5f9df6dc Package.json: Switch yarn format and format:check
Make `yarn format` check the files and `yarn format:fix` do the actually
fixing

fixes #920

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-16 10:46:29 +01:00
David Mehren
c02ff36d32
Merge pull request #907 from hedgedoc/renovate/develop-linters
Update dependency eslint to v7.20.0 (develop)
2021-02-13 17:00:45 +01:00
Renovate Bot
eeb536aca3
Update dependency eslint to v7.20.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-13 00:59:10 +00:00
David Mehren
af893bd196
Merge pull request #906 from hedgedoc/renovate/develop-linters
Update linters (develop)
2021-02-12 23:31:32 +01:00
Renovate Bot
2db97168ea
Update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 22:27:03 +00:00
David Mehren
f304c428a3
Merge pull request #905 from hedgedoc/renovate/develop-typescript-4.x
Update dependency typescript to v4.1.5 (develop)
2021-02-12 23:25:52 +01:00
David Mehren
4a99db811f
Merge pull request #902 from hedgedoc/renovate/develop-ts-jest-26.x
Update dependency ts-jest to v26.5.1 (develop)
2021-02-12 23:23:34 +01:00
Renovate Bot
1a40440ef1
Update dependency typescript to v4.1.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 22:21:49 +00:00
Renovate Bot
81285fd7e4
Update dependency ts-jest to v26.5.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 22:21:20 +00:00
David Mehren
e7aecaa9b6
Merge pull request #903 from hedgedoc/renovate/develop-ts-loader-8.x
Update dependency ts-loader to v8.0.17 (develop)
2021-02-12 23:20:16 +01:00
Renovate Bot
8cb26623f1
Update dependency ts-loader to v8.0.17
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 22:17:13 +00:00
David Mehren
b249b28369
Merge pull request #901 from hedgedoc/renovate/develop-mkdocs-material-6.x
Update dependency mkdocs-material to v6.2.8 (develop)
2021-02-12 23:14:43 +01:00
David Mehren
d3346454e7
Merge pull request #900 from hedgedoc/renovate/develop-joi-17.x
Update dependency joi to v17.4.0 (develop)
2021-02-12 23:14:23 +01:00
Renovate Bot
7b21e078f7
Update dependency mkdocs-material to v6.2.8
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 22:11:16 +00:00
Renovate Bot
0c33c6b034
Update dependency joi to v17.4.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 22:11:05 +00:00
David Mehren
e8b23414fc
Merge pull request #899 from hedgedoc/renovate/develop-definitelytyped
Update dependency @types/node to v13.13.41 (develop)
2021-02-12 23:10:16 +01:00
Renovate Bot
ade0cf3651
Update dependency @types/node to v13.13.41
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 22:03:57 +00:00
David Mehren
848d902573
Merge pull request #898 from hedgedoc/renovate/develop-nestjs-packages
Update NestJS packages (develop)
2021-02-12 23:02:49 +01:00
Renovate Bot
73fdcf8e23
Update NestJS packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 21:55:30 +00:00
David Mehren
4d6d86f283
Merge pull request #878 from hugopeixoto/fix/remove-old-license-file
Remove license of deleted file
2021-02-11 21:07:22 +01:00
Hugo Peixoto
9898304abb Remove license of deleted file
config.json.example was deleted, but the license file was not. This
removes the leftover file.

Signed-off-by: Hugo Peixoto <hugo.peixoto@gmail.com>
2021-02-10 10:02:10 +00:00
David Mehren
515e1ad9f2
Merge pull request #825 from hedgedoc/test/activateGetMe
Tests: Fix GET /me e2e test
2021-02-06 11:10:56 +01:00
Philip Molares
81c6ef178d Tests: Fix GET /me e2e test
Since the /me route does work now, we should reactivate (and fix) this test, too.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-06 10:58:34 +01:00
Yannick Bungers
1902cbaf67
Merge pull request #828 from hedgedoc/docs/config 2021-02-05 23:22:11 +01:00
Philip Molares
c0e797bca6 Dev Docs: Add configuration to navigation
This makes it possible to access the developer documentation about configuration code.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-05 23:12:52 +01:00
Philip Molares
c593965d5a Dev Docs: Add .env.example file
This file contains a minimal working config to get the backend up and running.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-05 23:08:32 +01:00
Philip Molares
7cdb40585e Dev Docs: Add configuration documentation
This explains how the configuration code works and give some hints on what do look out for while working on the configuration code.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-05 23:08:32 +01:00
Yannick Bungers
1e0b38ce23
Merge pull request #844 from hedgedoc/fix/logging-context
Add missing logging context at various places
2021-02-05 22:45:16 +01:00
David Mehren
8b62b7d93c
Add missing logging context at various places
Our custom logger supports providing the name of the function that
calls the logger, this commit adds this context string where it
was previously missing.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-02-05 22:30:22 +01:00
David Mehren
763f67d5fb
Merge pull request #801 from hedgedoc/feature/history 2021-02-05 21:30:52 +01:00
David Mehren
3fd0328feb
Merge pull request #833 from hedgedoc/docs/develop-cleanup 2021-02-05 19:46:30 +01:00
David Mehren
7ddcfc5b2c
Merge pull request #832 from hedgedoc/doc/apiTags
[Docs] Add api tags to group controller
2021-02-05 19:46:17 +01:00
Philip Molares
88ed1ec8ba Docs: Add api tags to group controller
For a better structure of the autogenerated apidoc website tags are used. Each Controller get it's own tag and will be put in a separate section.

See https://docs.nestjs.com/openapi/operations#tags

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-05 14:13:34 +01:00
David Mehren
d4dcae7d79
Update docs with hint about 2.0 development
Replace the old docs index page with a hint where the (for now) 'real'
docs can be found and that HedgeDoc 2.0 is still in development.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-02-04 21:55:27 +01:00
Philip Molares
24ccb1fcd0 Tests: Rename users.e2e-spec.ts to me.e2e-spec.ts
As users.e2e-spec.ts tests the MeController this commit renames the test appropriately

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-04 21:50:19 +01:00
Philip Molares
1becc9b3d2 Tests: Fix Mock Auth
This makes it possible to create the user before the mock auth guard does it's magic. This is necessary for some test, where we need the user object before the api is called.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-04 21:50:19 +01:00
Philip Molares
10ef4fcee1 History: Add unit and e2e test
Add unit tests for history service
Adapt relevant me e2e tests to work

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-04 21:50:19 +01:00
Philip Molares
7f1afc30c9 History: Add history service and usage
Add history service to allow for CRUD operations.
Use history service in controllers to:
  1. Allow manipulating of history entries
  2. Guaranty the correct existence of history entries

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-04 21:50:19 +01:00
Philip Molares
b76fa91a3c History: Add HistoryEntry
With this the backend now can hold a history entry.
Also included in this commit are some minor changes to tests and services so they can still work.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-04 21:50:14 +01:00
David Mehren
55703e0aec
Delete old docs not relevant for 2.x
Signed-off-by: David Mehren <git@herrmehren.de>
2021-02-04 21:47:04 +01:00
David Mehren
8a65dceef0
Merge pull request #793 from hedgedoc/renovate/lock-file-maintenance
Lock file maintenance
2021-02-04 15:22:59 +01:00
David Mehren
ad8dacd850
Merge pull request #803 from hedgedoc/feature/renovate-all
renovatebot: Configure renovatebot to update 1.x and 2.x branches
2021-02-03 10:59:02 +01:00