Commit graph

3400 commits

Author SHA1 Message Date
David Mehren
0eb2c62f1e
Merge pull request #910 from hedgedoc/fix/exampleEnv 2021-02-16 22:02:02 +01:00
David Mehren
2367e3c31b
Merge pull request #912 from hedgedoc/feature/serverUploads
StaticServe: Fix serving images under uploads/
2021-02-16 21:50:35 +01:00
David Mehren
77f00d961a
Merge pull request #916 from hedgedoc/feature/prefixPublicApi
PublicApi: Add correct prefix
2021-02-16 21:49:54 +01:00
David Mehren
33c1c4bb88
Merge pull request #909 from hedgedoc/feature/media 2021-02-16 21:41:33 +01:00
Philip Molares
604e08df6b Media E2E Tests: Delete uploaded files after test
Remove uploaded files after media e2e tests ran
Remove /uploads/ folder after all media e2e tests ran
This way the uploads folder doesn't grow while working on other e2e tests

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-16 21:23:24 +01:00
Philip Molares
e6c1cc7810 MediaService: Add unit tests
The file test.zip is used to fail the saveFile test with 'MIME Type not supported'

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-16 21:12:23 +01:00
Philip Molares
14ec1ca120 Docs: Add interface documentation for the toolbar
This documentation explains HedgeDoc's toolbar to new users.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-16 20:59:03 +01:00
Philip Molares
3120d2dfb9 MediaService: Add JS-Docs to media service
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-16 20:25:33 +01:00
Philip Molares
bc51b648f7 Config: Fix .env.example file
The old upload path was 'public/uploads'. As there is no public anymore, we should at least keep uploads.
So basically this is a typo fix

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-16 20:25:05 +01:00
Philip Molares
05ac7dc4ae StaticServe: Fix serving images under uploads/
This did not work until now, because path and prefix were swapped.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-16 20:22:49 +01:00
David Mehren
bf60ceea3e
Merge pull request #904 from hedgedoc/renovate/develop-typeorm-0.x
Update dependency typeorm to v0.2.31 (develop)
2021-02-16 20:20:16 +01:00
Philip Molares
73113dc361 PublicApi: Add correct prefix
Using nest-router for this purpose as it is a rather easy addition to our structure. As we don't add the Router to any e2e tests we don't need to change them.

fixes #523

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-16 20:19:45 +01:00
Renovate Bot
d3e6a15eb0
Update dependency typeorm to v0.2.31
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-02-16 19:17:45 +00:00
David Mehren
b09fdd1f93
Merge pull request #913 from hedgedoc/renovate/develop-definitelytyped
Update dependency @types/node to v13.13.42 (develop)
2021-02-16 20:17:15 +01:00
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