Commit graph

6248 commits

Author SHA1 Message Date
Renovate Bot
2d4ecf6527 Pin dependencies 2020-06-20 21:09:23 +02:00
mrdrogdrog
7e9a828d44
Refactor video-util.ts and rename markdown-preview (#233)
* Refactor video-util.ts
* Rename markdown-preview to markdown-renderer and refactor some methods

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-06-20 21:05:24 +02:00
mrdrogdrog
5f4cc63eb4
Deduplicate code (#217)
* Deduplicate code

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-06-20 20:32:44 +02:00
Philip Molares
ab2a73c6a8 added support for markdown-it-footnote
this makes it possible to use footnotes
2020-06-20 20:26:27 +02:00
mrdrogdrog
2c81b746aa
Add Alerts (#234)
* Add alert banners

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-06-20 20:17:33 +02:00
Philip Molares
4852727f92
added support for markdown-it-abbr (#238)
this makes it possible to use abbreviations like these
```
*[HTML]: Hyper Text Markup Language
*[W3C]:  World Wide Web Consortium
The HTML specification
is maintained by the W3C.
```

Co-authored-by: Philip Molares <philip@mauricedoepke.de>
2020-06-20 19:29:46 +02:00
Philip Molares
09c21e4334
added support for markdown-it-deflist (#240)
this makes it possible to use definition lists like
```
Term 1

:   Definition 1
with lazy continuation.

Term 2 with *inline markup*

:   Definition 2

        { some code, part of Definition 2 }

    Third paragraph of definition 2.

_Compact style:_

Term 1
  ~ Definition 1

Term 2
  ~ Definition 2a
  ~ Definition 2b
```

Co-authored-by: Philip Molares <philip@mauricedoepke.de>
2020-06-20 19:25:31 +02:00
Tilman Vatteroth
1703818b91 Change font settings for editor
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-06-20 19:22:07 +02:00
Philip Molares
e309f4e608
Merge pull request #232 from codimd/feature/emphasisPlugins
Emphasis plugins
2020-06-20 19:21:52 +02:00
mrdrogdrog
2dcc7e7beb
PDF embedding (#218)
* Add pdf embedding

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
2020-06-20 19:21:43 +02:00
Tilman Vatteroth
54497c2f57 Add twemoji to changelog
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-06-20 19:20:51 +02:00
mrdrogdrog
e26beecb85
Add codimd to jetbrains dictionary (#235)
* add codimd to jetbrains dictionary
2020-06-20 16:47:30 +02:00
Philip Molares
28e761e9c6 used new plugins in markdown-preview
this re adds support for
sub- and superscript and inserted and marked text
closes #216
2020-06-20 12:53:45 +02:00
Philip Molares
7166de10f3 added typescript definitions
added typescript definitions for the plugins:
 - markdown-it-mark
 - markdown-it-ins
 - markdown-it-sub
 - markdown-it-sup
2020-06-20 12:52:38 +02:00
Philip Molares
7ea5a6a221 added plugins
added the plugins:
 - markdown-it-mark
 - markdown-it-ins
 - markdown-it-sub
 - markdown-it-sup
2020-06-20 12:52:03 +02:00
Renovate Bot
6017dab038 Update dependency @testing-library/user-event to v12 2020-06-20 12:18:17 +02:00
Renovate Bot
ae0e941c2f Pin dependency github-markdown-css to 4.0.0 2020-06-20 12:12:13 +02:00
renovate[bot]
7ed58e9617
Update dependency i18next-browser-languagedetector to v5 (#230)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-20 12:08:08 +02:00
renovate[bot]
7961028bfa
Update dependency i18next-browser-languagedetector to v4.3.1 (#225)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Philip Molares <git@molar.es>
2020-06-20 11:58:39 +02:00
Renovate Bot
82db469408 Update dependency react-i18next to v11.7.0 2020-06-20 11:53:48 +02:00
Renovate Bot
7a01f0ce96 Update typescript-eslint monorepo to v3.3.0 2020-06-20 11:51:41 +02:00
Renovate Bot
4404e2034c Update dependency moment to v2.27.0 2020-06-20 11:49:47 +02:00
Renovate Bot
98469dcef0 Update dependency i18next to v19.5.0 2020-06-20 11:32:51 +02:00
Renovate Bot
41f630e004 Update dependency eslint-plugin-jsx-a11y to v6.3.1 2020-06-20 11:31:35 +02:00
renovate[bot]
580a7b17dc
Update dependency @testing-library/react to v10.3.0 (#221)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-20 03:22:49 +02:00
renovate[bot]
9614303091
Update dependency @testing-library/jest-dom to v5.10.1 (#220)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-20 03:17:51 +02:00
renovate[bot]
bb270c1c38
Update dependency @types/react to v16.9.38 (#222)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-20 03:16:41 +02:00
renovate[bot]
450bdbfaee
Pin dependencies (#219)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-20 03:15:03 +02:00
mrdrogdrog
7189a63618
Basic markdown renderer (#197)
* Add basic markdown it rendering
* Add markdown preview
* Add embedings for vimeo, youtube, gist
* Add support for legacy shortcodes and link detection
* Set "both" as editor default
* Add markdown-it-task-lists
* Add twemoji
* Changed SlideShare short-code behaviour from embedding to generating a link
* Extract markdown it parser debugger into separate component
* Deactivate markdown it linkify for now
* Add link safety attributes
* Add one-click-embedding component and use it
* Added embedding changes and deprecations to CHANGELOG.md

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: Philip Molares <philip@mauricedoepke.de>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
2020-06-20 00:44:18 +02:00
Philip Molares
8ba2be7c70
the changelog for this project (#175)
started a changelog for this project

it follows the proposed format from https://keepachangelog.com/en/1.0.0/

Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Co-authored-by: Sheogorath <sheogorath@shivering-isles.com>
2020-06-16 22:28:49 +02:00
Philip Molares
e014eb36b5
Adds an info banner to the app (#190)
* added info-banner component to show the banner.text, we got from the backend config. This banner is shown on top of the landing page (intro, history, login/signup and profile) and also on top of the editor and links to `/n/banner`
* added banner to backendConfig Redux state
* added BannerState to the ApplicationState with that the showing of the banner is globally controlled, the banner text is given to the banner component and the timestamp to acknowledge a banner was read by the user
* the timestamp of a dismissed note is saved in the browsers localStorage to determine in the future if the banner should be shown

Signed-off-by: Philip Molares <philip.molares@udo.edu>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
2020-06-15 21:54:20 +02:00
mrdrogdrog
75aa8b38af
Add pull request template (#208)
Add pull request template
2020-06-15 21:07:16 +02:00
Erik Michelson
2d0b605257
Add links from recent note history entries to the actual note (#203)
* Added Link objects around history-cards and the title in table-view

This commit adds one Link element wrapping the title of a note in the table view and one Link element wrapping the whole card of a note in cards view.

This behaviour currently doesn't work completely correct as other buttons on the card become unclickable and needs to be fixed in another commit before merging this branch.

* Fixed Link behaviour for card view

The cards aren't wrapped inside a Link element anymore but the middle column of a card (where the title and tags are located) is now wrapped inside the Link element.
With this approach not the whole card is clickable anymore, but it's enough clickable space anyway. The positive aspect is that we don't have to deal with "position: absolute"-elements that may break responsiveness.
2020-06-14 12:25:45 +02:00
Tilman Vatteroth
eb92d38133 Redesign history context button
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-06-13 23:50:28 +02:00
renovate[bot]
6f07490f61
Update dependency react-codemirror2 to v7.2.1 (#205)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-13 09:51:57 +02:00
renovate[bot]
3c9d51ffae
Update dependency react-i18next to v11.5.1 (#206)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-13 09:44:48 +02:00
renovate[bot]
25b9ea4dfc
Update dependency @types/codemirror to v0.0.96 (#204)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-13 09:39:06 +02:00
mrdrogdrog
f298d1469b
Add editor split component (#198)
Add split and split divider component
2020-06-13 01:22:27 +02:00
Philip Molares
c679f5524c
added redirector component (#199)
* added redirector component
    * it will redirect every request to /$something that is not handled otherwise (/intro, /login and such) to /n/$something
* added getNote API Call
* added NotFound component
* added LandingLayout around the NotFound component, so users can easily navigate away from the component

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-06-13 00:29:39 +02:00
Tilman Vatteroth
773fc60f07 Fix icon position in application loading screen
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-06-13 00:25:00 +02:00
Tilman Vatteroth
1937fe2418 Show footer always at the bottom
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-06-13 00:13:43 +02:00
Erik Michelson
9d2a1d7035
Updated schedule of renovate (#192)
* Updated schedule of renovate

Even if renovate only creates 1-2 pull requests per day, they start to become annoying. Therefore, we decided to limit the timeslot for renovate actions to our dependency-patch-day Saturday.

* Added option to remove the hourly limit

Because we extend config:base we have a default hourly limit of 2. This change sets that to 0 and thereby disables the limit.
2020-06-11 20:57:41 +02:00
Renovate Bot
ed52ffb72f Update dependency @testing-library/user-event to v11.4.2 2020-06-11 20:56:48 +02:00
Tilman Vatteroth
d9ce262ffb Add placeholder translation
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-06-11 20:50:54 +02:00
renovate[bot]
e887dbb9d0
Pin dependencies (#195)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-11 20:35:07 +02:00
mrdrogdrog
46d68c3ab5
Add basic codemirror (#96)
* started work on codemirror integration
2020-06-11 20:14:40 +02:00
renovate[bot]
e9c16872d4
Update dependency @testing-library/jest-dom to v5.10.0 (#191)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-11 17:42:32 +02:00
renovate[bot]
93f0c4913d
Update dependency @testing-library/user-event to v11.4.1 (#187)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-11 10:17:52 +02:00
renovate[bot]
5cdc2447b8
Update dependency @types/react to v16.9.36 (#186)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-10 13:57:40 +02:00
renovate[bot]
4a963b9dad
Update dependency @testing-library/user-event to v11.4.0 (#185)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-10 10:45:01 +02:00