Yannick Bungers
de56380cf3
Merge pull request #1208 from hedgedoc/renovate/develop-rxjs-7.x
...
Update dependency rxjs to v7 (develop)
2021-05-01 14:20:09 +02:00
Renovate Bot
0af997ada1
Update dependency rxjs to v7
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-30 18:53:59 +00:00
Renovate Bot
1a99cdccab
Pin dependency @tsconfig/node12 to 1.0.7
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-30 18:53:44 +00:00
Yannick Bungers
bb9a6d7028
Merge pull request #1209 from hedgedoc/maintenance/ts_base_config
...
Use Node 12 TypeScript base config
2021-04-30 20:24:01 +02:00
David Mehren
5e61de9bd5
Use node12 TypeScript base config
...
TypeScript recommends using a base config from https://github.com/tsconfig/bases .
Using this config reduces compile times by ~30%
and the size of the dist folder by ~45%.
It also enables the recommended `esModuleInterop` option,
which necessitated some changes to imports.
See also https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#support-for-import-d-from-cjs-from-commonjs-modules-with---esmoduleinterop
Signed-off-by: David Mehren <git@herrmehren.de>
2021-04-29 22:55:01 +02:00
Yannick Bungers
9f72028203
Merge pull request #1197 from hedgedoc/renovate/develop-lock-file-maintenance
...
Lock file maintenance (develop)
2021-04-29 16:54:44 +02:00
Renovate Bot
7a988e8652
Lock file maintenance
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-29 14:49:27 +00:00
Yannick Bungers
14708e3bbd
Merge pull request #1198 from hedgedoc/renovate/develop-linters
...
Update dependency eslint-plugin-jest to v24.3.6 (develop)
2021-04-29 16:48:16 +02:00
Philip Molares
55356f36a9
[Project] Add seed script
...
This script invokes src/seed.ts to create a sqlite DB. The DB already contains some objects to manual test with. This ensures that devs easily can spin up a test instance of HedgeDoc and don't need to fumble around with the DB file.
See https://github.com/typeorm/typeorm#creating-a-connection-to-the-database
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-29 14:31:07 +02:00
Philip Molares
265f3095e4
FrontendConfig: Fix unit test
...
Emulate the behaviour of the new app config: If renderOrigin is undefined instead use domain.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-27 23:33:13 +02:00
Philip Molares
8bf5aa77e3
AppConfig: Move default for rendererOrigin to config file
...
As we only use rendererOrigin in the frontend config service, where domain will be used if it is not defined, it makes more sense to move this default behavior to the app config directly. That makes it easier to understand what this variable contains and that it defaults to domain.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-27 23:08:22 +02:00
Renovate Bot
42a627b464
Update dependency eslint-plugin-jest to v24.3.6
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-27 20:32:19 +00:00
Yannick Bungers
57ad615e6f
Merge pull request #1200 from hedgedoc/renovate/develop-definitelytyped
...
Update definitelyTyped (develop)
2021-04-27 22:31:17 +02:00
Renovate Bot
5bb0600378
Update definitelyTyped
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-27 14:46:56 +00:00
David Mehren
d830052dd7
Merge pull request #1194 from hedgedoc/readme/logo
...
README: Replace HedgeDoc header with logo
2021-04-26 22:42:20 +02:00
Philip Molares
7f676508d1
README: Replace HedgeDoc header with logo
...
We have such a lovely logo we should use it on our user-facing README.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-25 23:05:02 +02:00
David Mehren
6129f21ddc
Merge pull request #1187 from hedgedoc/improvement/remove-banner-from-frontend-config
2021-04-25 21:32:16 +02:00
Tilman Vatteroth
1f626465fb
Remove banner from frontend config
...
NestJS adds the headers "Last Modified" and "ETag" to asset serving responses.
Therefore all the information we need for the banner are already given by the
file content or the file meta data.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-04-25 21:27:42 +02:00
Tilman Vatteroth
af106fdf50
Add serving of static assets under the relative URL '/public'
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-04-25 21:27:36 +02:00
David Mehren
f738e2cb1a
Merge pull request #1177 from hedgedoc/renovate/develop-mkdocs-material-7.x
...
Update dependency mkdocs-material to v7.1.3 (develop)
2021-04-25 21:23:57 +02:00
Renovate Bot
4f6a8a1e33
Update dependency mkdocs-material to v7.1.3
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-25 19:19:36 +00:00
David Mehren
a1fd695eb7
Merge pull request #1184 from hedgedoc/gitignore/env
...
Gitignore: Add .env
2021-04-25 21:17:14 +02:00
David Mehren
2e3b5cbaf0
Merge pull request #1175 from hedgedoc/renovate/develop-linters
...
Update linters (develop)
2021-04-25 21:16:51 +02:00
David Mehren
8997dc1797
Merge pull request #1178 from hedgedoc/renovate/develop-ts-loader-9.x
2021-04-25 21:15:52 +02:00
David Mehren
0e5552de4d
Merge pull request #1190 from hedgedoc/docs/fixMkdocsLink
...
Docs: Fix mkdocs link
2021-04-25 21:14:45 +02:00
Yannick Bungers
5423a7396a
Merge pull request #1186 from hedgedoc/reuse/licenseTypo
...
Reuse: Fix typo in HedgeDoc Icon Usage Guidelines
2021-04-25 21:14:29 +02:00
Philip Molares
902038106a
Gitignore: Add .env
...
Because the new config is done via the file `.env`, it should not be possible to include it in the git repository.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-25 21:12:49 +02:00
Philip Molares
be199dc490
Reuse: Fix typo in HedgeDoc Icon Usage Guidelines
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-25 21:09:53 +02:00
Yannick Bungers
0bad4827bf
Merge pull request #1179 from hedgedoc/util/replaceNull
2021-04-25 21:03:45 +02:00
Philip Molares
96fdc15401
Docs: Fix mkdocs link
...
The link that was included in the reference was surrounded by paranthesis and therefore faulty.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-25 20:57:13 +02:00
David Mehren
84afd48650
Merge pull request #1185 from hedgedoc/docs/darkTheme
2021-04-25 20:56:51 +02:00
Philip Molares
1dfe84be1c
Reuse: Add license information for dark mode logos
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-25 12:54:29 +02:00
Philip Molares
a15722b864
Documentation: Add toggleable dark theme
...
The dark theme is mostly built on top of the mkdocs slate theme.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Co-Authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
(cherry picked from commit 60251d89ee
)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-25 12:50:02 +02:00
Philip Molares
38ab6dc27b
NotesE2ETest: Changed test for title and description
...
They should not return null and that's correctly tested now.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-24 21:33:47 +02:00
Philip Molares
841ad8428d
Services: Use replaceNullWithEmptyString
...
Add the helper method replaceNullWithEmptyString to the services, where it is needed.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-24 21:22:31 +02:00
Renovate Bot
fceb413929
Update linters
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-24 15:33:20 +00:00
Renovate Bot
a164bd889c
Update dependency ts-loader to v9.1.1
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-24 11:22:22 +00:00
Philip Molares
75466c5202
PrivateApi: Add CORS-Header for rendererOrigin
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-22 23:34:51 +02:00
Philip Molares
526ee6e506
PrivateApi: Serve under /api/private
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-22 23:34:51 +02:00
Yannick Bungers
0c2900d1c0
Merge pull request #1094 from hedgedoc/notes/deleteMedia
2021-04-22 23:18:56 +02:00
David Mehren
c9ad3ad153
Merge pull request #1168 from hedgedoc/maintenance/develop/node_16
...
CI: Run tests with Node.js 16 [develop]
2021-04-22 23:14:09 +02:00
Philip Molares
1f897636bb
PublicApi: Add option to keep media to DELETE /notes/{note}
...
This adds a body to the route DELETE /notes/{note} of the public api to specify if the associated media uploads of the note should be kept or deleted.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-22 23:13:13 +02:00
Philip Molares
6ac267a226
PrivateApi: Add option to keep media to DELETE /notes/{note}
...
This adds a body to the route DELETE /notes/{note} of the private api to specify if the associated media uploads of the note should be kept or deleted.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-22 23:13:13 +02:00
Philip Molares
c29ce7eed5
MediaService: Add removeNoteFromMediaUpload method
...
This method replaces the associated note of a media upload with null.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-22 23:13:13 +02:00
Philip Molares
e7c9a214df
MediaUpload: Make note nullable
...
As it is possible to delete a note without also deleting the associated media uploads this needs to changed in the media upload entity, too.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-22 23:13:10 +02:00
Philip Molares
17b442aff1
Notes: Add NoteMediaDeletionDto
...
This is used to specify if the media uploads should be kept or deleted, when deleting a note.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-22 23:12:46 +02:00
David Mehren
87e0ca54e1
Merge pull request #1164 from hedgedoc/fix/revision
...
RevisionsService: Add missing awaits
2021-04-22 22:50:44 +02:00
David Mehren
d0aa73dfb3
Merge pull request #1170 from hedgedoc/fix/fs_backend_logging
...
FilesystemBackend: Fix functionContext logging
2021-04-22 22:45:38 +02:00
David Mehren
5b77cb068c
Merge pull request #1165 from hedgedoc/renovate/develop-ts-loader-9.x
...
Update dependency ts-loader to v9.1.0 (develop)
2021-04-22 22:44:36 +02:00
Yannick Bungers
18dafc35f4
Merge pull request #1171 from hedgedoc/fix/mockLoglevel
...
AppConfigMock: Use correct loglevel
2021-04-22 22:44:29 +02:00