Commit graph

544 commits

Author SHA1 Message Date
Tilman Vatteroth
d4493aed95 improve: Refactor use-code-mirror-file-insert-extension
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-28 17:04:56 +02:00
Tilman Vatteroth
8245a519e0 fix: Use more strict vimeo id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-27 18:26:01 +02:00
Tilman Vatteroth
9996df1abd fix: Use more strict speakerdeck id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-27 18:26:01 +02:00
Tilman Vatteroth
8274fe0dad fix: Use more strict slideshare id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-27 18:26:01 +02:00
Tilman Vatteroth
bb90f31d0f fix: Use more strict pdf id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-27 18:26:01 +02:00
Tilman Vatteroth
db93b33eb3 fix: Use more strict gist id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-27 18:26:01 +02:00
Tilman Vatteroth
56744db3a2 fix: Use more strict youtube id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-27 18:26:01 +02:00
renovate[bot]
ee76d5886e
Update jest monorepo to v29 (major) (#2321)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
2022-08-27 16:56:42 +02:00
Erik Michelson
6cc11d07e3 fix(note-deletion): Add required keepMedia property and redirect
The backend requires a property "keepMedia" that states whether uploaded media should be kept around or not.
This property was missing in our API call.
Additionally, after deleting a note, the user is now redirected to the history page.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-08-25 17:50:24 +02:00
Erik Michelson
d57b2f27fd fix(pinning): Use new object for redux mutations
Elements retrieved from the redux state must not be manipulated.
Instead, a new object is created with the adjusted properties and committed to the redux store.
A missing css class has been additionally added, so that the pinning state can be deduced from the color of the sidebar icon.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-08-25 17:50:24 +02:00
Erik Michelson
761f112491 fix(revisions): Sort revisions by newest descending
Users probably expect the revision list to be sorted with the newest revision being the first one in the list.
This change sorts the revisions by their timestamp descending.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-08-25 17:50:24 +02:00
Erik Michelson
a064d57387 feat(register): Show success message and rediredt after register
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-08-25 17:50:24 +02:00
Erik Michelson
1cdc8dfeb2 fix(access-tokens): Use label instead of placeholder in translation
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-08-25 17:50:24 +02:00
Tilman Vatteroth
f3450d66a9 fix: suppress error when fetching user information in application loader
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-25 14:57:49 +02:00
Tilman Vatteroth
5e06e4ab3c fix: don't suppress error when fetching user information
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-25 14:57:49 +02:00
Tilman Vatteroth
6e103a856e fix: remove redundant redirect code
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-25 14:57:49 +02:00
Philip Molares
f7a51cd406 test: check that .rocks links are correctly rendered
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-08-25 10:34:37 +02:00
Philip Molares
50176170c3 feat: configure linkify in markdownit with tlds
See https://markdown-it.github.io/markdown-it/

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-08-25 10:34:37 +02:00
Tilman Vatteroth
f2ed9d4453
Note Loading Boundary: Replace redirect with refetch from API (#2275) 2022-08-13 14:32:19 +02:00
Tilman Vatteroth
1cdfebdb70 Remove feature links on intro page
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-09 07:58:09 +02:00
Philip Molares
1ff9e1f432
feat: add spell check (#2236)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-08-04 19:57:19 +02:00
Tilman Vatteroth
f68b3ff056
Don't send frontmatter to renderer (#2259)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-04 12:40:37 +02:00
Tilman Vatteroth
c50037fc9f
Fix size of highlighting if frontmatter is invalid (#2264)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-08-01 18:49:31 +02:00
Philip Molares
1bd18cc0ee
feat: add linter and linterGutter (#2237)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-07-31 18:25:03 +02:00
Tilman Vatteroth
a802656478
Fixes warnings in some tests (#2241)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-07-31 15:29:00 +00:00
Tilman Vatteroth
2e5fd5cc5c
Add memorized hook for table of contents (#2242)
* Create hook for converter function

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

* Add tests

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-07-31 01:04:58 +02:00
Erik Michelson
1180d41b0b
Remove non-existing css class reference in splitter (#2229) 2022-07-24 21:22:50 +02:00
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