@sveltia/cms 0.16.0 → 0.18.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 +10 -7
- package/dist/sveltia-cms.js +249 -249
- package/package.json +2 -2
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
|
-
; Sveltia CMS](docs/screenshot-5-20240404.webp)<br>
|
|
14
14
|
|
|
15
15
|
## Motivation
|
|
16
16
|
|
|
@@ -42,7 +42,7 @@ 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
|
- Caches Git files locally to further speed up startup and reduce bandwidth.
|
|
@@ -122,13 +122,15 @@ We are working hard to create a **much better alternative to Netlify/Decap CMS**
|
|
|
122
122
|
- A completely new Asset Library, built separately from the image selection dialog, makes it easy to manage all of your files, including images, videos and documents.
|
|
123
123
|
- Navigate between the global media folder and per-collection media folders[^6].
|
|
124
124
|
- Preview image, audio, video, text and PDF files. Check your site’s [CSP](#set-up-content-security-policy) if the preview doesn’t work.
|
|
125
|
-
- Copy the public URL
|
|
126
|
-
-
|
|
125
|
+
- Copy the public URL, file path or text/image data of a selected asset to clipboard.
|
|
126
|
+
- Edit plaintext assets, including SVG images.
|
|
127
|
+
- Replace existing assets.
|
|
127
128
|
- Download one or more selected assets at once.
|
|
128
129
|
- Delete one or more selected assets at once.
|
|
129
130
|
- Upload multiple assets at once, including files in nested folders, by browsing or dragging and dropping them into the library[^5].
|
|
130
131
|
- Sort or filter assets by name or file type.
|
|
131
132
|
- View asset details, including size, dimensions, and a list of entries that use the selected asset.
|
|
133
|
+
- 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].
|
|
132
134
|
- 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].
|
|
133
135
|
|
|
134
136
|
## Compatibility
|
|
@@ -138,10 +140,10 @@ While it’s not our goal to recreate all the features found in Netlify/Decap CM
|
|
|
138
140
|
| Feature | Status in Sveltia CMS |
|
|
139
141
|
| --- | --- |
|
|
140
142
|
| Installation | Installing with `npm` is not supported yet. |
|
|
141
|
-
| Backends | Currently only the GitHub and GitLab backends are available
|
|
143
|
+
| Backends | Currently only the GitHub and GitLab backends are available, with GraphQL enabled by default. We’ll also add the Test backend for our demo site, but Azure, Bitbucket and Gitea are unlikely to be supported, mainly due to performance limitations. |
|
|
142
144
|
| Netlify Integration | Identity Widget is not supported yet. We will not support Git Gateway due to the poor performance; we may implement an alternative using GraphQL later. |
|
|
143
145
|
| Local Git Repository | Supported using a different approach. [See below](#work-with-a-local-git-repository) for details. |
|
|
144
|
-
| UI Locales | Only English and Japanese are available at this time. No registration is
|
|
146
|
+
| UI Locales | Only English and Japanese are available at this time. No registration is required. The locale is selected automatically and can be changed in the Settings. |
|
|
145
147
|
| Media Libraries | External media storage services are not supported yet. We will add support for Cloudinary and Uploadcare in a better way, but will not support deprecated Netlify Large Media. |
|
|
146
148
|
| Editorial Workflow | Not supported yet. |
|
|
147
149
|
| Open Authoring | Not supported yet. |
|
|
@@ -230,7 +232,7 @@ You can use Sveltia CMS with a local Git repository like [Netlify/Decap CMS](htt
|
|
|
230
232
|
1. Visit `http://localhost:[port]/admin/index.html` with Chrome or Edge. The port number varies by framework.
|
|
231
233
|
- Other Chromium-based browsers may also work. In Brave, you need to enable the File System Access API [with a flag](https://github.com/brave/brave-browser/issues/20563#issuecomment-1021567573).
|
|
232
234
|
1. Click “Work with Local Repository” and select the project’s root directory once prompted.
|
|
233
|
-
- If you get an error saying “not a repository root directory”, make sure you’ve turned the folder into a repository with either CUI ([`git init`](https://github.com/git-guides/git-init)) or GUI, and the hidden `.git` folder exists.
|
|
235
|
+
- If you get an error saying “not a repository root directory”, make sure you’ve turned the folder into a repository with either a CUI ([`git init`](https://github.com/git-guides/git-init)) or GUI, and the hidden `.git` folder exists.
|
|
234
236
|
- If you’re using Windows Subsystem for Linux (WSL), you may get an error saying “Can’t open this folder because it contains system files.” This is due to a limitation in the browser, and you can try some workarounds mentioned in [this issue](https://github.com/coder/code-server/issues/4646) and [this thread](https://github.com/sveltia/sveltia-cms/discussions/101).
|
|
235
237
|
1. Make some changes to your content on Sveltia CMS.
|
|
236
238
|
1. See if the produced changes look good using `git diff` or a GUI like [GitHub Desktop](https://desktop.github.com/).
|
|
@@ -494,3 +496,4 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
494
496
|
[^35]: Netlify/Decap CMS [#7086](https://github.com/decaporg/decap-cms/issues/7086)
|
|
495
497
|
[^36]: Netlify/Decap CMS [#6325](https://github.com/decaporg/decap-cms/issues/6325)
|
|
496
498
|
[^37]: Netlify/Decap CMS [#1481](https://github.com/decaporg/decap-cms/issues/1481)
|
|
499
|
+
[^38]: Netlify/Decap CMS [#1984](https://github.com/decaporg/decap-cms/issues/1984)
|