Commit graph

115 commits

Author SHA1 Message Date
Philip Molares
1bd18cc0ee
feat: add linter and linterGutter (#2237)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-07-31 18:25:03 +02:00
Tilman Vatteroth
6ba957585a
Use yarn pnp as module linker (#2252)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-07-30 23:32:19 +02:00
Tilman Vatteroth
96cd8fbe81 Add mutation observer to first heading title extraction logic
This detects async changes of the headline (like katex does).

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-07-03 20:32:24 +02:00
Tilman Vatteroth
cf892a11a0
Lock editor until yCollab extension is loaded (#2136)
* Lock editor until yCollab extension is loaded

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-06-19 20:02:51 +02:00
renovate[bot]
040e11924f
Update dependency cypress to v10 (#2095)
* Update dependency cypress to v10
* Migrate cypress files

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-06-08 11:19:51 +00:00
Tilman Vatteroth
e93607c96e
Move toolbar functionality from redux to codemirror dispatch (#2083)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-06-07 23:10:49 +00:00
Erik Michelson
bca9e9471f Remove flaky intro links test
This e2e test is not very useful to us as it only tests hardcoded link targets.
We should focus on testing user-scenarios in our e2e tests, not single components.
One should instead write a unit-test for the InternalLink component.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-05-21 15:03:50 +02:00
Tilman Vatteroth
32c6bbb8e3
Test multiple markdown extensions (#1886)
This commit adds multiple unit jest tests for components and removes e2e tests. 

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

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

Co-authored-by: Philip Molares <philip.molares@udo.edu>
2022-04-27 09:59:01 +02:00
Erik Michelson
26f90505ff
Adapt react-client to use the real backend API (#1545)
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-15 23:03:15 +02:00
Tilman Vatteroth
bf1881eb54 Move copy button test from e2e to unit test
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-10 01:42:26 +02:00
Tilman Vatteroth
3a74ce9267 Replace splitter e2e test with unit test
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-10 01:42:26 +02:00
Tilman Vatteroth
6a6f6105b9
Upgrade to CodeMirror 6 (#1787)
Upgrade to CodeMirror 6

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-02-13 11:14:01 +00:00
Tilman Vatteroth
57cb6f5b15
Add markdown renderer for motd (#1840)
* Add markdown renderer for motd

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-02-10 08:27:09 +00:00
Tilman Vatteroth
57f01e8903 Replace "cypress-file-upload" with cypress selectFile
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-02-05 20:33:28 +01:00
Tilman Vatteroth
ca5dae3f82 Add new visit functions in e2e tests
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-01-30 22:13:41 +01:00
Tilman Vatteroth
b30cc5b390
Move toolbar functions into redux reducer (#1763)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-01-26 17:14:28 +01:00
Tilman Vatteroth
98040cbdaa
Fix autocompletion (#1736)
* Add visibility check for codemirror autocompletion

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

* Move autocompletion trigger to extended-codemirror

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-12-31 14:00:33 +01:00
Tilman Vatteroth
20d9a15cff
Add etag header to last modified check of motd (#1739)
* Add etag header to last modified check of motd

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-12-31 09:30:12 +01:00
Philip Molares
4089f0c6ed
fix: use actual noteTitle in DeleteNoteSidebarEntry (#1729)
fixes #1728

Signed-off-by: Philip Molares <philip.molares@udo.edu>
Co-Authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-12-30 18:40:52 +01:00
Tilman Vatteroth
af660f78fc
Remove Asciinema (#1730)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-12-30 14:01:21 +00:00
Renovate Bot
77a60c6c48 Switch the base framework from Create React App to Next.JS
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-12-30 14:43:25 +01:00
Tilman Vatteroth
6594e1bb86
Move markdown split into redux (#1681)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-12-14 10:16:25 +01:00
Tilman Vatteroth
03725f5512
Update to cypress 9 and fix firefox upload crash (#1653)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-11 21:17:23 +01:00
Tilman Vatteroth
d4251519e2
Add image placeholder and upload indicating frame (#1666)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Co-authored-by: Philip Molares <philip.molares@udo.edu>
2021-12-11 15:34:33 +01:00
Erik Michelson
eab189c3c6
Refactor login components and adjust login API routes (#1678)
* Refactor login components and adjust API routes

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

* Adjust API /me response and redux state

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

* Fix moved function

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

* Update cypress tests

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

* Adjust mock response

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

* Integrate new common fields and hook into profile page

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

* Remove openid

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

* Fix config mock

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

Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-12-11 01:32:38 +01:00
Tilman Vatteroth
9874d54404
Refactor table size picker (#1662)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-12-02 23:55:16 +01:00
Tilman Vatteroth
8a23aa1401
Iframe capsule (#1663)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-12-02 23:35:31 +01:00
Erik Michelson
f1117dbad3
Refactor profile page (#1636) 2021-12-02 22:03:03 +00:00
Tilman Vatteroth
a96b06c95b
Fix renderer type test (#1647)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-11-21 12:48:30 +01:00
Erik Michelson
d725b65140
Cypress-IDs and prettier for tests (#1634)
* Add cy.getById method and run prettier

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2021-11-19 18:04:04 +01:00
Tilman Vatteroth
8a8bacc0aa
Introduce Markdown extensions (#1614)
* Introduce markdown extensions

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-11-15 17:04:49 +01:00
Tilman Vatteroth
e9defd60dc
Restructure click shield (#1611)
* Rename one-click-embedding to click shield
* Removes the static fallback image from the vimeo frame. The set URL is broken.
* Adds the ability to define background colors for the click shield background


Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-11-14 18:44:55 +01:00
Tilman Vatteroth
84ee1d9cd9
Add dom purify (#1609)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-11-02 08:15:33 +01: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
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
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
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
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
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
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
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
4b3990d0db
Add extra test suite for emojis (#1322)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-17 21:19:05 +02:00
Tilman Vatteroth
6c4c5a81af Fix tests
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-12 18:25:47 +02:00
Tilman Vatteroth
0ecd255297 Fix test
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-06-12 18:25:47 +02:00
Tilman Vatteroth
a25c13176d Fix test
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
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