20 Commits

Author SHA1 Message Date
Sam Lanning
a47a29fb8b Allow for relative paths of media files (#2394)
* Allow for relative paths of media files

fixes #325

* Switch to calculating the relative path based on collection

The required relative path is now calculated depending on the
location of the collection of the current entry having the
media inserted into. And the configuration option has now been
changed to a boolean flag.

This allows collections to not neccesarily all be in the same
location relative to the media folder, and simplifies config.

* Clean up code and fix linting

* Add unit tests to resolveMediaFilename()

* Rework insertMedia action to fetch own config

This moves more of the media path resolution logic into the action
which makes it easier to unit test

* Add unit tests for the mediaLibrary.insertMedia action

* yarn run format

* add dependabot config (#2580)
2019-08-24 16:03:09 -04:00
Austin Devine
573ad8816d feat(core): allow custom summary on entry cards (#2140) 2019-03-29 14:30:38 -04:00
Shawn Erquhart
ccef446d72
feat: upgrade to Emotion 10 (#2166) 2019-03-15 10:19:57 -04:00
Shawn Erquhart
3d98b72775
fix(core): allow updates through error boundary (#2136) 2019-03-02 15:26:08 -05:00
Shawn Erquhart
686504adee
feat(core): recover entry after unexpected quit (#2129) 2019-02-28 13:30:23 -05:00
Luis Correia
dc44caca20 feat(widget-number): add range validation (#2049) 2019-02-08 15:01:08 -05:00
Shawn Erquhart
15d221d4a4
feat(workflow): add deploy preview links (#2028) 2019-02-08 12:26:59 -05:00
Leonardo Dino
ef50a93efc enhancement(netlify-cms-core): translate workflow card last modified text (#2025) 2019-02-02 20:02:51 -05:00
Daniel Eden
ebba686430 fix(netlify-cms-core): allow arrays for frontmatter_delimiter in config (#1997) 2019-02-02 20:01:32 -05:00
sysoce
0f1ebd1060 fix(netlify-cms-core): support translation in error message (#1935) 2018-12-11 10:50:23 -05:00
Shawn Erquhart
fe6af1986f
fix(config): remove identifier field validation (#1882) 2018-11-21 22:32:50 -05:00
Bartholomew
c6ae1e8fc0 feat: allow custom logo on auth page (#1818) 2018-11-02 13:25:36 -04:00
Nahuel Dealbera
c2e21ff9db improvement(i18n): extract core UI texts to external file (#1708) 2018-11-02 13:19:49 -04:00
Matt Kane
12418dd7f0 feat(config): add support for setting custom identifier field (#1543) 2018-11-01 14:02:11 -04:00
Benaiah Mischenko
288359da3b fix(config): allow setting publish_mode to 'simple' (#1827) 2018-10-31 21:50:41 -04:00
Shawn Erquhart
0596904e0b
feat(media): add external media library support, Uploadcare integration (#1602) 2018-08-30 16:24:28 -04:00
Caleb
f801b19221 chore: add code formatting and linting (#952) 2018-08-07 16:46:54 -04:00
Caleb
8cc6dc78ec improvement(validation): use config schema definition for validation (#1363) 2018-08-07 12:31:17 -04:00
Caleb
5a27fb8b9d chore: fix miscellaneous errors from linters (#1555) 2018-07-31 17:03:46 -04:00
Shawn Erquhart
768fcbaa1d begin scaffolding for lerna 2018-07-25 21:17:57 -04:00