25 Commits

Author SHA1 Message Date
Henry Desroches
9f003106e5 fix(media-library): automatically select uploaded image (#2569) 2019-09-05 13:38:27 -04:00
Erez Rokah
e674e43f9f fix(github-graphql): use getMediaDisplayURL to load media with auth header (#2652) 2019-09-04 18:56:06 -04:00
Bartholomew
4c5fe6a606 fix(media-library): no render of non-viewable files (#2546) 2019-08-28 18:27:48 -04:00
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
Shawn Erquhart
ccef446d72
feat: upgrade to Emotion 10 (#2166) 2019-03-15 10:19:57 -04:00
Shea Daniels
a6c20cf688 enhancement(media-library): use checkerboard pattern as background (#2152) 2019-03-14 14:52:40 -04:00
Shawn Erquhart
37138834d6 Fix raw GitHub URL being output to content (#2147)
* fix thumbnail quality

* Revert "fix(git-gateway): fix previews for GitHub images not in Large Media (#2125)"

This reverts commit d17f896f479292db06d3a4b39f2e51b6c41101bd.

* wip

* Stop using thunks to load media display URLs

* Revert changes to dev-test

* Revert changes to large media docs

* fix lint error

* Update docs to point to the upcoming version with non-broken media
2019-03-07 18:28:14 -08:00
Benaiah Mischenko
da2249c651 Netlify Large Media integration (#2124) 2019-02-26 13:11:15 -05:00
Dennis Padiernos
d9043b4a66 enhancement(media library): add visual placeholder for non-image files (#2089) 2019-02-13 09:27:32 -05:00
Stefan Lau
67585e84ae fix(media-library): stop loading non-image previews (#1947) 2018-12-11 11:00:34 -05:00
Alexander Nanberg
751ec091fb fix(netlify-cms-core): fix prop-types warnings (#1906) 2018-11-26 12:01:02 -05:00
Alexander Nanberg
034c29ad65 fix: MediaLibraryHeader CloseButton style (#1883) 2018-11-17 17:53:38 +01:00
Nahuel Dealbera
c2e21ff9db improvement(i18n): extract core UI texts to external file (#1708) 2018-11-02 13:19:49 -04:00
Caleb
e567d964a7 chore: remove unused file from #1433 (#1661) 2018-08-27 15:51:47 -04:00
Caleb
922b1846cb chore: add missing react prop types (#1651) 2018-08-27 12:23:21 -04:00
Benaiah Mischenko
83d2adc0be fix(gitlab): fetch media library images through API (#1433) 2018-08-22 15:28:51 -04:00
Caleb
f801b19221 chore: add code formatting and linting (#952) 2018-08-07 16:46:54 -04:00
Caleb
88f7dca328 chore(lint): cleanup unused variables in code (#1563) 2018-08-07 11:53:31 -04:00
Caleb
d5f59de2d2 refactor: stop using unsafe or deprecated React methods (#1542) 2018-07-31 16:59:22 -04:00
Caleb
4f6e8cea44 chore: remove unused imports (#1534) 2018-07-28 16:33:42 -04:00
Caleb
6632e5d152 fix: bug fixes from linters (#1524) 2018-07-27 11:13:52 -04:00
Shawn Erquhart
2f95d8c4fc use webpack for all builds 2018-07-25 21:17:57 -04:00
Shawn Erquhart
2e7406862e fix various bugs 2018-07-25 21:17:57 -04:00
Shawn Erquhart
4931711892 migrate core to emotion 2018-07-25 21:17:57 -04:00
Shawn Erquhart
768fcbaa1d begin scaffolding for lerna 2018-07-25 21:17:57 -04:00