3006 Commits

Author SHA1 Message Date
Andrey Okonetchnikov
841772496a Moved EntryEditor to a separate directory 2016-09-29 19:02:28 +02:00
Andrey Okonetchnikov
9f33b160e7 Added some more rules to eslintrc. Removed unnecessary globals from it. 2016-09-29 18:55:01 +02:00
Andrey Okonetchnikov
e644104542 Added drag'n'drop image adding to VisualEditor.
Removed StylesMenu and BlockTypesMenu positioning code since it didn't work
with adding images using DnD.
2016-09-29 18:53:47 +02:00
Andrey Okonetchnikov
e454144d31 Use HoC withPortalAtCursorPosition for StylesMenu and BlockTypesMenu to DRY 2016-09-29 18:51:39 +02:00
Andrey Okonetchnikov
cfc8be3f36 Removed console.log call 2016-09-29 18:48:23 +02:00
Andrey Okonetchnikov
47512001ec Implement image uploading for the raw editor 2016-09-28 14:05:51 +02:00
Andrey Okonetchnikov
0a3676204e Localized CSS 2016-09-28 12:46:39 +02:00
Andrey Okonetchnikov
d09e9b40e4 Updated styles for entry page layout.
This removes the need for resize handlers and height calc anymore.
Re-written the component in a functional way.
2016-09-28 12:24:17 +02:00
Andrey Okonetchnikov
4192945a3b Updated jsx-indent-props rule 2016-09-28 12:23:26 +02:00
Andrey Okonetchnikov
2b5a987945 WIP on drag'n'drop image uploading 2016-09-28 11:19:12 +02:00
Andrey Okonetchnikov
4020dfc912 Refactored MarkdownControl to not use constructor and simplified render method 2016-09-27 13:08:25 +02:00
Andrey Okonetchnikov
107e8f7104 Moved MarkupItReactRenderer to /components. Added a story for it. 2016-09-27 12:57:41 +02:00
Andrey Okonetchnikov
78eb65bca2 Renamed component 2016-09-27 12:24:52 +02:00
Andrey Okonetchnikov
f38e6b6f25 Use dangerouslySetInnerHTML since the react parser wasn't working with inline styles correctly. 2016-09-27 12:18:52 +02:00
Andrey Okonetchnikov
05913d4a1b Omit not allowed attributes instead of white-listing them 2016-09-27 11:33:28 +02:00
Andrey Okonetchnikov
e0724aa1bd Use react-htmlparser2 to render HTML to React VDOM 2016-09-27 11:26:28 +02:00
Andrey Okonetchnikov
0a9eb3d688 Fixed a typo 2016-09-27 11:14:41 +02:00
Andrey Okonetchnikov
71c638bc27 Integrated MD Preview component with mediaproxy 2016-09-26 15:59:49 +02:00
Andrey Okonetchnikov
cdc71a2bbf Sanitize unsupported props. This removes all React warnings. Refactored renderToken. 2016-09-26 15:37:25 +02:00
Andrey Okonetchnikov
af8ea80142 Added support for custom renderers 2016-09-26 13:31:36 +02:00
Andrey Okonetchnikov
20e681e7ec Added support for rendering inlined HTML in MD documents 2016-09-26 13:18:22 +02:00
Andrey Okonetchnikov
1860a2389d Use Immutable data structure without converting to JSON for speed and profit. Added more tests. 2016-09-23 19:56:35 +02:00
Andrey Okonetchnikov
57688af42e Support more elements. Import dicitonaries from markup-it. Added more tests. 2016-09-22 22:34:43 +02:00
Andrey Okonetchnikov
9392fdbe30 Integrated MarkitupReactRenderer with Preview pane 2016-09-22 21:53:57 +02:00
Andrey Okonetchnikov
04c9780ee1 Better implementation 2016-09-22 21:53:11 +02:00
Andrey Okonetchnikov
c928fbccaf Switched to enzyme 2016-09-22 21:52:43 +02:00
Cássio Souza
190f9c2613 Merge pull request #83 from netlify/react_license
Add LICENSE for the react version.
2016-09-22 13:42:05 -03:00
David Calavera
b1464dc2b1
Add LICENSE for the react version.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-09-22 09:36:14 -07:00
Andrey Okonetchnikov
c243a62a32 Generate keys for arrays of elements to remove React warnings. Pass only a single child if possible. 2016-09-22 18:23:44 +02:00
Andrey Okonetchnikov
7fe1a6f8b6 Extracted renderToken function from class. Do not render additional <div>. 2016-09-22 17:44:25 +02:00
Andrey Okonetchnikov
2c483220b5 Updated lint-staged 2016-09-22 17:37:18 +02:00
Andrey Okonetchnikov
78e7a44aaa Added jest env to eslintrc 2016-09-22 17:37:06 +02:00
Andrey Okonetchnikov
95008d8607 WIP on React renderer for any Markit-up syntax 2016-09-22 17:36:02 +02:00
Andrey Okonetchnikov
862b85e4c3 Added support for testing React components 2016-09-22 17:20:05 +02:00
Andrey Okonetchnikov
53580ab0b9 Merge branch 'react' into markitup-react 2016-09-22 10:25:29 +02:00
Andrey Okonetchnikov
3a15913014 Merge pull request #80 from netlify/jest
Switched to Jest testing framework.
2016-09-22 10:23:45 +02:00
Andrey Okonetchnikov
d351f10a9b Fixed formatting of richText.js 2016-09-22 10:03:02 +02:00
Cássio Zen
3e22b13612 updated Readme 2016-09-20 11:29:45 -03:00
Andrey Okonetchnikov
0b69f6fa98 Switched to Jest testing framework.
Made tests pass again. Created entries.spec.js + made it pass.
Added wallaby.config.js to support wallaby.js runner.
2016-09-20 14:00:03 +02:00
Cássio Zen
d7363f276e Removed “AppHeader” and “FindBar” from UI 2016-09-19 15:52:20 -03:00
Cássio Souza
af1c188a86 Merge pull request #67 from netlify/react-pr
React Editorial Workflow
2016-09-19 15:32:06 -03:00
Cássio Zen
98972ae21e Merge branch 'react-pr' of https://github.com/netlify/netlify-cms into react-pr 2016-09-19 15:31:12 -03:00
Cássio Zen
b56bd24abb fast forward to github implementation 2016-09-19 15:31:01 -03:00
David Calavera
983fdb84a5 Merge pull request #78 from netlify/dashboard-link
Header and Navigation
2016-09-19 10:44:27 -07:00
Andrey Okonetchnikov
19e33a0d82 Merge branch 'react-pr' into dashboard-link 2016-09-16 15:20:24 +02:00
Andrey Okonetchnikov
4da610a2b3 Better names for methods. Fixes ESLint warnings. 2016-09-16 15:01:19 +02:00
Andrey Okonetchnikov
2fada62fff Removed unused styles + added drawerContent style 2016-09-16 15:01:02 +02:00
Andrey Okonetchnikov
cc80ef4a29 Added navigation drawer with list of collections. Closes #71 2016-09-16 15:00:24 +02:00
Andrey Okonetchnikov
eb187e1f05 Fixed React warning when using Immutable.map with .map 2016-09-16 14:28:25 +02:00
Andrey Okonetchnikov
46667926b2 Moved findBar to components and decopuled it from redux as much as possible.
Removed stories from containers. These aren't possible to write since containers depend on redux.
2016-09-16 12:54:26 +02:00