40 Commits

Author SHA1 Message Date
Pearce
70cd0eef8c
fix(events): allow multiple event handlers to execute (#4612) 2020-11-26 16:20:25 +02:00
Erez Rokah
53061710a9
feat: i18n support for file collections - closes #4483 (#4634) 2020-11-26 12:23:53 +02:00
Prachya Saechua
1777665943
fix(i18n): data is not duplicated for default value setting (#4463) 2020-11-02 17:15:29 +02:00
stefanprobst
9e0b8ac4b8
feat: allow per-file preview_path in file collection (#4413) 2020-10-15 17:21:36 +03:00
Keegan Lillo
576e4f0f1a
feat(core): Add {{dirname}} to summary and preview_path (#4279) 2020-09-28 16:20:07 +03:00
Erez Rokah
cb2ad687ee
Feat: multi content authoring (#4139) 2020-09-20 20:30:46 +03:00
Erez Rokah
af7bbbd9a9
Feat: nested collections (#3716) 2020-06-18 10:11:37 +03:00
Bartholomew
2b46608f86
feat: add widgets schema validation (#3841) 2020-06-03 16:43:34 +03:00
Bartholomew
812716e18b
feat: add pre save/ post save hooks (#3812) 2020-05-27 16:14:35 +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
Erez Rokah
213ae86b54
feat(widget-relation): string templates support (#3659) 2020-04-30 16:03:08 +03:00
Erez Rokah
6933bf6ee1
fix: missing widgets (#3541) 2020-04-05 16:46:26 +03:00
Erez Rokah
601175c6a1
fix: sanitize dots in path collection config (#3518) 2020-04-01 16:40:14 +03: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
Erez Rokah
ff3b62d12f
fix: show better error for missing widgets (#3377) 2020-03-04 13:53:21 +01:00
Erez Rokah
12444ca761
feat: support filename and extension vars in summary (#3375) 2020-03-04 11:08:15 +01:00
Bartholomew
908c42fb58
fix: preserve unknown fields value (#3314) 2020-02-26 16:58:46 +01:00
Erez Rokah
02ef2010e7
Fix: show specific field media files in library, cascade folder templates (#3252)
* feat: cascade & compose media folders - initial commit

* refactor: code cleanup

* fix: pass field instead of folder to getAsset

* fix: only show field media files in library

* test: fix medial library selector test

* fix: fallback to original path when asset not found

* fix: only show field media files in media library

* fix: properly handle empty strings in field folders
2020-02-14 15:31:33 -05:00
Erez Rokah
c4125625f9
Feat: Allow using subfields as identifier field (#3219) 2020-02-12 08:30:44 +02:00
Erez Rokah
18e284ece8
feat: add preUnpublish, postUnpublish events (#3196) 2020-02-04 13:49:30 +02:00
Erez Rokah
0d7e36ba79
feat: add prePublish,postPublish events (#3172) 2020-01-31 16:44:01 -08: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
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
Shawn Erquhart
18c579d0e9 feat: Code Widget + Markdown Widget Internal Overhaul (#2828)
* wip - upgrade to slate 0.43

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* finish list handling logic

* add plugins directory

* tests wip

* setup testing

* wip

* add selection commands

* finish list testing

* stuff

* add codemirror

* abstract codemirror from slate

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* codemirror mostly working, some bugs

* upgrade to slate 46

* upgrade to slate 47

* wip

* wip

* progress

* wip

* mostly working links with surrounding marks

* wip

* tests passing

* add test

* fix formatting

* update snapshots

* close self closing tag in markdown html output

* wip - commonmark

* hold on commonmark work

* all tests passing

* fix e2e specs

* ignore tests in esm builds

* break/backspace plugins wip

* finish enter/backspace spec

* fix soft break handling

* wip - editor component deletion

* add insertion points

* make insertion points invisible

* fix empty mark nodes output to markdown

* fix pasting

* improve insertion points

* add static bottom insertion point

* improve click handling at insertion points

* restore current table functionality

* add paste support for Slate fragments

* support cut/copy markdown, paste between rich/raw editor

* fix copy paste

* wip - paste/select bug fixing

* fixed known slate issues

* split plugins

* fix editor toggles

* force text cursor in code widget

* wip - reorg plugins

* finish markdown control reorg

* configure plugin types

* quote block adjacent handling with tests

* wip

* finish quote logic and tests

* fix copy paste plugin migration regressions

* fix force insert before node

* fix trailing insertion point

* remove empty headers

* codemirror working properly in markdown widget

* return focus to codemirror on lang select enter

* fix state issues for widgets with local state

* wip - vim working, just need to work out distribution

* add settings pane

* wip - default modes

* fix deps

* add programming language data

* implement linguist langs in code widget

* everything built in

* remove old registration code, fix focus styling

* fix/update linting setup

* fix js lint errors

* remove stylelint from format script

* fix remaining linting errors

* fix reducer test failures

* chore: update commitlint for worktree support

* chore: fix remaining tests

* chore: drop unused monaco plugin

* chore: remove extraneous global styles rendering

* chore: fix failing tests

* fix: tests

* fix: quote/list nesting (tests still broken)

* fix: update quote tests

* chore: bring back code widget test config

* fix: autofocus

* fix: code blocks without the code widget

* fix: code editor component state issues

* fix: error

* fix: add code block test, few fixes

* chore: remove notes

* fix: [wip] update stateful shortcodes on undo/redo

* fix: support code styled links, handle unknown langs

* fix: few fixes

* fix: autofocus on insert, focus on all clicks

* fix: linting

* fix: autofocus

* fix: update code block fixture

* fix: remove unused cypress snapshot plugin

* fix: drop node 8 test, add node 12

* fix: use lodash.flatten instead of Array.flat

* fix: remove console logs
2019-12-16 19:17:37 +02:00
Shawn Erquhart
d0b32a7a0a
fix(core): use UTC date methods for slug formatting (#2944) 2019-12-02 17:03:18 -05:00
Erez Rokah
afcfe5b6d5 feat: content in sub folders (#2897) 2019-11-27 22:39:33 -05:00
Erez Rokah
ead46af194
chore(deps): update dependency prettier to v1.19.1 (#2893)
* chore(deps): update dependency prettier to v1.19.1

* style: format files after prettier upgrade
2019-11-18 17:51:51 +02: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
2841ff9ffe feat: enable specifying custom open authoring commit message (#2810) 2019-10-28 15:29:47 -04:00
polemius
04b371825e chore: fix the typos in comments (#2679) 2019-09-24 16:16: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
Paul Melero
79c0445768 fix(netlify-cms-core): avoid leading replacement char in slug (#1965) 2018-12-26 23:45:06 -05: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
5a27fb8b9d chore: fix miscellaneous errors from linters (#1555) 2018-07-31 17:03:46 -04:00
Caleb
4f6e8cea44 chore: remove unused imports (#1534) 2018-07-28 16:33:42 -04:00
Shawn Erquhart
f1a2eb33b4 migrate markdown widget 2018-07-25 21:17:57 -04:00
Shawn Erquhart
2efd09ba94 migrate file and image widgets 2018-07-25 21:17:57 -04:00
Shawn Erquhart
768fcbaa1d begin scaffolding for lerna 2018-07-25 21:17:57 -04:00