Commit graph

475 commits

Author SHA1 Message Date
Tilman Vatteroth
e93607c96e
Move toolbar functionality from redux to codemirror dispatch (#2083)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-06-07 23:10:49 +00:00
Tilman Vatteroth
4d63a5ce2a
Add ESLint plugin for Jest (#2098)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-06-05 12:20:31 +02:00
Tilman Vatteroth
f0ea971baa
Add tooltip to user avatar (#2080)
Co-authored-by: Philip Molares <philip.molares@udo.edu
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-06-04 16:50:13 +02:00
Tilman Vatteroth
c868b3649d
Connect online-entries in sidebar with to redux (#2081)
Co-authored-by: Philip Molares <philip.molares@udo.edu
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Philip Molares <philip.molares@udo.edu
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-06-04 16:49:56 +02:00
Philip Molares
5de4afc9fc test: add tests for translated-internal-link
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-05-31 23:12:33 +02:00
Philip Molares
055bb6fcfd test: add tests for translated-external-link
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-05-31 23:12:33 +02:00
Philip Molares
857f808893 test: add tests for translated-icon-button
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-05-31 23:12:33 +02:00
Philip Molares
5025d50e9e test: add tests for internal-link
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-05-31 23:12:33 +02:00
Philip Molares
572f200c99 test: add tests for external-link
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-05-31 23:12:33 +02:00
Philip Molares
310b908e2d test: add tests for fork-awesome-icon and fork-awesome-stack
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-05-31 23:12:33 +02:00
Philip Molares
098344ebb7 test: add tests for icon-button
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-05-31 23:12:33 +02:00
Philip Molares
d3c133ced3 test: add tests for user-avatar
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-05-31 23:12:33 +02:00
Philip Molares
f557901944 test: add tests for show-if
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-05-31 23:12:33 +02:00
Tilman Vatteroth
f328681c0f Fix language detection in code mirror code blocks
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-22 21:33:13 +02:00
Tilman Vatteroth
ddea0edbf8 Fix mock restoring in abc frame test
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-22 21:33:13 +02:00
Tilman Vatteroth
880e542351
Add note loading boundary (#2040)
* Remove redundant equal value

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Add NoteLoadingBoundary to fetch note from API before rendering

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Improve debug message for setHandler

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Add test for boundary

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Use common error page for note loading errors

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Fix tests

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Format code

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Add missing snapshot

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Reformat code

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-11 12:47:58 +02:00
Tilman Vatteroth
0419113d36 Rename date prop in UI-Notification
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-10 21:12:05 +02:00
Tilman Vatteroth
5163cccca4 Replace Luxon DateTime with number in ui-notification redux state
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-10 21:12:05 +02:00
Tilman Vatteroth
0d30b599d8 Replace Luxon DateTime with number in redux state
Luxon DateTimes are not serializable for redux. Therefore redux throws errors.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-10 21:12:05 +02:00
Tilman Vatteroth
0d325b5e3b Prevent react hydration error
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-10 21:12:05 +02:00
Tilman Vatteroth
bbd628c81b Use correct method to set i18n into debug mode
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-10 21:12:05 +02:00
Tilman Vatteroth
9b69914b60 Extract code highlighting from async call
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-07 18:42:22 +02:00
Tilman Vatteroth
3c81d34f20 Read custom delay only in dev or test mode
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-06 21:42:06 +02:00
Tilman Vatteroth
1a18f3fc6f Accept url parameter for custom delay
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-06 21:42:06 +02:00
Tilman Vatteroth
bd58bca39c Add new loading animation
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-06 21:42:06 +02:00
Erik Michelson
85eff24be1
New note creation (#1998)
* Add new note page

Signed-off-by: Erik Michelson <github@erik.michelson.eu>

* Make new note button clickable

Signed-off-by: Erik Michelson <github@erik.michelson.eu>

* Add CHANGELOG note

Signed-off-by: Erik Michelson <github@erik.michelson.eu>

* Refactor error messages

Signed-off-by: Erik Michelson <github@erik.michelson.eu>

* Use features note in mock

Signed-off-by: Erik Michelson <github@erik.michelson.eu>

* Common Error page should always use i18n

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-05-02 17:39:18 +02:00
Tilman Vatteroth
32c6bbb8e3
Test multiple markdown extensions (#1886)
This commit adds multiple unit jest tests for components and removes e2e tests. 

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

Signed-off-by: Philip Molares <philip.molares@udo.edu>

Co-authored-by: Philip Molares <philip.molares@udo.edu>
2022-04-27 09:59:01 +02:00
Erik Michelson
26f90505ff
Adapt react-client to use the real backend API (#1545)
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-15 23:03:15 +02:00
Tilman Vatteroth
0c873b0f97 Replace "use-resize-observer" with "@react-hook/resize-observer"
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-14 23:50:00 +02:00
Tilman Vatteroth
931302cbec Fix react 18 changes
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-10 20:36:21 +02:00
Tilman Vatteroth
bf1881eb54 Move copy button test from e2e to unit test
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-10 01:42:26 +02:00
Tilman Vatteroth
3a74ce9267 Replace splitter e2e test with unit test
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-10 01:42:26 +02:00
Tilman Vatteroth
750a4233d3 Replace substr with slice
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-03 00:45:05 +02:00
Tilman Vatteroth
f2958a77fe Add markdown-extension-collection.ts
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-02 21:45:31 +02:00
Tilman Vatteroth
ed6ab1b1fe Refactor abcframe
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-02 21:45:31 +02:00
Tilman Vatteroth
76cae637e6 Create intermediate class for code block markdown extension
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-02 21:45:31 +02:00
Tilman Vatteroth
9b118ac203 Refactor HighlightedCode
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-02 21:45:31 +02:00
Tilman Vatteroth
e565a548ee Replace vars
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-02 21:45:31 +02:00
Tilman Vatteroth
7e1f774867 Post toc after rendering and not during it
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-02 21:39:35 +02:00
Tilman Vatteroth
30620a60e6 Refactor copy overlay
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-03-27 23:05:49 +02:00
renovate[bot]
e9df9b6672
Update linters (#1897)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-03-05 20:40:00 +01:00
Tilman Vatteroth
8b4e9191e5
Fix smooth scroll and other bugs (#1861)
This PR fixes:

- The wrong clean up of window post message communicators
- The smooth scroll bug in chrome (Fixes Anchor navigation in render view not working #1770)
- Scroll by using touch devices in renderer
- Lazy loading of the editor (code mirror doesn't need to be lazy loaded any more)
2022-02-14 16:37:34 +00:00
Philip Molares
5f228b1bf2
refactor: Deduplicate delete modal (#1734) 2022-02-14 00:44:17 +01:00
Tilman Vatteroth
6a6f6105b9
Upgrade to CodeMirror 6 (#1787)
Upgrade to CodeMirror 6

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-02-13 11:14:01 +00:00
Tilman Vatteroth
57cb6f5b15
Add markdown renderer for motd (#1840)
* Add markdown renderer for motd

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-02-10 08:27:09 +00:00
Philip Molares
566b3009b6
feat: sort tags alphabetically (#1818)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-01-30 22:10:30 +01:00
Tilman Vatteroth
b30cc5b390
Move toolbar functions into redux reducer (#1763)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-01-26 17:14:28 +01:00
renovate[bot]
f1386b17d4
Update definitely typed (#1789)
* Update definitely typed

Signed-off-by: Renovate Bot <bot@renovateapp.com>

* Fix type changes

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-01-22 09:57:50 +00:00
Tilman Vatteroth
1fb32584ab Fix use-on-ref-change.ts
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-01-21 22:42:26 +01:00
Tilman Vatteroth
a1fab0bb73 Remove unnecessary effect dependency
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-01-21 22:42:26 +01:00