Renovate Bot
83fdf2dfc4
Update dependency @types/express to v4.17.11
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 22:29:20 +00:00
Renovate Bot
a1acb6eebd
Update dependency sqlite3 to v5.0.1
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-08 15:41:58 +00:00
Renovate Bot
b71be5bca7
Update definitelyTyped
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-07 09:15:51 +00:00
Renovate Bot
3df5e516d7
Update dependency @types/jest to v26
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 23:00:35 +00:00
Renovate Bot
84e99aac6e
Update dependency ts-jest to v26.4.4
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 22:57:36 +00:00
Renovate Bot
157f10ac61
Update dependency file-type to v16
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 22:54:07 +00:00
Renovate Bot
1ecf5def66
Update dependency prettier to v2
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 22:44:29 +00:00
Renovate Bot
3921127c43
Update linters
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 22:25:56 +00:00
Renovate Bot
78e5df4a95
Update dependency typescript to v4
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 22:21:58 +00:00
Renovate Bot
4769a81e9b
Update dependency jest to v26.6.3
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 22:16:28 +00:00
Renovate Bot
c36a3c5374
Update linters
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 22:13:17 +00:00
Renovate Bot
654cd83443
Update dependency ts-node to v9
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 21:51:21 +00:00
Renovate Bot
d726a6c729
Update dependency ts-loader to v8
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 21:46:50 +00:00
Renovate Bot
b161870f2f
Update dependency supertest to v6
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 21:40:56 +00:00
Renovate Bot
4ceeedca65
Update dependency swagger-ui-express to v4.1.6
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 20:25:55 +00:00
Renovate Bot
a928a527df
Update dependency typeorm to v0.2.29
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 20:14:55 +00:00
Renovate Bot
43ba25ae72
Pin dependency class-transformer to 0.3.1
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 20:03:59 +00:00
David Mehren
bdb470e045
Add cli-color dependency, that previously was in @nestjs/common
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-06 20:54:47 +01:00
Renovate Bot
90004bb7a7
Update NestJS packages
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 19:43:16 +00:00
Renovate Bot
abc47ff7da
Update dependency class-transformer to ^0.3.0 [SECURITY]
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 18:38:14 +00:00
David Mehren
8aca83e656
Add coverage analysis to CI workflow
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-06 12:38:33 +01:00
David Mehren
7960776bd1
Add CI workflow
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-05 23:02:12 +01:00
Renovate Bot
4746058765
Pin dependencies
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-05 22:12:43 +00:00
David Mehren
15db6a9b2a
Use useStaticAssets
instead of @nestjs/serve-static
...
`serve-static` does not work with `createTestingModule` and is not recommended when "just" serving a few images.
See https://github.com/nestjs/serve-static/issues/240
Signed-off-by: David Mehren <git@herrmehren.de>
2020-10-24 11:32:23 +02:00
David Mehren
9b3345fa13
Use serve-static
to serve uploaded files.
...
Add `@nestjs/serve-static` to serve uploaded media from the upload directory on the local filesystem.
Signed-off-by: David Mehren <git@herrmehren.de>
2020-10-16 22:38:31 +02:00
David Mehren
c0cbcc863a
Add MediaService
...
This service is responsible for operations regarding uploaded media. It should perform save, get and delete operations with the configured backend.
The service also checks, if the mime type of the uploaded media is allowed.
Signed-off-by: David Mehren <git@herrmehren.de>
2020-10-16 22:35:53 +02:00
David Mehren
95a809f0a3
Collect coverage information for E2E tests
...
As proposed in https://github.com/nestjs/nest/issues/3169#issuecomment-588287478
Signed-off-by: David Mehren <git@herrmehren.de>
2020-10-03 18:00:12 +02:00
David Mehren
93cf9c2c56
NotesController: Use custom logic to access raw markdown
...
NestJS does not support content-types other than application/json.
Therefore we need to directly access the request object to get the raw body content.
Signed-off-by: David Mehren <git@herrmehren.de>
2020-09-19 14:51:12 +02:00
David Mehren
a59eb506e1
Do not automatically fix linting problems
...
Signed-off-by: David Mehren <git@herrmehren.de>
2020-08-21 21:45:53 +02:00
David Mehren
6bee3b16cf
Add Session entity
...
This entity implements the Session interface from connect-typeorm, which we will later use to store session data from express-session.
Signed-off-by: David Mehren <git@herrmehren.de>
2020-08-13 20:25:43 +02:00
David Mehren
1906f44e74
Enable automatic OpenAPI spec generation.
...
NestJS can automatically generate an OpenAPI spec by analyzing controllers and used DTOs.
This commit enables this feature. The API docs are served under /apidoc.
Signed-off-by: David Mehren <git@herrmehren.de>
2020-07-26 16:53:43 +02:00
David Mehren
69afdd3b05
Add NoteModule
...
This contains the module, a model which was adapted from the old code and two DTOs.
Signed-off-by: David Mehren <git@herrmehren.de>
2020-07-25 20:24:59 +02:00
David Mehren
774f9cd8a3
Add TypeORM support
...
Signed-off-by: David Mehren <git@herrmehren.de>
2020-07-24 21:50:30 +02:00
David Mehren
e53a8648b4
Add empty NestJS application
...
Signed-off-by: David Mehren <git@herrmehren.de>
2020-07-21 21:24:56 +02:00
David Mehren
d6d4f35cf5
Import meta-files
...
These files are imported from HedgeDoc 1 / the master branch.
Signed-off-by: David Mehren <git@herrmehren.de>
2022-01-23 22:02:58 +01:00