304 Commits

Author SHA1 Message Date
Bartholomew
2b46608f86
feat: add widgets schema validation (#3841) 2020-06-03 16:43:34 +03:00
Don Corleone
5cedce67ef
docs: fix typo in jekyll.md (#3835) 2020-06-01 10:37:04 +03:00
Bekzat Samatov
5bbaf41f73
docs: Update Docs: Guides “nextjs” (#3826) 2020-05-28 11:37:07 +03:00
Bartholomew
812716e18b
feat: add pre save/ post save hooks (#3812) 2020-05-27 16:14:35 +03:00
Erez Rokah
90ebee9abb
docs: update manual init docs (#3815) 2020-05-26 17:12:53 +03:00
Erez Rokah
624b7ff14b
feat: add allowed_hosts support in local_backend (#3805) 2020-05-26 11:50:09 +03:00
Max Metral
2ecafd3354
feat: allow author login/name to work in commit message templates #3793 (#3794) 2020-05-25 09:36:35 +03:00
Shashank Bairy R
c28cc0c9e7
feat: add filter to collection view (#3741) 2020-05-24 20:37:08 +03:00
Derek Nguyen
2f435f875b
feat(widget-relation): target file collections (#3754) 2020-05-19 10:17:57 +03:00
Hannes Küttner
4dd58c5dcb
feat(widget-list): add hiding list content with minimize_collapsed option (#3607) 2020-05-17 16:47:07 +03:00
Nick Holden
ef5ff031da
feat: add pickerUtc option to datetime widget (#3721)
I have a field that I would like to contain just a date (with no specific
time). When I configure the datetime widget with sensible options for
a date-only field, dates are stored properly in the saved markdown,
but when I load those dates in the UI, I see the date before.

This is happening because the DateTime component from the
react-datetime library uses local timezones. It loads the date as the
start of day UTC and then converts to the local timezone, which is
going to be the previous day in any timezone with a negative UTC offset,
including all of the Americas.

This change adds a pickerUtc option to the datetime widget so that users
can specify when they would like the datetime picker to display times in
UTC rather than in the local timezone. By setting this new option to
true on date-only fields, users can ensure that everyone sees the same
date in the picker regardless of local timezones.
2020-05-13 11:44:01 +03:00
Derek Nguyen
7cc4c89539
feat(netlify-cms-widget-list): allow 'summary' field (#3616) 2020-05-11 16:30:29 +03:00
Alan Braithwaite
c9a2fec2da
docs: emphasise configuration file location note (#3687) 2020-05-11 15:48:15 +03:00
Chase Collins
0ac3592e26
docs: Update Docs: Guides “hugo” (#3708) 2020-05-05 19:20:10 +03:00
Erez Rokah
213ae86b54
feat(widget-relation): string templates support (#3659) 2020-04-30 16:03:08 +03:00
Shashank Bairy R
88b6c633af
feat: add hide property to collections (#3618) (#3643) 2020-04-22 15:32:13 +03:00
Nick Holden
ebb4eb4e29
docs: remove reference to Date widget from DateTime widget (#3629) 2020-04-20 10:20:22 +03:00
Sebastian Ulbel
72b26f4435
chore: add netlifycms-gridsome to examples (#3625) 2020-04-18 15:33:11 +02:00
Hannes Küttner
9f17363bee
feat(widget-object): add collapsed option to collapse object by default (#3606) 2020-04-15 14:46:09 +03:00
Erez Rokah
4afbbdd8a9
feat(yaml): support comments (#3529) 2020-04-07 15:00:06 +03:00
Munawar Ahmed
2fe9ab72f3
docs: Update Docs: Quick Start “examples” (#3555) 2020-04-06 13:01:16 +03:00
Noah Kissinger
afb2f72ea5
Update Docs: Guides “jekyll” (#3536) 2020-04-03 17:50:48 +02:00
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
Erez Rokah
68dd3c1de7
fix(www-website): fix link to community, fix CMS previews (#3189) 2020-02-04 09:16:48 +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
Erez Rokah
096b067d45
feat: add translation support (#2870)
* feat: add translation support

* test(cypress): fix locale import

* docs: add locale documentation

* feat: add german translation (#2877)

* fix: locales package version, register all locales in netlify-cms
2019-11-14 11:25:04 +02:00
Erez Rokah
86d741ecac Docs: add missing Next entry in add-to-your-site.md (#2874)
* Update add-to-your-site.md

* docs: add missing Nuxt entry
2019-11-13 16:00:05 +01:00
Erez Rokah
00fa983d63 docs: fix bitbucket implicit grant docs (#2842)
* docs: fix bitbucket implicit grant docs

* docs: fix typo in Bitbucket implicit grant step 2
2019-11-10 19:41:52 +01:00
shumiyao
47be26fbfe docs: add type specification of relation widget valueField (#2446) 2019-11-07 16:25:21 -05:00
Asif Mehedi
cd48f67f1a docs: Delete duplicate key-value (#2824)
* docs: Delete duplicate key-value

* docs: revert description change
2019-11-03 10:53:07 +02:00
Erez Rokah
2841ff9ffe feat: enable specifying custom open authoring commit message (#2810) 2019-10-28 15:29:47 -04:00
Aleksandr Grenishin
574477adca enhancement(media-library-uploadcare): add integration settings to control url operations (#2670) 2019-10-28 14:14:42 -04:00
Maxime Preaux
3d12ea9470 docs: fixed the code formatting in the backends doc (#2812)
docs: Fixed the code formatting in the authentication-backend.md page (https://www.netlifycms.org/docs/authentication-backends/)
2019-10-28 10:12:43 +02:00
Sascha
f9d32452f9 docs: Added notice about Large Media option (#2805)
* Added notice about Large Media

I ran into this issue when activating Large Media while still having not imported files.

* docs: change 'important' to 'note' to make it consistent with places in the docs
2019-10-27 11:06:24 +02:00
Matthias Michael
96e99f239a docs: fix 11ty default site publish folder (#2806) 2019-10-26 10:54:06 +02:00
Sascha
5b2fb611f5 docs: update select widget default value docs (#2723) 2019-10-24 11:10:23 -04:00
Tom Rutgers
e09edd554f Update widgets.md (#2758)
Using double quotes with pattern raises an error (found out the hard way): https://github.com/netlify/netlify-cms/issues/675#issuecomment-444316681
2019-10-24 11:49:11 +03:00
Imron
78f24c8cdc Update hugo.md (#2799)
Fixed typo
sucessfully => successfully
giti => git
2019-10-24 11:06:54 +03:00
Imron
8052fb7aee [Typo] configration (#2798)
Fixed typo
configration => configuration
2019-10-24 11:05:44 +03:00
Imron
4ac3ded8a0 [Typo] continous (#2797)
Fixed typo
continous => continuous
2019-10-24 11:04:48 +03:00
Imron
d9bbaa3aff [Typo] comfirming (#2796)
Fixed typo
comfirming => confirming
2019-10-24 11:03:52 +03:00
IMRAN KHAN
8e4ade0d13 Update jekyll.md (#2793)
Typo. the word 'into' was written twice.
2019-10-23 22:18:03 +02:00
Henry Desroches
9fa0420e7f docs: add Hugo guide (#2698) 2019-10-23 13:49:13 -04:00
Shawn Erquhart
6b83a706a3
chore: switch chat links to slack (#2782) 2019-10-22 20:59:04 -04:00
Prateek Bhatnagar
fbbc8c1dc8 docs: fix preact-cli repo link (#2781) 2019-10-22 20:49:40 -04:00
Shawn Erquhart
52dff34d3a chore: fix community slack redirect 2019-10-22 14:17:50 -04:00
Shawn Erquhart
ee4f0a9973 chore: fix community slack redirect 2019-10-22 13:48:56 -04:00
Prateek Bhatnagar
09c2b0ab23 docs: add Preact CLI as a starter option (#2759) 2019-10-22 13:40:07 -04:00
Shawn Erquhart
db1385072c
docs: add community slack link (#2773) 2019-10-21 21:02:15 -04:00
Pierre-Alexandre
695d33f1d2 [docs] fixed broken implicit grant link (#2741) 2019-10-11 16:42:17 +02:00
Tom Rutgers
3d7cff01d6 docs: update Jekyll guide YML syntax (#2738) 2019-10-11 00:40:18 -04:00
Ferenc Sticza
f328a274e7 Update markdownit references (#2720)
@nuxt/markdownit was broken so I updated these references to @nuxtjs/markdownit
2019-10-01 23:04:40 +02:00