Commit graph

397 commits

Author SHA1 Message Date
Tilman Vatteroth
87d6285da5
Fix security related problems (#1522)
* Remove unnecessary capture group from regex

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

* Rename component to make name more expressive

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

* Remove redundant expression

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

* Filter vbscript links

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

* Remove superfluous parameter

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

* Check if handler is set

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

* Fix doc

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-01 22:51:57 +02:00
Tilman Vatteroth
0e512531a0
Improve Logging (#1519)
Improve Logging

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-09-28 22:06:35 +02:00
Tilman Vatteroth
f1e91b4574
Restructure Communicator (#1510)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-09-26 11:09:46 +02:00
Tilman Vatteroth
fa82368dfd Add new css class for code highlighting
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-09-17 12:31:10 +02:00
Tilman Vatteroth
6fe8967c44 Make help modal bigger
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-09-17 12:31:10 +02:00
Tilman Vatteroth
7ca23d8ade Reformat highlighted-code.scss and fix display bug in cheatsheet
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-09-17 12:31:10 +02:00
Tilman Vatteroth
cd79aeddac Use dark theme for highlight.js that actually overwrites the values of the light theme
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-09-17 12:31:10 +02:00
Tilman Vatteroth
262208657c Remove deprecated code in basic markdown-it configurator
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-09-05 22:35:47 +02:00
Tilman Vatteroth
ec921f775c
Remove unneeded props interface (#1487)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-09-05 21:37:01 +02:00
Tilman Vatteroth
7ec956e5c3
Remove document content (#1470)
* Merge documentContent and markdownContent

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

* Add hook for markdown content without frontmatter

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

* Use hook for export

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

* Let subcomponent handle the markdown content

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-09-05 14:27:44 +02:00
Tilman Vatteroth
bb0dd4d935 Replace imsize with @hedgedoc/markdown-it-image-size
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-09-05 14:09:29 +02:00
Erik Michelson
04e16d8880
Move frontmatter extraction from renderer to redux (#1413) 2021-09-02 11:15:31 +02:00
Tilman Vatteroth
7fb7c55877
Replace i18next-http-backend with i18next-resources-to-backend (#1466)
* Replace i18next-http-backend with i18next-resources-to-backend

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-08-31 20:40:33 +00:00
Tilman Vatteroth
dee494386a
Replace custom gist implementation with github rendering (#1436)
* Replace custom gist implementation with github rendering

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-08-31 20:37:33 +00:00
Tilman Vatteroth
64443a3b64
Fix missing scrollbars for abcjs overflow (#1469)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-08-31 22:25:06 +02:00
Tilman Vatteroth
90ae3c1f76
Fix DoS in CSV parser (#1467)
* Fix DoS in CSV parser

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-08-31 22:23:18 +02:00
Tilman Vatteroth
553e9f8ead
Rework notifications (#1465)
* 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>
2021-08-31 22:21:29 +02:00
Erik Michelson
808601eaba
Restructure CodeMirror imports + syntax highlighting (#1464) 2021-08-29 20:34:07 +02:00
renovate[bot]
98f1433b9e
Update dependency fork-awesome to v1.2.0 (#1453)
* Update dependency fork-awesome to v1.2.0

Signed-off-by: Renovate Bot <bot@renovateapp.com>

* Move fork awesome icon definition

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

* Add icons of fork awesome 1.2

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

* Reorganize icon name list

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

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-08-29 19:41:09 +02:00
Tilman Vatteroth
2adc1991bc Fix typescript error
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-08-27 20:27:22 +02:00
Tilman Vatteroth
26c726a986 Fix code highlighting grid
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-08-20 23:50:59 +02:00
Tilman Vatteroth
6a43d0c5fb Reorganize redux types to avoid unnecessary type casting
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-07-26 21:53:08 +02:00
Tilman Vatteroth
888f2bd95d Remove custom types for words-count
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-07-12 18:42:50 +02:00
Tilman Vatteroth
543fc9f987 Use IframeEditorToRendererCommunicatorContextProvider in document read only mode
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-23 13:12:43 +02:00
Tilman Vatteroth
6cfcc37b1c
Fix Splitter issues (#1343)
Fix Splitter issues

* Replace code with hook useAdjustedRelativeSplitValue
* Add e2e tests for splitter

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-21 23:13:39 +02:00
Tilman Vatteroth
015a5cf496 Extract the render ready status into an extra redux state
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-21 21:38:36 +02:00
Tilman Vatteroth
5893680e53 Adjust code to new options structure
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-21 12:34:05 +02:00
Tilman Vatteroth
1fef30bebc Add new data property to iframe that indicates if the content is ready.
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>
2021-06-19 16:41:43 +02:00
Tilman Vatteroth
cfb2de8909 Add renderer ready state to global application state
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-19 16:02:55 +02:00
Tilman Vatteroth
82472227f9
Replace react-html-parser with html-to-react (#1327)
* Replace react-html-parser with html-to-react

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-18 23:26:36 +02:00
Tilman Vatteroth
b13c1ce8a0 Fix unique key in ui-notification-toast
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-18 22:03:40 +02:00
Tilman Vatteroth
31ca77ebfa Throw error if no communicator was found in a react context
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-17 23:32:47 +02:00
Erik Michelson
57f46f489b
Add word count in document info modal (#738)
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-17 22:31:28 +02:00
Tilman Vatteroth
93722f4161
Improve stability and speed of E2E tests (#1319)
* 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>
2021-06-13 23:02:39 +02:00
Tilman Vatteroth
1c5c3c3258 Deduplicate code
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-12 18:25:47 +02:00
Tilman Vatteroth
baa4af7f30 Remove PDF mimetype
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-12 18:25:47 +02:00
Tilman Vatteroth
ed9f4aefab Add mock for upload response
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-12 18:25:47 +02:00
renovate[bot]
5933fb801d
Update dependency prettier to v2.3.1 (#1312)
* Update dependency prettier to v2.3.1

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

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-12 16:20:06 +00:00
Tilman Vatteroth
4580bc9658
Fix splitter (#1307)
Use window for splitter resizing

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-12 16:20:11 +02:00
Tilman Vatteroth
6285af458a
Iframe communicator context (2/3) (#1310)
* Add type

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

* Extract code and add new context provider

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

* Adjust import

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-12 16:14:46 +02:00
Tilman Vatteroth
829cc2fe48
Add application state hook (#1308)
* Add application state hook

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

* Add docs

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-11 15:21:24 +02:00
Tilman Vatteroth
4720f2d36b
Extract toc button (#1302)
* Extract toc button

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-07 22:09:13 +02:00
Erik Michelson
0aae1f70d2
Add prettier for codestyle and re-format everything (#1294) 2021-06-06 23:14:00 +02:00
Tilman Vatteroth
8b78154075 Replace twemoji files with twemoji npm package
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-05 23:53:21 +02:00
Erik Michelson
1eea135a9d
Replace deprecated highlight.js syntax (#1295)
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2021-06-05 20:21:54 +00:00
Tilman Vatteroth
c867673072
Replace emojibase-data with emoji-picker-element-data (#1293)
* Add Twemoji 13.1
* Use emoji-picker-element instead of emojibase

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-05 22:16:46 +02:00
renovate[bot]
7647475183
Update dependency highlight.js to v11 (#1292)
* Update dependency highlight.js to v11

Signed-off-by: Renovate Bot <bot@renovateapp.com>

* Migrate code

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

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-01 19:57:37 +00:00
Erik Michelson
327c872532
Fix broken links for share dialog and avatar images (#1249) 2021-05-11 12:31:20 +02:00
Tilman Vatteroth
9a62f27303 Remove unnecessary assertion
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-05-08 22:45:08 +02:00
Tilman Vatteroth
a48b4f60bb
Change schema of url environment variables (#1237)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-05-05 22:33:30 +02:00