@nocobase/plugin-file-manager 0.11.1-alpha.2 → 0.11.1-alpha.4
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/lib/{client/locale → locale}/en-US.js +6 -6
- package/lib/locale/fr-FR.d.ts +22 -0
- package/lib/locale/fr-FR.js +28 -0
- package/lib/server/actions/attachments.js +4 -4
- package/package.json +8 -8
- package/src/{client/locale → locale}/en-US.ts +6 -6
- package/src/locale/fr-FR.ts +21 -0
- package/src/server/actions/attachments.ts +2 -2
- /package/lib/{client/locale → locale}/en-US.d.ts +0 -0
- /package/lib/{client/locale → locale}/ja-JP.d.ts +0 -0
- /package/lib/{client/locale → locale}/ja-JP.js +0 -0
- /package/lib/{client/locale → locale}/ru-RU.d.ts +0 -0
- /package/lib/{client/locale → locale}/ru-RU.js +0 -0
- /package/lib/{client/locale → locale}/tr-TR.d.ts +0 -0
- /package/lib/{client/locale → locale}/tr-TR.js +0 -0
- /package/lib/{client/locale → locale}/zh-CN.d.ts +0 -0
- /package/lib/{client/locale → locale}/zh-CN.js +0 -0
- /package/src/{client/locale → locale}/ja-JP.ts +0 -0
- /package/src/{client/locale → locale}/ru-RU.ts +0 -0
- /package/src/{client/locale → locale}/tr-TR.ts +0 -0
- /package/src/{client/locale → locale}/zh-CN.ts +0 -0
|
@@ -6,23 +6,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _default = {
|
|
8
8
|
'File manager': 'File manager',
|
|
9
|
-
|
|
9
|
+
Attachment: 'Attachment',
|
|
10
10
|
'MIME type': 'MIME type',
|
|
11
11
|
'Storage display name': 'Storage display name',
|
|
12
12
|
'Storage name': 'Storage name',
|
|
13
13
|
'Storage type': 'Storage type',
|
|
14
14
|
'Default storage': 'Default storage',
|
|
15
15
|
'Storage base URL': 'Storage base URL',
|
|
16
|
-
|
|
16
|
+
Destination: 'Destination',
|
|
17
17
|
'Use the built-in static file server': 'Use the built-in static file server',
|
|
18
18
|
'Local storage': 'Local storage',
|
|
19
19
|
'Aliyun OSS': 'Aliyun OSS',
|
|
20
20
|
'Tencent COS': 'Tencent COS',
|
|
21
21
|
'Amazon S3': 'Amazon S3',
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
Region: 'Region',
|
|
23
|
+
Bucket: 'Bucket',
|
|
24
|
+
Path: 'Path',
|
|
25
|
+
Filename: 'Filename',
|
|
26
26
|
'Will be used for API': 'Will be used for API'
|
|
27
27
|
};
|
|
28
28
|
exports.default = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'File manager': string;
|
|
3
|
+
Attachment: string;
|
|
4
|
+
'MIME type': string;
|
|
5
|
+
'Storage display name': string;
|
|
6
|
+
'Storage name': string;
|
|
7
|
+
'Storage type': string;
|
|
8
|
+
'Default storage': string;
|
|
9
|
+
'Storage base URL': string;
|
|
10
|
+
Destination: string;
|
|
11
|
+
'Use the built-in static file server': string;
|
|
12
|
+
'Local storage': string;
|
|
13
|
+
'Aliyun OSS': string;
|
|
14
|
+
'Tencent COS': string;
|
|
15
|
+
'Amazon S3': string;
|
|
16
|
+
Region: string;
|
|
17
|
+
Bucket: string;
|
|
18
|
+
Path: string;
|
|
19
|
+
Filename: string;
|
|
20
|
+
'Will be used for API': string;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = {
|
|
8
|
+
'File manager': 'Gestionnaire de fichiers',
|
|
9
|
+
Attachment: 'Pièce jointe',
|
|
10
|
+
'MIME type': 'Type MIME',
|
|
11
|
+
'Storage display name': "Nom d'affichage du stockage",
|
|
12
|
+
'Storage name': 'Nom du stockage',
|
|
13
|
+
'Storage type': 'Type de stockage',
|
|
14
|
+
'Default storage': 'Stockage par défaut',
|
|
15
|
+
'Storage base URL': 'URL de base du stockage',
|
|
16
|
+
Destination: 'Destination',
|
|
17
|
+
'Use the built-in static file server': 'Utiliser le serveur de fichiers statique intégré',
|
|
18
|
+
'Local storage': 'Stockage local',
|
|
19
|
+
'Aliyun OSS': 'Aliyun OSS',
|
|
20
|
+
'Tencent COS': 'Tencent COS',
|
|
21
|
+
'Amazon S3': 'Amazon S3',
|
|
22
|
+
Region: 'Region',
|
|
23
|
+
Bucket: 'Bucket',
|
|
24
|
+
Path: 'Chemin',
|
|
25
|
+
Filename: 'Nom de fichier',
|
|
26
|
+
'Will be used for API': "Sera utilisé pour l'API"
|
|
27
|
+
};
|
|
28
|
+
exports.default = _default;
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createMiddleware = createMiddleware;
|
|
7
7
|
exports.destroyMiddleware = destroyMiddleware;
|
|
8
|
-
function
|
|
9
|
-
const data =
|
|
10
|
-
|
|
8
|
+
function _utils() {
|
|
9
|
+
const data = require("@nocobase/utils");
|
|
10
|
+
_utils = function _utils() {
|
|
11
11
|
return data;
|
|
12
12
|
};
|
|
13
13
|
return data;
|
|
@@ -99,7 +99,7 @@ function _multipart() {
|
|
|
99
99
|
},
|
|
100
100
|
storage: storageConfig.make(storage)
|
|
101
101
|
};
|
|
102
|
-
const upload = (0,
|
|
102
|
+
const upload = (0, _utils().koaMulter)(multerOptions).single(_constants.FILE_FIELD_NAME);
|
|
103
103
|
try {
|
|
104
104
|
// NOTE: empty next and invoke after success
|
|
105
105
|
yield upload(ctx, () => {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-file-manager",
|
|
3
|
-
"version": "0.11.1-alpha.
|
|
3
|
+
"version": "0.11.1-alpha.4",
|
|
4
4
|
"displayName": "file manager",
|
|
5
5
|
"displayName.zh-CN": "文件管理",
|
|
6
6
|
"description": "file management plugin.",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"@formily/core": "2.2.26",
|
|
38
38
|
"@formily/react": "2.2.26",
|
|
39
39
|
"@formily/shared": "2.2.26",
|
|
40
|
-
"@nocobase/actions": "0.11.1-alpha.
|
|
41
|
-
"@nocobase/client": "0.11.1-alpha.
|
|
42
|
-
"@nocobase/database": "0.11.1-alpha.
|
|
43
|
-
"@nocobase/server": "0.11.1-alpha.
|
|
44
|
-
"@nocobase/test": "0.11.1-alpha.
|
|
45
|
-
"@nocobase/utils": "0.11.1-alpha.
|
|
40
|
+
"@nocobase/actions": "0.11.1-alpha.4",
|
|
41
|
+
"@nocobase/client": "0.11.1-alpha.4",
|
|
42
|
+
"@nocobase/database": "0.11.1-alpha.4",
|
|
43
|
+
"@nocobase/server": "0.11.1-alpha.4",
|
|
44
|
+
"@nocobase/test": "0.11.1-alpha.4",
|
|
45
|
+
"@nocobase/utils": "0.11.1-alpha.4",
|
|
46
46
|
"antd": "^5.6.4",
|
|
47
47
|
"react": "^18.2.0",
|
|
48
48
|
"react-i18next": "^11.15.1",
|
|
49
49
|
"supertest": "^6.1.6"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "d9b5bde913013f1057e1aab49587eb0ad3dcb06e"
|
|
52
52
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
'File manager': 'File manager',
|
|
3
|
-
|
|
3
|
+
Attachment: 'Attachment',
|
|
4
4
|
'MIME type': 'MIME type',
|
|
5
5
|
'Storage display name': 'Storage display name',
|
|
6
6
|
'Storage name': 'Storage name',
|
|
7
7
|
'Storage type': 'Storage type',
|
|
8
8
|
'Default storage': 'Default storage',
|
|
9
9
|
'Storage base URL': 'Storage base URL',
|
|
10
|
-
|
|
10
|
+
Destination: 'Destination',
|
|
11
11
|
'Use the built-in static file server': 'Use the built-in static file server',
|
|
12
12
|
'Local storage': 'Local storage',
|
|
13
13
|
'Aliyun OSS': 'Aliyun OSS',
|
|
14
14
|
'Tencent COS': 'Tencent COS',
|
|
15
15
|
'Amazon S3': 'Amazon S3',
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
Region: 'Region',
|
|
17
|
+
Bucket: 'Bucket',
|
|
18
|
+
Path: 'Path',
|
|
19
|
+
Filename: 'Filename',
|
|
20
20
|
'Will be used for API': 'Will be used for API',
|
|
21
21
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
'File manager': 'Gestionnaire de fichiers',
|
|
3
|
+
Attachment: 'Pièce jointe',
|
|
4
|
+
'MIME type': 'Type MIME',
|
|
5
|
+
'Storage display name': "Nom d'affichage du stockage",
|
|
6
|
+
'Storage name': 'Nom du stockage',
|
|
7
|
+
'Storage type': 'Type de stockage',
|
|
8
|
+
'Default storage': 'Stockage par défaut',
|
|
9
|
+
'Storage base URL': 'URL de base du stockage',
|
|
10
|
+
Destination: 'Destination',
|
|
11
|
+
'Use the built-in static file server': 'Utiliser le serveur de fichiers statique intégré',
|
|
12
|
+
'Local storage': 'Stockage local',
|
|
13
|
+
'Aliyun OSS': 'Aliyun OSS',
|
|
14
|
+
'Tencent COS': 'Tencent COS',
|
|
15
|
+
'Amazon S3': 'Amazon S3',
|
|
16
|
+
Region: 'Region',
|
|
17
|
+
Bucket: 'Bucket',
|
|
18
|
+
Path: 'Chemin',
|
|
19
|
+
Filename: 'Nom de fichier',
|
|
20
|
+
'Will be used for API': "Sera utilisé pour l'API",
|
|
21
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Context, Next } from '@nocobase/actions';
|
|
2
|
+
import { koaMulter as multer } from '@nocobase/utils';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
|
|
5
5
|
import { DEFAULT_MAX_FILE_SIZE, FILE_FIELD_NAME, LIMIT_FILES } from '../constants';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|