@nocobase/plugin-file-manager 2.0.0-beta.2 → 2.0.0-beta.20
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 +3 -0
- package/dist/client/index.js +1 -1
- package/dist/client/models/UploadFieldModel.d.ts +22 -0
- package/dist/client/previewer/filePreviewTypes.d.ts +39 -0
- package/dist/client/schemas/storageTypes/ali-oss.d.ts +19 -0
- package/dist/client/schemas/storageTypes/common.d.ts +19 -0
- package/dist/client/schemas/storageTypes/index.d.ts +19 -0
- package/dist/client/templates/file.d.ts +2 -2
- package/dist/common/collections/storages.d.ts +11 -0
- package/dist/common/collections/storages.js +5 -0
- package/dist/externalVersion.js +9 -8
- package/dist/locale/en-US.json +2 -0
- package/dist/locale/zh-CN.json +3 -0
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +7858 -7858
- package/dist/node_modules/@aws-sdk/client-s3/package.json +1 -1
- package/dist/node_modules/@aws-sdk/lib-storage/dist-cjs/index.js +7858 -7858
- package/dist/node_modules/@aws-sdk/lib-storage/package.json +1 -1
- package/dist/node_modules/ali-oss/package.json +1 -1
- package/dist/node_modules/mime-match/package.json +1 -1
- package/dist/node_modules/mime-types/package.json +1 -1
- package/dist/node_modules/mkdirp/package.json +1 -1
- package/dist/node_modules/multer-cos/package.json +1 -1
- package/dist/node_modules/url-join/package.json +1 -1
- package/dist/server/actions/attachments.js +21 -1
- package/dist/server/storages/index.d.ts +1 -0
- package/dist/server/storages/index.js +2 -0
- package/dist/server/storages/local.d.ts +2 -0
- package/dist/server/storages/local.js +27 -5
- package/dist/server/storages/s3.d.ts +0 -1
- package/dist/server/storages/s3.js +0 -27
- package/dist/server/utils.js +20 -6
- package/package.json +2 -2
|
@@ -110,6 +110,17 @@ declare const _default: {
|
|
|
110
110
|
translation?: undefined;
|
|
111
111
|
trim?: undefined;
|
|
112
112
|
unique?: undefined;
|
|
113
|
+
} | {
|
|
114
|
+
type: string;
|
|
115
|
+
name: string;
|
|
116
|
+
defaultValue: {};
|
|
117
|
+
primaryKey?: undefined;
|
|
118
|
+
allowNull?: undefined;
|
|
119
|
+
title?: undefined;
|
|
120
|
+
comment?: undefined;
|
|
121
|
+
translation?: undefined;
|
|
122
|
+
trim?: undefined;
|
|
123
|
+
unique?: undefined;
|
|
113
124
|
})[];
|
|
114
125
|
};
|
|
115
126
|
export default _default;
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.0.0-beta.
|
|
11
|
+
"@nocobase/client": "2.0.0-beta.20",
|
|
12
12
|
"react": "18.2.0",
|
|
13
13
|
"antd": "5.24.2",
|
|
14
14
|
"@ant-design/icons": "5.6.1",
|
|
@@ -19,13 +19,14 @@ module.exports = {
|
|
|
19
19
|
"@formily/core": "2.3.7",
|
|
20
20
|
"@formily/react": "2.3.7",
|
|
21
21
|
"multer": "1.4.5-lts.2",
|
|
22
|
-
"@nocobase/database": "2.0.0-beta.
|
|
23
|
-
"@nocobase/server": "2.0.0-beta.
|
|
24
|
-
"@nocobase/utils": "2.0.0-beta.
|
|
25
|
-
"@nocobase/test": "2.0.0-beta.
|
|
26
|
-
"@nocobase/flow-engine": "2.0.0-beta.
|
|
27
|
-
"@
|
|
22
|
+
"@nocobase/database": "2.0.0-beta.20",
|
|
23
|
+
"@nocobase/server": "2.0.0-beta.20",
|
|
24
|
+
"@nocobase/utils": "2.0.0-beta.20",
|
|
25
|
+
"@nocobase/test": "2.0.0-beta.20",
|
|
26
|
+
"@nocobase/flow-engine": "2.0.0-beta.20",
|
|
27
|
+
"@emotion/css": "11.13.0",
|
|
28
|
+
"@nocobase/actions": "2.0.0-beta.20",
|
|
28
29
|
"sequelize": "6.35.2",
|
|
29
|
-
"@nocobase/plugin-data-source-main": "2.0.0-beta.
|
|
30
|
+
"@nocobase/plugin-data-source-main": "2.0.0-beta.20",
|
|
30
31
|
"axios": "1.7.7"
|
|
31
32
|
};
|
package/dist/locale/en-US.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"Additional options for HTTP requests when fetching files from remote storage on server side, such as headers.": "Additional options for HTTP requests when fetching files from remote storage on server side, such as headers.",
|
|
2
3
|
"Access base URL": "Access base URL",
|
|
3
4
|
"Aliyun OSS": "Aliyun OSS",
|
|
4
5
|
"Aliyun OSS region part of the bucket. For example: \"oss-cn-beijing\".": "Aliyun OSS region part of the bucket. For example: \"oss-cn-beijing\".",
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
"Region": "Region",
|
|
37
38
|
"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\".",
|
|
38
39
|
"Renaming strategy to avoid filename conflicts when uploading files.": "Renaming strategy to avoid filename conflicts when uploading files.",
|
|
40
|
+
"Request options": "Request options",
|
|
39
41
|
"See more": "See more",
|
|
40
42
|
"Size": "Size",
|
|
41
43
|
"Storage": "Storage",
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"Additional options for HTTP requests when fetching files from remote storage on server side, such as headers.": "在服务器端从远程存储获取文件时,HTTP 请求的附加选项,例如请求头等。",
|
|
2
3
|
"Access base URL": "访问 URL 基础",
|
|
3
4
|
"Aliyun OSS": "阿里云 OSS",
|
|
4
5
|
"Aliyun OSS region part of the bucket. For example: \"oss-cn-beijing\".": "阿里云 OSS 存储桶所在区域。例如:\"oss-cn-beijing\"。",
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
"File size limit": "文件大小限制",
|
|
22
23
|
"File storage": "文件存储器",
|
|
23
24
|
"File type allowed (in MIME type format)": "允许的文件类型(MIME 格式)",
|
|
25
|
+
"File type is not supported for previewing, please <1>download it to preview</1>": "文件类型不支持预览,请<1>下载后查看</1>",
|
|
24
26
|
"Filename": "文件名",
|
|
25
27
|
"Files are only removed when their corresponding records in the file collection are deleted. If a record from another collection includes an associating field referencing the file collection, the file will not be deleted unless cascade deletion is enabled for that association.": "只有在删除文件表记录时,文件才会被删除。当删除其他表的记录包含指向文件表的关系字段时,除非关系中配置了级联删除,否则文件不会被删除。",
|
|
26
28
|
"Keep file in storage when destroy record": "删除记录时保留文件",
|
|
@@ -36,6 +38,7 @@
|
|
|
36
38
|
"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\".": "文件保存的相对路径。留空则为根路径。开始和结尾的斜杠“/”会被忽略。例如:\"user/avatar\"。",
|
|
37
39
|
"Renaming": "重命名",
|
|
38
40
|
"Renaming strategy to avoid filename conflicts when uploading files.": "上传文件时避免文件名冲突的重命名策略。",
|
|
41
|
+
"Request options": "请求选项",
|
|
39
42
|
"See more": "更多请查阅",
|
|
40
43
|
"Size": "文件大小",
|
|
41
44
|
"Storage": "存储空间",
|