Commit graph

4138 commits

Author SHA1 Message Date
David Mehren
ade58e3ca1
Move tsconfig.test.json to test directory
WebStorm does not support typescript.*.json files,
but always uses the nearest tsconfig.json.
Moving the test-specific tsconfig into the test folder allows WebStorm
to use the correct config for the E2E-tests and
stops it from showing unnecessary errors.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:51:57 +02:00
David Mehren
1710b7c00a
Merge pull request #1751 from hedgedoc/fix/privateMediaAPIDoc 2021-10-21 19:40:47 +02:00
David Mehren
5c645b3242
Merge pull request #1760 from hedgedoc/renovate/develop-linters 2021-10-21 19:32:35 +02:00
David Mehren
eff51df526
Merge pull request #1759 from hedgedoc/renovate/develop-test-packages 2021-10-21 19:32:11 +02:00
David Mehren
afdcd8e4af
Merge pull request #1766 from hedgedoc/renovate/develop-ts-node-10.3.x 2021-10-21 19:31:33 +02:00
Renovate Bot
60ecf93551
chore(deps): update linters to v5.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 16:36:48 +00:00
Renovate Bot
8866d9cebe
chore(deps): update dependency jest to v27.3.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 16:36:24 +00:00
Renovate Bot
a85d61b48a
chore(deps): update dependency ts-node to v10.3.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 16:36:05 +00:00
renovate[bot]
06bd588360
fix(deps): update dependency @nestjs/swagger to v5.1.3 (#1765)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 16:34:40 +00:00
renovate[bot]
c5d80f5c89
fix(deps): update dependency @nestjs/swagger to v5.1.2 (#1764)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 13:49:17 +00:00
Yannick Bungers
835acad499
Merge pull request #1752 from hedgedoc/fix/exceptionsAPI 2021-10-19 19:44:02 +02:00
renovate[bot]
b74527d4ac
fix(deps): update dependency @types/minio to v7.0.11 (#1758)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 10:50:36 +00:00
renovate[bot]
4ec3595477
chore(deps): update nestjs packages (#1757)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 09:51:31 +00:00
renovate[bot]
c316d862d1
chore(deps): update dependency ts-jest to v27.0.7 (#1749)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 08:13:56 +00:00
renovate[bot]
d94e37d4dc
chore(deps): update dependency mkdocs-material to v7.3.4 (#1756)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 06:59:37 +00:00
renovate[bot]
1b176bac08
chore(deps): update dependency eslint-plugin-jest to v25.2.2 (#1755)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 04:10:27 +00:00
Yannick Bungers
a2ebd16260 Remove unnecessary exception handling in private notes.controller.ts
and change noteIdOrAlias to Note as parameter

Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-18 22:35:47 +02:00
Yannick Bungers
04dca6aa68 Add API doc for private media API
Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-18 20:20:14 +02:00
Alexandru Văleanu
b3d3015ce7
Add delete media in private API (#1736)
Adds the missing API route of deleting media in the private API.
2021-10-18 20:00:28 +02:00
David Mehren
93844efc6c
Merge pull request #1744 from hedgedoc/renovate/develop-linters 2021-10-16 15:56:29 +02:00
Renovate Bot
a1992f296c
chore(deps): update dependency eslint-plugin-jest to v25.2.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-15 23:09:47 +00:00
renovate[bot]
4546bfdd2c
fix(deps): update dependency cli-color to v2.0.1 (#1746)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-15 23:08:26 +00:00
Yannick Bungers
9d4fc6d7c6
Merge pull request #1735 from hedgedoc/fix-username 2021-10-15 21:37:10 +02:00
renovate[bot]
9a0b31c8ba
chore(deps): update dependency ts-jest to v27.0.6 (#1743)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 23:07:49 +00:00
renovate[bot]
1e63d83448
chore(deps): update dependency @types/node to v14.17.27 (#1742)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 21:22:06 +00:00
renovate[bot]
a21f47f05e
fix(deps): update nestjs packages to v8.1.1 (#1740)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 10:57:32 +00:00
renovate[bot]
398efc24b2
chore(deps): update dependency eslint-plugin-jest to v25.0.6 (#1739)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 09:54:07 +00:00
renovate[bot]
919fce8a85
chore(deps): update dependency eslint to v8.0.1 (#1738)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 05:12:36 +00:00
renovate[bot]
765a0d92de
chore(deps): update dependency @types/node to v14.17.26 (#1734)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 00:15:16 +00:00
renovate[bot]
737d543cf0
chore(deps): pin dependency http-proxy-middleware to 2.0.1 (#1737)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-13 23:02:00 +00:00
Yannick Bungers
325e1893f8 Change createTokenForUser signature
user is now used instead of username

Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-13 22:59:51 +02:00
David Mehren
aa18371915
Merge pull request #1672 from hedgedoc/feature/frontend_proxy 2021-10-13 22:56:17 +02:00
Yannick Bungers
d33cfa4541 fix username spelling from userName
Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-13 22:54:00 +02:00
Yannick Bungers
aa8455a079 change getTokensByUsername to getTokensByUser
Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-13 22:22:08 +02:00
David Mehren
aed28abff5
Cleanup dist folder before starting
For some reason, files from the dist folder get used
for execution even when running with ts-node.
This adds a cleanup step before starting the app.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-13 21:36:39 +02:00
David Mehren
a4749d60f7
Add dev-proxy to frontend dev server
This adds a reverse proxy to the backend, that automatically
redirects requests that are not handled by the backend to the React
dev server running on port 3001.

The reverse proxy is only enabled when NODE_ENV is set to
'development'.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-13 21:36:38 +02:00
Yannick Bungers
e5750b0084
Merge pull request #1673 from hedgedoc/remove-hardcoded 2021-10-13 21:14:33 +02:00
David Mehren
1cf37cc035
Merge pull request #1697 from hedgedoc/renovate/develop-pymdown-extensions-9.x 2021-10-13 21:14:05 +02:00
David Mehren
a25d60a454
Merge pull request #1685 from hedgedoc/renovate/develop-linters 2021-10-13 21:12:20 +02:00
Renovate Bot
296d1e2268
chore(deps): update dependency pymdown-extensions to v9
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-13 18:54:35 +00:00
Yannick Bungers
141b1bf5e8 Add e2e tests for tokens
Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-13 20:54:27 +02:00
Yannick Bungers
276d423ee2 Fix tests with using sessions in e2e tests of private api
Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-13 20:54:27 +02:00
Renovate Bot
cd9f2060f1
chore(deps): update dependency eslint-plugin-import to v2.25.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-13 18:54:17 +00:00
Yannick Bungers
28266bca0b Get user from Session instead of hardcoded value
Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-13 20:52:39 +02:00
David Mehren
3304fc5f88
Merge pull request #1733 from hedgedoc/renovate/develop-typescript-4.4.x 2021-10-13 20:51:49 +02:00
David Mehren
54f0f49452
Merge pull request #1732 from hedgedoc/renovate/develop-mkdocs-1.2.x 2021-10-13 20:48:45 +02:00
Renovate Bot
0dfeacf776
chore(deps): update dependency typescript to v4.4.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-13 18:39:00 +00:00
Renovate Bot
93c3176d2e
chore(deps): update dependency mkdocs to v1.2.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-13 18:37:24 +00:00
David Mehren
d32727aa2f
Merge pull request #1723 from hedgedoc/renovate/develop-major-linters 2021-10-13 20:33:20 +02:00
renovate[bot]
1ec9acc0d9
chore(deps): update dependency @types/node to v14.17.24 (#1731)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-13 17:56:06 +00:00