Commit graph

4149 commits

Author SHA1 Message Date
David Mehren
5a47f208b4
Merge pull request #1599 from hedgedoc/renovate/develop-major-linters
chore(deps): update dependency eslint-plugin-prettier to v4 (develop)
2021-09-04 20:12:26 +02:00
David Mehren
1f017b33f2
Merge pull request #1598 from hedgedoc/renovate/develop-linters
chore(deps): update linters to v4.30.0 (develop) (minor)
2021-09-04 20:11:48 +02:00
Renovate Bot
bcdd42251b
chore(deps): update dependency eslint-plugin-prettier to v4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-09-04 17:19:26 +00:00
Renovate Bot
defb2522df
chore(deps): update linters to v4.30.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-09-04 17:19:14 +00:00
David Mehren
83c36ee3f9
Merge pull request #1588 from hedgedoc/enhancement/requestuser_decorator
Introduce RequestUser decorator
2021-09-04 18:40:03 +02:00
Philip Molares
c22727dad7 refactor: move TokenAuthGuard in the same file as TokenStrategy
This should help to make clear why code is executed when the TokenAuthGuard is encountered by a request. Currently, one has to connect both files via the string 'token', which is a bit cryptic

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-09-04 18:09:17 +02:00
David Mehren
dc6d9dfc20
Merge pull request #1612 from hedgedoc/fix-toAuthTokenDtoTest
Fix copy paste error in auth toAuthTokenDto test
2021-09-04 17:12:06 +02:00
David Mehren
ba2e4b0e3a
Public API: Introduce RequestUser decorator
This introduces the `RequestUser` decorator
to extract the `User` from a request.

It reduces code duplication across the public API
and allows us to drop the override of the `Request` type from express.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-04 17:05:38 +02:00
Yannick Bungers
9c7ab01016 Fix copy paste error in auth toAuthTokenDto test
Add an hour difference between createdAt and validUntil to better detect
these errors.

