@nocobase/plugin-file-manager 0.9.0-alpha.1 → 0.9.1-alpha.1

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 ADDED
@@ -0,0 +1,9 @@
1
+ # file-manager
2
+
3
+ English | [中文](./README.zh-CN.md)
4
+
5
+ ## 安装激活
6
+
7
+ 内置插件无需手动安装激活。
8
+
9
+ ## 使用方法
@@ -0,0 +1,9 @@
1
+ # file-manager
2
+
3
+ [English](./README.md) | 中文
4
+
5
+ ## 安装激活
6
+
7
+ 内置插件无需手动安装激活。
8
+
9
+ ## 使用方法
@@ -61,12 +61,6 @@ const schema = {
61
61
  'x-component': 'Input',
62
62
  required: true
63
63
  },
64
- path: {
65
- title: '{{t("Path")}}',
66
- type: 'string',
67
- 'x-decorator': 'FormItem',
68
- 'x-component': 'Input'
69
- },
70
64
  serve: {
71
65
  type: 'string',
72
66
  'x-decorator': 'FormItem',
@@ -105,12 +99,6 @@ const schema = {
105
99
  'x-decorator': 'FormItem',
106
100
  'x-component': 'Input',
107
101
  required: true
108
- },
109
- path: {
110
- title: '{{t("Path")}}',
111
- type: 'string',
112
- 'x-decorator': 'FormItem',
113
- 'x-component': 'Input'
114
102
  }
115
103
  }
116
104
  },
@@ -175,12 +163,6 @@ const schema = {
175
163
  'x-decorator': 'FormItem',
176
164
  'x-component': 'Input',
177
165
  required: true
178
- },
179
- path: {
180
- title: '{{t("Path")}}',
181
- type: 'string',
182
- 'x-decorator': 'FormItem',
183
- 'x-component': 'Input'
184
166
  }
185
167
  }
186
168
  }
@@ -85,6 +85,15 @@ const collection = {
85
85
  'x-component': 'Input',
86
86
  required: true
87
87
  }
88
+ }, {
89
+ type: 'string',
90
+ name: 'path',
91
+ interface: 'input',
92
+ uiSchema: {
93
+ title: '{{t("Path")}}',
94
+ type: 'string',
95
+ 'x-component': 'Input'
96
+ }
88
97
  }, {
89
98
  type: 'boolean',
90
99
  name: 'default',
@@ -189,6 +198,10 @@ const storageSchema = {
189
198
  type: 'object',
190
199
  'x-component': 'StorageOptions'
191
200
  },
201
+ path: {
202
+ 'x-component': 'CollectionField',
203
+ 'x-decorator': 'FormItem'
204
+ },
192
205
  default: {
193
206
  'x-component': 'CollectionField',
194
207
  'x-decorator': 'FormItem',
@@ -234,7 +247,7 @@ const storageSchema = {
234
247
  useDataSource: '{{ cm.useDataSourceFromRAC }}'
235
248
  },
236
249
  properties: {
237
- column1: {
250
+ title: {
238
251
  type: 'void',
239
252
  'x-decorator': 'Table.Column.Decorator',
240
253
  'x-component': 'Table.Column',
@@ -246,7 +259,7 @@ const storageSchema = {
246
259
  }
247
260
  }
248
261
  },
249
- column2: {
262
+ name: {
250
263
  type: 'void',
251
264
  'x-decorator': 'Table.Column.Decorator',
252
265
  'x-component': 'Table.Column',
@@ -258,7 +271,7 @@ const storageSchema = {
258
271
  }
259
272
  }
260
273
  },
261
- column3: {
274
+ default: {
262
275
  type: 'void',
263
276
  'x-decorator': 'Table.Column.Decorator',
264
277
  'x-component': 'Table.Column',
@@ -270,7 +283,7 @@ const storageSchema = {
270
283
  }
271
284
  }
272
285
  },
273
- column4: {
286
+ actions: {
274
287
  type: 'void',
275
288
  title: '{{t("Actions")}}',
276
289
  'x-component': 'Table.Column',
@@ -321,6 +334,10 @@ const storageSchema = {
321
334
  type: 'object',
322
335
  'x-component': 'StorageOptions'
323
336
  },
337
+ path: {
338
+ 'x-component': 'CollectionField',
339
+ 'x-decorator': 'FormItem'
340
+ },
324
341
  default: {
325
342
  title: '',
326
343
  'x-component': 'CollectionField',
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _default = {
8
+ namespace: 'file-manager',
9
+ duplicator: 'optional',
8
10
  name: 'attachments',
9
11
  title: '文件管理器',
10
12
  createdBy: true,
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _default = {
8
+ namespace: 'file-manager',
9
+ duplicator: 'optional',
8
10
  name: 'storages',
9
11
  title: '存储引擎',
10
12
  fields: [{
@@ -25,7 +25,8 @@ var _default = {
25
25
  filenameKey: 'key',
26
26
 
27
27
  make(storage) {
28
- const S3Client = require('aws-sdk/clients/s3');
28
+ const _require = require('@aws-sdk/client-s3'),
29
+ S3Client = _require.S3Client;
29
30
 
30
31
  const multerS3 = require('multer-s3');
31
32
 
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-file-manager",
3
- "version": "0.9.0-alpha.1",
3
+ "version": "0.9.1-alpha.1",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
+ "@aws-sdk/client-s3": "^3.245.0",
9
10
  "@koa/multer": "^3.0.0",
10
- "@nocobase/client": "0.9.0-alpha.1",
11
- "@nocobase/server": "0.9.0-alpha.1",
12
- "aws-sdk": "^2.2.32",
11
+ "@nocobase/client": "0.9.1-alpha.1",
12
+ "@nocobase/server": "0.9.1-alpha.1",
13
13
  "cos-nodejs-sdk-v5": "^2.11.14",
14
14
  "koa-static": "^5.0.0",
15
15
  "mime-match": "^1.0.2",
@@ -20,9 +20,9 @@
20
20
  "multer-s3": "^2.10.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@nocobase/test": "0.9.0-alpha.1",
23
+ "@nocobase/test": "0.9.1-alpha.1",
24
24
  "@types/koa-multer": "^1.0.1",
25
25
  "@types/multer": "^1.4.5"
26
26
  },
27
- "gitHead": "d84c2a47c42c2ffec4fbf317d53268952fbd58d7"
27
+ "gitHead": "56cb184b00dc383b853015d525bf6e79dea92169"
28
28
  }