Mathias Biilmann Christensen
bbce1c30de
Make loading single file work without scanning whole collection
2016-10-27 14:23:36 +02:00
Mathias Biilmann Christensen
2b99e2d176
Support entriesByFiles in test-repo backend
2016-10-27 11:47:19 +02:00
Mathias Biilmann Christensen
8aa8f5ce39
Add shortcut for italics
2016-10-27 11:34:22 +02:00
Andrey Okonetchnikov
c3b4fd9013
Cards typography ( #139 )
...
* Fixed some ESLint errors
* Better card's design for the editorial process.
- Use Card component from react-toolbox
- Added "Edit" buttons for cards
- Cleaned up CSS and JS
Fixes #125
* Better ImageCard and card list view. Fixes #125
* Use collection label instead of name on the CollectionPage
2016-10-26 15:51:50 -02:00
Andrey Okonetchnikov
434f45c97c
Webpack optimizations ( #140 )
...
* Less repetition in webpack configs. Minify CSS classnames in production.
* Ignore all optional deps of moment.js. Fixes #138
* Added target to webpack config
* Automatically extract all 3rd party modules into a separate 'vendor' chunk
* Inline only assets that are smaller than 10KB
* Added autoprefixer options
* Replaced sinfle babel transforms with the stage-1 preset. Cleaned up webpack configs.
* Do not include hot module replacement in production
2016-10-26 15:51:35 -02:00
Cássio Souza
5151e7cdb1
Bugfixes due to new slug signature ( #145 )
2016-10-26 15:50:34 -02:00
Mathias Biilmann
72b56d1cbc
Editor fixes ( #143 )
...
* Use icons for style menu
* Add h1/h2 options to style toolbar
* Handle rich paste events
2016-10-26 14:48:47 -02:00
Mathias Biilmann Christensen
9566392dd3
Fix block menu always showing on first char
2016-10-22 23:28:25 +03:00
Mathias Biilmann Christensen
c068fae24e
Implement block menu with support for plugins
2016-10-22 23:23:19 +03:00
Mathias Biilmann Christensen
c859d7234e
Position editor toolbar
2016-10-22 04:37:22 -07:00
Mathias Biilmann Christensen
3a087e44fa
Make linter happier
2016-10-21 23:19:23 -07:00
Mathias Biilmann Christensen
f40b75e2e3
Implement drag and drup upload support for simple markdown editor
2016-10-21 23:16:19 -07:00
Mathias Biilmann Christensen
a15d014a99
Implement a simple textarea based markdown editor
2016-10-21 22:52:41 -07:00
Cássio Souza
2496ec09a4
Single file collections ( #132 )
...
* Files based collections skeleton
* listing file based cards
* create new entry with collection
* moved lookupEntry to main backend
* Editing single page Collections file
* List widget basic implementation
* Adjustments for test-repo
* check if value exists before trying to iterate over
2016-10-21 20:42:14 -02:00
Andrey Okonetchnikov
3465dc1376
Merge pull request #129 from netlify/infinite-loading-indicator
...
Better loading indicator
2016-10-21 15:33:13 +02:00
Andrey Okonetchnikov
a9b25cc85f
Adjust topbar styles
2016-10-21 15:32:12 +02:00
Andrey Okonetchnikov
188fec4529
[feature] Better loading indicator
...
- Use react-topbar-progress-indicator as a global loading indicator.
- Added a global reducer that only holds `isFetching` for now.
- Display loading indicator on any `*_REQUEST` actions.
- Closes #103
2016-10-20 18:52:24 +02:00
Cássio Zen
bd1216c760
bugfixes for test-repo. Closes #126 and #127
2016-10-20 14:27:58 -02:00
Cássio Zen
195479f088
styles fix
2016-10-20 14:26:57 -02:00
Cássio Zen
f7b74453ab
bugfix. Closes #122
2016-10-20 11:30:29 -02:00
Cássio Zen
a1f15da39f
global config for header padding
2016-10-20 10:48:09 -02:00
Cássio Zen
871fdc9331
removed global selectors
2016-10-20 10:47:37 -02:00
Cássio Zen
9b97a13cc9
bugfix: Don't try to show if entry is partial
2016-10-19 19:10:14 -02:00
Cássio Zen
23ab740d53
value can be undefined as long as there is an entry
2016-10-19 18:29:54 -02:00
Cássio Zen
1cbf6736a2
Small padding adjustment
2016-10-19 15:08:05 -02:00
Cássio Zen
3f8f9197c1
small ui adjustments
2016-10-18 15:18:29 -02:00
Cássio Souza
e001714aed
Optimistic Updates ( #114 )
...
* Optimistic Updates structure
* Optimistic update for Editorial Workflow
2016-10-18 14:30:13 -02:00
Andrey Okonetchnikov
f3b448106d
Added notifications. Closes #101
...
- Using react-notifications to manage redux state
- Refactored Toast component to be stateless
- Toasts can be stacked
- Cleaned up CSS
- Updated stories
2016-10-17 12:35:31 +02:00
Andrey Okonetchnikov
863d90c8ee
Use Loader on the entry page. Closes #102
2016-10-14 13:42:58 +02:00
Andrey Okonetchnikov
3b18fb4f87
Added visual feedback during saving of the entry. Related to #101
2016-10-13 14:31:44 +02:00
Andrey Okonetchnikov
e53262d92c
Moved persisting logic to entryDraft reducer + added tests.
2016-10-13 14:30:11 +02:00
Andrey Okonetchnikov
f9c43bd275
Removed expect import
2016-10-13 11:56:26 +02:00
Andrey Okonetchnikov
5e333aca20
Removed obsolte snapshot
2016-10-13 11:55:46 +02:00
Andrey Okonetchnikov
27659b77f1
Removed console.error from auth reducer to cleanup tests outputs. We should use Netlify error wrapper.
2016-10-13 11:34:55 +02:00
Andrey Okonetchnikov
077e83dfc9
Handle entry persisting state in actions and reducer + added tests.
2016-10-12 19:19:05 +02:00
Andrey Okonetchnikov
8d51f9be3e
Fixed ESLint errors and tests for entries reducer
2016-10-12 16:04:58 +02:00
Andrey Okonetchnikov
2f37b3df12
Fixed eslint errors
2016-10-12 16:01:27 +02:00
Andrey Okonetchnikov
4c5e72a2eb
Updated MarkitupReactRenderer test
2016-10-12 15:52:41 +02:00
Andrey Okonetchnikov
190aa05d68
Use react-toolbox buttons. Added Cancel button for the entry editor.
2016-10-11 18:27:37 +02:00
Andrey Okonetchnikov
6fa02bf79b
Removed //eslint-disable-line
2016-10-11 14:56:33 +02:00
Andrey Okonetchnikov
4868267669
Added onOverlayClick to handle the NavBar. Hide it initially + added a fixed permanentAt to make editing screen more usable.
2016-10-11 11:42:06 +02:00
Andrey Okonetchnikov
03ac8fcaed
Use a correct propType
2016-10-11 11:34:28 +02:00
Andrey Okonetchnikov
0688a9c5ab
Added propTypes + some code refactoring to fix eslint errors
2016-10-11 11:33:56 +02:00
Andrey Okonetchnikov
4da6c9708a
Added propTypes to AppHeader and fixed ESLint errors.
2016-10-11 10:47:47 +02:00
Andrey Okonetchnikov
e0160af9c6
Merge branch 'master' into markitup-react
2016-10-11 10:41:51 +02:00
Andrey Okonetchnikov
ad7acfb347
Merge pull request #97 from netlify/css-modules-undefined
...
CSS-modules `undefined` overlay
2016-10-11 10:32:00 +02:00
Andrey Okonetchnikov
0dd8ad46b9
Merge pull request #94 from netlify/ui-cleanup
...
Better AppHeader
2016-10-11 10:30:59 +02:00
Andrey Okonetchnikov
899681ee84
Merge branch 'master' into markitup-react
2016-10-11 10:28:42 +02:00
Cássio Zen
e89db336a7
avoid branches without metadata
...
but keep trying to load metadata for remaining unpublished branches
2016-10-10 18:33:49 -03:00
Cássio Zen
494ea636a3
eslint adjustments
2016-10-10 16:35:42 -03:00
Cássio Zen
ff0949e417
small bugfixes
2016-10-10 16:10:55 -03:00
Cássio Souza
2815a86e0c
Search integration (React Version) ( #84 )
...
* algolia integration skeleton
* Configuration Defaults
* Implemented partial entries with lazy loading of complete file
* Moved backend selection logic to actioncreators
* basic pagination for entries
* general search skeleton
* Basic search result listing
* Redo search for different search terms
* search results pagination
* Changing integration config & handling
* Changing integration config & handling
* new integration config model
2016-10-10 15:34:21 -03:00
Andrey Okonetchnikov
b1a039701c
Require utils.css in dev mode only
2016-10-06 16:11:11 +02:00
Andrey Okonetchnikov
44d652de35
Added utils.css with .undefined global class
2016-10-06 16:10:21 +02:00
Andrey Okonetchnikov
b5849cd472
Removed logo
2016-10-06 15:13:31 +02:00
Andrey Okonetchnikov
a4dea8ac7a
Added logo as a link to dashboard. Cleaned up AppHeader a bit visually.
2016-10-05 18:55:35 +02:00
Andrey Okonetchnikov
b95bb595f7
Implement ScrollSync component for sync scroll between containers
2016-10-04 17:58:26 +02:00
Andrey Okonetchnikov
ca34def49e
Merge branch 'master' into markitup-react
2016-10-03 17:00:11 +02:00
Andrey Okonetchnikov
5ba0c46aee
Merge branch 'master' into class-properties-initializers
2016-10-03 16:41:15 +02:00
Andrey Okonetchnikov
9e8bdb18b9
Added missing semicolons to class properties
2016-10-03 16:37:11 +02:00
Cássio Souza
9838660c0c
UI small adjustments & refinments ( #87 )
...
* UI small adjustments & refinments
* Removed autohide navbar
2016-10-03 11:18:58 -03:00
Cássio Zen
e5d4cc55b2
Removed autohide navbar
2016-10-03 11:18:10 -03:00
Andrey Okonetchnikov
4010a16a76
Use static propTypes class property
2016-10-03 14:33:48 +02:00
Andrey Okonetchnikov
382b1537b0
Use ES7 class properties initializers
2016-10-03 14:25:27 +02:00
Cássio Zen
ffb1d7a491
UI small adjustments & refinments
2016-09-30 19:51:12 -03:00
Andrey Okonetchnikov
7fde1e811a
Re-written Preview as a functional component. It also re-uses widgetFor
prop to get widgets.
2016-09-30 16:38:10 +02:00
Andrey Okonetchnikov
f1eb93ee7f
Moved PreviewPane to a separate directory. Extracted Preview component to a separate file.
2016-09-30 16:25:15 +02:00
Andrey Okonetchnikov
edf8abbc42
Implemented scroll sync from control pane to the preview pane.
2016-09-29 22:17:29 +02:00
Andrey Okonetchnikov
841772496a
Moved EntryEditor to a separate directory
2016-09-29 19:02:28 +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
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
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
95008d8607
WIP on React renderer for any Markit-up syntax
2016-09-22 17:36:02 +02:00
Andrey Okonetchnikov
53580ab0b9
Merge branch 'react' into markitup-react
2016-09-22 10:25:29 +02:00
Andrey Okonetchnikov
d351f10a9b
Fixed formatting of richText.js
2016-09-22 10:03:02 +02: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 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
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
Cássio Zen
9914b5a668
refactor dragndrop
2016-09-15 15:50:33 -03:00
Andrey Okonetchnikov
f6ab5e3d47
Better AppHeader component. WIP.
2016-09-15 18:56:08 +02:00
Andrey Okonetchnikov
15d7043f9d
Simplified FindBar.css
2016-09-15 18:54:47 +02:00
Andrey Okonetchnikov
276f0c4a40
Removed global style for button
2016-09-15 18:54:11 +02:00
Andrey Okonetchnikov
b2d4714c90
Integrated material-ui
2016-09-15 18:53:24 +02:00
Andrey Okonetchnikov
5409cc1022
Added "Create new" buttons to the header. Closes #49
...
Note that this is temp solution UI-wise since it won't scale.
2016-09-15 11:12:33 +02:00
Andrey Okonetchnikov
6d0535dc26
Merge branch 'react-pr' into dashboard-link
2016-09-15 10:57:01 +02:00
Cássio Zen
ae64ce73ea
Delete branch after PR merge
2016-09-14 18:55:42 -03:00
Cássio Zen
71b5b0bde9
merge button for editorial workflow
2016-09-14 18:25:45 -03:00
Cássio Zen
91846cdbc5
Toast component
2016-09-14 11:59:59 -03:00
Cássio Zen
0b447d483d
Editorial workflow Drag'nDrop
2016-09-13 18:54:39 -03:00
Cássio Zen
f4a6929d17
minor css adjustments
2016-09-13 15:10:56 -03:00
Cássio Zen
4108b88315
Merge branch 'react-pr' of https://github.com/netlify/netlify-cms into react-pr
2016-09-13 14:31:26 -03:00
Cássio Zen
686dd51410
Commiting unpublished branches on pre existing branch (updates PR)
2016-09-13 14:31:18 -03:00
Andrey Okonetchnikov
d6f5a2eb8d
Merge branch 'react-pr' into dashboard-link
2016-09-13 18:52:48 +02:00
Andrey Okonetchnikov
357bcb18cc
Merge branch 'react-pr' into lint-staged
2016-09-13 18:50:18 +02:00
Andrey Okonetchnikov
811da0f75e
Merge pull request #77 from netlify/hmr
...
Enabled Hot Module Replacement
2016-09-13 18:47:09 +02:00
Andrey Okonetchnikov
7238d24ff1
Semicolons
2016-09-13 18:06:01 +02:00
Andrey Okonetchnikov
2b27718493
Enabled HMR for reducers
2016-09-13 18:05:20 +02:00
Andrey Okonetchnikov
2eb920173a
Added link to the dashboard in the Header. Closes #49
2016-09-13 17:40:02 +02:00
Cássio Zen
e8fe7e0c80
layout adjustments
2016-09-13 12:32:26 -03:00
Andrey Okonetchnikov
eedc1e4d23
Removed console.log call
2016-09-13 17:11:30 +02:00
Andrey Okonetchnikov
3f4bc929e9
Enabled HMR
2016-09-13 17:08:51 +02:00
Cássio Zen
e783410a2d
typo
2016-09-13 11:27:06 -03:00
Andrey Okonetchnikov
3deec4060f
Fixed CSS code formatting
2016-09-13 16:06:06 +02:00
Andrey Okonetchnikov
056a14425f
Removed unused import
2016-09-13 15:38:34 +02:00
Andrey Okonetchnikov
a1a6840826
Fixed formatting of the FindBar.js
2016-09-13 15:37:31 +02:00
Andrey Okonetchnikov
eb14200643
Fixed ESLint errors and warning that could be fixed with eslint --fix
2016-09-13 15:30:58 +02:00
Mathias Biilmann Christensen
42853f2af8
Handle formats better
2016-09-13 14:53:50 +02:00
Cássio Zen
911e3f7077
initialize editorialWorkflow state after config loaded & parsed
2016-09-13 04:29:30 -03:00
Cássio Zen
165c758bb9
Updated reducer for editorial workflow
2016-09-13 04:09:52 -03:00
Cássio Zen
f51525baaa
edit unpublished content on EntryPage (through HOC)
2016-09-13 03:59:48 -03:00
Mathias Biilmann Christensen
7cd5d84fa5
Merge remote-tracking branch 'origin/react-pr' into react-ui-updates
...
Replaced dateFormat with moment
Conflicts:
package.json
src/backends/netlify-git/API.js
src/containers/CollectionPage.js
src/formats/formats.js
2016-09-12 15:35:56 +02:00
Mathias Biilmann Christensen
9ced3f16c8
Add a custom template to the example
2016-09-12 15:27:45 +02:00
Mathias Biilmann Christensen
8221c9c170
Maor UI polish for editing with live preview
2016-09-12 11:14:21 +02:00
Mathias Biilmann Christensen
fcd0ce718a
Support for YAML content
2016-09-11 23:08:18 +02:00
Mathias Biilmann Christensen
bbbf3c5621
Add datetime widget
2016-09-11 23:07:48 +02:00
Mathias Biilmann Christensen
8d63ff0a88
Expose methods for installations to create custom preview components
2016-09-11 17:53:44 +02:00
Cássio Zen
c84d538eb6
editor workflow ui adjustments
2016-09-09 17:15:58 -03:00
Mathias Biilmann Christensen
c51f42658e
Get rid of double connect in markdown control
2016-09-09 17:32:23 +02:00
Mathias Biilmann Christensen
102429aa5b
Make preview pane render to an iframe
2016-09-09 17:31:59 +02:00
Cássio Zen
b6874152d9
unpublished items dashboard
2016-09-08 19:04:54 -03:00
Cássio Zen
04c50d8def
editorial workflow HoC
2016-09-08 16:18:38 -03:00