213 Commits

Author SHA1 Message Date
Erez Rokah
174d86f0a0
Feat: entry sorting (#3494)
* refactor: typescript search actions, add tests avoid duplicate search

* refactor: switch from promise chain to async/await in loadEntries

* feat: add sorting, initial commit

* fix: set isFetching to true on entries request

* fix: ui improvments and bug fixes

* test: fix tests

* feat(backend-gitlab): cache local tree)

* fix: fix prop type warning

* refactor: code cleanup

* feat(backend-bitbucket): add local tree caching support

* feat: swtich to orderBy and support multiple sort keys

* fix: backoff function

* fix: improve backoff

* feat: infer sortable fields

* feat: fetch file commit metadata - initial commit

* feat: extract file author and date, finalize GitLab & Bitbucket

* refactor: code cleanup

* feat: handle github rate limit errors

* refactor: code cleanup

* fix(github): add missing author and date when traversing cursor

* fix: add missing author and date when traversing cursor

* refactor: code cleanup

* refactor: code cleanup

* refactor: code cleanup

* test: fix tests

* fix: rebuild local tree when head doesn't exist in remote branch

* fix: allow sortable fields to be an empty array

* fix: allow translation of built in sort fields

* build: fix proxy server build

* fix: hide commit author and date fields by default on non git backends

* fix(algolia): add listAllEntries method for alogolia integration

* fix: handle sort fields overflow

* test(bitbucket): re-record some bitbucket e2e tests

* test(bitbucket): fix media library test

* refactor(gitgateway-gitlab): share request code and handle 404 errors

* fix: always show commit date by default

* docs: add sortableFields

* refactor: code cleanup

* improvement: drop multi-sort, rework sort UI

* chore: force main package bumps

