Philip Molares
70b95d3a24
refactor: change hook file names to match the rest of the application
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-07-22 13:44:21 +02:00
Philip Molares
ecffebc43c
docs: consolidate docs ( #2182 )
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-07-21 22:36:46 +02:00
Tilman Vatteroth
649ebe48f1
Use precalculated diff in revision viewer ( #2179 )
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-07-14 19:43:34 +02:00
Tilman Vatteroth
50d2dee9d2
Add boolean state hook
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-07-10 13:11:54 +02:00
Tilman Vatteroth
d23ba21ab5
Fix splitter tests
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-07-07 16:42:51 +02:00
Tilman Vatteroth
85a1c694b3
Add button to create note if not found ( #2173 )
...
* feat: add CreateNonExistentNote component
This component asks the user if they want to create the note that was request, but is not there.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-07-03 20:34:14 +02:00
Tilman Vatteroth
cfab287200
Use window location as base url for websocket url construction
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-07-03 20:33:27 +02:00
Tilman Vatteroth
96cd8fbe81
Add mutation observer to first heading title extraction logic
...
This detects async changes of the headline (like katex does).
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-07-03 20:32:24 +02:00
Philip Molares
818e6f7b70
fix(notification): set position of notification-area to fixed ( #2155 )
...
This prevents notification to stick to the top of the page not able to be seen by users scrolled down the page.
fixes #1956
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-07-01 14:10:48 +02:00
Philip Molares
6c82992c22
feat: switch editor and render view buttons ( #2154 )
...
This was done in an effort to sync the side of the button with the side of the component in the editor.
fixes #1236
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-07-01 14:10:35 +02:00
Tilman Vatteroth
3f44283d14
Replace optional.js with @hedgedoc/optional
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-06-23 18:05:01 +02:00
renovate[bot]
96c0cfa566
Update dependency @hedgedoc/realtime to v0.0.5 ( #2138 )
...
* Update dependency @hedgedoc/realtime to v0.0.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
* Remove unneeded code
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-06-20 12:22:35 +00:00
Tilman Vatteroth
cf892a11a0
Lock editor until yCollab extension is loaded ( #2136 )
...
* Lock editor until yCollab extension is loaded
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-06-19 20:02:51 +02:00
Tilman Vatteroth
0da51bba67
Add basic realtime communication ( #2118 )
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-06-18 16:40:28 +00:00
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
renovate[bot]
a8673c9174
Update dependency typescript to v4.7.2 ( #2079 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
2022-05-31 17:24:17 +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
ea42b9092e
Create store using redux-toolkit
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-02 08:49:38 +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