Commit graph

146 commits

Author SHA1 Message Date
mrdrogdrog
73007ef597
Added synced scrolling (#386)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-08-19 23:01:38 +02:00
mrdrogdrog
164b5436ae
Use prod build for e2e tests (#432)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-08-19 22:43:56 +02:00
Tilman Vatteroth
d6646ac3e9 Add resolution for cypress
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-08-19 22:22:50 +02:00
Erik Michelson
8377722e1a
Restructure editor user interface (#399)
* Replaced connection indicator in editor top bar with user-menu

* Added basic layout of bottom document bar

* Fixed margins between elements

* Reorganized document-bar

* Added dividers into toolbar

* Move files from task-bar to document-bar and remove test file

* moved connection-indicator components into its own folder

* moved document bar to the top

* moved connection-indicator once again

* Change design

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

* New idea for timestamps

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

* Add css

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

* Revert "Add css"

This reverts commit 6780aa05

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

* Revert "New idea for timestamps"

This reverts commit bf2891e1

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

* split import / export

* Made version input field to a common component

* added read-only modal
added document-time
added placeholder text for permissions

* remove flex-nowrap from editor toolbar

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

* Add codimd permission menu

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

* Move permission picker to the right

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

* add use memo

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

* Add user-select-none to documenttime component

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

* added status-bar

* fixed status-bar

* Add document info mock

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

* changed published to share in i18n

* reordered document bar
moved share modal in it's own component

* changed the divider color in the toolbar

* Add details to document info

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

* Add pin mock button

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

* Restructure toolbar after rebase and extract EmojiPicker+Button into component

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

* Correct linue number output

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

* Add some space into status bar

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

* Cleanup code to make ESLint happy

* Fix Toc button position

* Added link to presentation mode button

* Cache codemirror props

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

* Fix code blocks not being completely visible

* Improve document info modal

- The document info timeline always wrapped the received moment.js-object into a new moment.js object instead of directly using the given one.
- The timestamps were configured to be displayed without suffix, but this is necessary to support valid translation grammar.
- There was no margin between the icons and the texts.

* Highlighted user name in document-info modal

* Add avatar icon to document-info modal

* Improved english translation of the share-info

* Improve performance of copyable-fields by using useCallback

* Add translation keys for pin-to-history button

* Forwarded note title to editor-menu for deletion modal info

* Add placeholders to translations

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

* change translation

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

* Change permission dropdown to permission button

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

* Fix translations of emoji-picker and preferences

* remove unused imports

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

* Add alt attribute

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

* Fix share button and i18n files

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

* Fix use of i18n keys

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

* Use modal-body

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

* useCallback

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

* Use more specific i18n key

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

* Add a new entry and move i18n key for usercontribution

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

* Fix i18nkey für shareLink

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

* remove unused i18nkey

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

* Rename component DocumentInfo to DocumentInfoButton

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

* Extract revision button code into own component

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

* wrap buttons in navbar-nav

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

* organize imports

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

* organize imports

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

* Added editor-preferences modal

* Added functionality to preferences modal

* Activated search and replace feature in CodeMirror

* pdf export unavailability notice (#403)

* added pdf export unavailability notice with link to FAQ
as many users ask all the time why this was removed and when they'll get it back, this seemed like a fine solution in the meantime.

Co-authored-by: Erik Michelson <github@erik.michelson.eu>

* Refactored editor-preferences to just use one generic select component

* Fixed warnings regarding duplicated controlId and missing useCb-deps

* Reorganized translation keys

* Fixed i18n indentation for POEditor.com

* Added translation key for 'avatar of ...'

* Remove fragment

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

* Use user-avatar in document-info-line.tsx

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

* Revert changes in user-avatar and solve the problem otherwise

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

* Removed unnecessary import

* Removed another unnecessary import

* Refactored EditorPreferenceSelect to use enum and automatic type conversions

* Remove unused CodeMirror reference

* Fix spacing problem

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

* Increate size of image

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

* fixed share-link's space around the copyable-field

Co-authored-by: Philip Molares <philip.molares@udo.edu>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: Philip Molares <git@molar.es>
2020-08-15 17:27:46 +02:00
renovate[bot]
f9caf0e10c
Update definitelyTyped (#411)
* Update definitelyTyped

* regenerate yarn.lock

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-08-15 15:51:06 +02:00
Philip Molares
0200015ec0 removed the unused dependency start-server-and-test 2020-08-15 15:19:39 +02:00
renovate[bot]
fca0c92730
Update dependency start-server-and-test to v1.11.3 (#417)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-15 02:47:06 +02:00
renovate[bot]
32f60f22ab
Update dependency i18next-http-backend to v1.0.18 (#414)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-15 02:42:57 +02:00
renovate[bot]
c85511178d
Update dependency @testing-library/jest-dom to v5.11.3 (#413)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-15 02:34:42 +02:00
renovate[bot]
3e338adc57
Update dependency react-bootstrap-typeahead to v5.1.1 (#415)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-15 02:34:07 +02:00
renovate[bot]
c5e333a8b2
Update dependency redux-devtools to v3.6.1 (#416)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-15 02:33:32 +02:00
renovate[bot]
090a5d0799
Update typescript-eslint monorepo to v3.9.0 (#418)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-15 02:32:46 +02:00
renovate[bot]
5fc37eb839
Update dependency i18next-browser-languagedetector to v6 (#419)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-15 02:30:59 +02:00
renovate[bot]
f0bf0dc902
Update dependency @cypress/webpack-preprocessor to v5.4.4 (#412)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-15 02:30:04 +02:00
Philip Molares
c8c5569426 updated react-scripts 2020-08-14 11:35:41 +02:00
Renovate Bot
1dfbc25aff Update dependency @types/react to v16.9.45 2020-08-08 12:56:34 +02:00
Tilman Vatteroth
6831924c24 remove asterisk from yarn.lock
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-08-08 10:41:59 +02:00
Tilman Vatteroth
76a27d3dde regenerate yarn.lock 2020-08-08 10:41:59 +02:00
Renovate Bot
0b51722ac1 Update dependency cypress to v4.12.1 2020-08-08 10:41:59 +02:00
Renovate Bot
f207296062 Update typescript-eslint monorepo to v3.8.0 2020-08-08 09:25:38 +02:00
Renovate Bot
0e61034eff Update JS test packages 2020-08-08 07:17:43 +00:00
Renovate Bot
c7f8ba7836 Update dependency @types/jest to v26.0.9 2020-08-08 09:17:11 +02:00
Renovate Bot
bf2f73cfb8 Update dependency i18next-browser-languagedetector to v5.0.1 2020-08-08 09:16:19 +02:00
Renovate Bot
d725398424 Update dependency bootstrap to v4.5.2 2020-08-08 09:15:33 +02:00
Philip Molares
c410a58573
Add emoji picker (#329)
* Added emoji-mart as emoji-picker
* Fixed JSON to TypeScript-object parsing
* added fork awesome to emoji-picker
added ForkAwesomeIcons enum, because it's not possible to iterate over a typescript type consisting of strings [1]. This is a bit unfortunate since we now have two lists of all the fork awesome icons, but sadly it can not be done another way.
added fork awesome as a custom category to the emoji picker.

[1]: https://stackoverflow.com/questions/40863488/how-to-iterate-over-a-custom-literal-type-in-typescript
* made picker close, when clicking away
added react-use dependency for useClickAway hook
* Fixed emoji-picker loading images from unpkg instead of using font
* fixed addEmoji function
added tests
* Extract customIcons into useMemo

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-08-07 18:54:37 +02:00
Philip Molares
fc2e2bd592
Add codemirror keybindings and addons (#311)
* added codemirror addons
- fullScreen
- autorefresh
added a default:
- extraKeys

Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: mrdrogdrog <mr.drogdrog@gmail.com>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
2020-08-06 13:43:48 +02:00
Jakob Klepp
fe2f7403aa
Add plantuml support (#327)
* Add plantuml support
* Enable PlantUML rendering only if plantumlServer config is set
* Show warning box when plantuml is enabled but no server is configured
2020-08-04 11:15:23 +02:00
Renovate Bot
6add1b2f1f Update definitelyTyped 2020-08-01 16:17:17 +02:00
Renovate Bot
e790ce13b6 Update dependency redux-devtools to v3.6.0 2020-08-01 16:17:05 +02:00
Renovate Bot
1fab8426a4 Update dependency ts-loader to v8.0.2 2020-08-01 16:16:51 +02:00
Renovate Bot
5b9cf083c3 Update JS test packages 2020-08-01 16:16:38 +02:00
Renovate Bot
5138771201 Update typescript-eslint monorepo to v3.7.1 2020-08-01 13:52:03 +00:00
Renovate Bot
affd9354e3 Update dependency react-redux to v7.2.1 2020-07-25 21:24:02 +02:00
Renovate Bot
7b77c5a2ef Update typescript-eslint monorepo to v3.7.0 2020-07-25 20:42:20 +02:00
Renovate Bot
056209a9d1 Update dependency react-bootstrap to v1.3.0 2020-07-25 20:34:15 +02:00
Renovate Bot
9b4d232b54 Update dependency start-server-and-test to v1.11.2 2020-07-25 19:23:06 +02:00
renovate[bot]
cf536aefa5
Update dependency i18next to v19.6.3 (#353)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Philip Molares <git@molar.es>
2020-07-25 18:34:46 +02:00
Renovate Bot
5575df00c2 Update dependency highlight.js to v10.1.2 2020-07-25 18:03:40 +02:00
Renovate Bot
c88e2f9c1e Update dependency codemirror to v5.56.0 2020-07-25 17:54:22 +02:00
Renovate Bot
42fefeb9a2 Update dependency @testing-library/user-event to v12.0.15 2020-07-25 17:52:17 +02:00
Renovate Bot
2a735a15aa Update dependency @cypress/webpack-preprocessor to v5.4.2 2020-07-25 17:48:45 +02:00
Renovate Bot
0954c40b46 Update definitelyTyped 2020-07-25 17:39:48 +02:00
renovate[bot]
18e165d1ab
Update dependency cypress to v4.11.0 (#340)
* Update dependency cypress to v4.11.0


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-07-25 13:59:56 +02:00
Renovate Bot
6ef505e514 Pin dependency js-yaml to 3.14.0 2020-07-18 22:30:24 +02:00
Renovate Bot
33671f170a Update dependency ts-loader to v8 2020-07-18 22:25:47 +02:00
Renovate Bot
435ef27641 Update dependency @types/jest to v26.0.5 2020-07-18 22:24:50 +02:00
Philip Molares
29709d2ba4
Add YAML-metadata for notes and change the document title accordingly (#310)
* Added yaml-frontmatter extracting and error handling
* add tests
* changed document-title, so the editor can change the title to the title of the yaml metadata. closes #303
* extracted first line parsing in a core rule of markdown-it
document title will now be determined like this:
1. yaml metadata title
2. opengraph title
3. first level one heading
4. 'Untitled'
* added documentTitle e2e test

Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Co-authored-by: Philip Molares <philip@mauricedoepke.de>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: mrdrogdrog <mr.drogdrog@gmail.com>
2020-07-18 22:17:36 +02:00
renovate[bot]
07fed5c67e
Update typescript-eslint monorepo to v3.6.1 (#339)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-18 02:47:31 +02:00
renovate[bot]
9915de86f5
Update dependency typescript to v3.9.7 (#338)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-18 02:44:49 +02:00
renovate[bot]
67fce02f76
Update dependency @types/codemirror to v0.0.97 (#335)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-18 02:41:01 +02:00