Co-authored-by: Shawn Erquhart <shawn@erquh.art>
2020-03-31 23:13:27 -04:00
Brandon Phillips
c6ef7e555f
docs: Add 'netlify-cms-oauth-provider-node' external OAuth client (#3472) 2020-03-23 19:30:33 +02:00
Erez Rokah
df33bc64a9
feat: add publish configuration option to collections (#3467) 2020-03-23 12:01:37 +02:00
ChrisLasar
70fbccd4da
docs: clarify absolute path with additional path argument (#3461) 2020-03-22 18:40:36 +02:00
Erez Rokah
9087da5850
docs(widgets-boolean): clarify default value usage (#3440) 2020-03-19 13:35:43 +02:00
Justin Smith
ab7ba435ba
docs: Update Quick Start “collection-types” (#3438) 2020-03-18 20:26:13 +02:00
Erez Rokah
5339735994
docs: update editorial workflow notes (#3380) 2020-03-05 11:32:21 +01:00
Erez Rokah
e1f43f0860
docs: rephrase previews support for variable types (#3376) 2020-03-04 11:22:13 +01:00
Erez Rokah
12444ca761
feat: support filename and extension vars in summary (#3375) 2020-03-04 11:08:15 +01:00
Shawn Erquhart
b7b4bcb609
feat: Configure included editor components per field, add optional minimal height (#3299) 2020-03-04 08:47:37 +01:00
Shawn Erquhart
93bd0529f1
docs: Update backend docs links (#3370) 2020-03-04 08:46:59 +01:00
Roman Sedykh
5e6e2ad205
docs: update Media “uploadcare” (#3371) 2020-03-04 01:06:38 -05:00
Shawn Erquhart
567adc7e11
docs: split and expand backend docs (#3350) 2020-03-02 18:34:33 +01:00
Erez Rokah
e0b1246810
feat: populate new entry from URL params (#3343) 2020-03-02 11:32:22 +01:00
Christian Fritsch
29bd7f1d57
Add PHP oauth backend (#3337) 2020-02-27 23:03:40 +01:00
Adrian C
dd94a8426e
docs: Add Google Cloud Function to External OAuth Clients (#3329) 2020-02-26 16:18:12 +01:00
Stéphane Klein
8874769b31
feat: sanitize media filenames according to global slug setting (#3315) 2020-02-25 19:12:11 +01:00
Joel Mukuthu
1d137a09e8
docs: link to beta support for editorial workflow (#3317) 2020-02-25 08:44:23 +01:00
Bruno Duyé
151fa90da4
doc: beta netlify-cms-proxy-server - add missing "backend" (#3249) 2020-02-13 15:26:00 +02:00
Erez Rokah
ab685e8594
fix: change getAsset to not return a promise (#3232)
* fix: change getAsset to not return a promise

* fix: update markdown widget per getAsset changes

* test: fix editor component image test

* docs: update getAsset docs
2020-02-12 19:12:36 -05:00
Bruno Duyé
19fdc161d8
docs: add a mention that test-repo backend can't access to local file… (#3230)
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
2020-02-12 09:00:53 +02:00
Shawn Erquhart
4aba6baf9a
docs: add recent beta feature release versions (#3212) 2020-02-09 08:15:07 +02:00
Erez Rokah
614f1aea63
feat(core): auto detect proxy server on load (#3195)
* feat: auto detect proxy server on load

* fix: opt-in for auto proxy server detection
2020-02-05 10:56:11 -05:00
Erez Rokah
18e284ece8
feat: add preUnpublish, postUnpublish events (#3196) 2020-02-04 13:49:30 +02:00
tiuweehan
9c76a140c7
docs: fix media library usage (#3181) 2020-02-03 01:05:33 -08:00
Josh Deltener
4046345727
docs(nuxt): add note about setting mode to universal 2020-02-01 20:46:46 -08:00
Erez Rokah
0d7e36ba79
feat: add prePublish,postPublish events (#3172) 2020-01-31 16:44:01 -08:00
Shawn Erquhart
fd9e2c89f2
feat(select-widget): add min/max validation (#3171) 2020-01-30 17:53:46 -08:00
Erez Rokah
deaaf9f00c
docs: create proxy-server docs (#3168) 2020-01-30 11:31:26 -08:00
Nandor Biro
7a1d44ad09
docs(list-widget): add collapsed option to list widget docs (#3090) (#3165) 2020-01-29 09:59:02 -08:00
Rouven Bühlmann
a9b350d988 Docs(nuxt): Do not slice the first two chars of the file name (#3152) 2020-01-27 21:45:53 -08:00
adrian5
66e2b1f084 docs: minor adjustment to Beta features page (#3154) 2020-01-27 21:30:21 -08:00
Zeb Pykosz
3d474b1944 docs: convert website from postcss to emotion (#2068) 2020-01-23 21:55:17 -05:00
Erez Rokah
cf57da223d Feat: media folders templates (#3116)
* refactor: typescript backendHelper

* test: add string templating tests

* test: add createPreviewUrl invalid date test

* refactor: move all formatters to one file

* feat: support media folders templating

* feat: add filename and extension template variables

* feat: support paths in string templates

* docs: add media folder templating docs

* style(docs): remove line break
2020-01-22 13:42:24 -05:00
Erez Rokah
6f221ab3c1 Feat: editorial workflow bitbucket gitlab (#3014)
* refactor: typescript the backends

* feat: support multiple files upload for GitLab and BitBucket

* fix: load entry media files from media folder or UI state

* chore: cleanup log message

* chore: code cleanup

* refactor: typescript the test backend

* refactor: cleanup getEntry unsued variables

* refactor: moved shared backend code to lib util

* chore: rename files to preserve history

* fix: bind readFile method to API classes

* test(e2e): switch to chrome in cypress tests

* refactor: extract common api methods

* refactor: remove most of immutable js usage from backends

* feat(backend-gitlab): initial editorial workflow support

* feat(backend-gitlab): implement missing workflow methods

* chore: fix lint error

* feat(backend-gitlab): support files deletion

* test(e2e): add gitlab cypress tests

* feat(backend-bitbucket): implement missing editorial workflow methods

* test(e2e): add BitBucket backend e2e tests

* build: update node version to 12 on netlify builds

* fix(backend-bitbucket): extract BitBucket avatar url

* test: fix git-gateway AuthenticationPage test

* test(e2e): fix some backend tests

* test(e2e): fix tests

* test(e2e): add git-gateway editorial workflow test

* chore: code cleanup

* test(e2e): revert back to electron

* test(e2e): add non editorial workflow tests

* fix(git-gateway-gitlab): don't call unpublishedEntry in simple workflow

gitlab git-gateway doesn't support editorial workflow APIs yet. This change makes sure not to call them in simple workflow

* refactor(backend-bitbucket): switch to diffstat API instead of raw diff

* chore: fix test

* test(e2e): add more git-gateway tests

* fix: post rebase typescript fixes

* test(e2e): fix tests

* fix: fix parsing of content key and add tests

* refactor: rename test file

* test(unit): add getStatues unit tests

* chore: update cypress

* docs: update beta docs
2020-01-14 17:15:14 -05:00
Erez Rokah
b733419264
docs: update getAsset documentation (#3080) 2020-01-13 17:28:01 +02:00
adrian5
63ae92428a docs: update datetime widget description (#3063) 2020-01-12 11:30:27 +02:00
Mauro Bieg
24a81ef9b7 Add media_library.config.max_file_size option (#3028)
* feat: add media_library.config.max_file_size option
2020-01-09 19:56:11 +02:00
JoelWee
9fc661e00d docs: Update Cloudinary.md (#3051)
Include information about security concerns on the api_key.
2020-01-08 19:23:46 +02:00
Alucard17
7942db52a4 docs: Add Sapper Static folder Location (#3040) 2020-01-07 15:19:14 +02:00
Shawn Erquhart
e262e88ec1
docs: add code widget docs (#3023) 2020-01-03 21:09:08 -05:00
Shawn Erquhart
32f49683b1
docs: remove outdated accept_roles reference (#3022) 2020-01-03 13:35:12 -05:00
Erez Rokah
2b41d8a838 feat: bundle assets with content (#2958)
* fix(media_folder_relative): use collection name in unpublished entry

* refactor: pass arguments as object to AssetProxy ctor

* feat: support media folders per collection

* feat: resolve media files path based on entry path

* fix: asset public path resolving

* refactor: introduce typescript for AssetProxy

* refactor: code cleanup

* refactor(asset-proxy): add tests,switch to typescript,extract arguments

* refactor: typescript for editorialWorkflow

* refactor: add typescript for media library actions

* refactor: fix type error on map set

* refactor: move locale selector into reducer

* refactor: add typescript for entries actions

* refactor: remove duplication between asset store and media lib

* feat: load assets from backend using API

* refactor(github): add typescript, cache media files

* fix: don't load media URL if already loaded

* feat: add media folder config to collection

* fix: load assets from API when not in UI state

* feat: load entry media files when opening media library

* fix: editorial workflow draft media files bug fixes

* test(unit): fix unit tests

* fix: editor control losing focus

* style: add eslint object-shorthand rule

* test(cypress): re-record mock data

* fix: fix non github backends, large media

* test: uncomment only in tests

* fix(backend-test): add missing displayURL property

* test(e2e): add media library tests

* test(e2e): enable visual testing

* test(e2e): add github backend media library tests

* test(e2e): add git-gateway large media tests

* chore: post rebase fixes

* test: fix tests

* test: fix tests

* test(cypress): fix tests

* docs: add media_folder docs

* test(e2e): add media library delete test

* test(e2e): try and fix image comparison on CI

* ci: reduce test machines from 9 to 8

* test: add reducers and selectors unit tests

* test(e2e): disable visual regression testing for now

* test: add getAsset unit tests

* refactor: use Asset class component instead of hooks

* build: don't inline source maps

* test: add more media path tests
2019-12-18 11:16:02 -05:00
zemlya-studio
dd754e9377 docs(nextjs): fixed webpack loader error (#2946)
A simple fix that allows webpack to build.
2019-12-03 09:29:50 +02:00
Charlie Bevis
553264f136 docs(jekyll): "Indentity" -> "Identity" (#2945) 2019-12-03 09:26:24 +02:00
Kengo Hamasaki
445979a992 docs: update Next.js example to import component (#2928) 2019-11-28 19:52:21 -05:00
Erez Rokah
d09c3addee
docs: add beta docs for folder collections path config (#2923) 2019-11-28 10:14:39 +02:00
Yuri Drabik
766ade1a3c docs: Minor fix for Configuration Options (#2919) 2019-11-27 14:32:24 +02:00
JP Lew
a2df4f4c91 [documentation] improve NextJS docs by adding Identity Widget to homepage (#2915)
* update NextJS docs

* change /static dir to /public/static

* remove redundant React import

* change static directory to /public for Next in add-to-your-site.md
2019-11-26 23:06:29 +01:00
Christian Fritsch
78face334f feat(widget-markdown): add headings dropdown (#2879) 2019-11-18 17:16:33 -05:00