Signed-off-by: Yannick Bungers <git@innay.de>
2021-09-03 19:19:55 +02:00
renovate[bot]
1a6e525446
chore(deps): update dependency mkdocs-material to v7.2.6 (#1606)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-01 22:18:35 +00:00
renovate[bot]
5dd0d21069
chore(deps): update dependency @types/node to v14.17.14 (#1603)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-01 00:40:16 +00:00
renovate[bot]
9b3f021a0b
chore(deps): update dependency @types/node to v14.17.13 (#1601)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-31 19:05:45 +00:00
renovate[bot]
99913acb8e
chore(deps): lock file maintenance (#1597)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-30 02:35:31 +00:00
David Mehren
664488e822
Merge pull request #1591 from hedgedoc/renovate/develop-pin-dependencies
chore(deps): pin dependency @trivago/prettier-plugin-sort-imports to 2.0.4 (develop)
2021-08-29 22:46:58 +02:00
David Mehren
bc04200f13
Merge pull request #1592 from hedgedoc/renovate/develop-linters
chore(deps): pin dependency eslint-plugin-prettier to 3.4.1 (develop)
2021-08-29 22:46:45 +02:00
Renovate Bot
de9e12e472
chore(deps): pin dependency eslint-plugin-prettier to 3.4.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-08-29 19:44:51 +00:00
Renovate Bot
d9c983d423
chore(deps): pin dependency @trivago/prettier-plugin-sort-imports to 2.0.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-08-29 19:44:38 +00:00
Yannick Bungers
d92b39eae2
Merge pull request #1590 from hedgedoc/chore/sort_imports 2021-08-29 21:16:00 +02:00
David Mehren
502b1b3202
Merge pull request #1573 from hedgedoc/renovate/develop-tsconfig-paths-3.x
chore(deps): update dependency tsconfig-paths to v3.11.0 (develop)
2021-08-29 20:09:06 +02:00
David Mehren
de56f962d3
Run prettier format checks in ESLint
This enables the prettier ESLint plugin.
In contrast to the prettier ESLint config (which is already enabled),
the plugin also runs checks against prettiers format rules
as part of ESLint.
This enables instant feedback in the editor,
when code violates the format rules and allows for quick-fix actions.

See also https://github.com/prettier/eslint-plugin-prettier#recommended-configuration

Signed-off-by: David Mehren <git@herrmehren.de>
2021-08-29 19:54:56 +02:00
David Mehren
3658204acb
Cleanup some imports
Signed-off-by: David Mehren <git@herrmehren.de>
2021-08-29 18:57:00 +02:00
David Mehren
bcc9ec9c75
Enforce import order with prettier
Signed-off-by: David Mehren <git@herrmehren.de>
2021-08-29 18:45:46 +02:00
David Mehren
68f1b2c703
Setup prettier plugin to sort imports
Signed-off-by: David Mehren <git@herrmehren.de>
2021-08-29 18:45:06 +02:00
Renovate Bot
1c777f42dd
chore(deps): update dependency tsconfig-paths to v3.11.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-08-29 14:11:47 +00:00
David Mehren
abdf28896c
Merge pull request #1585 from hedgedoc/renovate/develop-typescript-4.x
chore(deps): update dependency typescript to v4.4.2 (develop)
2021-08-29 16:10:45 +02:00
Renovate Bot
4e14d7789f
chore(deps): update dependency typescript to v4.4.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-08-29 13:48:58 +00:00
David Mehren
72e4253fc7
Merge pull request #1586 from hedgedoc/renovate/develop-test-packages
chore(deps): update dependency jest to v27.1.0 (develop)
2021-08-29 15:47:39 +02:00
Renovate Bot
bb7fd395d2
chore(deps): update dependency jest to v27.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-08-27 12:25:08 +00:00
renovate[bot]
d56e9369a6
fix(deps): update dependency @types/minio to v7.0.10 (#1581)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-26 10:06:09 +00:00
renovate[bot]
9defdf71b6
chore(deps): update dependency @types/node to v14.17.12 (#1579)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-26 03:09:55 +00:00
renovate[bot]
8681841fa8
chore(deps): update dependency mkdocs-material to v7.2.5 (#1577)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-25 08:56:08 +00:00
renovate[bot]
7e0f3d1006
chore(deps): update dependency eslint-plugin-import to v2.24.2 (#1575)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-25 02:27:59 +00:00
renovate[bot]
d4a45783ae
chore(deps): update linters to v4.29.3 (#1572)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-23 19:01:13 +00:00
renovate[bot]
09e7e215e9
chore(deps): update dependency @nestjs/schematics to v8.0.3 (#1569)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-23 09:39:11 +00:00
renovate[bot]
b347443738
chore(deps): update dependency @types/node to v14.17.11 (#1567)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-21 03:44:45 +00:00
renovate[bot]
bdf97ce24b
fix(deps): update dependency minio to v7.0.19 (#1565)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-20 02:44:58 +00:00
renovate[bot]
bb8aa80875
chore(deps): update dependency eslint-plugin-import to v2.24.1 (#1564)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-19 23:32:21 +00:00
David Mehren
edfaf1e25d
Port over PR template from master
Signed-off-by: David Mehren <git@herrmehren.de>
2021-08-19 19:55:09 +02:00
renovate[bot]
655dcae383
chore(deps): update dependency @types/node to v14.17.10 (#1560)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-19 00:30:29 +00:00
renovate[bot]
dbfc251cb4
chore(deps): update dependency ts-node to v10.2.1 (#1558)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-18 19:19:06 +00:00
renovate[bot]
b29ab38674
chore(deps): update dependency supertest to v6.1.6 (#1557)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-18 00:16:13 +00:00
renovate[bot]
6901162a92
chore(deps): update dependency ts-jest to v27.0.5 (#1553)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-17 11:03:59 +00:00
renovate[bot]
370315b9df
chore(deps): update linters to v4.29.2 (#1552)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-16 19:19:15 +00:00
renovate[bot]
884df26064
chore(deps): lock file maintenance (#1550)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-16 03:30:02 +00:00
David Mehren
a7835cb8ab
Merge pull request #1526 from hedgedoc/renovate/develop-major-test-packages
chore(deps): update dependency @types/jest to v27 (develop)
2021-08-14 12:11:51 +02:00
Renovate Bot
36c9bd24ef
chore(deps): update dependency @types/jest to v27
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-08-13 09:08:16 +00:00
renovate[bot]
217e9d4d98
fix(deps): update dependency typeorm to v0.2.37 (#1534)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-13 09:07:04 +00:00
renovate[bot]
ac3ee895f1
chore(deps): update dependency mkdocs-material to v7.2.4 (#1529)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-11 22:21:33 +00:00
renovate[bot]
8a48912bb8
chore(deps): update dependency supertest to v6.1.5 (#1527)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-11 20:28:02 +00:00
David Mehren
69315ec651
Merge pull request #1188 from hedgedoc/docs/configuration
Docs: Add configuration documentation
2021-08-10 09:08:56 +02:00