Commit graph

1047 commits

Author SHA1 Message Date
renovate[bot]
118f158ad1 fix(deps): update dependency ws to v8.14.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-08 16:58:06 +00:00
renovate[bot]
45cd9fc2b1 chore(deps): update dependency user-agent-data-types to v0.4.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-08 18:15:21 +02:00
renovate[bot]
ff5993b84f fix(deps): update dependency i18next to v23.5.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-08 18:10:34 +02:00
renovate[bot]
48ab123f71 fix(deps): update dependency ws to v8.14.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-08 17:38:47 +02:00
renovate[bot]
4ef57ac007 chore(deps): update dependency @codemirror/view to v6.18.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-08 17:38:25 +02:00
renovate[bot]
cabbf9cb13 chore(deps): update typescript-eslint monorepo to v6.6.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-08 17:37:15 +02:00
Tilman Vatteroth
8a745f3f32 fix: improve deep partial type used in tests
The deep partial type from redux had the problem that it could only be applied to records. This caused problems with primitive types and arrays.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-07 21:25:56 +02:00
Tilman Vatteroth
6263af5ee2 fix: use npm tasks instead of running turbo directly
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-07 20:57:00 +02:00
renovate[bot]
afc9c0fd51 chore(deps): update node.js to c843f4a
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-06 03:57:51 +00:00
renovate[bot]
f96a7035c0 chore(deps): update dependency @testing-library/jest-dom to v6.1.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-06 03:56:37 +00:00
renovate[bot]
1b4b4cfdc8 chore(deps): update node.js to a931961
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-06 00:26:28 +00:00
renovate[bot]
ebb8a7c344 fix(deps): update dependency luxon to v3.4.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-05 19:01:34 +00:00
renovate[bot]
c6f778c7a3 fix(deps): update dependency i18next to v23.4.9
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-05 18:53:57 +00:00
renovate[bot]
b73ed92684 fix(deps): update dependency i18next to v23.4.8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-05 16:42:03 +00:00
Philip Molares
012e6c3649 ci: add coverage for the frontend
fixes #2945

Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-09-05 18:09:45 +02:00
renovate[bot]
8d1d11e151 fix(deps): update dependency i18next to v23.4.7
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-05 16:07:27 +00:00
Erik Michelson
ad80b444ff refactor(tests): add test utils for mocking common things
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-09-05 13:05:27 +02:00
Tilman Vatteroth
b3fb1bbf30 fix: extract app bar into layout slot
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-05 12:41:26 +02:00
Tilman Vatteroth
7f5fd18e38 Revert "fix: replace class BaseUrlFromEnvExtractor"
This reverts commit 59bca4a81f.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-04 09:14:29 +02:00
Tilman Vatteroth
e3c82672cb fix: specify environment in dotenv calls
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-03 22:00:34 +02:00
Tilman Vatteroth
982bc4ba59 fix(frontend): replace expected-origin-boundary with middleware
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-03 22:00:34 +02:00
Tilman Vatteroth
94cf510736 feat(frontend): colorize terminal output of logger
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-03 22:00:34 +02:00
Tilman Vatteroth
1f0439b618 fix(frontend): move mock api files instead of removing
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-03 22:00:34 +02:00
Tilman Vatteroth
59bca4a81f fix: replace class BaseUrlFromEnvExtractor
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-03 22:00:34 +02:00
Tilman Vatteroth
8602645bea feat: migrate frontend app to nextjs app router
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-03 22:00:34 +02:00
Tilman Vatteroth
5b5dabc84e fix: increase type safety of local storage settings
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-03 22:00:34 +02:00
Tilman Vatteroth
e0dcc525fb feat: add FireFox ESR to production browserslist
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-03 22:00:34 +02:00
Tilman Vatteroth
46e1b7471d refactor: rename isMac to isAppleDevice
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-03 22:00:34 +02:00
renovate[bot]
d8a5ef3448 fix(deps): update dependency react-i18next to v13.2.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-03 06:49:39 +00:00
renovate[bot]
fb244a12dd chore(deps): update dependency @types/node to v20.5.9
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-02 23:31:27 +00:00
renovate[bot]
3488fc13bf chore(deps): update dependency cypress to v13
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-02 16:01:24 +02:00
renovate[bot]
075170f4b6 fix(deps): update dependency @uiw/react-codemirror to v4.21.13
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-02 12:06:21 +00:00
renovate[bot]
33d8b18902 chore(deps): update definitelytyped
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-02 12:01:44 +00:00
renovate[bot]
019a258d60 chore(deps): update typescript-eslint monorepo to v6.5.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-02 12:57:02 +02:00
renovate[bot]
164478ef8d chore(deps): update dependency @codemirror/view to v6.17.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-02 12:55:30 +02:00
renovate[bot]
fc6855c651 fix(deps): update dependency @uiw/react-codemirror to v4.21.12
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-29 20:16:32 +00:00
renovate[bot]
81465126fc fix(deps): update dependency react-i18next to v13.2.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-29 17:26:59 +00:00
renovate[bot]
be8336bd60 chore(deps): update dependency prettier to v3.0.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-29 14:41:53 +00:00
renovate[bot]
869ed90d4c chore(deps): update dependency @types/node to v20.5.7
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-28 02:54:09 +00:00
Tilman Vatteroth
4cb332622a feat(frontend): add build script
The build script prepares the package for a production build, builds the app, places every all needed files in a dist directory and cleans it.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-27 12:42:40 +02:00
Tilman Vatteroth
7b3c217470 fix(frontend): remove unused handler
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-27 12:42:40 +02:00
renovate[bot]
a49f119e66 fix(deps): update dependency luxon to v3.4.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-26 18:47:48 +00:00
renovate[bot]
8eb023d1dc chore(deps): update dependency @types/markdown-it to v13.0.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-26 17:33:36 +00:00
Tilman Vatteroth
ffe48f2fd2 fix(markdown-it-plugins): migrate imported files
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-26 15:30:30 +02:00
Tilman Vatteroth
1d90013344 fix(html-to-react): migrate imported files
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-26 15:07:49 +02:00
renovate[bot]
5dc6526278 chore(deps): update codemirror
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-26 12:25:38 +00:00
renovate[bot]
dbbb93801a chore(deps): update dependency typescript to v5.2.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-26 11:40:09 +02:00
renovate[bot]
b6a13439f8 chore(deps): update yarn to v3.6.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-26 09:31:55 +00:00
renovate[bot]
29cbff9975 fix(deps): update dependency @uiw/react-codemirror to v4.21.11
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-26 09:22:25 +00:00
renovate[bot]
1a581839fb chore(deps): update dependency eslint to v8.48.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-26 11:00:35 +02:00
renovate[bot]
d23779d78e fix(deps): update dependency mermaid to v10.4.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-26 10:59:58 +02:00
renovate[bot]
bff7bfb86b fix(deps): update dependency i18next to v23.4.6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-26 05:09:28 +00:00
renovate[bot]
77cffeb688 fix(deps): update dependency @uiw/react-codemirror to v4.21.10
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-26 05:05:42 +00:00
renovate[bot]
6024179059 chore(deps): update test packages to v29.6.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-26 00:36:32 +00:00
renovate[bot]
10f14382f4 chore(deps): update dependency @types/node to v20.5.6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-26 00:32:45 +00:00
renovate[bot]
fbf8067468 fix(deps): update dependency react-i18next to v13.2.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-25 19:56:09 +02:00
renovate[bot]
670094a6ce chore(deps): update dependency eslint-plugin-testing-library to v6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-25 19:55:51 +02:00
renovate[bot]
cdd0c0e0b8 chore(deps): update dependency @testing-library/jest-dom to v6.1.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-25 19:55:35 +02:00
renovate[bot]
725fe18bd3 fix(deps): update dependency luxon to v3.4.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-22 23:20:21 +00:00
renovate[bot]
a25deee4f7 fix(deps): update dependency i18next to v23.4.5
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-22 23:17:04 +00:00
renovate[bot]
e83f647313 chore(deps): update definitelytyped
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-22 21:12:14 +00:00
renovate[bot]
29001fb3b8 chore(deps): update dependency @types/jest to v29.5.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-22 21:11:29 +00:00
renovate[bot]
f40178acf8 chore(deps): update dependency @types/node to v20.5.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-22 12:16:05 +00:00
renovate[bot]
85ba87efcc chore(deps): update typescript-eslint monorepo to v6.4.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-21 17:37:43 +00:00
renovate[bot]
f27b2264f0 chore(deps): update test packages to v29.6.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-21 17:37:10 +00:00
Tilman Vatteroth
9e44f2b26c fix: replace exclamation mark in application error alert with SVG to ensure sizing and position
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-20 20:08:27 +02:00
renovate[bot]
1f05cee725 chore(deps): update linters
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-19 13:54:06 +00:00
renovate[bot]
1a4e234494 chore(deps): update yarn to v3.6.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-19 09:39:51 +00:00
renovate[bot]
aeaabe0d8d chore(deps): update nextjs monorepo to v13.4.19
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-19 09:39:20 +00:00
renovate[bot]
942e3f1b7a chore(deps): update dependency @testing-library/jest-dom to v6.0.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-19 09:28:04 +00:00
renovate[bot]
7d23cd16e1 chore(deps): update dependency @types/node to v20.5.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-19 11:08:19 +02:00
renovate[bot]
e915624d6e chore(deps): update dependency @codemirror/language to v6.9.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-19 11:08:02 +02:00
renovate[bot]
c0b4e25280 fix(deps): update dependency sass to v1.66.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-19 11:06:39 +02:00
renovate[bot]
8d59dd96c7 chore(deps): update dependency eslint-config-next to v13.4.18
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-18 02:02:32 +00:00
renovate[bot]
1aa3b71964 chore(deps): update nextjs monorepo to v13.4.17
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-17 10:07:43 +00:00
renovate[bot]
53b220dfd2 chore(deps): update dependency eslint-config-next to v13.4.17
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-17 10:06:41 +00:00
renovate[bot]
2fc5f72213 chore(deps): update node.js to f62abc0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-16 06:19:12 +00:00
renovate[bot]
f56108cf42 chore(deps): update dependency cypress to v12.17.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-15 20:41:58 +00:00
renovate[bot]
1d31a1b11f chore(deps): update dependency prettier to v3.0.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-15 20:16:09 +00:00
renovate[bot]
ea66dd575a fix(deps): update dependency sharp to v0.32.5
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-15 20:08:15 +00:00
renovate[bot]
2491ac9236 fix(deps): update dependency @svgr/webpack to v8.1.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-15 21:44:03 +02:00
renovate[bot]
36160a78ea chore(deps): update typescript-eslint monorepo to v6.4.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-15 21:24:16 +02:00
renovate[bot]
4005263584 chore(deps): update nextjs monorepo to v13.4.16
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-15 03:34:37 +00:00
renovate[bot]
21d34960f5 chore(deps): update dependency eslint-config-next to v13.4.16
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-15 02:28:52 +00:00
renovate[bot]
1f95ae22b2 chore(deps): update nextjs monorepo to v13.4.15
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-14 19:54:13 +00:00
renovate[bot]
1cc485d319 chore(deps): update dependency eslint-config-next to v13.4.15
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-14 19:53:28 +00:00
Tilman Vatteroth
8bc167239c refactor: use application error alert in flowchart
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-13 20:56:38 +02:00
Tilman Vatteroth
cdd368bc81 refactor: use application error alert in abc-frame
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-13 20:56:38 +02:00
Tilman Vatteroth
cb38d5dedf refactor: use application error alert in vega-lite-chart
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-13 20:56:38 +02:00
Tilman Vatteroth
9cf450a622 refactor: use application error alert in mermaid-chart
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-13 20:56:38 +02:00
Tilman Vatteroth
2c4d688abd refactor: use application error alert in katex-frame
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-13 20:56:38 +02:00
Tilman Vatteroth
6f0adfd717 refactor: use application error alert in graphviz-frame
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-13 20:56:38 +02:00
Tilman Vatteroth
804a36bdf3 fix(frontend): fix test configuration due to breaking change
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-13 20:55:10 +02:00
renovate[bot]
b40c31168d chore(deps): update dependency @testing-library/jest-dom to v6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-13 20:55:10 +02:00
Tilman Vatteroth
dccd58f0c1 fix: remove subpath support for HD_BASE_URL
With this commit we drop the subpath support which results in the constraint that HedgeDoc must always run on the root of a domain. This makes a lot of things in testing, rendering and security much easier.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-13 20:38:53 +02:00
renovate[bot]
41b0deba19 chore(deps): update dependency eslint to v8.47.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-12 11:05:01 +02:00
renovate[bot]
8dccd4ca7b chore(deps): update dependency @types/node to v20.4.10
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-11 20:42:15 +00:00
renovate[bot]
9f1233e8cb fix(deps): update dependency react-i18next to v13.1.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-11 17:27:48 +00:00
renovate[bot]
f247b2d6ed fix(deps): update dependency react-i18next to v13.1.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-11 15:52:08 +02:00
renovate[bot]
41165a2f05 fix(deps): update dependency sass to v1.65.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-11 15:51:46 +02:00