@lightnet/sveltia-admin 4.0.5 → 4.0.7
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @lightnet/sveltia-admin
|
|
2
2
|
|
|
3
|
+
## 4.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#391](https://github.com/LightNetDev/LightNet/pull/391) [`384e125`](https://github.com/LightNetDev/LightNet/commit/384e1259e3b0d18f7f93e2c83ec2e40952bbe5fd) - Fix max file size calculation
|
|
8
|
+
|
|
9
|
+
- [#391](https://github.com/LightNetDev/LightNet/pull/391) [`384e125`](https://github.com/LightNetDev/LightNet/commit/384e1259e3b0d18f7f93e2c83ec2e40952bbe5fd) - Update dependencies
|
|
10
|
+
|
|
11
|
+
## 4.0.6
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#387](https://github.com/LightNetDev/LightNet/pull/387) [`d7969dc`](https://github.com/LightNetDev/LightNet/commit/d7969dcaa65417316b129f50602d3473813f52fe) Thanks [@smn-cds](https://github.com/smn-cds)! - Update dependencies
|
|
16
|
+
|
|
17
|
+
- [#387](https://github.com/LightNetDev/LightNet/pull/387) [`d7969dc`](https://github.com/LightNetDev/LightNet/commit/d7969dcaa65417316b129f50602d3473813f52fe) Thanks [@smn-cds](https://github.com/smn-cds)! - Move `lightnet` from a direct dependency to a peer dependency for `@lightnet/sveltia-admin`.
|
|
18
|
+
|
|
19
|
+
Consumer sites should install `lightnet` directly alongside `@lightnet/sveltia-admin`.
|
|
20
|
+
|
|
21
|
+
- [#387](https://github.com/LightNetDev/LightNet/pull/387) [`d7969dc`](https://github.com/LightNetDev/LightNet/commit/d7969dcaa65417316b129f50602d3473813f52fe) Thanks [@smn-cds](https://github.com/smn-cds)! - Use slugify filenames for R2 uploads
|
|
22
|
+
|
|
3
23
|
## 4.0.5
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Admin UI for LightNet based on Sveltia CMS.",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.7",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -30,17 +30,18 @@
|
|
|
30
30
|
"./config.json.ts": "./src/config.json.ts"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"astro": "^6.0.0"
|
|
33
|
+
"astro": "^6.0.0",
|
|
34
|
+
"lightnet": "^4.0.0"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"@sveltia/cms": "0.
|
|
37
|
-
"lightnet": "^4.0.8"
|
|
37
|
+
"@sveltia/cms": "0.160.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@playwright/test": "^1.59.1",
|
|
41
|
-
"astro": "^6.1
|
|
42
|
-
"typescript": "^
|
|
43
|
-
"vitest": "^4.1.
|
|
41
|
+
"astro": "^6.3.1",
|
|
42
|
+
"typescript": "^6.0.3",
|
|
43
|
+
"vitest": "^4.1.6",
|
|
44
|
+
"lightnet": "^4.1.1",
|
|
44
45
|
"@internal/e2e-test-utils": "^0.0.1"
|
|
45
46
|
},
|
|
46
47
|
"engines": {
|
|
@@ -163,11 +163,6 @@ function getFileStorage() {
|
|
|
163
163
|
media_folder: projectPath("public/files"),
|
|
164
164
|
public_folder: "/files",
|
|
165
165
|
hint: `Maximum file size is ${sveltiaAdminConfig.maxFileSize} MB.`,
|
|
166
|
-
media_library: {
|
|
167
|
-
config: {
|
|
168
|
-
max_file_size: sveltiaAdminConfig.maxFileSize * 1000000,
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
166
|
}
|
|
172
167
|
}
|
|
173
168
|
|
|
@@ -22,10 +22,12 @@ export function getConfig(
|
|
|
22
22
|
stock_assets: {
|
|
23
23
|
providers: [],
|
|
24
24
|
},
|
|
25
|
+
all: {
|
|
26
|
+
slugify_filename: true,
|
|
27
|
+
},
|
|
25
28
|
default: {
|
|
26
29
|
config: {
|
|
27
|
-
|
|
28
|
-
max_file_size: sveltiaAdminConfig.maxFileSize * 1024 * 1024,
|
|
30
|
+
max_file_size: sveltiaAdminConfig.maxFileSize * 1_000_000,
|
|
29
31
|
transformations: {
|
|
30
32
|
raster_image: {
|
|
31
33
|
format: "webp",
|