Philip Molares
82f534f7b0
fix(frontend): use correct translations for privacy and term of use links
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-07-09 12:30:51 +02:00
Philip Molares
7e05650888
fix(frontend): use correct translations for privacy and term of use links
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-07-08 16:38:08 +02:00
Tilman Vatteroth
25ee20c15d
refactor: rename ready function to match its intent
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-07-06 12:07:03 +02:00
Tilman Vatteroth
354700e973
perf: add performance marker to monitor the needed time for rendering
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-07-06 10:44:48 +02:00
Tilman Vatteroth
a303bb261f
perf: use deferred value hook to increase performance
...
The useDeferredValue hook renders the state change in the background and only applies it if the current value is the newest one.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-07-06 10:44:48 +02:00
Tilman Vatteroth
30b374ee5d
fix: better apple keyboard detection
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-07-02 17:54:23 +02:00
Erik Michelson
d10c6d3290
refactor: move help entries into new global app bar
...
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-07-02 17:54:23 +02:00
Erik Michelson
74b92f2bbb
enhancement(icon): add title attribute for icons
...
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-07-02 17:54:23 +02:00
Erik Michelson
9030bbd454
refactor: move version info modal
...
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-07-02 17:54:23 +02:00
Tilman Vatteroth
ff004a5a63
refactor: extract shortcuts from help modal
...
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-07-02 17:54:23 +02:00
Erik Michelson
ae37bd36f9
refactor: move settings dialog to global dialogs
...
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-07-02 17:54:23 +02:00
Erik Michelson
5b64392a98
refactor: move motd modal
...
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-07-02 17:54:23 +02:00
Erik Michelson
fa819c290a
refactor: move cheatsheet to global components
...
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-07-02 17:54:23 +02:00
Tilman Vatteroth
c94db0c1ff
fix: flexsearch types
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-07-02 17:40:39 +02:00
Philip Molares
7a365acdb9
refactor(frontend): make terminology of cheatsheet more clear
...
Also add additional documentation to explain how cheatsheets work
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-07-02 16:38:16 +02:00
Philip Molares
81927b88f2
feat(frontend): add search in cheatsheet view
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-07-02 16:38:16 +02:00
Erik Michelson
aacdc2a046
fix(deletion-modal): include note title fallback
...
The note deletion modal previously only used the set title of
the note. This commit changes the dialog to use the result of
useNoteTitle() which contains a fallback string.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-06-30 15:38:53 +02:00
Tilman Vatteroth
f4a1999a8b
fix(communication): send ready event when both sides are ready
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-28 21:50:48 +02:00
Avinash
09aef381c1
fix(frontend): readOnly permits codemirror select text
...
Signed-off-by: Avinash <avinash.kumar.cs92@gmail.com>
2023-06-28 09:06:15 +02:00
Tilman Vatteroth
76242330fd
fix(frontend): improve performance by caching translated texts
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-26 23:56:44 +02:00
Tilman Vatteroth
ced4cd953c
fix(frontend): improve performance by reducing array constructions
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-26 23:56:44 +02:00
Tilman Vatteroth
13a8eedb50
fix(frontend): fix event emitter leak in realtime status
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-26 00:01:57 +02:00
Tilman Vatteroth
f870ea0d76
fix: forward remaining properties in additional icon component
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-21 22:42:24 +02:00
Tilman Vatteroth
e4492c947a
feat: replace placeholder icons of gitlab, matrix and discourse
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-21 22:14:13 +02:00
Tilman Vatteroth
6529d4f20a
fix(profile): fix dark mode on profile page
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-08 12:00:24 +02:00
Tilman Vatteroth
90f5ed5606
fix(ui): text color of slideshow button
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-08 11:29:16 +02:00
Tilman Vatteroth
545e84fb9f
feat(renderer-iframe): add prop to show a wait spinner on page load
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-08 11:29:16 +02:00
Tilman Vatteroth
f5bcb048cf
fix: hide scrollbars in slide show full screen rendering
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-08 11:29:16 +02:00
Tilman Vatteroth
efac46858c
fix: move dark mode and transparent body hook into renderer
...
These hooks are only necessary for the document and simple renderer. The slideshow handles theming itself.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-08 11:29:16 +02:00
Tilman Vatteroth
b04b5cc3e1
feat: add doAfterRendering method to markdown renderer extension
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-07 10:59:29 +02:00
Tilman Vatteroth
450d70961a
refactor(toc): rename css classes
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-07 10:59:29 +02:00
Avinash
6babc8997c
refactor(frontend): deduplicated username field
...
Signed-off-by: Avinash <avinash.kumar.cs92@gmail.com>
2023-06-05 22:15:07 +02:00
Tilman Vatteroth
0993372290
fix: replace dark mode hack with bootstrap's own dark mode
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-04 22:38:50 +02:00
Tilman Vatteroth
3f42798965
refactor: replace logo svgs with components
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-04 22:38:50 +02:00
Philip Molares
e13055736a
feat(frontend): handle username in lowercase
...
When handling usernames for login and registering with local or permissions, this makes sure that the username is always in lowercase.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-04 21:55:19 +02:00
Tilman Vatteroth
db6276e019
fix: remove redundant variable
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-04 10:30:22 +02:00
Tilman Vatteroth
753c6e593f
refactor: remove isomorphic-ws
...
The package caused some issues while working on other features.
Mostly because bundlers have been unable to determine the correct
websocket constructor.
So I replaced it with a more object-oriented approach.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-02 17:40:25 +02:00
Tilman Vatteroth
14ba7ea9ce
refactor: extract visual part of the toolbar-button component and use it in all buttons components
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-02 17:35:46 +02:00
Tilman Vatteroth
71e5d00f55
refactor: extract height monitor hook
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-01 13:46:19 +02:00
Tilman Vatteroth
4d9792bcb9
refactor: reorganize files in commons package
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-31 23:42:46 +02:00
Tilman Vatteroth
db43e1db3f
refactor: move frontmatter parser into commons package
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-30 09:17:05 +02:00
Tilman Vatteroth
4d0a2cb79e
refactor: change return type of frontmatter extractor to use undefined
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-30 09:17:05 +02:00
Tilman Vatteroth
77f858bff8
fix: remove redundant note detail props
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-30 09:17:05 +02:00
Tilman Vatteroth
d57e6261da
fix: height of reveal rendering
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-24 21:16:10 +02:00
Tilman Vatteroth
0c03e03a95
fix: update test snapshots
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-21 22:31:52 +02:00
Tilman Vatteroth
4eb341308a
feat: add concat-css-classes helper method
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-21 22:31:52 +02:00
Tilman Vatteroth
1df6eb7bf5
feat: add replace property to redirect
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-14 13:44:36 +02:00
Philip Molares
472e775fd2
fix(frontend): new note button doesn't use /new anymore
...
This led to problems, if user clicked the back button in their browser. This implementation doesn't add functional routes in between new notes, but pushes the new note directly in the history.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-05-14 13:44:36 +02:00
Philip Molares
eff6c53860
fix(frontend): use tabs instead of pills for settings modal
...
This way the button don't look so strange and this is more like the class is intended.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-05-13 14:12:53 +02:00
Tilman Vatteroth
40e9478c67
fix: use html entity for branding separation dash
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-10 16:59:59 +02:00
Tilman Vatteroth
c68fbea606
fix: migrate code to html-to-react v2
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-10 16:30:38 +02:00
Tilman Vatteroth
d29e840bc6
fix(realtime): allow realtime user status updates from users that have read-only access
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-09 20:33:23 +02:00
Tilman Vatteroth
29afcce555
fix(editor): catch error when refreshing note metadata
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-09 12:31:49 +02:00
Philip Molares
757345d318
fix(frontend): remove parenthesis around •
...
This was the way it was in HedgeDoc 1. It was deemed to be better than the parenthesis version in a debug session.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-05-07 22:42:38 +02:00
Tilman Vatteroth
340adbe69a
refactor: extract scroll hooks
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:43:52 +02:00
Tilman Vatteroth
bded420cab
refactor: rename EditorDocumentRenderer to RendererPane
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:43:52 +02:00
Tilman Vatteroth
4d48aa613d
refactor: rename render-iframe to renderer-iframe
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:43:52 +02:00
Tilman Vatteroth
aef0211092
refactor: move render-iframe to commons
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:43:52 +02:00
Tilman Vatteroth
18206c0615
test: add unit tests for custom branding
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:40:30 +02:00
Tilman Vatteroth
6a772d851b
refactor: change branding delimiter to css
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:40:30 +02:00
Tilman Vatteroth
d75b8d2d3b
refactor: rename branding component to custom branding
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:40:30 +02:00
Tilman Vatteroth
3f96616b5a
fix: remove not migrated language files
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:29:14 +02:00
Tilman Vatteroth
745be42101
test(i18n): replace e2e test for language picker with unit test
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:29:14 +02:00
Tilman Vatteroth
07a28824d3
refactor(i18n): use browser api to determine display names for languages
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:29:14 +02:00
Tilman Vatteroth
53a3c92fdb
fix(i18n): use event to change luxon language setting
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:29:14 +02:00
Tilman Vatteroth
a23c215d8d
refactor: split apply-dark-mode hook into multiple hooks
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:02:34 +02:00
Tilman Vatteroth
bcff03ef99
refactor: move dark-mode-state hook into other directory
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:02:34 +02:00
Tilman Vatteroth
cba8d917ed
refactor: move apply-dark-mode hook into other directory
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:02:34 +02:00
Tilman Vatteroth
3dea91523d
feat(frontend): increase reconnect timeout with every try
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-26 20:27:35 +02:00
Tilman Vatteroth
07dd196bff
fix: height of loading screen
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-24 12:00:38 +02:00
Tilman Vatteroth
43a85f54ca
feat: use css vars in sidebar
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-04-23 22:18:14 +02:00
Erik Michelson
b454e3be03
enhancement(sidebar): move note info modal into sidebar
...
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-04-23 22:18:14 +02:00
Erik Michelson
e3a9f70965
refactor(sidebar): move sidebar entries to the sidebar
...
Previously, many sidebar items were still in the document-bar structure from the past, where we had an additional document bar.
This commit reorganizes all sidebar entries with their attached modals into the specific-sidebar-entries directory within the sidebar module.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-04-23 22:18:14 +02:00
Erik Michelson
7e4f2f8778
enhancement(sidebar): enlarge sidebar width
...
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-04-23 22:18:14 +02:00
Tilman Vatteroth
927193e4b9
fix: sticky position of toc sidebar
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-23 20:46:35 +02:00
Tilman Vatteroth
c71bcb70db
fix: render toc button only if toc is available
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-23 20:12:14 +02:00
Avinash
9bf8f57475
enhancement(frontend): inlined buttons
...
Signed-off-by: Avinash <avinash.kumar.cs92@gmail.com>
2023-04-20 22:20:18 +02:00
SHAN michel
63f7d94b7c
feat(revision): only show non-guest users in the revision sidebar
...
Signed-off-by: SHAN michel <yuplasmas@gmail.com>
Only show non-guest users in the sidebar #2953 + frontend/json modificated
Signed-off-by: SHAN michel <yuplasmas@gmail.com>
Only show non-guest users in the sidebar #2953 + frontend/json modificated
Signed-off-by: SHAN michel <yuplasmas@gmail.com>
2023-04-20 16:00:37 +02:00
Tilman Vatteroth
3face3a3b8
fix: add missing legacy sequence diagram app extension
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-17 22:12:11 +02:00
Tilman Vatteroth
393d408dfe
chore: fix typos in docs
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-17 22:12:11 +02:00
Tilman Vatteroth
a95b2d7d7d
feat: add priorities for replacers
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-17 22:12:11 +02:00
Tilman Vatteroth
1e4709c087
refactor: organize app extensions
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 21:27:45 +02:00
Tilman Vatteroth
8cddc96881
fix: exclude first headline extraction from simple renderer
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 21:27:45 +02:00
Tilman Vatteroth
f12cadbbb7
feat: add renderer type to MarkdownRendererExtensionOptions
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 21:27:45 +02:00
Tilman Vatteroth
0809e01b2d
refactor: rename "optional app extensions" into "all app extensions"
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 21:27:45 +02:00
Tilman Vatteroth
6b3743e6a3
refactor: reorganize props and locations of markdown renderers
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 20:29:45 +02:00
Tilman Vatteroth
7abbe79ec9
fix: correct docs
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 20:29:45 +02:00
Tilman Vatteroth
d792fd3987
refactor: rename iframe-markdown-renderer to render-page-content
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 20:29:45 +02:00
Tilman Vatteroth
29d137afbe
fix: send "new lines as breaks" option to the renderer
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 20:29:45 +02:00
Tilman Vatteroth
6c55da4e79
refactor: rename "dark mode" iframe message to "additional configuration"
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 20:29:45 +02:00
Tilman Vatteroth
1e9e04f829
fix: forced dark mode for iframe
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 20:29:45 +02:00
Tilman Vatteroth
419069376a
chore: reformat code
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 20:29:45 +02:00
Tilman Vatteroth
2e18f7f775
fix: send scroll state if current renderer is ready instead of main renderer
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 20:29:45 +02:00
Tilman Vatteroth
86276b0753
refactor: move mockI18n
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 20:29:45 +02:00
Tilman Vatteroth
3962cafa5d
feat: move title extraction into commons package
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 20:05:24 +02:00
Tilman Vatteroth
8de8a50bec
feat: move first heading title extraction into an app extension
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 20:05:24 +02:00
Tilman Vatteroth
220bb31f0c
fix: disconnect message transporter on editor leave
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 18:12:12 +02:00
Tilman Vatteroth
e70d1fabc9
fix: missing wait for element in copy-to-clipboard-button.spec.tsx
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-13 18:24:17 +02:00
Tilman Vatteroth
eaea86c17d
fix: invalid bootstrap icon in bootstrap-icon-markdown-extension.spec.tsx
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-13 18:24:17 +02:00
Tilman Vatteroth
2abc697e6a
fix: unsupported tag name in markdown-to-react.spec.tsx
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-13 18:24:17 +02:00