This button and its functionality only works if the user is the owner, so it doesn't make sense to make it possible to press it otherwise…
Signed-off-by: Philip Molares <philip.molares@udo.edu>
These buttons and their functionality only work if the user is the owner, so it doesn't make sense to make it possible to press them otherwise…
Signed-off-by: Philip Molares <philip.molares@udo.edu>
These buttons and their functionality only work if the user is the owner, so it doesn't make sense to make it possible to press them otherwise…
Signed-off-by: Philip Molares <philip.molares@udo.edu>
By storing the ydoc state in the database we can reconnect lost clients easier
and enable offline editing because we continue using the crdt data that has been
used by the client before the connection loss.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit refactors a lot of things that are not easy to separate.
It replaces the binary protocol of y-protocols with json.
It introduces event based message processing.
It implements our own code mirror plugins for synchronisation of content and remote cursors
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
These icon replace fork awesome. A linter informs the user about the deprecation.
See https://github.com/hedgedoc/hedgedoc/issues/2929
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This is mainly needed because we use the common modal to show image light boxes and the title is then the title or alt text of the image
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit adds the "license" frontmatter property which sets a link with the "license" relation in the head of the HTML page.
Furthermore, this commit restructures the other head elements for a note altogether into a single component that can be used to inject all head elements at once.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
EventEmitter2 has types, but they're very basic and not very type safe.
I created this patch, because my improved types haven't been merged into the official package.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This linter will tell users that their fork awesome icon is deprecated and will stop working in the future and that they should replace it with a new bootstrap icon.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This linter will tell users that their fork awesome icon is deprecated and will stop working in the future and that they should replace it with a new bootstrap icon.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This now uses the new error code for a disabled registration (403) and also handles error where the password is too weak (400).
Signed-off-by: Philip Molares <philip.molares@udo.edu>
When updating the data of a note in the redux, the old state element gets manipulated and will be dispatched again into the state.
Redux is not optimized for external state-mutations and has some weird side-effects in that case and sometimes throws an error.
This commit fixes the problem by using a clone of the entry.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>