@sveltia/cms 0.17.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 +16 -4
- package/dist/sveltia-cms.js +232 -232
- package/package.json +7 -7
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
|
|
|
@@ -42,10 +42,11 @@ We are working hard to create a **much better alternative to Netlify/Decap CMS**
|
|
|
42
42
|
### Better performance
|
|
43
43
|
|
|
44
44
|
- Built completely from scratch with Svelte instead of forking React-based Netlify/Decap CMS. The app starts fast and stays fast. The compiled code is vanilla JavaScript — you can use it with almost any framework.
|
|
45
|
-
- Small footprint: The bundle size is less than
|
|
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.
|
|
@@ -130,6 +137,7 @@ We are working hard to create a **much better alternative to Netlify/Decap CMS**
|
|
|
130
137
|
- Upload multiple assets at once, including files in nested folders, by browsing or dragging and dropping them into the library[^5].
|
|
131
138
|
- Sort or filter assets by name or file type.
|
|
132
139
|
- View asset details, including size, dimensions, and a list of entries that use the selected asset.
|
|
140
|
+
- PDF documents are displayed with a thumbnail image in both the Asset Library and the Select File dialog, making it easier to find the file you’re looking for[^38].
|
|
133
141
|
- Assets stored in an entry-relative media folder are automatically deleted when the associated entry is deleted because these assets are not available for other entries[^22].
|
|
134
142
|
|
|
135
143
|
## Compatibility
|
|
@@ -495,3 +503,7 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
495
503
|
[^35]: Netlify/Decap CMS [#7086](https://github.com/decaporg/decap-cms/issues/7086)
|
|
496
504
|
[^36]: Netlify/Decap CMS [#6325](https://github.com/decaporg/decap-cms/issues/6325)
|
|
497
505
|
[^37]: Netlify/Decap CMS [#1481](https://github.com/decaporg/decap-cms/issues/1481)
|
|
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)
|