@sveltia/cms 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -3
- package/dist/sveltia-cms.js +173 -173
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Sveltia CMS is a Git-based lightweight headless CMS under active development as
|
|
|
10
10
|
|
|
11
11
|
<br>
|
|
12
12
|
|
|
13
|
-
<br>
|
|
14
14
|
|
|
15
15
|
## Motivation
|
|
16
16
|
|
|
@@ -45,7 +45,8 @@ We are working hard to create a **much better alternative to Netlify/Decap CMS**
|
|
|
45
45
|
- Small footprint: The bundle size is less than 350 KB when minified and gzipped, compared to 1.5 MB of Netlify/Decap CMS. And [no virtual DOM overhead](https://svelte.dev/blog/virtual-dom-is-pure-overhead).
|
|
46
46
|
- Uses the GraphQL API for GitHub/GitLab to quickly fetch content at once, so that entries and assets can be listed and searched instantly[^32]. It also avoids the slowness and potential API rate limit violations caused by hundreds of requests with Relation widgets[^14].
|
|
47
47
|
- Saving entries and assets is also much faster thanks to the [GraphQL mutation](https://github.blog/changelog/2021-09-13-a-simpler-api-for-authoring-commits/).
|
|
48
|
-
-
|
|
48
|
+
- A list of repository files is cached locally for faster startup and bandwidth savings.
|
|
49
|
+
- Thumbnails of assets, including PDF files, are generated and cached for faster rendering of the Asset Library and other parts of the CMS[^39].
|
|
49
50
|
- You can [disable automatic deployments](#disable-automatic-deployments) by default or on demand to save costs and resources associated with CI/CD and to publish multiple changes at once[^24].
|
|
50
51
|
|
|
51
52
|
### Better productivity
|
|
@@ -53,6 +54,7 @@ We are working hard to create a **much better alternative to Netlify/Decap CMS**
|
|
|
53
54
|
- You can [work with a local Git repository](#work-with-a-local-git-repository) without running a proxy server on your machine, bypassing the 30 MB file size limit[^26].
|
|
54
55
|
- The Git branch name is automatically set to the repository’s default branch (`main`, `master` or whatever) if not specified in the configuration file, preventing data loading errors due to a hardcoded fallback to `master`[^27].
|
|
55
56
|
- Never miss out on the latest features and bug fixes by being notified when an update to the CMS is available[^31].
|
|
57
|
+
- The Entry Editor closes automatically when an entry is saved.
|
|
56
58
|
- You can delete multiple entries and assets at once.
|
|
57
59
|
- Some keyboard shortcuts are available for faster editing. More to come!
|
|
58
60
|
- Create a new entry: `Ctrl+E` (Windows/Linux) / `Command+E` (macOS)
|
|
@@ -93,12 +95,17 @@ We are working hard to create a **much better alternative to Netlify/Decap CMS**
|
|
|
93
95
|
- Entry slug template tags support [filter transformations](https://decapcms.org/docs/summary-strings/) just like summary string template tags[^29].
|
|
94
96
|
- You can set the maximum number of characters for an entry slug with the new `slug_length` collection option[^25].
|
|
95
97
|
|
|
96
|
-
### Better
|
|
98
|
+
### Better data entry
|
|
97
99
|
|
|
98
100
|
- Required fields, not optional fields, are clearly marked for efficient data entry.
|
|
99
101
|
- Leading and trailing spaces in text-type field values are automatically removed when you save the entry[^37].
|
|
100
102
|
- You can revert changes to all fields or a specific field.
|
|
101
103
|
- You can hide the preview of a specific field with `preview: false`.
|
|
104
|
+
- Fields with validation errors are automatically expanded if they are part of nested, collapsed objects[^40].
|
|
105
|
+
- When you click on a field in the Preview pane, the corresponding field in the Editor pane is highlighted. It will be automatically expanded if collapsed[^41].
|
|
106
|
+
|
|
107
|
+
### Better fields/widgets
|
|
108
|
+
|
|
102
109
|
- The String widget supports the `type` property that accepts `url` or `email` as a value, which will validate the value as a URL or email.
|
|
103
110
|
- The String widget supports the `prefix` and `suffix` string properties, which automatically prepend and/or append the developer-defined value to the user-input value.
|
|
104
111
|
- The Boolean, Number and String widgets support the `before_input` and `after_input` string properties, which allow developers to display custom labels before and/or after the input UI[^28]. Markdown is supported in the value.
|
|
@@ -497,3 +504,6 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
497
504
|
[^36]: Netlify/Decap CMS [#6325](https://github.com/decaporg/decap-cms/issues/6325)
|
|
498
505
|
[^37]: Netlify/Decap CMS [#1481](https://github.com/decaporg/decap-cms/issues/1481)
|
|
499
506
|
[^38]: Netlify/Decap CMS [#1984](https://github.com/decaporg/decap-cms/issues/1984)
|
|
507
|
+
[^39]: Netlify/Decap CMS [#946](https://github.com/decaporg/decap-cms/issues/946)
|
|
508
|
+
[^40]: Netlify/Decap CMS [#5630](https://github.com/decaporg/decap-cms/issues/5630)
|
|
509
|
+
[^41]: Netlify/Decap CMS [#7011](https://github.com/decaporg/decap-cms/issues/7011)
|