319 Commits

Author SHA1 Message Date
Caleb
ebf91a9800 Switch back to gray-matter for front-matter parsing. 2017-09-15 19:22:04 -06:00
Caleb
ce2278b7e5 Upgrade js-yaml to 3.10.0. (#592)
* Upgrade `js-yaml` to 3.10.0.

The main fix we are wanting is outputting astral characters (emojis) as
a single escape instead of surrogate pairs: nodeca/js-yaml#368.

* Upgrade `preliminaries` front-matter parser (and dependencies).
2017-09-15 17:08:19 -07:00
Shawn Erquhart
d349c3d3b1 Merge pull request #590 from netlify/update-depreciated-deps
Upgrade Depreciated React Dependencies
2017-09-15 16:18:24 -04:00
Frank Taillandier
94a3941d9f Docs: Add contributors to README (#599)
* Add contributors

* Add contributors from CLI
2017-09-13 16:08:43 -07:00
Caleb
5e9112ec71 Upgrade to seperate create-react-class library.
`React.createClass` was split off/depreciated as of 15.5.0:
https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.createclass
2017-09-09 20:18:02 -06:00
Caleb
654f844b86 Upgrade to seperate React prop-types library.
`propTypes` was seperated/depreciated from React as of 15.5.0:
https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
2017-09-09 20:16:19 -06:00
Mathias Biilmann Christensen
04ae5051ce Update beta version 2017-09-07 07:40:14 -07:00
Mathias Biilmann Christensen
2e4dfb33b6 Add explicit sign in button for netlify identity 2017-09-06 17:58:32 -07:00
Mathias Biilmann Christensen
aaa9d2ab95 Make Neltify CMS work with Netlify Identity Widget
When Netlify CMS uses the git-gateway backend, it will check for a

  window.netlifyIdentity

object and use that to handle the whole auth flow.

This also sets defaults for the git-gateway endpoint, that means it
can be used in templates with zero configuration and fit with a
one-click deploy to Netlify approach.

Netlify Identity itself is based on our open-source GoTrue microservice,
and Netlify's Git Gateway project is completely open-source as well.

The git-gateway backend will work with Netlify without any setup, but can
also be configured to work with any selfhosted GoTrue and Git Gateway
instances.
2017-09-06 13:52:11 -07:00
Mathias Biilmann Christensen
890ee3d7e3 Update old netlify-auth-js to gotrue-js 2017-09-05 13:24:16 -07:00
Shawn Erquhart
afa5a9af2c Release 0.5.0-beta.1 2017-09-01 15:24:37 -04:00
Shawn Erquhart
e408dcc27e add markdown editor soft break support 2017-08-31 11:03:08 -04:00
Shawn Erquhart
317a876891 fix html paste for visual editor 2017-08-25 16:36:24 -04:00
Shawn Erquhart
18b98fc1c9 remove superfluous deps, update yarn.lock 2017-08-25 16:35:23 -04:00
Shawn Erquhart
be7385de29 refactor remark-shortcodes plugin 2017-08-25 16:31:07 -04:00
Shawn Erquhart
b7379b019e re-implement shortcode parsing to/from mdast 2017-08-25 16:30:38 -04:00
Shawn Erquhart
842c2935e9 use mdast instead of html for rte local model
markdown is currently serialized to html at load time,
which makes it near impossible to support arbitrary html
in the markdown. This also means we're stringifying to
html on every change.

This commit moves to Remark's MDAST for local serialization,
including parsing from MDAST to Slates's Raw AST. It brings
much more control over the editing experience and full
support for processing unescaped HTML.
2017-08-25 16:30:37 -04:00
Shawn Erquhart
93687d9157 add shortcodes through rte toolbar 2017-08-25 16:28:18 -04:00
Shawn Erquhart
469a50afa4 add idempotent markdown/html shortcode handling 2017-08-25 16:28:18 -04:00
Shawn Erquhart
63e93d79ca improve rte list handling 2017-08-25 16:28:18 -04:00
Shawn Erquhart
51cd8d30a5 remove prosemirror dependencies 2017-08-25 16:28:18 -04:00
Shawn Erquhart
cba631ba1a improve visual/raw editor consistency 2017-08-25 16:25:30 -04:00
Shawn Erquhart
9c869be8fa migrate visual editor from prosemirror to slate 2017-08-25 16:24:12 -04:00
Shawn Erquhart
49b3a62823 attempt prosemirror update, troubleshooting 2017-08-25 16:24:12 -04:00
Shawn Erquhart
bd767308cd fix visual editor tests, parse/serialize consistency 2017-08-25 16:24:12 -04:00
Shawn Erquhart
b22323201d handle raw editor html pastes with unified 2017-08-25 16:24:12 -04:00
Shawn Erquhart
8bb18452e8 implement initial unified/remark preview update 2017-08-25 16:24:12 -04:00
Shawn Erquhart
adcb215fbd replace remark with unified for docs and extensibility 2017-08-25 16:24:12 -04:00
Kyle Mathews
0eb109cb73 Convert markdown-prosemirror parser/compiler to Remark 2017-08-25 16:24:12 -04:00
Kyle Mathews
24c0a1bdb4 Replace markup-it with Remark for rendering markdown in the editor preview 2017-08-25 16:24:12 -04:00
Kyle Mathews
f3b7dc9e2e Update Jest to 0.19 2017-08-25 16:24:09 -04:00
Shawn Erquhart
3cf025259e Release 0.4.6 2017-08-20 16:11:32 -04:00
Shawn Erquhart
76da81adc9 Release 0.4.5 2017-08-17 17:07:29 -04:00
Shawn Erquhart
364ef8790c Merge pull request #506 from tech4him1/crossEnv
Allow `npm build` commands to be used cross-platform (on Windows).
2017-08-17 11:59:38 -04:00
Benaiah Mischenko
7e8a588c15 Fix incorrect eslint import errors
Just adds the development package `eslint-import-resolver-webpack`,
which is [already configured][0], but not previously installed. This
removes a _lot_ of incorrect eslint errors.

[0]: 2d344ef4ca/.eslintrc (L6-L10)
2017-08-11 11:47:39 -07:00
Caleb
0d7f653adf Allow npm build commands to be used cross-platform (on Windows).
Windows command prompts set and use enviroment variables differently
than POSIX terminals. `cross-env` is a wrapper that allow the commands
to run with the same effect on Windows as well. It will not affect any
POSIX terminal (including Bash on Windows).
2017-08-01 15:15:03 -06:00
Damien Van Der Windt
b294110db7 Stopped the pluralization of collection name (#503) 2017-07-27 11:13:34 -07:00
Shawn Erquhart
b283f6931f Release 0.4.4 2017-07-26 22:21:19 -04:00
Shawn Erquhart
74c8eec521 add prepublishOnly build command 2017-07-26 22:16:27 -04:00
Shawn Erquhart
220e8a6c58 Release 0.4.3 2017-06-25 12:33:17 -04:00
Benaiah Mischenko
613a7f6c66 [WIP] Make jest tests work again 2017-06-14 15:11:44 -07:00
Benaiah Mischenko
25225121ed [WIP] Upgrade to Webpack 2 2017-06-13 15:30:21 -07:00
Shawn Erquhart
3176fa1b3f fix entry editor bugs in kitchen sink entry 2017-06-07 23:23:09 -04:00
Shawn Erquhart
fc5cc7025a Release 0.4.2 2017-06-01 19:39:47 -04:00
Shawn Erquhart
7c68ba02c8 Release 0.4.1 2017-06-01 18:57:13 -04:00
Shawn Erquhart
6d5ff45e66 fix in-publish for CI, just remove prepublish hook 2017-05-24 17:02:13 -07:00
Shawn Erquhart
0920e95eba skip prepublish script for install 2017-05-22 13:26:31 -04:00
Shawn Erquhart
6996045cbf Release 0.4.0 2017-05-18 11:40:12 -04:00
Vaclav Klecanda
018616dc68 slug from unicode chars 2017-05-09 11:18:28 -07:00
Benaiah Mischenko
ab47c3c8b3 Use react-frame-component for preview pane
This fixes the preview pane not working in Firefox
2017-05-08 16:48:52 -07:00
Joseph Earl
bfe46a8e13 Fixes #324 Use branch name from config when creating PR 2017-05-01 08:17:46 -07:00
Shawn Erquhart
978fd0f0fc Release 0.3.22 2017-04-26 10:48:56 -07:00
Shawn Erquhart
902134c4e8 add autosizing for markdown editor 2017-04-24 17:52:06 -04:00
Shawn Erquhart
a1a693051c improve preview toggle styling 2017-04-24 17:52:05 -04:00
Shawn Erquhart
96453df346 Release 0.3.21 2017-04-24 16:47:52 -04:00
Shawn Erquhart
48f7d1517d Release 0.3.20 2017-04-19 11:54:16 -04:00
Shawn Erquhart
adea4cdf94 Release 0.3.19 2017-04-18 22:12:41 -04:00
Shawn Erquhart
2f6deee25b Release 0.3.18 2017-04-14 16:07:24 -04:00
Joseph Earl
0e3cd0e876 Fixes #356 Remove pre-commit hook 2017-04-14 17:39:21 +01:00
Shawn Erquhart
7aa77baea9 Release 0.3.17 2017-04-11 14:22:59 -04:00
Joseph Earl
aa9230e158 Change history version to ^2.1.2 2017-04-11 10:56:44 -07:00
Joseph Earl
f3ef2ef8b2 Add missing history package 2017-04-11 10:56:44 -07:00
Shawn Erquhart
b5e839468e Merge pull request #348 from josephearl/multi-format-frontmatter
Add multi-format frontmatter parser
2017-04-11 10:34:07 -04:00
Shawn Erquhart
235481826b switch to markup-it upstream repo (#349) 2017-04-10 14:49:05 -07:00
Joseph Earl
5a5a4f5b12 Update to latest preliminaries 2017-04-09 20:05:00 +01:00
Joseph Earl
a2e8602fdd Add multi-format frontmatter parser 2017-04-08 23:32:39 +01:00
Julian Krispel-Samsel
1ff1fcfea8 enable debug mode for webpack-dev-server :D 2017-04-03 23:12:40 +01:00
Shawn Erquhart
80e4d0f44c Release 0.3.16 2017-03-31 17:01:28 -04:00
Shawn Erquhart
b3936c555f Release 0.3.15 2017-03-16 16:15:06 -04:00
Shawn Erquhart
cbcd2f3bca Release 0.3.14 2017-03-16 13:40:56 -04:00
Mathias Biilmann Christensen
fd1cd3679a Bump version 2017-03-15 00:09:01 -07:00
Mathias Biilmann Christensen
b777343d70 yet another field ordering related change 2017-02-21 23:59:34 -08:00
Mathias Biilmann Christensen
eefdf2ce95 Bump version 2017-02-21 23:41:54 -08:00
Mathias Biilmann Christensen
c94d6e71c9 Bump version 2017-02-21 23:24:28 -08:00
Mathias Biilmann Christensen
aa9a97ecba Bump version 2017-02-20 23:53:26 -08:00
Cássio Zen
679634afec Version bump 2017-01-31 17:10:36 -02:00
Cássio Zen
90365b711c Version Bump 2017-01-26 19:26:11 -02:00
Cássio Souza
ecbcbf06b5 Role authorization for Netlify-auth (#224) 2017-01-26 19:23:42 -02:00
Mathias Biilmann Christensen
8e26d5db81 Bump version 2017-01-21 16:57:13 -08:00
Mathias Biilmann Christensen
acc0f9b83e Update netlify-auth 2017-01-21 16:56:49 -08:00
Mathias Biilmann Christensen
4f883f022c Update netlify-auth dependency 2017-01-20 23:02:53 -08:00
Cássio Zen
4dd0c0ccb5 Bugfix: Images not appearing on search 2017-01-19 16:34:13 -02:00
Cássio Zen
b8ce78a5f0 Version Bump 2017-01-19 16:05:58 -02:00
Cássio Zen
01e11e9213 Version bump 2017-01-18 18:26:37 -02:00
Cássio Zen
bd6b4eeeae Version Bump 2017-01-16 16:56:08 -02:00
Cássio Zen
e51b098fef Version bump 2017-01-13 19:48:15 -02:00
Cássio Souza
48d8077ff0 Editorial workflow Improvements (#212)
* Merge conflicts automatically. Closes #208
* removed unpublished entry route
All entries (either under editorial workflow or not) go through the same edit route.
2017-01-11 20:58:15 -02:00
Cássio Souza
b9a786a875 Bump version 2017-01-10 22:29:35 -02:00
Cássio Zen
5bea671947 version bump 2017-01-02 17:32:45 -02:00
Cássio Zen
a8cb548ac5 Updated dependencies 2016-12-30 17:08:37 -02:00
Mathias Biilmann
112bdd348a Merge pull request #198 from netlify/prosemirror-polishing
An assortment of Markdown Editor fixes
2016-12-30 09:49:36 -08:00
Cássio Zen
8908f9a148 Version bump 2016-12-28 15:40:19 -02:00
Mathias Biilmann Christensen
06218e55eb Update prosemirror 2016-12-27 23:13:31 -08:00
Mathias Biilmann Christensen
8b82a5b72e Add a script for auto configurating a collection 2016-12-26 17:44:50 -08:00
Cássio Zen
ff6bfe3789 changed default localStorage Key 2016-12-23 17:30:27 -02:00
Cássio Zen
f63e3e6150 Version bump 2016-12-23 17:03:07 -02:00
Cássio Souza
1efc59a9fb Netlify auth (#194) 2016-12-23 16:59:48 -02:00
Mathias Biilmann Christensen
578ffc91df Bump patch version 2016-12-23 09:01:29 -08:00
Mathias Biilmann Christensen
83f08e8eb8 Revert "Bump patch version"
This reverts commit 8f6f1a0fcabfeb423ca8af2f9f6d55ace21e45bb.
2016-12-23 08:59:51 -08:00
Mathias Biilmann Christensen
8f6f1a0fca Bump patch version 2016-12-22 23:17:26 -08:00
Cássio Zen
9d02b54ce7 bumped js-yaml version 2016-12-15 16:19:37 -02:00
Cássio Souza
635049b8db Resizable split pane (#190)
* Integrating with react-split-pane

* block event while resizing panels

* bring scrollsync back

* fixed footer position
2016-12-12 19:23:52 -02:00
Cássio Zen
ae2a663e1b Version Bump 2016-12-07 15:45:51 -02:00
Cássio Souza
05337ff232 Relation search widget (#186)
* search action/reducer refactor

* Relation widget skeleton

* search clearing

* query action + reducer

* Autocomplete component for RelationControl
2016-12-07 15:44:07 -02:00
Cássio Zen
e34ce15485 Removed unused package 2016-12-01 19:58:02 -02:00
Cássio Zen
f9177906a9 version bump 2016-12-01 16:33:37 -02:00
Cássio Zen
874810cb5c Version Bump 2016-11-29 20:16:47 -02:00
Mathias Biilmann
fa03ce29bf Make sure we actually build netlify-cms as library (#169)
* Build netlify-cms as a library

* Bump version
2016-11-23 19:37:51 -02:00
Mathias Biilmann Christensen
58eb384386 Bump version 2016-11-23 12:28:03 -08:00
Mathias Biilmann Christensen
d7d17df79a Get rid of css linting in precommit 2016-11-23 12:24:07 -08:00
Mathias Biilmann Christensen
688fc52dcb Make sure we have a valid main file when using import netlify-cms 2016-11-23 12:23:45 -08:00
Cássio Zen
443ab9524e version bump 2016-11-23 18:18:04 -02:00
Mathias Biilmann
d81d0d416f Widget fixes (#162)
* Make string the default widget if none is specified

* Linting fixes for PreviewPane

* Linting fixes for ControlPane

* Add date widget

* Fix name of date control class

* Fix spaces in list control with no fields

* Fix linting error for List Control

* Fix linting errors in raw editor

* Add Select widget

* Fix linting error
2016-11-17 10:08:37 -02:00
Mathias Biilmann Christensen
8623a514af Prepare to publish new version 2016-11-11 17:28:56 -08:00
Cássio Zen
0521757b8c prosemirror integration 2016-11-11 18:36:11 -02:00
Cássio Souza
2a2497072d UI updates (#151)
* infer card title

* Infer entry body & image

* infer image

* Better terminology: EntryListing accept a single Collection

* remove log

* Refactored Collections VO into selectors

* use selectors when showning card

* fixed size cards

* Added 'bio' and 'biography' to collection description inference synonyms

* Removed unused card file

* throw error instance

* bugfix for file based collections

* lint

* moved components with css to own folder

* Search Bugfix: More than one collection might be returned

* Changed sidebar implementation. Closes #104 & #152

* Show spinning loading for unpublished entries

* Refactored Sidebar into a separate container

* Make preview widgets more robust
2016-11-11 17:54:58 -02:00
Andrey Okonetchnikov
9a6c4691ce Removed expect from dependencies 2016-11-11 12:09:31 +01:00
Andrey Okonetchnikov
d39c9cee2c Removed support for css-modules (for now) in tests and fixed css/scss imports from node_modules 2016-11-11 12:08:20 +01:00
Andrey Okonetchnikov
63b8559d7e No need to set NODE_ENV for Jest 2016-11-11 12:06:56 +01:00
Andrey Okonetchnikov
92e8e7233d Updated Jest to 17.0.0 2016-11-11 09:33:13 +01:00
Mathias Biilmann Christensen
038597573c Custom plugin support in rte 2016-11-01 23:31:20 -07:00
Mathias Biilmann Christensen
d0df70e4d3 Prosemirror working - with some toolbar options 2016-11-01 16:55:21 -07:00
Cássio Zen
dd71b59e9e version bump 2016-10-31 12:49:44 -02:00
Mathias Biilmann Christensen
c23b2fb531 Make list widget sortable 2016-10-30 16:01:10 -07: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
Andrey Okonetchnikov
2e1d98ac7e Added fsevents as an optional dependency to fix high CPU usage by the node process on Macs 2016-10-25 10:44:09 +02:00
Cássio Zen
ff0fa2cf6b Merge branch 'simple-markdown-editor' 2016-10-24 18:09:01 -02:00
Andrey Okonetchnikov
59f6b42d84 Revert "Added fsevents as devDep to reduce the CPU load of webpack-dev-server on Mac OS X."
Since this commit broke the CI completely. This reverts commit 06b0a7bdaa2ada13cf362852a99fbc911e23899b.
2016-10-23 23:15:37 +02:00
Mathias Biilmann Christensen
c859d7234e Position editor toolbar 2016-10-22 04:37:22 -07:00
Mathias Biilmann Christensen
a172c13996 Update package name 2016-10-21 17:02:05 -07:00
Mathias Biilmann Christensen
3cdaf7cc66 Bump version 2016-10-21 17:00:05 -07:00
Cássio Souza
2c8cdfc15e Webpack for production build (#134)
* Webpack config for production build
2016-10-21 21:18:45 -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 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
ffe27acc10 Merge branch 'master' into markitup-react 2016-10-13 13:48:41 +02:00
Andrey Okonetchnikov
3d715a9f9f Updated lint-staged to 3.1.0 2016-10-13 13:45:31 +02:00
Andrey Okonetchnikov
d630463dd5 Merge branch 'master' into jest-update 2016-10-13 13:40:15 +02:00
Andrey Okonetchnikov
b61b53d15b Merge branch 'master' into markitup-react 2016-10-13 11:27:53 +02:00
Andrey Okonetchnikov
3376322bf4 Temporarily disabled linting in test script until #96 and #99 are merged.
This way we can at least see if tests are failing.
2016-10-13 11:17:49 +02:00
Andrey Okonetchnikov
06b0a7bdaa Added fsevents as devDep to reduce the CPU load of webpack-dev-server on Mac OS X.
See https://github.com/webpack/webpack-dev-middleware/issues/40
2016-10-12 17:13:11 +02:00
Andrey Okonetchnikov
fee2d8e731 Updated Jest config to work with webpack and CSS-modules 2016-10-12 14:52:05 +02:00
Andrey Okonetchnikov
899681ee84 Merge branch 'master' into markitup-react 2016-10-11 10:28:42 +02:00
Andrey Okonetchnikov
cc1c2f91e0 Moved frontend deps from devDependencies to dependencies. Fixes lots of eslint errors. 2016-10-10 22:17:25 +02: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
5cb820b2f1 Updated lint-staged to 4.0.0-beta-2 2016-10-10 18:00:55 +02:00
Andrey Okonetchnikov
91927357b7 Added jest to lint-staged 2016-10-07 16:44:33 +02:00
Andrey Okonetchnikov
b295d1e6ab Updated jest to 16.x 2016-10-07 16:44:23 +02:00