843 Commits

Author SHA1 Message Date
Caleb
6ccc253599 Fix showing success message if PR force-merge fails. (#1016) 2018-01-16 18:41:18 -08:00
Eric Jinks
b8c411ce28 GitHub svg media library preview support (#954)
* Append sanitize query to svg download_url

* Add svg ext to media viewable

* Append searchParam manually
2018-01-04 12:17:52 -07:00
Václav Klecanda
b927c8acfb LocalForageTest (#550) 2018-01-04 11:33:18 -05:00
Caleb
e45f531319 Format JSON files.
Currently we store JSON as a single line in files. We should prettify it
like we do the other formats.
2018-01-03 17:55:51 -05:00
Caleb
4515eddbc4 Use cached images for new uploads (#925) 2018-01-03 16:47:33 -05:00
jimmaaay
6fca83c81b Fix Firefox positioning bug #907. (#976) 2018-01-03 14:08:54 -07:00
Shawn Erquhart
b1006a9173 fix list widget default values 2018-01-03 11:09:13 -05:00
Christian Nolte
4b5fb89b6b Add expand/collapse to object widget (#927) 2017-12-24 07:42:26 -05:00
Marco Biedermann
dfd1111552 optimize images 2017-12-22 17:21:05 -05:00
Shawn Erquhart
fbf728ca23 fix list collapse config setting 2017-12-22 16:33:29 -05:00
Christian Nolte
6ca9c04105 Add collapse all/expand all to Listcontrol (#912) 2017-12-22 16:30:05 -05:00
Damien Duhamel
8849953b50 fix image form not displaying when added as first item in markdown widget 2017-12-21 14:35:30 -05:00
Shawn Erquhart
a1b947a23e fix markdown widget re-rendering on load 2017-12-21 14:20:23 -05:00
Caleb
035b02bd24 Abstract notif component for auth pages. 2017-12-20 08:52:55 -07:00
Shawn Erquhart
4721f12c9f fix infinite scrolling for collections with integrations 2017-12-19 12:24:53 -05:00
Shawn Erquhart
11ee874d6f remove obsolete test 2017-12-14 15:49:13 -08:00
Caleb
a0f928dd49 Update snapshots. 2017-12-14 15:49:13 -08:00
Shawn Erquhart
78ad082021 update markdown mark hotkeys to use isHotkey 2017-12-14 14:59:59 -08:00
Shawn Erquhart
7c9c765c28 use is-hotkey in slate plugin checks 2017-12-14 14:59:59 -08:00
Shawn Erquhart
d321b9eb6d use isHotkey for markdown keydown listener 2017-12-14 14:59:59 -08:00
Shawn Erquhart
1608b5e52a remove outmoded code from markdown widget hotkeys 2017-12-14 14:59:59 -08:00
Damien Duhamel
99ee5e2f9a Check next in condition 2017-12-14 14:59:59 -08:00
Damien Duhamel
fba6929301 Change historyOfTypeIsValid condition 2017-12-14 14:59:59 -08:00
Damien Duhamel
9e5f42e772 Update slate plugin to drop data 2017-12-14 14:59:59 -08:00
Damien Duhamel
515dde1dfe Fix #783 duplicate uploading same asset name (#853) 2017-12-14 09:44:13 -08:00
Caleb
43a6c6ff15 Fix select widgets with object type options. 2017-12-14 08:25:23 -08:00
Shawn Erquhart
051257aa12 eliminate prop type and validation console warnings 2017-12-07 15:38:06 -05:00
Mathias Biilmann Christensen
de7454ad1e Fix position of editor view controls
These were so far off to the right tht they got cut off by the screen.
This aligns them with the user icon
2017-12-07 13:16:59 -05:00
Shawn Erquhart
91307a06ce fix identity auth page styling 2017-12-07 13:03:18 -05:00
Shawn Erquhart
cfbf31b130
WIP - Global UI (#785)
* update top bar and collections sidebar UI

* update collection entries UI

* improve global layout

* merge search page into collection page

* enable new entry button

* search fixup

* wip -initial editor update

* update editor scrolling and markdown toolbar position

* wip

* editor toolbar progress

* editor toolbar wip

* finished basic editor toolbar

* add standalone toggle component

* improve markdown toolbar spacing

* add user avatar placeholder

* finish markdown toggle styling

* refactor icon setup, add new icons

* add new icons to markdown editor toolbar

* remove extra app container

* add markdown active mark style

* relation and text widget styling

* widget design updates, basic list/object design update

* widget style updates, image widget improvements

* refactor widget directory, fix file removal

* widget focus styles

* finish editor widget focus styles

* migrate media library modal to react-modal

* wip - migrate editor component form to modal

* wip - move editor component form to modal

* wip - embed plugin forms in the editor

* inline shortcode forms working

* disable react hot loading, its breaking things

* improve shortcode form styles

* make shortcode form collapsible, improve styling

* add close functionality to shortcode blocks

* improve base media library styling

* fix shortcode label

* migrate unstyled workflow to new UI

* wip - reorganizing everything

* more work moving everything

* finish more moving and eliminating stuff

* restructure, remove react-toolbox

* wip - removing old stuff, more restructure

* finish restructure

* wip - css arch

* switch back to test repo

* update react-datetime to ^2.11.0

* remove leftover react-toolbox button

* more restructuring clean-up

* fix UI component directory case

* wip -css editor control style

* wip - consolidate widget styles

* wip - use a single control renderer

* fixed object values breaking

* wip - editor control active styles

* pass control wrapper to widgets

* ensure branch name is trimmed

* wip - improve widget authoring support

* import Map to Widget component

* refactor toolbar buttons

* wip - more widget active styles

* break out editor toggle component

* add local scroll sync back

* update editor toggle icons

* limit editor control pane content width

* fix editor control spacing

* migrate markdown toolbar stickiness to css

* fix markdown toolbar border radius

* temporarily use test backend

* stop markdown toolbar from going to bottom

* restore disabled markdown toolbar buttons for raw

* test markdown widget without focus styles

* more widget updates

* remove card visuals from editor

* disable dragging editor split off screen

* use editorControl component for shortcode fields

* make header site link configurable

* add configurable collection descriptions

* temporarily add example assets

* add basic list view

* remove outdated css mixins

* add and implement search icon

* activate quick add menu

* visualize usable space in editor view

* fix entry close, other improvements

* wip - editorial workflow updates

* some dropshadow and other CSS tweaks

* workflow ui updates

* add worfklow card buttons

* fix workflow card button handlers

* some dropshadow and other CSS tweaks

* make workflow board wider

* center workflow and collection views

* add basic responsiveness

* a bunch of fun UI fixes! a BUNCH! (#875)

* give `.nc-entryEditor-toolbar-mainSection` left and right child divs

* a bunch of fun UI fixes! a BUNCH!

* remove obscure --buttonShadow

* revert to test repo

* fix not found page styling

* allow workflow publishing from any column

* disallow publishing from all columns, with feedback

* fix new entry button

* fix markdown state persisting across entries

* enable simple workflow save and new from editor

* update slug in address bar when saving new entry

* wip - workflow updates, deletion working

* add status change functionality to editor

* wip - improving status change from editor

* editor toolbar back button improvements, loading improvements, cleanup

* progress on the media library UI cleanup

* remove font smothing css

* a quick fix for these buttons

* tweaks

* progress on media library modal— broken FYI

* fix media library functionality, finish migrating footer

* remove media library footer files

* remove leftover css import

* fix media library

* editor publishing functionality complete (unstyled)

* remove leftover loader var from media library

* wip - editor publishing styles

* add status dropdown styling

* editor toolbar style updates

* editor toolbar state improvements

* progress on the media library UI cleanup, style improvements

* finish editorial workflow editor styling

* finish media library styling

* fix config

* add what-input to optimize focus styling

* fix button

* fix navigation blocking for simple workflow

* improve simple workflow publishing

* add avatar dropdown to editor top bar

* style github and test-repo auth pages

* add git gateway auth page styles

* improve editor error styling
2017-12-07 12:37:10 -05:00
Caleb
834c5f4942 Throw if cannot infer format from file extension. 2017-12-06 10:23:08 -05:00
Caleb
326dd48cc0 Remove support for markdown and html as explicit formats.
The `frontmatter` format is the correct one to use here.
2017-12-06 10:23:08 -05:00
Caleb
d5ff92e47e Throw config error if unsupported format. 2017-12-06 10:23:08 -05:00
Caleb
db14b9747a Split collection config validator.
Also clarify collection validation messages.
2017-12-06 10:23:08 -05:00
Caleb
864083bc8b Infer format from extension for new entries.
If a collection has no format specified, we try to infer the format from
the file extension when reading. This commit also allows us to infer the
format from the `extension` set in the config, so that we can still
create the correct format when making a new file.
2017-12-06 10:07:07 -05:00
Caleb
0e51cff231 Do not infer file format if collection specified.
Before, we always tried to infer a file's format, even if it was
explicitly specified in the collection's config. This commit makes it so
that we always use the format from the config if it is specified, and
only if it is not set do we try to infer it from the file extension.
2017-12-06 09:53:38 -05:00
Shawn Erquhart
9b2e51d75d fix slate mark rendering 2017-12-06 01:02:41 -05:00
Damien Duhamel
2e7e66dc29 Fixes #846 Backspace removes empty blocks (#854)
* Fixes backspace remove empty block

* rename data to event
2017-11-30 12:09:13 -05:00
Shawn Erquhart
0caae558f9 handle when a date/datetime field is updated to empty 2017-11-27 22:41:47 -05:00
Shawn Erquhart
a7ad6d570e allow empty default date value 2017-11-27 22:25:00 -05:00
Shawn Erquhart
1a7c999f12 simplify date time initial value set 2017-11-27 22:25:00 -05:00
Benaiah Mischenko
b5b7fab2a7 Coerce includeTime to a boolean 2017-11-27 22:25:00 -05:00
Benaiah Mischenko
d6c0505c49 Fixes for date formatting PR 2017-11-27 22:25:00 -05:00
Mathias Biilmann Christensen
688332410c Keep old behevior if no format attribute is set on date widgets 2017-11-27 22:25:00 -05:00
Mathias Biilmann Christensen
704f1144ed Make date and datetime widget respect format attribute 2017-11-27 22:25:00 -05:00
Caleb
68f00987d2 Add global error boundary.
This adds an error boundary around the entire app, so that a crash does
not just show up as an empty white screen.
2017-11-27 22:22:18 -05:00
Caleb
a72a08f7a2 Add JSON as manually supported format. 2017-11-27 15:37:37 -05:00
Caleb
5271e0f7e7 Fix empty image fields saving null or undefined. 2017-11-27 15:28:41 -05:00
Shawn Erquhart
5647b5c3c2 update slate snapshots 2017-11-27 12:08:40 -05:00
Shawn Erquhart
9342c9c064 fix slate migration bugs 2017-11-27 12:08:40 -05:00