Caleb
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
Caleb
4634918001
Revert "fix bundled code error"
...
This was a bug in `one-click-hugo-cms`, not in the CMS itself.
This reverts commit a1c32f5154e7af0242c496776e9f544bc2e9484b.
2017-10-07 13:45:53 -04:00
Shawn Erquhart
75f53c1bc9
Release 0.5.1
2017-10-06 15:24:26 -04:00
Shawn Erquhart
a1c32f5154
fix bundled code error
2017-10-06 15:14:46 -04:00
Shawn Erquhart
7c3063077b
Release 0.5.0
2017-10-06 10:32:10 -04:00
Shawn Erquhart
8bab738b32
Merge pull request #654 from netlify/update-gotrue
...
Update gotrue
2017-10-05 17:01:25 -04:00
Shawn Erquhart
717c14d116
Merge pull request #651 from dopry/xx_remove_urlize
...
Remove unused urlize
2017-10-05 16:51:18 -04:00
Shawn Erquhart
c132df9f18
force focus back to editor after undo/redo
2017-10-05 10:24:15 -07:00
Shawn Erquhart
1cf7b74eb9
fix visual editor block closing
2017-10-05 10:24:15 -07:00
Shawn Erquhart
be4609e54d
trim trailing whitespace from markdown
2017-10-05 10:24:15 -07:00
Shawn Erquhart
852b6f397c
ensure against trailing shortcodes in visual editor
2017-10-05 10:24:15 -07:00
Shawn Erquhart
d8a7608a25
fix bugs due to Slate "nodes" properties being boolean
2017-10-05 10:24:15 -07:00
Shawn Erquhart
dd9d49117a
do not squash references without definitions
2017-10-05 10:24:15 -07:00
Shawn Erquhart
9fbdbf5171
stop markdown shortcodes from being escaped
2017-10-05 10:24:15 -07:00
Shawn Erquhart
a89427dd8b
add editor rule to ensure plain text in code blocks
2017-10-05 10:24:15 -07:00
Shawn Erquhart
fd606938e2
Merge pull request #638 from netlify/slate-0.25
...
Migrate to Slate 0.25
2017-10-05 12:32:55 -04:00
Caleb
ec0bdbfd88
Rebase.
2017-10-04 18:53:31 -06:00
Mathias Biilmann Christensen
9ab25c0434
Update gotrue
2017-10-04 15:05:30 -07:00
Shawn Erquhart
6e012a982d
update lockfile
2017-10-04 15:48:33 -04:00
Shawn Erquhart
70e8eae599
migrate Text.createFromString to Text.create
2017-10-04 15:48:33 -04:00
Shawn Erquhart
39f65476c3
migrate insertBlock empty block replacement
2017-10-04 15:48:33 -04:00
Shawn Erquhart
cd0254407e
migrate Block.create to specify children
2017-10-04 15:48:33 -04:00
Shawn Erquhart
dc741521ed
upgrade to slate 0.25
2017-10-04 15:48:33 -04:00
Shawn Erquhart
a5c1bb2bff
migrate to new slate packages
2017-10-04 15:48:33 -04:00
Shawn Erquhart
2beb7d256b
update to slate 0.24
2017-10-04 15:48:32 -04:00
Shawn Erquhart
a5b053e1c3
remove deprecated terse serialization option
2017-10-04 15:48:32 -04:00
Shawn Erquhart
99673ee3cc
support code blocks with multiple text nodes
2017-10-04 15:48:32 -04:00
Shawn Erquhart
bbf165d3b0
migrate text nodes to use ranges
2017-10-04 15:48:32 -04:00
Shawn Erquhart
7a219bb833
migrate from Raw serializer to fromJSON/toJSON
2017-10-04 15:48:32 -04:00
Shawn Erquhart
155a0f972e
migrate from onDocumentChange to onChange
2017-10-04 15:48:32 -04:00
Shawn Erquhart
66699a610f
update to Slate 0.23
2017-10-04 15:48:32 -04:00
Shawn Erquhart
2448ed918a
remove undo/redo override, fixed in 0.22
2017-10-04 15:48:32 -04:00
Shawn Erquhart
af2eb78e2b
migrate from transform API to change API
2017-10-04 15:48:32 -04:00
Shawn Erquhart
8c04b4f1d5
update to slate 0.22
2017-10-04 15:48:31 -04:00
Caleb
03c8b63dba
Make Gatsby setup instructions simpler. ( #652 )
2017-10-04 11:53:33 -07:00
Darrel O'Pry
2617621a47
Remove unused urlize
2017-10-04 12:37:54 -04:00
Shawn Erquhart
876cb2ca94
Merge pull request #640 from netlify/utf8-slugs
...
Support Unicode characters in slugs
2017-10-04 10:34:42 -04:00
Caleb
57202376ba
Update tests.
...
Thanks @dopry!
2017-10-03 20:27:42 -06:00
Caleb
793afc8b73
Remove mutation from sanitizeIRI
.
2017-10-03 20:27:30 -06:00
Caleb
fdc4054fbd
Remove recursion for sanitizeIRI
replacement checking.
2017-10-03 19:21:58 -06:00
Caleb
451c69cb87
Fix alternate replacement not always working in sanitizeSlug
.
2017-10-03 18:46:12 -06:00
Caleb
b8006bbcbe
Update slug sanitization errors.
2017-10-03 18:11:45 -06:00
Darrel O'Pry
ddcf009fc6
add sanitizeSlug tests.
2017-10-03 19:28:28 -04:00
Caleb
2b64fbfba6
Allow empty options object for sanitizeSlug
.
2017-10-03 16:16:24 -06:00
Caleb
716f55cd8e
Make sure sanitizeIRI
replacement character is safe.
2017-10-03 16:15:53 -06:00
Caleb
476ff2e1ab
Add tests for sanitizeIRI.
2017-10-03 16:15:52 -06:00
Caleb
f40f58b7dd
Add default replacment to sanitizeIRI.
2017-10-03 16:15:52 -06:00
Caleb
be28f895bc
Document slug sanitizing functions.
2017-10-03 16:15:51 -06:00
Caleb
8fb326ff2b
Make sanitizeSlug
immutable.
...
Thanks @erquhart!
2017-10-03 16:15:42 -06:00
Caleb
72492749d9
Move slug sanitizer to a seperate function.
2017-10-03 13:03:28 -06:00