* Rework notifications
- dispatchUINotification returns a promise that contains the notification id
- notifications use i18n instead of plain text
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Reformat code
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Some tests fail because the iframe hasn't loaded the inner hedgedoc renderer yet
but cypress tries to travel through the dom and verify the render results.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Change cypress settings in CI job
* Catch error from highlight js chunk loading in auto completion
* Refactor code
* Show notification if highlightjs loading failed
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Update history on editor load and title change
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Add pinning to history from sidebar
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Add CHANGELOG entry
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Only update local history entries
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Update property names to match backend ones
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Show error notification on failure
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Apply requested changes from review
- rename use hook to reflect the situation that only local entries will be updated
- extract the update ready check from the hook
- rename vars to make comparison more clear
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Fix replacer regex
This regex handles the replacement of the [ ] with [x] and reverse.
Until now it was build to check for an unordered list beginning with "*" or "-".
This change permits "+" as well as digits followed by a dot (ordered lists).
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Add cypress tests for task lists
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Add bracket syntax for numbered lists
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Use document base uri for react router
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Rename getAndSetUser to fetchAndSetUser
Getter should be reserved for simple get functions.
Everything that does a bit more logic should use a more meaningful verb.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Rename getFrontPageContent to fetchFrontPageContent
Getter should be reserved for simple get functions.
Everything that does a bit more logic should use a more meaningful verb.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Reformat code
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Use PUBLIC_URL env var in index.html
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Introduce new environment variables
For better testing (especially if you have multiple endpoints) this commit introduces
REACT_APP_BACKEND_BASE_URL, REACT_APP_FRONTEND_ASSETS_URL and REACT_APP_CUSTOMIZE_ASSETS_URL
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Remove redundant license information
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Remove redundant license information
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Fix rebase issues
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Remove unused file
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Correct parameter
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Fix run tasks
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Force use of bash
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Fix link to cypress picture
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* revert change
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* fix url
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Remove license info
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Revert rebase issues
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Add missing banner code
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Fix test url
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Useless change to trigger github
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Don't set backend base url because this break the mock mode detection
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Co-authored-by: Philip Molares <philip.molares@udo.edu>
* Add location state dependency
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Split toolbar state into single location states
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Add CHANGELOG entry
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Pin dependency
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Use react state for view because of side-effects
The locationState was resetted on each search or tags filter update because these updates pushed a change to the location thus resulting in loss of the location state for the view.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Remove unneeded import
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Change CHANGELOG entry
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Removed unnecessary typecast
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
- Fix error that the border of table cells was invisible in dark mode
- Add margin to table cells
- Add full border to table cells
- Change border-color while hovering over table cells
Signed-off-by: Philip Molares <philip.molares@udo.edu>
If we use the default import then webpack will use the "browser"
bundle which relies on CDN lazy loading of dependencies.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
* Extract code into hook
* Refactor code to remove let
* Reformat code
* Extract version-info-modal into components
* Use main block in landinglayout
* Add fixedWidth and classname attribute to IconButton
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
The original idea of the basic-markdown-renderer and the full-markdown-renderer was to reduce the complexity. The basic markdown renderer should just render markdown code and the full markdown renderer should implement all the special hedgedoc stuff like the embeddings.
While developing other aspects of the software I noticed, that it makes more sense to split the markdown-renderer by the view and not by the features. E.g.: The slide markdown renderer must translate <hr> into <sections> for the slides and the document markdown renderer must provide precise scroll positions. But both need e.g. the ability to show a youtube video.
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>