@nocobase/plugin-file-manager 1.7.0-beta.9 → 1.7.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/dist/client/index.d.ts +13 -0
- package/dist/client/index.js +1 -1
- package/dist/client/schemas/storageTypes/ali-oss.d.ts +8 -0
- package/dist/client/schemas/storageTypes/index.d.ts +8 -0
- package/dist/common/collections/attachments.d.ts +37 -0
- package/dist/common/collections/attachments.js +97 -0
- package/dist/common/collections/storages.d.ts +79 -0
- package/dist/common/collections/storages.js +98 -0
- package/dist/common/constants.d.ts +9 -0
- package/dist/common/constants.js +36 -0
- package/dist/externalVersion.js +9 -8
- package/dist/locale/de-DE.json +1 -1
- package/dist/locale/en-US.json +25 -6
- package/dist/locale/it-IT.json +1 -1
- package/dist/locale/ja-JP.json +1 -1
- package/dist/locale/nl-NL.json +27 -9
- package/dist/locale/zh-CN.json +4 -2
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +834 -834
- package/dist/node_modules/@aws-sdk/client-s3/package.json +1 -1
- package/dist/node_modules/mime-match/package.json +1 -1
- package/dist/node_modules/mkdirp/package.json +1 -1
- package/dist/node_modules/multer-aliyun-oss/index.js +3 -3
- package/dist/node_modules/multer-aliyun-oss/package.json +1 -1
- package/dist/node_modules/multer-cos/index.js +5 -5
- package/dist/node_modules/multer-cos/package.json +1 -1
- package/dist/node_modules/multer-s3/index.js +837 -837
- package/dist/node_modules/multer-s3/package.json +1 -1
- package/dist/node_modules/url-join/package.json +1 -1
- package/dist/server/actions/attachments.d.ts +0 -1
- package/dist/server/actions/attachments.js +21 -41
- package/dist/server/actions/storages.js +4 -1
- package/dist/server/collections/attachments.d.ts +2 -2
- package/dist/server/collections/attachments.js +12 -67
- package/dist/server/collections/storages.d.ts +2 -2
- package/dist/server/collections/storages.js +12 -64
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +3 -0
- package/dist/server/server.d.ts +19 -3
- package/dist/server/server.js +70 -53
- package/dist/server/storages/ali-oss.js +1 -1
- package/dist/server/storages/index.d.ts +17 -5
- package/dist/server/storages/index.js +41 -3
- package/dist/server/storages/local.d.ts +6 -0
- package/dist/server/storages/local.js +13 -2
- package/dist/server/utils.d.ts +1 -1
- package/dist/server/utils.js +8 -4
- package/package.json +6 -5
package/dist/externalVersion.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "1.7.0
|
|
11
|
+
"@nocobase/client": "1.7.0",
|
|
12
12
|
"react": "18.2.0",
|
|
13
13
|
"antd": "5.24.2",
|
|
14
14
|
"@ant-design/icons": "5.6.1",
|
|
@@ -18,12 +18,13 @@ module.exports = {
|
|
|
18
18
|
"@formily/antd-v5": "1.2.3",
|
|
19
19
|
"@formily/core": "2.3.0",
|
|
20
20
|
"@formily/react": "2.3.0",
|
|
21
|
-
"multer": "1.4.
|
|
22
|
-
"@nocobase/
|
|
23
|
-
"@nocobase/
|
|
24
|
-
"@nocobase/
|
|
25
|
-
"@nocobase/test": "1.7.0
|
|
26
|
-
"@nocobase/actions": "1.7.0
|
|
21
|
+
"multer": "1.4.5-lts.2",
|
|
22
|
+
"@nocobase/database": "1.7.0",
|
|
23
|
+
"@nocobase/server": "1.7.0",
|
|
24
|
+
"@nocobase/utils": "1.7.0",
|
|
25
|
+
"@nocobase/test": "1.7.0",
|
|
26
|
+
"@nocobase/actions": "1.7.0",
|
|
27
27
|
"sequelize": "6.35.2",
|
|
28
|
-
"@nocobase/plugin-data-source-main": "1.7.0
|
|
28
|
+
"@nocobase/plugin-data-source-main": "1.7.0",
|
|
29
|
+
"axios": "1.7.7"
|
|
29
30
|
};
|
package/dist/locale/de-DE.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"Storage type": "Speichertyp",
|
|
21
21
|
"Default storage": "Standardspeicher",
|
|
22
22
|
"Storage base URL": "Basis-URL des Speichers",
|
|
23
|
-
"
|
|
23
|
+
"Base URL": "Basis-URL",
|
|
24
24
|
"Base URL for file access, could be your CDN base URL. For example: \"https://cdn.nocobase.com\".": "Basis-URL für den Dateizugriff, könnte Ihre CDN-Basis-URL sein. Zum Beispiel: \"https://cdn.nocobase.com\".",
|
|
25
25
|
"Destination": "Ziel",
|
|
26
26
|
"Use the built-in static file server": "Den integrierten statischen Dateiserver verwenden",
|
package/dist/locale/en-US.json
CHANGED
|
@@ -1,22 +1,41 @@
|
|
|
1
1
|
{
|
|
2
|
+
"File collection": "File collection",
|
|
3
|
+
"File name": "File name",
|
|
4
|
+
"Extension name": "Extension name",
|
|
5
|
+
"Size": "Size",
|
|
6
|
+
"File size limit": "File size limit",
|
|
7
|
+
"Minimum from 1 byte, maximum up to 1GB.": "Minimum from 1 byte, maximum up to 1GB.",
|
|
8
|
+
"MIME type": "MIME type",
|
|
9
|
+
"File type (in MIME type format)": "File type (in MIME type format)",
|
|
10
|
+
"Multi-types seperated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.": "Multi-types seperated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.",
|
|
11
|
+
"URL": "URL",
|
|
12
|
+
"File storage": "File storage",
|
|
2
13
|
"File manager": "File manager",
|
|
3
14
|
"Attachment": "Attachment",
|
|
4
|
-
"
|
|
5
|
-
"Storage
|
|
15
|
+
"Allow uploading multiple files": "Allow uploading multiple files",
|
|
16
|
+
"Storage": "Storage",
|
|
17
|
+
"Storages": "Storages",
|
|
6
18
|
"Storage name": "Storage name",
|
|
7
19
|
"Storage type": "Storage type",
|
|
8
20
|
"Default storage": "Default storage",
|
|
9
|
-
"
|
|
21
|
+
"Access base URL": "Access base URL",
|
|
22
|
+
"Base URL for file access, could be your CDN base URL. For example: \"https://cdn.nocobase.com\".": "Base URL for file access, could be your CDN base URL. For example: \"https://cdn.nocobase.com\".",
|
|
10
23
|
"Destination": "Destination",
|
|
11
24
|
"Use the built-in static file server": "Use the built-in static file server",
|
|
12
25
|
"Local storage": "Local storage",
|
|
13
26
|
"Aliyun OSS": "Aliyun OSS",
|
|
14
|
-
"Tencent COS": "Tencent COS",
|
|
15
27
|
"Amazon S3": "Amazon S3",
|
|
28
|
+
"Tencent COS": "Tencent COS",
|
|
16
29
|
"Region": "Region",
|
|
17
30
|
"Bucket": "Bucket",
|
|
18
31
|
"Path": "Path",
|
|
32
|
+
"Relative path the file will be saved to. Left blank as root path. The leading and trailing slashes \"/\" will be ignored. For example: \"user/avatar\".": "Relative path the file will be saved to. Left blank as root path. The leading and trailing slashes \"/\" will be ignored. For example: \"user/avatar\".",
|
|
19
33
|
"Filename": "Filename",
|
|
34
|
+
"Will be used for API": "Will be used for API",
|
|
35
|
+
"Default storage will be used when not selected": "Default storage will be used when not selected",
|
|
36
|
+
"Keep file in storage when destroy record": "Keep file in storage when destroy record",
|
|
20
37
|
"See more": "See more",
|
|
21
|
-
"
|
|
22
|
-
|
|
38
|
+
"Aliyun OSS region part of the bucket. For example: \"oss-cn-beijing\".": "Aliyun OSS region part of the bucket. For example: \"oss-cn-beijing\".",
|
|
39
|
+
"Timeout": "Timeout",
|
|
40
|
+
"Upload timeout for a single file in milliseconds. Default is 600000.": "Upload timeout for a single file in milliseconds. Default is 600000."
|
|
41
|
+
}
|
package/dist/locale/it-IT.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"Allow uploading multiple files": "Consenti caricamento di più file",
|
|
31
31
|
"Storage": "Spazio di archiviazione",
|
|
32
32
|
"Storages": "Spazi di archiviazione",
|
|
33
|
-
"
|
|
33
|
+
"Base URL": "URL base",
|
|
34
34
|
"Base URL for file access, could be your CDN base URL. For example: \"https://cdn.nocobase.com\".": "URL base per l'accesso ai file, potrebbe essere l'URL base del tuo CDN. Ad esempio: \"https://cdn.nocobase.com\".",
|
|
35
35
|
"Relative path the file will be saved to. Left blank as root path. The leading and trailing slashes \"/\" will be ignored. For example: \"user/avatar\".": "Percorso relativo in cui verrà salvato il file. Lasciare vuoto per il percorso radice. Le barre iniziali e finali \"/\" verranno ignorate. Ad esempio: \"user/avatar\".",
|
|
36
36
|
"Default storage will be used when not selected": "Se non selezionato verrà utilizzato lo spazio di archiviazione predefinito",
|
package/dist/locale/ja-JP.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"Allow uploading multiple files": "複数ファイルのアップロードを許可する",
|
|
33
33
|
"Storage": "ストレージ",
|
|
34
34
|
"Storages": "ストレージ",
|
|
35
|
-
"
|
|
35
|
+
"Base URL": "ベースURL",
|
|
36
36
|
"Base URL for file access, could be your CDN base URL. For example: \"https://cdn.nocobase.com\".": "术语调整,“基礎URL”改为“ベースURL”",
|
|
37
37
|
"Relative path the file will be saved to. Left blank as root path. The leading and trailing slashes \"/\" will be ignored. For example: \"user/avatar\".": "更清晰的表达方式,符合技术描述",
|
|
38
38
|
"Default storage will be used when not selected": "空欄の場合はデフォルトのストレージが使用されます。",
|
package/dist/locale/nl-NL.json
CHANGED
|
@@ -1,22 +1,40 @@
|
|
|
1
1
|
{
|
|
2
|
-
"File
|
|
2
|
+
"File collection": "Bestandcollectie",
|
|
3
|
+
"File name": "Bestandsnaam",
|
|
4
|
+
"Extension name": "Extensienaam",
|
|
5
|
+
"Size": "Grootte",
|
|
6
|
+
"File size limit": "Bestandsgrootte limiet",
|
|
7
|
+
"Minimum from 1 byte, maximum up to 1GB.": "Minimaal vanaf 1 byte, maximaal tot 1 GB.",
|
|
8
|
+
"MIME type": "MIME type",
|
|
9
|
+
"File type (in MIME type format)": "Bestandstype (in MIME type formaat)",
|
|
10
|
+
"Multi-types seperated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.": "Meerdere typen gescheiden door een komma, bijvoorbeeld: \"image/*\", \"image/png\", \"image/*, application/pdf\" enz.",
|
|
11
|
+
"URL": "URL",
|
|
12
|
+
"File storage": "Bestandsopslag",
|
|
13
|
+
"File manager": "Bestandsbeheerder",
|
|
3
14
|
"Attachment": "Bijlage",
|
|
4
|
-
"
|
|
5
|
-
"Storage
|
|
15
|
+
"Allow uploading multiple files": "Meerdere bestanden uploaden toestaan",
|
|
16
|
+
"Storage": "Opslagruimte",
|
|
17
|
+
"Storages": "Opslagruimtes",
|
|
6
18
|
"Storage name": "Opslagnaam",
|
|
7
19
|
"Storage type": "Opslagtype",
|
|
8
|
-
"Default storage": "
|
|
9
|
-
"
|
|
10
|
-
"
|
|
20
|
+
"Default storage": "Standaard opslagruimte",
|
|
21
|
+
"Access base URL": "Toegangsbasis-URL",
|
|
22
|
+
"Base URL for file access, could be your CDN base URL. For example: \"https://cdn.nocobase.com\".": "Basis-URL voor bestandstoegang, kan uw CDN-basis-URL zijn. Bijvoorbeeld: \"https://cdn.nocobase.com\".",
|
|
23
|
+
"Destination": "Bestemmingsmap",
|
|
11
24
|
"Use the built-in static file server": "Gebruik de ingebouwde statische bestandsserver",
|
|
12
25
|
"Local storage": "Lokale opslag",
|
|
13
26
|
"Aliyun OSS": "Aliyun OSS",
|
|
14
|
-
"Tencent COS": "Tencent COS",
|
|
15
27
|
"Amazon S3": "Amazon S3",
|
|
28
|
+
"Tencent COS": "Tencent COS",
|
|
16
29
|
"Region": "Regio",
|
|
17
30
|
"Bucket": "Bucket",
|
|
18
31
|
"Path": "Pad",
|
|
32
|
+
"Relative path the file will be saved to. Left blank as root path. The leading and trailing slashes \"/\" will be ignored. For example: \"user/avatar\".": "Relatief pad waar het bestand zal worden opgeslagen. Laat leeg als hoofdmap. De voorloop- en achterloop-slashes \"/\" worden genegeerd. Bijvoorbeeld: \"gebruiker/avatar\".",
|
|
19
33
|
"Filename": "Bestandsnaam",
|
|
34
|
+
"Will be used for API": "Zal worden gebruikt voor API",
|
|
35
|
+
"Default storage will be used when not selected": "Standaard opslagruimte wordt gebruikt wanneer niet geselecteerd",
|
|
36
|
+
"Keep file in storage when destroy record": "Bestand in opslag houden bij vernietiging van record",
|
|
20
37
|
"See more": "Bekijk meer",
|
|
21
|
-
"
|
|
22
|
-
}
|
|
38
|
+
"Aliyun OSS region part of the bucket. For example: \"oss-cn-beijing\".": "Aliyun OSS regio-onderdeel van de bucket. Bijvoorbeeld: \"oss-cn-beijing\"."
|
|
39
|
+
}
|
|
40
|
+
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"Storage name": "存储空间标识",
|
|
19
19
|
"Storage type": "存储类型",
|
|
20
20
|
"Default storage": "默认存储空间",
|
|
21
|
-
"
|
|
21
|
+
"Base URL": "基础 URL",
|
|
22
22
|
"Base URL for file access, could be your CDN base URL. For example: \"https://cdn.nocobase.com\".": "文件访问的基础 URL,可以是你的 CDN 基础 URL。例如:\"https://cdn.nocobase.com\"。",
|
|
23
23
|
"Destination": "上传目标文件夹",
|
|
24
24
|
"Use the built-in static file server": "使用内置静态文件服务",
|
|
@@ -36,5 +36,7 @@
|
|
|
36
36
|
"Keep file in storage when destroy record": "删除记录时保留文件",
|
|
37
37
|
"See more": "更多请查阅",
|
|
38
38
|
|
|
39
|
-
"Aliyun OSS region part of the bucket. For example: \"oss-cn-beijing\".": "阿里云 OSS 存储桶所在区域。例如:\"oss-cn-beijing\"。"
|
|
39
|
+
"Aliyun OSS region part of the bucket. For example: \"oss-cn-beijing\".": "阿里云 OSS 存储桶所在区域。例如:\"oss-cn-beijing\"。",
|
|
40
|
+
"Timeout": "超时时间",
|
|
41
|
+
"Upload timeout for a single file in milliseconds. Default is 600000.": "上传单个文件的超时时间,单位为毫秒。默认为 600000。"
|
|
40
42
|
}
|