Commit graph

563 commits

Author SHA1 Message Date
Tilman Vatteroth
ec77e672f6
Refactor replacers and line id mapping
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-25 00:13:40 +02:00
Erik Michelson
3591c90f9f
Fix file input field accepting a filename only once (#1547) 2021-10-24 20:46:39 +00:00
Erik Michelson
9118c8310b
Use "untitled" fallback in history entry without title (#1546) 2021-10-24 21:08:28 +02:00
Tilman Vatteroth
a398660c18
Add cypress id attribute only in test mode (#1566)
* Add function for test attribute

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

* Adjust components

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

* Fix naming of attribute

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

* Rename method

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

* Rename method, interface, attribute and use interface

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

* Lint and format fix

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-17 21:20:23 +02:00
renovate[bot]
2abe40ef1d
Update dependency eslint-plugin-import to v2.25.2 (#1555)
* Update dependency eslint-plugin-import to v2.25.2

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Make type imports more explicit

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

* Enforce use of type imports

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-10-17 18:45:58 +02:00
Erik Michelson
fc3a3fa1a9
Enable redux devtools extension (#1565) 2021-10-16 22:41:49 +02:00
Tilman Vatteroth
e84ed1398f
Fix reveal (#1563)
Fix race condition in slide show

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-16 21:45:22 +02:00
Tilman Vatteroth
c017df0a3c Fix linting errors
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-16 12:10:10 +02:00
Tilman Vatteroth
f35d05d712 Remove workaround rule in reveal by vendoring a bootstrap file
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-15 22:10:12 +02:00
Tilman Vatteroth
dc0068420a Fix SlideShow-Only-Page and Document-Read-Only-Page
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-15 21:27:06 +02:00
Tilman Vatteroth
36e445e631 Add slide mode with reveal.js
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-15 21:27:06 +02:00
Tilman Vatteroth
bd036b5b68
Refactor iframe load callback to fix race condition (#1536)
* Refactor iframe load callback to fix race condition

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-13 22:07:46 +02:00
Tilman Vatteroth
ee7cde0096 Change motd banner to motd modal
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-13 22:06:27 +02:00
Tilman Vatteroth
328bc917eb Remove notification test
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-13 19:19:51 +02:00
Tilman Vatteroth
f937dc6962
Fix regex DoS (#1533)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-07 21:18:51 +02:00
Tilman Vatteroth
6adb63967b
Extract editor code into hooks (#1531)
* Extract code into hooks

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-06 21:07:33 +02:00
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
Erik Michelson
3887de4309
The History PR: III - Editor integration (#1158)
* 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>
2021-05-04 20:35:08 +02:00
Erik Michelson
726b084509
Fix task list checkboxes for numbered lists (#1233)
* 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>
2021-05-04 20:34:16 +02:00
Tilman Vatteroth
eac288cebc Fix spinner visibility on intro-page
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-05-03 22:49:06 +02:00
Tilman Vatteroth
0264e9a420
Fetch banner.txt from public URL instead of config (#1216) 2021-05-03 19:57:55 +00:00
Tilman Vatteroth
e1d096ba1d
Don't show error if no intro.md was found (#1221) 2021-05-03 19:56:44 +00:00
Tilman Vatteroth
2c5a03b3ee
Restructures + New Evironment Variables (#1230)
* 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>
2021-05-02 22:38:43 +02:00
Philip Molares
9cf7980334
Fix Communication between frontend and backend (#1201)
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>
2021-05-01 21:01:42 +00:00
Philip Molares
f01a821810
Reuse: Fix typo in HedgeDoc Icon Usage Guidelines (#1215)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-25 22:04:43 +02:00
Erik Michelson
003658dc4d
The History PR: II - Add URL params (#1157)
* 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>
2021-04-24 23:25:01 +02:00
Erik Michelson
8e5a667d18
The History PR: I - Move to redux (#1156) 2021-04-22 22:46:24 +02:00
Philip Molares
bba2b207c4
TablePicker: Change table cells in picker (#1202)
- 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>
2021-04-22 12:55:51 +02:00
Tilman Vatteroth
bfcb617eeb Use module build of markmap-lib
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>
2021-04-15 22:18:12 +02:00
Tilman Vatteroth
64fe7233e7 Fix code highlight indentation
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-04-15 22:14:02 +02:00
Philip Molares
29d9d49f5a
Change api route to /api/private (#1189) 2021-04-15 22:10:15 +02:00
Erik Michelson
7a21a26166
Disallow data and javascript URIs (#1186)
* Disallow data and javascript URIs

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2021-04-11 22:48:31 +02:00
renovate[bot]
ab9f89f39f
Update dependency vega to v5.20.2 (#1152)
* Update dependency vega to v5.20.2

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

* Add type to error object

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

Add renovate group for vega

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

Update vega code

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

* Regenerate yarn.lock

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-04-10 15:27:42 +00:00
Tilman Vatteroth
af887877aa
Add context for iframe communicator in editor page (#1146)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-04-03 12:59:14 +02:00
Tilman Vatteroth
a86789dbef
Add toasts (#1073)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-03-11 20:51:11 +01:00
Erik Michelson
0b4a0afa16
Add table formatting on paste of detected table (#957) 2021-03-10 22:52:20 +01:00
Tilman Vatteroth
107f0f6fa3
Code improvements (#1086)
* 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>
2021-03-10 22:45:05 +01:00
Erik Michelson
6d2dde477c
Add one-click login if possible (#1043) 2021-03-09 23:00:14 +01:00
Tilman Vatteroth
a6c80ac1f0 Extract code into hook
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-03-09 22:40:24 +01:00
Erik Michelson
a1698047a8
Set sanitized note title as filename for download (#1057) 2021-02-22 23:36:09 +01:00
Erik Michelson
7dd91c7b46
Change top slide mode button dynamically to read-only-mode (#1056) 2021-02-22 22:54:28 +01:00
Erik Michelson
f9809a4edf
Add e2e tests for diagrams and embeddings (#1025) 2021-02-22 22:27:59 +01:00
Tilman Vatteroth
d9292e4db0
Merge basic and full markdown renderer (#1040)
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>
2021-02-17 21:58:21 +00:00
Tilman Vatteroth
37234f9c09
Improve key compare in rendering (#1027)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-02-10 16:10:57 +01:00
Tilman Vatteroth
ae38ab007a Don't show i18n messages in production mode
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-02-10 13:58:04 +01:00
Tilman Vatteroth
8a2d26f718
Remove custom abcjs types (#1024)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-02-08 21:19:02 +01:00
Tilman Vatteroth
47f5e7653b
Readd legacy pdf short code markdown it plugin (#1023)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-02-08 20:03:49 +01:00
Tilman Vatteroth
5b1940f0ba
Add quote extra markdown it plugin (#1020)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-02-08 18:29:02 +01:00
Tilman Vatteroth
7f6e0e53a7
Add custom intro page by fetching markdown content from a file (#697)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-02-08 15:03:11 +01:00
Tilman Vatteroth
e12dc523f8
Adjust editor config (#976)
* Adjust editor config

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
2021-02-03 22:13:04 +01:00
Tilman Vatteroth
0180c75e55
Remove wider mode #999
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-02-02 22:13:31 +00:00
Tilman Vatteroth
f7be49bbc3
Fix document renderer sizing issues (3/4) (#998)
* Rework renderer columns

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-02-02 21:53:43 +01:00
Tilman Vatteroth
123f959fb3
Move and rename files (2/4) (#987)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-02-02 00:03:47 +01:00
Tilman Vatteroth
1b7abf9f27
Reorganize redux and hooks (1/4) (#985)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-02-01 22:55:49 +01:00
Tilman Vatteroth
add741a677
Remove PDF embedding (#1000)
* Remove PDF embedding
* Add pdf deprecation to CHANGELOG.md

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-31 21:36:16 +01:00
Tilman Vatteroth
c862ca341f
Use currentColor in SVGs (#997)
If you include a SVG directly into the DOM (what we do here), then currentColor is the current text color. This is way more convenient than changing the SVG file.
This doesn't work if you load the SVG with an IMG-Tag.

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-31 19:42:31 +01:00
Philip Molares
4c1f081399 ABCFrame text-color is always black
fixes #977

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-26 23:57:51 +01:00
Tilman Vatteroth
0627e0f551
Replace document bar with sidebar (#937)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-24 21:39:47 +01:00
Tilman Vatteroth
586969f368
Wrap markdown rendering in iframe (#837)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-24 20:50:51 +01:00
Tilman Vatteroth
bd31076928
Update abc js to version 6-beta (#975)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-23 22:12:56 +01:00
Tilman Vatteroth
1777ba848f
Collected minor changes from #837 (#962)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-23 21:01:53 +00:00
Tilman Vatteroth
c9168fcaa7
Limit attributes for external links (#950)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-16 09:08:23 +01:00
Philip Molares
d838b2c2d4
Removed some types as the package comes with it own types now (#949) 2021-01-15 23:16:39 +01:00
Tilman Vatteroth
908a5ce984
Rewrite tests (#948)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-15 21:54:43 +00:00
Tilman Vatteroth
9f6b1a9a46
Fix counter continue in highlighted-fence-replacer.tsx (#943)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-13 11:52:06 +01:00
Philip Molares
7be64bc582
added a spoiler container (#947)
changed toolbar to insert the new spoiler container
changed tests accordingly

References:
https://github.com/markdown-it/markdown-it-container
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-13 11:45:33 +01:00
Philip Molares
9330adf564
fixed title extraction to exclude latex code, but include rendered latex (#946)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-12 18:18:56 +01:00
Tilman Vatteroth
3db6bcf892
Improve tests (#944)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-11 22:22:11 +00:00
Tilman Vatteroth
cb5283b1bf
Don't show "create table" overlay if modal is showing (#942)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-11 18:49:08 +01:00
renovate[bot]
faf953d0fa
Update dependency react-bootstrap to v1.4.3 (#928)
* Update dependency react-bootstrap to v1.4.3

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

* Fix as ToggleButtons require now enums instead of booleans

Signed-off-by: Erik Michelson <github@erik.michelson.eu>

* Remove memo

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-09 15:30:20 +01:00
renovate[bot]
1b90cc4c6e
Update dependency js-yaml to v4 (#934)
* Update dependency js-yaml to v4

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

* Replace yaml.safeLoad with yaml.load as its safe now by default

Signed-off-by: Erik Michelson <github@erik.michelson.eu>

* Update @types/js-yaml

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Regenerate yarn.lock

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-09 15:12:43 +01:00
Tilman Vatteroth
a6996d9414
Limit lightbox size (#923)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-08 09:36:19 +01:00
Tilman Vatteroth
005597e880
Use original markdown-it-anchor (#914)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-07 16:52:00 +00:00
Erik Michelson
527df561ef
Fix yaml metadata and document title not resetting on deletion (#915) 2021-01-07 17:38:06 +01:00
Philip Molares
bac52ddb7a
fixed toolbarButtonUtils.test.ts (#920)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-07 17:25:16 +01:00
Philip Molares
45cd5a9b89
added shortcut for addLink (ctrl+k) (#921)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-07 17:21:02 +01:00
Tilman Vatteroth
4459dc742f
Move yaml-array warning to documentrenderpane (#916)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-07 16:24:06 +01:00
Tilman Vatteroth
dc8ac6e3d8 Use yaml-array in demo content
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-07 16:11:21 +01:00
Tilman Vatteroth
28600d6508
Change copyright year from 2020 to 2021 (#917)
* Change copyright year from 2020 to 2021

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Change copyright year in jetbrains copyright template

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-06 21:37:59 +01:00
Tilman Vatteroth
887c3b9dd3
Feature/browserstack (#902)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-06 13:09:33 +01:00
Erik Michelson
b2cf2f134e
Add ability to use yaml-array for tags (#874) 2021-01-04 13:01:34 +01:00
Tilman Vatteroth
bf42b9c460
Minor fixes (#911)
* Replace full links

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Use dark mode hook

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Add overflow for graphviz and abc

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Cap max height of toc overlay

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Remove extension from css import

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Fix hook

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-03 00:19:10 +01:00
Tilman Vatteroth
528e67e11e
Open links always in new tabs (#912)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-03 00:06:13 +01:00
Tilman Vatteroth
dfc2524bd7
Add test mode (#898)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-12-29 17:13:07 +01:00
Tilman Vatteroth
58803f93ab
Regenerate yarn.lock (#893)
* Regenerate yarn.lock

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* migrate fontsource package

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Correct link to source sans pro

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-12-26 17:37:55 +01:00
Tilman Vatteroth
53053813bd
update markdown-it-anchor (#892)
* update markdown-it-anchor
* Update markdown-it-types
* Regenerate yarn.lock

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-12-26 16:56:46 +01:00
Tilman Vatteroth
91fcc4fe40
Improvement/update better task list (#878)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-12-24 10:27:22 +01:00
Tilman Vatteroth
6dc6adf270 Remove first draw hook
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-12-24 10:16:48 +01:00
Tilman Vatteroth
23a1e30c3a Replace youtube link with a working one
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-12-23 20:38:35 +01:00
Erik Michelson
95c563255d
Add support for editor-mode URL parameters (#873) 2020-12-22 21:45:11 +01:00
Erik Michelson
721c8c0e5a
Enhance share dialog (#860) 2020-12-22 21:17:40 +01:00
Tilman Vatteroth
1c6e6e10fb
Replace codimd with hedgedoc (#875)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-12-22 17:27:26 +01:00
Philip Molares
1b563f7f89
fix pasting text (#871)
* fix onPast bug in editor

the event was prevented, if event.clipboardData.files was defined. This always the case. Now we check if this filelist object has at least on entry to start the onPaste handler for file uploads.

Signed-off-by: Philip Molares <philip.molares@udo.edu>

* added e2e test that verifies that pasting text still works

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-12-21 11:58:43 +01:00
Erik Michelson
c5ad0e6eca
Fix bug that pathname is always empty (#859) 2020-12-17 23:30:18 +01:00
Philip Molares
0c0841639a
added upload functionality (#758)
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-12-16 23:07:09 +01:00
Tilman Vatteroth
8ce344512c
Use fira code in editor (#695)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-12-14 23:58:46 +01:00
Tilman Vatteroth
79171a8456
Move highres image (#857)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-12-13 16:31:55 +01:00
Tilman Vatteroth
c5af44909c
Update markmap (#834)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-12-12 13:45:10 +01:00
Philip Molares
48d78d9839
fixed table-picker.tsx (#836)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-12-11 23:41:07 +01:00
Tilman Vatteroth
fee1605636
Add custom language list for highlight js without 1c (#809)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-12-07 21:36:14 +01:00
Philip Molares
64edb05204
removed the f9 shortcut to sort all lines in a pad (#814)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-12-02 22:45:55 +01:00
Philip Molares
e0dbb05572
changed calls to cy.route to cy.intercept (#806)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-11-30 12:31:54 +01:00
Tilman Vatteroth
bc7ff07256
Extract windows location code into hook (#808)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-11-30 10:09:04 +01:00
Philip Molares
a24ef18dd4
added table overlay to table toolbar button. (#763)
Co-authored by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-11-29 13:17:40 +01:00
Tilman Vatteroth
0d480d509b
Replace source * pro files with npm package (#793)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-11-29 10:08:27 +01:00
Tilman Vatteroth
74fd6d0630
Split scss vars for themes (#802)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-11-28 22:08:18 +01:00
renovate[bot]
fda558d649
Update dependency markdown-it-anchor to v6 (#642)
* Update dependency markdown-it-anchor to v6
* Set initial slug-count offset on duplicate headings to 1 instead of 2

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>

Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-26 22:05:17 +01:00
Philip Molares
63de77ccdd fixed avatar url as we moved it in the reuse pr
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-11-25 14:58:40 +01:00
Philip Molares
c09aaf010c
use types from markdown-it-toc-done-right plugin (#665)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-11-23 12:40:54 +01:00
Philip Molares
f3bf7cd105
Added reuse information (#782)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-11-22 21:50:07 +01:00
mrdrogdrog
42cbb51bfa
Feature/hedgedoc logo (#606) 2020-11-15 21:37:39 +01:00
Philip Molares
62d95a5704
fix anchor links (#754) 2020-11-15 21:23:24 +01:00
renovate[bot]
8b8eff7b46
Update dependency emoji-picker-element to v1.3.0 (#744)
* Update dependency emoji-picker-element to v1.3.0

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-11-07 17:41:37 +01:00
renovate[bot]
7fffd9458e
Update dependency markmap-lib to v0.10.1 (#745)
* Update dependency markmap-lib to v0.10.1

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-11-07 17:18:32 +01:00
mrdrogdrog
e73661d406
Refactor emoji code (#720)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-11-04 21:33:52 +01:00
Philip Molares
0e058e16e2
move taskLists from full to basic renderer (#725) 2020-11-01 21:38:17 +01:00
Philip Molares
c9fe4e4887
moved alertContainer to basic renderer from full renderer (#736) 2020-10-31 20:22:55 +01:00
renovate[bot]
433985f508
Update dependency eslint-config-standard to v16 (#735)
* Update dependency eslint-config-standard to v16
* disable useless message
* replace regex

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-10-31 10:33:51 +01:00
mrdrogdrog
1690a7bdcf
Improvement/move document content into redux (#691) 2020-10-28 22:15:00 +01:00
Tilman Vatteroth
0750695e2f extract scroll code from renderer into hook
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-10-28 21:49:18 +01:00
mrdrogdrog
4603e3988a
Extract view mode shortcut code into hook (#688) 2020-10-28 11:35:24 +01:00
mrdrogdrog
c6d2aa76ca
extract code into useFirstDraw hook (#689) 2020-10-28 11:34:21 +01:00
mrdrogdrog
819b36a137
Use editor-preference-select for spell check (#694) 2020-10-28 11:32:44 +01:00
Tilman Vatteroth
5197d0512b Disable check box if no onTaskCheckedChange is provided
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-10-28 11:29:27 +01:00
Tilman Vatteroth
0eabfc3bb3 Fix font-color in flowchart
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-10-28 11:28:50 +01:00
Tilman Vatteroth
9554d6d3b3 Use bare version of markdown-it-emoji
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-10-28 11:28:23 +01:00
mrdrogdrog
460badb97b
Update multiple packages (#719)
* Update multiple packages

- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- eslint-config-react-app
- eslint-config-standard
- react-scripts

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* fix type

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* deduplicate code

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Disable test because it doesn't work

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* repair service worker

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Lazy load mermaid

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* use show error

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* fix tsconfig in cypress

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* fix import integration test

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-10-25 21:17:59 +01:00
renovate[bot]
47f84f1933
Update dependency markmap-lib to v0.9.2 (#707)
* Update dependency markmap-lib to v0.9.2

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-10-25 11:58:40 +01:00
renovate[bot]
8e60c1750f
Update dependency flowchart.js to v1.15.0 (#680)
* Update dependency flowchart.js to v1.15.0

* Remove custom types

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Adjust code to new types

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-10-17 18:50:08 +02:00
mrdrogdrog
8a8c043081
Set background or alternative colors for diagrams (#667) 2020-10-13 20:58:39 +02:00
mrdrogdrog
d5ee2f6d54
Update flowchart js (#674) 2020-10-13 15:55:15 +02:00
mrdrogdrog
0d2c2fe0ee
Replace empty components with hooks (#666) 2020-10-12 22:33:23 +02:00
Erik Michelson
9e9108ec9a
Add read-only view (/s/note) (#563)
* Update Link classes to allow tooltips/titles

* Added read-only-view, Move note title extraction into separate file

(cherry picked from commit be23083ca3966f26b1b841d5cf4f21e299c8a55a)
(cherry picked from commit cbc595d3fc336b0a649c396dfae30fa08082384c)

* Optimized look of document-infobar

(cherry picked from commit 0176668b156da3fd7c534161a839ca0e3495119c)

# Conflicts:
#	src/components/editor/document-bar/document-info/document-info-time-line.tsx

* Show help-button only in Editor-variant of AppBar

(cherry picked from commit 3c26e1619c774fe162cb3d8fae9e79ced92c9c3e)

* Update CHANGELOG

(cherry picked from commit d0d29e7d408515cc8f86df45d13fff60d741873e)

* Move motd-banner to top of page

(cherry picked from commit 43a9a274bf5da3fdf640ec905ab38153c81b014b)

* Refactor isInline to size property

(cherry picked from commit cb4ee74b7c97ec9711946f28924e9c890b752ea3)

# Conflicts:
#	src/components/editor/document-bar/document-info/document-info-time-line.tsx

* Add size attribute to user-avatar

(cherry picked from commit 9629b58911b9d4f3aed81ef8c271fbc8e5a15aa4)

* Add mode-enum to app-bar

(cherry picked from commit 08f95be58974468c1e2897b475e5e3235b79c230)

* Split DocumentRenderPane into scrollable- and non-scrollable variant

(cherry picked from commit 44dd27edfd967745c548f7ae1fd2047e812cdc22)

* Removed unnecessary className
2020-10-12 21:58:00 +02:00
Philip Molares
36679753d7
updated flowchart.js to 1.14.2 (#671)
using types from the package instead of our own
2020-10-11 21:03:23 +02:00
mrdrogdrog
02ae83ba5e
Updates twemoji.ttf with a new version that is built for twemoji 13 (#664)
* Updates twemoji.ttf with a new version that is built for twemoji 13
* Rename font
2020-10-11 12:57:19 +02:00
mrdrogdrog
417a5dc798
Activate markdown folding (#668)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-10-11 12:55:17 +02:00
Erik Michelson
5574f09ef5
Replace emoji-mart with emoji-picker-element (#620)
* Change dependencies

* Use emoji-picker-element instead of emoji-mart

* Optimize emoji-picker appeareance and data-source

* Add twemoji font to emoji-picker

* Add missing useEffect dependency

* Add emoji-shortcode map

* Include emoji-data into bundle and remove dynamic fetch

* Rename shortcode-map

* Fix emoji-picker being hidden on second attempt to open it

* Add support for skin-tone short-codes

* Remove whitespace line

* Don't reinitialize the picker on every open

* Fixed linting and test issues

* Update CHANGELOG entry
2020-10-10 23:12:17 +02:00
Philip Molares
fe40d7247d
added missing button-inside css file in MarkmapFrame (#663) 2020-10-10 12:24:19 +02:00
Erik Michelson
053edb9ace
Add access token management to profile (#653)
* Add mock-files, API calls and overall tokens-UI

* Added ability to add tokens

* Added token deletion feature (based on timestamp)

* Replace mock-method by real API code

* Add cypress tests

* Added CHANGELOG information

* Un-access-ify i18n

* Set unique react-element key to timestamp of token-creation

* Remove 'now' from changelog

* Use @mrdrogdrog's suggestion for the info label
2020-10-10 11:38:32 +02:00
Erik Michelson
729ad652b3
Added markdown-file import (#645)
* Added markdown-file import

* Reset file input after read, don't add unnecessary blank lines

* Add cypress-file-upload dependency

* Add cypress tests for md file importing

* Added CHANGELOG entry
2020-10-09 21:26:04 +02:00
Philip Molares
c1d4ac1014
Markmap make mouse input toggle (#655)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-10-09 19:32:06 +02:00
Philip Molares
0670cddb0b
markdown-it-configurator (#626)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
2020-10-08 22:24:42 +02:00
renovate[bot]
07364ff07b
Update dependency markmap-lib to v0.9.1 (#637)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: mrdrogdrog <mr.drogdrog@gmail.com>
2020-10-07 12:21:03 +02:00
Philip Molares
b094fe1de6
added js as an extra highlighted language (#646) 2020-10-06 14:20:23 +02:00
Philip Molares
9f7a106834
added markdown export (#627) 2020-10-06 12:43:17 +02:00
Philip Molares
4984008aff
fixed help modal width (#644)
after we added tabs in the help modal, the modal doesn't need to be xl anymore as it has way to much empty space that way.
2020-10-06 12:41:47 +02:00
Erik Michelson
9b6fca29e8
Add common download helper (#628)
* Refactor download functions into a common helper function

* Removed unused import
2020-10-03 22:38:46 +02:00
Philip Molares
460aef6ffe
added 'gitlab snippet' item to import and export menus (#624) 2020-10-03 20:38:22 +02:00
Philip Molares
20e296cb9b
replaces moment with luxon (#621) 2020-10-02 14:00:29 +02:00
mrdrogdrog
733df9b94a
replace allowedChars with not-whitespace (#617) 2020-09-30 23:58:31 +02:00
Philip Molares
1ab9b58031
Extract clean title from first heading (#616)
* removed first-header-extractor
get first heading from markdown rende
* don't remove editor or renderer just hide them
this way both are always up to date and can be shown very fast
* extracted image alt attribute into first title. too
* added tests as suggested by @mrdrogdrog
2020-09-30 23:50:32 +02:00