b501db7239
Fix ListControl collapsing bug ( #738 )
2017-10-25 16:28:34 -07:00
b9fdaec8b7
Fix history warning when opening entry.
...
When clicking on a entry in the listing, a console error would be logged
by `history` (react-router): "Hash history cannot push state; it is
ignored". This was caused because using `bind` in the click handler
caused the return value to be passed to the `history.push` as the second
param. This was ignored in react-router v2, but gives a warning in v4.
2017-10-24 20:33:37 -06:00
2abdd34502
fix list object styling
2017-10-24 14:44:13 -04:00
040e654382
Make collapsing persist on correct item when sorting
2017-10-24 14:44:13 -04:00
f649e8cad6
Migrate ListControl from react-sortable to react-sortable-hoc
2017-10-24 14:44:13 -04:00
43a44743c8
Fix EntryPage showing double confirmations if changes not saved.
...
Change suggested by @aquibm, thank you!
This is changed as of React 16:
When replacing `<A />` with `<B />`, `B.componentWillMount` now always
happens before `A.componentWillUnmount`. Previously,
`A.componentWillUnmount` could fire first in some cases.
2017-10-23 19:30:39 -06:00
cd72e1d9dd
Remove react-dnd
wrapper lib.
...
`react-simple-dnd` is just a wrapper for `react-dnd`, and it doesn't
support React 16. This PR changes to using the underlying library
directly.
2017-10-23 11:19:58 -04:00
14e29e9779
Use Lists for menu items, instead of maps or sequences.
...
Maps are actually invalid, and lists make more sense than sequences.
2017-10-20 09:57:24 -04:00
8b5dc61e6c
Change "new entry" path to avoid slug conflicts.
2017-10-19 13:43:59 -04:00
024c43a8c8
Upgrade UUID module. ( #682 )
2017-10-18 13:02:16 -04:00
7dd8ca13c4
Migrate to plain CSS (remove CSS modules) ( #659 )
...
* Migrate to plain CSS (remove CSS modules)
Change `prefixer` to a function instead of a proxy
* Switch prefix to `nc`
* Replace prefixer with literal class names
* Remove prefixer
* Fix migration errors
* fix compose migrations
* Remove unnecessary theme imports
* Remove old CSS import
* fix sticky toolbar positioning
* update to cssnano v4 so preset is used
* fix css pseudo selectors
* update lockfile
2017-10-18 12:29:38 -04:00
8a819be61e
Remove the index.html from the dist folder on build ( #701 )
2017-10-16 14:45:57 -07:00
f966cd81bd
Update EntryPageHOC for React Router 4.
2017-10-13 20:33:30 -04:00
dbe96d33f9
Upgrade to React Router v4 ( #667 )
...
* Upgrade to React Router v4
* Fix pages not change when the URL was changed.
This issue is due to the Redux `connect` wrapper around `<App/>`.
`connect` diffs changes in regular props to know when to update the
component, but doesn't check context props like `location`.
See
https://github.com/ReactTraining/react-router/blob/master/packages/react-router/docs/guides/blocked-updates.md .
* Update to new `history` methods.
2017-10-12 21:10:43 -04:00
0a5ec972db
Add cachebuster to git-gateway API calls
2017-10-10 12:48:25 -07:00
2324f08d69
Rename setUser
to restoreUser
.
2017-10-09 12:04:05 -06:00
e69c8dd3fc
Fix broken login when backend changed in config.
...
If the backend was changed in the config, the user from the old backend
would be passed to the new backend, which could cause errors if the
format was different.
2017-10-09 12:04:05 -06:00
53e5dfee7c
Check user permissions and metadata every CMS load.
...
Before, if the CMS was loading user OAuth credentials from
`localStorage`, then user write access would not be checked again.
However, the `config.yml` repo could be changed, which would cause the
user to be still logged in even if they did not have write permissions.
Also, if the user had updated their metadata (avatar, etc.), the CMS
would not update that either.
2017-10-09 12:04:05 -06:00
717c14d116
Merge pull request #651 from dopry/xx_remove_urlize
...
Remove unused urlize
2017-10-05 16:51:18 -04:00
c132df9f18
force focus back to editor after undo/redo
2017-10-05 10:24:15 -07:00
1cf7b74eb9
fix visual editor block closing
2017-10-05 10:24:15 -07:00
be4609e54d
trim trailing whitespace from markdown
2017-10-05 10:24:15 -07:00
852b6f397c
ensure against trailing shortcodes in visual editor
2017-10-05 10:24:15 -07:00
d8a7608a25
fix bugs due to Slate "nodes" properties being boolean
2017-10-05 10:24:15 -07:00
dd9d49117a
do not squash references without definitions
2017-10-05 10:24:15 -07:00
9fbdbf5171
stop markdown shortcodes from being escaped
2017-10-05 10:24:15 -07:00
a89427dd8b
add editor rule to ensure plain text in code blocks
2017-10-05 10:24:15 -07:00
70e8eae599
migrate Text.createFromString to Text.create
2017-10-04 15:48:33 -04:00
39f65476c3
migrate insertBlock empty block replacement
2017-10-04 15:48:33 -04:00
cd0254407e
migrate Block.create to specify children
2017-10-04 15:48:33 -04:00
a5c1bb2bff
migrate to new slate packages
2017-10-04 15:48:33 -04:00
a5b053e1c3
remove deprecated terse serialization option
2017-10-04 15:48:32 -04:00
99673ee3cc
support code blocks with multiple text nodes
2017-10-04 15:48:32 -04:00
bbf165d3b0
migrate text nodes to use ranges
2017-10-04 15:48:32 -04:00
7a219bb833
migrate from Raw serializer to fromJSON/toJSON
2017-10-04 15:48:32 -04:00
155a0f972e
migrate from onDocumentChange to onChange
2017-10-04 15:48:32 -04:00
2448ed918a
remove undo/redo override, fixed in 0.22
2017-10-04 15:48:32 -04:00
af2eb78e2b
migrate from transform API to change API
2017-10-04 15:48:32 -04:00
2617621a47
Remove unused urlize
2017-10-04 12:37:54 -04:00
57202376ba
Update tests.
...
Thanks @dopry!
2017-10-03 20:27:42 -06:00
793afc8b73
Remove mutation from sanitizeIRI
.
2017-10-03 20:27:30 -06:00
fdc4054fbd
Remove recursion for sanitizeIRI
replacement checking.
2017-10-03 19:21:58 -06:00
451c69cb87
Fix alternate replacement not always working in sanitizeSlug
.
2017-10-03 18:46:12 -06:00
b8006bbcbe
Update slug sanitization errors.
2017-10-03 18:11:45 -06:00
ddcf009fc6
add sanitizeSlug tests.
2017-10-03 19:28:28 -04:00
2b64fbfba6
Allow empty options object for sanitizeSlug
.
2017-10-03 16:16:24 -06:00
716f55cd8e
Make sure sanitizeIRI
replacement character is safe.
2017-10-03 16:15:53 -06:00
476ff2e1ab
Add tests for sanitizeIRI.
2017-10-03 16:15:52 -06:00
f40f58b7dd
Add default replacment to sanitizeIRI.
2017-10-03 16:15:52 -06:00
be28f895bc
Document slug sanitizing functions.
2017-10-03 16:15:51 -06:00