@tachybase/module-file 1.6.2 → 1.6.3
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 +9 -9
- package/README.zh-CN.md +9 -9
- package/client.d.ts +2 -2
- package/client.js +1 -1
- package/dist/externalVersion.js +5 -5
- package/dist/locale/en-US.json +22 -22
- package/dist/locale/fr-FR.json +21 -21
- package/dist/locale/ja-JP.json +18 -18
- package/dist/locale/ko_KR.json +32 -32
- package/dist/locale/ru-RU.json +18 -18
- package/dist/locale/tr-TR.json +17 -17
- package/dist/locale/zh-CN.json +32 -32
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/.bin/uuid +2 -2
- 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/multer-aliyun-oss/package.json +1 -1
- package/dist/node_modules/multer-cos/package.json +1 -1
- package/dist/node_modules/multer-s3/package.json +1 -1
- package/dist/swagger/index.json +81 -81
- package/package.json +2 -2
- package/server.d.ts +2 -2
- package/server.js +1 -1
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/.bin/uuid.CMD +0 -12
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/.bin/uuid.ps1 +0 -41
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# file-manager
|
|
2
|
-
|
|
3
|
-
English | [中文](./README.zh-CN.md)
|
|
4
|
-
|
|
5
|
-
## 安装激活
|
|
6
|
-
|
|
7
|
-
内置插件无需手动安装激活。
|
|
8
|
-
|
|
9
|
-
## 使用方法
|
|
1
|
+
# file-manager
|
|
2
|
+
|
|
3
|
+
English | [中文](./README.zh-CN.md)
|
|
4
|
+
|
|
5
|
+
## 安装激活
|
|
6
|
+
|
|
7
|
+
内置插件无需手动安装激活。
|
|
8
|
+
|
|
9
|
+
## 使用方法
|
package/README.zh-CN.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# file-manager
|
|
2
|
-
|
|
3
|
-
[English](./README.md) | 中文
|
|
4
|
-
|
|
5
|
-
## 安装激活
|
|
6
|
-
|
|
7
|
-
内置插件无需手动安装激活。
|
|
8
|
-
|
|
9
|
-
## 使用方法
|
|
1
|
+
# file-manager
|
|
2
|
+
|
|
3
|
+
[English](./README.md) | 中文
|
|
4
|
+
|
|
5
|
+
## 安装激活
|
|
6
|
+
|
|
7
|
+
内置插件无需手动安装激活。
|
|
8
|
+
|
|
9
|
+
## 使用方法
|
package/client.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './dist/client';
|
|
2
|
-
export { default } from './dist/client';
|
|
1
|
+
export * from './dist/client';
|
|
2
|
+
export { default } from './dist/client';
|
package/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('./dist/client/index.js');
|
|
1
|
+
module.exports = require('./dist/client/index.js');
|
package/dist/externalVersion.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"react": "18.3.1",
|
|
3
|
-
"@tachybase/client": "1.6.
|
|
4
|
-
"@tachybase/schema": "1.6.
|
|
3
|
+
"@tachybase/client": "1.6.3",
|
|
4
|
+
"@tachybase/schema": "1.6.1",
|
|
5
5
|
"@ant-design/icons": "6.1.0",
|
|
6
6
|
"antd": "5.22.5",
|
|
7
7
|
"lodash": "4.17.21",
|
|
8
8
|
"react-i18next": "16.2.1",
|
|
9
|
-
"@tego/client": "1.6.
|
|
10
|
-
"@tego/server": "1.6.
|
|
11
|
-
"@tachybase/test": "1.6.
|
|
9
|
+
"@tego/client": "1.6.1",
|
|
10
|
+
"@tego/server": "1.6.1",
|
|
11
|
+
"@tachybase/test": "1.6.1",
|
|
12
12
|
"dayjs": "1.11.13",
|
|
13
13
|
"multer": "2.0.1"
|
|
14
14
|
};
|
package/dist/locale/en-US.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Aliyun OSS": "Aliyun OSS",
|
|
3
|
-
"Amazon S3": "Amazon S3",
|
|
4
|
-
"Attachment": "Attachment",
|
|
5
|
-
"Bucket": "Bucket",
|
|
6
|
-
"Default storage": "Default storage",
|
|
7
|
-
"Destination": "Destination",
|
|
8
|
-
"File manager": "File manager",
|
|
9
|
-
"Filename": "Filename",
|
|
10
|
-
"Local storage": "Local storage",
|
|
11
|
-
"MIME type": "MIME type",
|
|
12
|
-
"Path": "Path",
|
|
13
|
-
"Region": "Region",
|
|
14
|
-
"See more": "See more",
|
|
15
|
-
"Storage base URL": "Storage base URL",
|
|
16
|
-
"Storage display name": "Storage display name",
|
|
17
|
-
"Storage name": "Storage name",
|
|
18
|
-
"Storage type": "Storage type",
|
|
19
|
-
"Tencent COS": "Tencent COS",
|
|
20
|
-
"Use the built-in static file server": "Use the built-in static file server",
|
|
21
|
-
"Will be used for API": "Will be used for API"
|
|
22
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"Aliyun OSS": "Aliyun OSS",
|
|
3
|
+
"Amazon S3": "Amazon S3",
|
|
4
|
+
"Attachment": "Attachment",
|
|
5
|
+
"Bucket": "Bucket",
|
|
6
|
+
"Default storage": "Default storage",
|
|
7
|
+
"Destination": "Destination",
|
|
8
|
+
"File manager": "File manager",
|
|
9
|
+
"Filename": "Filename",
|
|
10
|
+
"Local storage": "Local storage",
|
|
11
|
+
"MIME type": "MIME type",
|
|
12
|
+
"Path": "Path",
|
|
13
|
+
"Region": "Region",
|
|
14
|
+
"See more": "See more",
|
|
15
|
+
"Storage base URL": "Storage base URL",
|
|
16
|
+
"Storage display name": "Storage display name",
|
|
17
|
+
"Storage name": "Storage name",
|
|
18
|
+
"Storage type": "Storage type",
|
|
19
|
+
"Tencent COS": "Tencent COS",
|
|
20
|
+
"Use the built-in static file server": "Use the built-in static file server",
|
|
21
|
+
"Will be used for API": "Will be used for API"
|
|
22
|
+
}
|
package/dist/locale/fr-FR.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Aliyun OSS": "Aliyun OSS",
|
|
3
|
-
"Amazon S3": "Amazon S3",
|
|
4
|
-
"Attachment": "Pièce jointe",
|
|
5
|
-
"Bucket": "Bucket",
|
|
6
|
-
"Default storage": "Stockage par défaut",
|
|
7
|
-
"Destination": "Destination",
|
|
8
|
-
"File manager": "Gestionnaire de fichiers",
|
|
9
|
-
"Filename": "Nom de fichier",
|
|
10
|
-
"Local storage": "Stockage local",
|
|
11
|
-
"MIME type": "Type MIME",
|
|
12
|
-
"Path": "Chemin",
|
|
13
|
-
"Region": "Region",
|
|
14
|
-
"Storage base URL": "URL de base du stockage",
|
|
15
|
-
"Storage display name": "Nom d'affichage du stockage",
|
|
16
|
-
"Storage name": "Nom du stockage",
|
|
17
|
-
"Storage type": "Type de stockage",
|
|
18
|
-
"Tencent COS": "Tencent COS",
|
|
19
|
-
"Use the built-in static file server": "Utiliser le serveur de fichiers statique intégré",
|
|
20
|
-
"Will be used for API": "Sera utilisé pour l'API"
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"Aliyun OSS": "Aliyun OSS",
|
|
3
|
+
"Amazon S3": "Amazon S3",
|
|
4
|
+
"Attachment": "Pièce jointe",
|
|
5
|
+
"Bucket": "Bucket",
|
|
6
|
+
"Default storage": "Stockage par défaut",
|
|
7
|
+
"Destination": "Destination",
|
|
8
|
+
"File manager": "Gestionnaire de fichiers",
|
|
9
|
+
"Filename": "Nom de fichier",
|
|
10
|
+
"Local storage": "Stockage local",
|
|
11
|
+
"MIME type": "Type MIME",
|
|
12
|
+
"Path": "Chemin",
|
|
13
|
+
"Region": "Region",
|
|
14
|
+
"Storage base URL": "URL de base du stockage",
|
|
15
|
+
"Storage display name": "Nom d'affichage du stockage",
|
|
16
|
+
"Storage name": "Nom du stockage",
|
|
17
|
+
"Storage type": "Type de stockage",
|
|
18
|
+
"Tencent COS": "Tencent COS",
|
|
19
|
+
"Use the built-in static file server": "Utiliser le serveur de fichiers statique intégré",
|
|
20
|
+
"Will be used for API": "Sera utilisé pour l'API"
|
|
21
|
+
}
|
package/dist/locale/ja-JP.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Aliyun OSS": "Aliyun OSS",
|
|
3
|
-
"Allow uploading multiple files": "複数ファイルのアップロードを許可する",
|
|
4
|
-
"Amazon S3": "Amazon S3",
|
|
5
|
-
"Attachment": "添付ファイル",
|
|
6
|
-
"Default storage": "デフォルトストレージ",
|
|
7
|
-
"Destination": "ファイルパス",
|
|
8
|
-
"File manager": "ファイルストレージ",
|
|
9
|
-
"Filename": "ファイル名",
|
|
10
|
-
"Local storage": "ローカルストレージ",
|
|
11
|
-
"MIME type": "ファイル形式",
|
|
12
|
-
"Storage base URL": "Storage base URL",
|
|
13
|
-
"Storage display name": "ファイルストレージ名",
|
|
14
|
-
"Storage name": "ファイルストレージ識別子",
|
|
15
|
-
"Storage type": "ストレージタイプ",
|
|
16
|
-
"Tencent COS": "Tencent COS",
|
|
17
|
-
"Use the built-in static file server": "組み込みの静的ファイル サービスを使用する"
|
|
18
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"Aliyun OSS": "Aliyun OSS",
|
|
3
|
+
"Allow uploading multiple files": "複数ファイルのアップロードを許可する",
|
|
4
|
+
"Amazon S3": "Amazon S3",
|
|
5
|
+
"Attachment": "添付ファイル",
|
|
6
|
+
"Default storage": "デフォルトストレージ",
|
|
7
|
+
"Destination": "ファイルパス",
|
|
8
|
+
"File manager": "ファイルストレージ",
|
|
9
|
+
"Filename": "ファイル名",
|
|
10
|
+
"Local storage": "ローカルストレージ",
|
|
11
|
+
"MIME type": "ファイル形式",
|
|
12
|
+
"Storage base URL": "Storage base URL",
|
|
13
|
+
"Storage display name": "ファイルストレージ名",
|
|
14
|
+
"Storage name": "ファイルストレージ識別子",
|
|
15
|
+
"Storage type": "ストレージタイプ",
|
|
16
|
+
"Tencent COS": "Tencent COS",
|
|
17
|
+
"Use the built-in static file server": "組み込みの静的ファイル サービスを使用する"
|
|
18
|
+
}
|
package/dist/locale/ko_KR.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Aliyun OSS": "알리바바 클라우드 OSS",
|
|
3
|
-
"Allow uploading multiple files": "다중 파일 업로드 허용",
|
|
4
|
-
"Amazon S3": "아마존 S3",
|
|
5
|
-
"Attachment": "첨부 파일",
|
|
6
|
-
"Bucket": "버킷",
|
|
7
|
-
"Default storage": "기본 저장소",
|
|
8
|
-
"Default storage will be used when not selected": "선택하지 않으면 기본 저장소가 사용됩니다.",
|
|
9
|
-
"Destination": "업로드 대상 폴더",
|
|
10
|
-
"Extension name": "확장자명",
|
|
11
|
-
"File collection": "파일 데이터 테이블",
|
|
12
|
-
"File manager": "파일 관리자",
|
|
13
|
-
"File name": "파일명",
|
|
14
|
-
"File storage": "파일 저장소",
|
|
15
|
-
"Filename": "파일명",
|
|
16
|
-
"Keep file in storage when destroying a record": "레코드 삭제 시 파일을 저장소에 보존",
|
|
17
|
-
"Local storage": "로컬 저장소",
|
|
18
|
-
"MIME type": "MIME 타입",
|
|
19
|
-
"Path": "경로",
|
|
20
|
-
"Region": "지역",
|
|
21
|
-
"See more": "더 보기",
|
|
22
|
-
"Size": "파일 크기",
|
|
23
|
-
"Storage": "저장소",
|
|
24
|
-
"Storage base URL": "저장소 기본 URL",
|
|
25
|
-
"Storage name": "저장소 이름",
|
|
26
|
-
"Storage type": "저장소 타입",
|
|
27
|
-
"Storages": "저장소",
|
|
28
|
-
"Tencent COS": "텐센트 클라우드 COS",
|
|
29
|
-
"URL": "URL",
|
|
30
|
-
"Use the built-in static file server": "내장 정적 파일 서버 사용",
|
|
31
|
-
"Will be used for API": "API에 사용될 것입니다."
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"Aliyun OSS": "알리바바 클라우드 OSS",
|
|
3
|
+
"Allow uploading multiple files": "다중 파일 업로드 허용",
|
|
4
|
+
"Amazon S3": "아마존 S3",
|
|
5
|
+
"Attachment": "첨부 파일",
|
|
6
|
+
"Bucket": "버킷",
|
|
7
|
+
"Default storage": "기본 저장소",
|
|
8
|
+
"Default storage will be used when not selected": "선택하지 않으면 기본 저장소가 사용됩니다.",
|
|
9
|
+
"Destination": "업로드 대상 폴더",
|
|
10
|
+
"Extension name": "확장자명",
|
|
11
|
+
"File collection": "파일 데이터 테이블",
|
|
12
|
+
"File manager": "파일 관리자",
|
|
13
|
+
"File name": "파일명",
|
|
14
|
+
"File storage": "파일 저장소",
|
|
15
|
+
"Filename": "파일명",
|
|
16
|
+
"Keep file in storage when destroying a record": "레코드 삭제 시 파일을 저장소에 보존",
|
|
17
|
+
"Local storage": "로컬 저장소",
|
|
18
|
+
"MIME type": "MIME 타입",
|
|
19
|
+
"Path": "경로",
|
|
20
|
+
"Region": "지역",
|
|
21
|
+
"See more": "더 보기",
|
|
22
|
+
"Size": "파일 크기",
|
|
23
|
+
"Storage": "저장소",
|
|
24
|
+
"Storage base URL": "저장소 기본 URL",
|
|
25
|
+
"Storage name": "저장소 이름",
|
|
26
|
+
"Storage type": "저장소 타입",
|
|
27
|
+
"Storages": "저장소",
|
|
28
|
+
"Tencent COS": "텐센트 클라우드 COS",
|
|
29
|
+
"URL": "URL",
|
|
30
|
+
"Use the built-in static file server": "내장 정적 파일 서버 사용",
|
|
31
|
+
"Will be used for API": "API에 사용될 것입니다."
|
|
32
|
+
}
|
package/dist/locale/ru-RU.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Aliyun OSS": "Aliyun OSS",
|
|
3
|
-
"Allow uploading multiple files": "Позволить загружать много файлов",
|
|
4
|
-
"Amazon S3": "Amazon S3",
|
|
5
|
-
"Attachment": "Вложение",
|
|
6
|
-
"Default storage": "Хранилище по умолчанию",
|
|
7
|
-
"Destination": "Назначение",
|
|
8
|
-
"File manager": "Файловые хранилища",
|
|
9
|
-
"Filename": "Имя файла",
|
|
10
|
-
"Local storage": "Локальное хранилище",
|
|
11
|
-
"MIME type": "Подтвердить",
|
|
12
|
-
"Storage base URL": "Базовый URL хранилища",
|
|
13
|
-
"Storage display name": "Имя храшилища на экране",
|
|
14
|
-
"Storage name": "Имя хранилища",
|
|
15
|
-
"Storage type": "Тип Хранилища",
|
|
16
|
-
"Tencent COS": "Tencent COS",
|
|
17
|
-
"Use the built-in static file server": "Использовать встроенный статический файл-сервер"
|
|
18
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"Aliyun OSS": "Aliyun OSS",
|
|
3
|
+
"Allow uploading multiple files": "Позволить загружать много файлов",
|
|
4
|
+
"Amazon S3": "Amazon S3",
|
|
5
|
+
"Attachment": "Вложение",
|
|
6
|
+
"Default storage": "Хранилище по умолчанию",
|
|
7
|
+
"Destination": "Назначение",
|
|
8
|
+
"File manager": "Файловые хранилища",
|
|
9
|
+
"Filename": "Имя файла",
|
|
10
|
+
"Local storage": "Локальное хранилище",
|
|
11
|
+
"MIME type": "Подтвердить",
|
|
12
|
+
"Storage base URL": "Базовый URL хранилища",
|
|
13
|
+
"Storage display name": "Имя храшилища на экране",
|
|
14
|
+
"Storage name": "Имя хранилища",
|
|
15
|
+
"Storage type": "Тип Хранилища",
|
|
16
|
+
"Tencent COS": "Tencent COS",
|
|
17
|
+
"Use the built-in static file server": "Использовать встроенный статический файл-сервер"
|
|
18
|
+
}
|
package/dist/locale/tr-TR.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Aliyun OSS": "Aliyun OSS",
|
|
3
|
-
"Allow uploading multiple files": "Birden çok dosya yüklemeye izin ver",
|
|
4
|
-
"Amazon S3": "Amazon S3",
|
|
5
|
-
"Attachment": "Dosya eki",
|
|
6
|
-
"Default storage": "Varsayılan depo",
|
|
7
|
-
"Destination": "Hedef",
|
|
8
|
-
"File manager": "Dosya depoları",
|
|
9
|
-
"Filename": "Dosya adı",
|
|
10
|
-
"Local storage": "Lokal depolama",
|
|
11
|
-
"MIME type": "Kabul et",
|
|
12
|
-
"Storage base URL": "Depolama temel URLsi",
|
|
13
|
-
"Storage name": "Depo adı",
|
|
14
|
-
"Storage type": "Depolama türü",
|
|
15
|
-
"Tencent COS": "Tencent COS",
|
|
16
|
-
"Use the built-in static file server": "Yerleşik statik dosya sunucusunu kullanın"
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"Aliyun OSS": "Aliyun OSS",
|
|
3
|
+
"Allow uploading multiple files": "Birden çok dosya yüklemeye izin ver",
|
|
4
|
+
"Amazon S3": "Amazon S3",
|
|
5
|
+
"Attachment": "Dosya eki",
|
|
6
|
+
"Default storage": "Varsayılan depo",
|
|
7
|
+
"Destination": "Hedef",
|
|
8
|
+
"File manager": "Dosya depoları",
|
|
9
|
+
"Filename": "Dosya adı",
|
|
10
|
+
"Local storage": "Lokal depolama",
|
|
11
|
+
"MIME type": "Kabul et",
|
|
12
|
+
"Storage base URL": "Depolama temel URLsi",
|
|
13
|
+
"Storage name": "Depo adı",
|
|
14
|
+
"Storage type": "Depolama türü",
|
|
15
|
+
"Tencent COS": "Tencent COS",
|
|
16
|
+
"Use the built-in static file server": "Yerleşik statik dosya sunucusunu kullanın"
|
|
17
|
+
}
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Aliyun OSS": "阿里云 OSS",
|
|
3
|
-
"Allow uploading multiple files": "允许上传多个文件",
|
|
4
|
-
"Amazon S3": "亚马逊 S3",
|
|
5
|
-
"Attachment": "附件",
|
|
6
|
-
"Bucket": "存储桶",
|
|
7
|
-
"Default storage": "默认存储空间",
|
|
8
|
-
"Default storage will be used when not selected": "留空将使用默认存储空间",
|
|
9
|
-
"Destination": "上传目标文件夹",
|
|
10
|
-
"Extension name": "扩展名",
|
|
11
|
-
"File collection": "文件数据表",
|
|
12
|
-
"File manager": "文件管理器",
|
|
13
|
-
"File name": "文件名",
|
|
14
|
-
"File storage": "文件存储",
|
|
15
|
-
"Filename": "文件名",
|
|
16
|
-
"Keep file in storage when destroy record": "删除记录时保留文件",
|
|
17
|
-
"Local storage": "本地存储",
|
|
18
|
-
"MIME type": "MIME 类型",
|
|
19
|
-
"Path": "路径",
|
|
20
|
-
"Region": "区域",
|
|
21
|
-
"See more": "更多请查阅",
|
|
22
|
-
"Size": "文件大小",
|
|
23
|
-
"Storage": "存储空间",
|
|
24
|
-
"Storage base URL": "访问 URL 基础",
|
|
25
|
-
"Storage name": "存储空间标识",
|
|
26
|
-
"Storage type": "存储类型",
|
|
27
|
-
"Storages": "存储空间",
|
|
28
|
-
"Tencent COS": "腾讯云 COS",
|
|
29
|
-
"URL": "URL",
|
|
30
|
-
"Use the built-in static file server": "使用内置静态文件服务",
|
|
31
|
-
"Will be used for API": "将用于 API"
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"Aliyun OSS": "阿里云 OSS",
|
|
3
|
+
"Allow uploading multiple files": "允许上传多个文件",
|
|
4
|
+
"Amazon S3": "亚马逊 S3",
|
|
5
|
+
"Attachment": "附件",
|
|
6
|
+
"Bucket": "存储桶",
|
|
7
|
+
"Default storage": "默认存储空间",
|
|
8
|
+
"Default storage will be used when not selected": "留空将使用默认存储空间",
|
|
9
|
+
"Destination": "上传目标文件夹",
|
|
10
|
+
"Extension name": "扩展名",
|
|
11
|
+
"File collection": "文件数据表",
|
|
12
|
+
"File manager": "文件管理器",
|
|
13
|
+
"File name": "文件名",
|
|
14
|
+
"File storage": "文件存储",
|
|
15
|
+
"Filename": "文件名",
|
|
16
|
+
"Keep file in storage when destroy record": "删除记录时保留文件",
|
|
17
|
+
"Local storage": "本地存储",
|
|
18
|
+
"MIME type": "MIME 类型",
|
|
19
|
+
"Path": "路径",
|
|
20
|
+
"Region": "区域",
|
|
21
|
+
"See more": "更多请查阅",
|
|
22
|
+
"Size": "文件大小",
|
|
23
|
+
"Storage": "存储空间",
|
|
24
|
+
"Storage base URL": "访问 URL 基础",
|
|
25
|
+
"Storage name": "存储空间标识",
|
|
26
|
+
"Storage type": "存储类型",
|
|
27
|
+
"Storages": "存储空间",
|
|
28
|
+
"Tencent COS": "腾讯云 COS",
|
|
29
|
+
"URL": "URL",
|
|
30
|
+
"Use the built-in static file server": "使用内置静态文件服务",
|
|
31
|
+
"Will be used for API": "将用于 API"
|
|
32
|
+
}
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/
|
|
13
|
+
export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/
|
|
15
|
+
export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../../../../../../uuid@9.0.1/node_modules/uuid/dist/bin/uuid" "$@"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@aws-sdk/client-s3","description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","version":"3.850.0","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3","test":"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.ts","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.ts && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.ts","test:integration":"yarn g:vitest run -c vitest.config.integ.ts","test:integration:watch":"yarn g:vitest watch -c vitest.config.integ.ts","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.846.0","@aws-sdk/credential-provider-node":"3.848.0","@aws-sdk/middleware-bucket-endpoint":"3.840.0","@aws-sdk/middleware-expect-continue":"3.840.0","@aws-sdk/middleware-flexible-checksums":"3.846.0","@aws-sdk/middleware-host-header":"3.840.0","@aws-sdk/middleware-location-constraint":"3.840.0","@aws-sdk/middleware-logger":"3.840.0","@aws-sdk/middleware-recursion-detection":"3.840.0","@aws-sdk/middleware-sdk-s3":"3.846.0","@aws-sdk/middleware-ssec":"3.840.0","@aws-sdk/middleware-user-agent":"3.848.0","@aws-sdk/region-config-resolver":"3.840.0","@aws-sdk/signature-v4-multi-region":"3.846.0","@aws-sdk/types":"3.840.0","@aws-sdk/util-endpoints":"3.848.0","@aws-sdk/util-user-agent-browser":"3.840.0","@aws-sdk/util-user-agent-node":"3.848.0","@aws-sdk/xml-builder":"3.821.0","@smithy/config-resolver":"^4.1.4","@smithy/core":"^3.7.0","@smithy/eventstream-serde-browser":"^4.0.4","@smithy/eventstream-serde-config-resolver":"^4.1.2","@smithy/eventstream-serde-node":"^4.0.4","@smithy/fetch-http-handler":"^5.1.0","@smithy/hash-blob-browser":"^4.0.4","@smithy/hash-node":"^4.0.4","@smithy/hash-stream-node":"^4.0.4","@smithy/invalid-dependency":"^4.0.4","@smithy/md5-js":"^4.0.4","@smithy/middleware-content-length":"^4.0.4","@smithy/middleware-endpoint":"^4.1.15","@smithy/middleware-retry":"^4.1.16","@smithy/middleware-serde":"^4.0.8","@smithy/middleware-stack":"^4.0.4","@smithy/node-config-provider":"^4.1.3","@smithy/node-http-handler":"^4.1.0","@smithy/protocol-http":"^5.1.2","@smithy/smithy-client":"^4.4.7","@smithy/types":"^4.3.1","@smithy/url-parser":"^4.0.4","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.23","@smithy/util-defaults-mode-node":"^4.0.23","@smithy/util-endpoints":"^3.0.6","@smithy/util-middleware":"^4.0.4","@smithy/util-retry":"^4.0.6","@smithy/util-stream":"^4.2.3","@smithy/util-utf8":"^4.0.0","@smithy/util-waiter":"^4.0.6","@types/uuid":"^9.0.1","tslib":"^2.6.2","uuid":"^9.0.1"},"devDependencies":{"@aws-sdk/signature-v4-crt":"3.848.0","@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-s3"},"_lastModified":"2025-12-
|
|
1
|
+
{"name":"@aws-sdk/client-s3","description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","version":"3.850.0","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3","test":"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.ts","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.ts && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.ts","test:integration":"yarn g:vitest run -c vitest.config.integ.ts","test:integration:watch":"yarn g:vitest watch -c vitest.config.integ.ts","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.846.0","@aws-sdk/credential-provider-node":"3.848.0","@aws-sdk/middleware-bucket-endpoint":"3.840.0","@aws-sdk/middleware-expect-continue":"3.840.0","@aws-sdk/middleware-flexible-checksums":"3.846.0","@aws-sdk/middleware-host-header":"3.840.0","@aws-sdk/middleware-location-constraint":"3.840.0","@aws-sdk/middleware-logger":"3.840.0","@aws-sdk/middleware-recursion-detection":"3.840.0","@aws-sdk/middleware-sdk-s3":"3.846.0","@aws-sdk/middleware-ssec":"3.840.0","@aws-sdk/middleware-user-agent":"3.848.0","@aws-sdk/region-config-resolver":"3.840.0","@aws-sdk/signature-v4-multi-region":"3.846.0","@aws-sdk/types":"3.840.0","@aws-sdk/util-endpoints":"3.848.0","@aws-sdk/util-user-agent-browser":"3.840.0","@aws-sdk/util-user-agent-node":"3.848.0","@aws-sdk/xml-builder":"3.821.0","@smithy/config-resolver":"^4.1.4","@smithy/core":"^3.7.0","@smithy/eventstream-serde-browser":"^4.0.4","@smithy/eventstream-serde-config-resolver":"^4.1.2","@smithy/eventstream-serde-node":"^4.0.4","@smithy/fetch-http-handler":"^5.1.0","@smithy/hash-blob-browser":"^4.0.4","@smithy/hash-node":"^4.0.4","@smithy/hash-stream-node":"^4.0.4","@smithy/invalid-dependency":"^4.0.4","@smithy/md5-js":"^4.0.4","@smithy/middleware-content-length":"^4.0.4","@smithy/middleware-endpoint":"^4.1.15","@smithy/middleware-retry":"^4.1.16","@smithy/middleware-serde":"^4.0.8","@smithy/middleware-stack":"^4.0.4","@smithy/node-config-provider":"^4.1.3","@smithy/node-http-handler":"^4.1.0","@smithy/protocol-http":"^5.1.2","@smithy/smithy-client":"^4.4.7","@smithy/types":"^4.3.1","@smithy/url-parser":"^4.0.4","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.23","@smithy/util-defaults-mode-node":"^4.0.23","@smithy/util-endpoints":"^3.0.6","@smithy/util-middleware":"^4.0.4","@smithy/util-retry":"^4.0.6","@smithy/util-stream":"^4.2.3","@smithy/util-utf8":"^4.0.0","@smithy/util-waiter":"^4.0.6","@types/uuid":"^9.0.1","tslib":"^2.6.2","uuid":"^9.0.1"},"devDependencies":{"@aws-sdk/signature-v4-crt":"3.848.0","@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-s3"},"_lastModified":"2025-12-26T04:41:37.763Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"mime-match","version":"1.0.2","description":"A simple function to check whether a mimetype matches the specified mimetype (with wildcard support)","main":"index.js","scripts":{"test":"node test.js","gendocs":"gendocs > README.md"},"repository":{"type":"git","url":"https://github.com/DamonOehlman/mime-match.git"},"keywords":["mime","wildcard"],"author":"Damon Oehlman <damon.oehlman@gmail.com>","license":"ISC","bugs":{"url":"https://github.com/DamonOehlman/mime-match/issues"},"homepage":"https://github.com/DamonOehlman/mime-match","dependencies":{"wildcard":"^1.1.0"},"devDependencies":{"tape":"^4.5.1"},"_lastModified":"2025-12-
|
|
1
|
+
{"name":"mime-match","version":"1.0.2","description":"A simple function to check whether a mimetype matches the specified mimetype (with wildcard support)","main":"index.js","scripts":{"test":"node test.js","gendocs":"gendocs > README.md"},"repository":{"type":"git","url":"https://github.com/DamonOehlman/mime-match.git"},"keywords":["mime","wildcard"],"author":"Damon Oehlman <damon.oehlman@gmail.com>","license":"ISC","bugs":{"url":"https://github.com/DamonOehlman/mime-match/issues"},"homepage":"https://github.com/DamonOehlman/mime-match","dependencies":{"wildcard":"^1.1.0"},"devDependencies":{"tape":"^4.5.1"},"_lastModified":"2025-12-26T04:41:31.632Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"multer-aliyun-oss","version":"2.1.3","description":"Multer Storage for AliYun OSS","main":"index.js","scripts":{},"author":"AngusYoung","license":"ISC","repository":{"type":"git","url":"git+https://github.com/ay86/multer-aliyun-oss.git"},"keywords":["multer","storage","aliyun","oss"],"dependencies":{"ali-oss":"^6.1.0"},"_lastModified":"2025-12-
|
|
1
|
+
{"name":"multer-aliyun-oss","version":"2.1.3","description":"Multer Storage for AliYun OSS","main":"index.js","scripts":{},"author":"AngusYoung","license":"ISC","repository":{"type":"git","url":"git+https://github.com/ay86/multer-aliyun-oss.git"},"keywords":["multer","storage","aliyun","oss"],"dependencies":{"ali-oss":"^6.1.0"},"_lastModified":"2025-12-26T04:41:34.169Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"_from":"multer-cos","_id":"multer-cos@1.0.2","_inBundle":false,"_integrity":"sha512-4F8P1VTCSNhiem+BFJFLe3Ixco6cIuAQ6j7U+PBRvdbBJRZgq5Q+vaDMMBWJ1HmPGOOP3AyKS5yk2f0nbFoqqA==","_location":"/multer-cos","_phantomChildren":{},"_requested":{"type":"tag","registry":true,"raw":"multer-cos","name":"multer-cos","escapedName":"multer-cos","rawSpec":"","saveSpec":null,"fetchSpec":"latest"},"_requiredBy":["#USER","/"],"_resolved":"https://registry.npmjs.org/multer-cos/-/multer-cos-1.0.2.tgz","_shasum":"95c7c06cdee1b9311675a895481f9d946de6dcf3","_spec":"multer-cos","_where":"/Users/lanbo/workplace/websocket","author":{"name":"lanbosm"},"bugs":{"url":"https://github.com/lanbosm/multer-COS/issues"},"bundleDependencies":false,"deprecated":false,"description":"Streaming multer storage engine for QCloud COS","devDependencies":{"cos-nodejs-sdk-v5":"^2.2.6","dotenv":"^5.0.1","multer":"^1.3.0"},"engines":{"node":">= 6.10.0"},"homepage":"https://github.com/lanbosm/multer-COS#readme","keywords":["express","multer","COS"],"license":"MIT","main":"index.js","name":"multer-cos","repository":{"type":"git","url":"git+ssh://git@github.com/lanbosm/multer-COS.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"version":"1.0.3","_lastModified":"2025-12-
|
|
1
|
+
{"_from":"multer-cos","_id":"multer-cos@1.0.2","_inBundle":false,"_integrity":"sha512-4F8P1VTCSNhiem+BFJFLe3Ixco6cIuAQ6j7U+PBRvdbBJRZgq5Q+vaDMMBWJ1HmPGOOP3AyKS5yk2f0nbFoqqA==","_location":"/multer-cos","_phantomChildren":{},"_requested":{"type":"tag","registry":true,"raw":"multer-cos","name":"multer-cos","escapedName":"multer-cos","rawSpec":"","saveSpec":null,"fetchSpec":"latest"},"_requiredBy":["#USER","/"],"_resolved":"https://registry.npmjs.org/multer-cos/-/multer-cos-1.0.2.tgz","_shasum":"95c7c06cdee1b9311675a895481f9d946de6dcf3","_spec":"multer-cos","_where":"/Users/lanbo/workplace/websocket","author":{"name":"lanbosm"},"bugs":{"url":"https://github.com/lanbosm/multer-COS/issues"},"bundleDependencies":false,"deprecated":false,"description":"Streaming multer storage engine for QCloud COS","devDependencies":{"cos-nodejs-sdk-v5":"^2.2.6","dotenv":"^5.0.1","multer":"^1.3.0"},"engines":{"node":">= 6.10.0"},"homepage":"https://github.com/lanbosm/multer-COS#readme","keywords":["express","multer","COS"],"license":"MIT","main":"index.js","name":"multer-cos","repository":{"type":"git","url":"git+ssh://git@github.com/lanbosm/multer-COS.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"version":"1.0.3","_lastModified":"2025-12-26T04:41:44.789Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"multer-s3","version":"3.0.1","description":"Streaming multer storage engine for AWS S3","main":"index.js","scripts":{"test":"standard && mocha test/basic.js"},"engines":{"node":">= 12.0.0"},"repository":{"type":"git","url":"git+https://github.com/badunk/multer-s3.git"},"keywords":["multer","s3","amazon","aws"],"author":"badunk","license":"MIT","bugs":{"url":"https://github.com/badunk/multer-s3/issues"},"homepage":"https://github.com/badunk/multer-s3#readme","dependencies":{"@aws-sdk/lib-storage":"^3.46.0","file-type":"^3.3.0","html-comment-regex":"^1.1.2","run-parallel":"^1.1.6"},"peerDependencies":{"@aws-sdk/client-s3":"^3.0.0"},"devDependencies":{"express":"^4.13.1","form-data":"^1.0.0-rc3","mocha":"^2.2.5","multer":"^1.1.0","on-finished":"^2.3.0","standard":"^5.4.1","xtend":"^4.0.1"},"_lastModified":"2025-12-
|
|
1
|
+
{"name":"multer-s3","version":"3.0.1","description":"Streaming multer storage engine for AWS S3","main":"index.js","scripts":{"test":"standard && mocha test/basic.js"},"engines":{"node":">= 12.0.0"},"repository":{"type":"git","url":"git+https://github.com/badunk/multer-s3.git"},"keywords":["multer","s3","amazon","aws"],"author":"badunk","license":"MIT","bugs":{"url":"https://github.com/badunk/multer-s3/issues"},"homepage":"https://github.com/badunk/multer-s3#readme","dependencies":{"@aws-sdk/lib-storage":"^3.46.0","file-type":"^3.3.0","html-comment-regex":"^1.1.2","run-parallel":"^1.1.6"},"peerDependencies":{"@aws-sdk/client-s3":"^3.0.0"},"devDependencies":{"express":"^4.13.1","form-data":"^1.0.0-rc3","mocha":"^2.2.5","multer":"^1.1.0","on-finished":"^2.3.0","standard":"^5.4.1","xtend":"^4.0.1"},"_lastModified":"2025-12-26T04:41:41.232Z"}
|
package/dist/swagger/index.json
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
{
|
|
2
|
-
"info": {
|
|
3
|
-
"title": "TachyBase API - File manager plugin"
|
|
4
|
-
},
|
|
5
|
-
"openapi": "3.0.2",
|
|
6
|
-
"paths": {
|
|
7
|
-
"/{fileCollectionName}:create": {
|
|
8
|
-
"post": {
|
|
9
|
-
"tags": ["$collection"],
|
|
10
|
-
"description": "",
|
|
11
|
-
"parameters": [],
|
|
12
|
-
"responses": {
|
|
13
|
-
"200": {
|
|
14
|
-
"description": "OK"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"/storages:list": {
|
|
20
|
-
"get": {
|
|
21
|
-
"tags": ["storages"],
|
|
22
|
-
"description": "",
|
|
23
|
-
"parameters": [],
|
|
24
|
-
"responses": {
|
|
25
|
-
"200": {
|
|
26
|
-
"description": "OK"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"/storages:get": {
|
|
32
|
-
"get": {
|
|
33
|
-
"tags": ["storages"],
|
|
34
|
-
"description": "",
|
|
35
|
-
"parameters": [],
|
|
36
|
-
"responses": {
|
|
37
|
-
"200": {
|
|
38
|
-
"description": "OK"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"/storages:create": {
|
|
44
|
-
"post": {
|
|
45
|
-
"tags": ["storages"],
|
|
46
|
-
"description": "",
|
|
47
|
-
"parameters": [],
|
|
48
|
-
"responses": {
|
|
49
|
-
"200": {
|
|
50
|
-
"description": "OK"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"/storages:update": {
|
|
56
|
-
"post": {
|
|
57
|
-
"tags": ["storages"],
|
|
58
|
-
"description": "",
|
|
59
|
-
"parameters": [],
|
|
60
|
-
"responses": {
|
|
61
|
-
"200": {
|
|
62
|
-
"description": "OK"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"/storages:destroy": {
|
|
68
|
-
"post": {
|
|
69
|
-
"tags": ["storages"],
|
|
70
|
-
"description": "",
|
|
71
|
-
"parameters": [],
|
|
72
|
-
"responses": {
|
|
73
|
-
"200": {
|
|
74
|
-
"description": "OK"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"tags": []
|
|
81
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"title": "TachyBase API - File manager plugin"
|
|
4
|
+
},
|
|
5
|
+
"openapi": "3.0.2",
|
|
6
|
+
"paths": {
|
|
7
|
+
"/{fileCollectionName}:create": {
|
|
8
|
+
"post": {
|
|
9
|
+
"tags": ["$collection"],
|
|
10
|
+
"description": "",
|
|
11
|
+
"parameters": [],
|
|
12
|
+
"responses": {
|
|
13
|
+
"200": {
|
|
14
|
+
"description": "OK"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"/storages:list": {
|
|
20
|
+
"get": {
|
|
21
|
+
"tags": ["storages"],
|
|
22
|
+
"description": "",
|
|
23
|
+
"parameters": [],
|
|
24
|
+
"responses": {
|
|
25
|
+
"200": {
|
|
26
|
+
"description": "OK"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"/storages:get": {
|
|
32
|
+
"get": {
|
|
33
|
+
"tags": ["storages"],
|
|
34
|
+
"description": "",
|
|
35
|
+
"parameters": [],
|
|
36
|
+
"responses": {
|
|
37
|
+
"200": {
|
|
38
|
+
"description": "OK"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"/storages:create": {
|
|
44
|
+
"post": {
|
|
45
|
+
"tags": ["storages"],
|
|
46
|
+
"description": "",
|
|
47
|
+
"parameters": [],
|
|
48
|
+
"responses": {
|
|
49
|
+
"200": {
|
|
50
|
+
"description": "OK"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"/storages:update": {
|
|
56
|
+
"post": {
|
|
57
|
+
"tags": ["storages"],
|
|
58
|
+
"description": "",
|
|
59
|
+
"parameters": [],
|
|
60
|
+
"responses": {
|
|
61
|
+
"200": {
|
|
62
|
+
"description": "OK"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"/storages:destroy": {
|
|
68
|
+
"post": {
|
|
69
|
+
"tags": ["storages"],
|
|
70
|
+
"description": "",
|
|
71
|
+
"parameters": [],
|
|
72
|
+
"responses": {
|
|
73
|
+
"200": {
|
|
74
|
+
"description": "OK"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"tags": []
|
|
81
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/module-file",
|
|
3
3
|
"displayName": "File manager",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.3",
|
|
5
5
|
"description": "Provides files storage services with files collection template and attachment field.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"Collections",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react": "18.3.1",
|
|
32
32
|
"react-i18next": "16.2.1",
|
|
33
33
|
"supertest": "^7.1.3",
|
|
34
|
-
"@tachybase/client": "1.6.
|
|
34
|
+
"@tachybase/client": "1.6.3"
|
|
35
35
|
},
|
|
36
36
|
"description.zh-CN": "提供文件存储服务,并提供了文件表模板和附件字段。",
|
|
37
37
|
"displayName.zh-CN": "文件管理器",
|
package/server.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './dist/server';
|
|
2
|
-
export { default } from './dist/server';
|
|
1
|
+
export * from './dist/server';
|
|
2
|
+
export { default } from './dist/server';
|
package/server.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('./dist/server/index.js');
|
|
1
|
+
module.exports = require('./dist/server/index.js');
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
@SETLOCAL
|
|
2
|
-
@IF NOT DEFINED NODE_PATH (
|
|
3
|
-
@SET "NODE_PATH=D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\uuid@9.0.1\node_modules\uuid\dist\bin\node_modules;D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\uuid@9.0.1\node_modules\uuid\dist\node_modules;D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\uuid@9.0.1\node_modules\uuid\node_modules;D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\uuid@9.0.1\node_modules;D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\node_modules"
|
|
4
|
-
) ELSE (
|
|
5
|
-
@SET "NODE_PATH=D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\uuid@9.0.1\node_modules\uuid\dist\bin\node_modules;D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\uuid@9.0.1\node_modules\uuid\dist\node_modules;D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\uuid@9.0.1\node_modules\uuid\node_modules;D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\uuid@9.0.1\node_modules;D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
-
)
|
|
7
|
-
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
-
"%~dp0\node.exe" "%~dp0\..\..\..\..\..\..\uuid@9.0.1\node_modules\uuid\dist\bin\uuid" %*
|
|
9
|
-
) ELSE (
|
|
10
|
-
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
-
node "%~dp0\..\..\..\..\..\..\uuid@9.0.1\node_modules\uuid\dist\bin\uuid" %*
|
|
12
|
-
)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env pwsh
|
|
2
|
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
-
|
|
4
|
-
$exe=""
|
|
5
|
-
$pathsep=":"
|
|
6
|
-
$env_node_path=$env:NODE_PATH
|
|
7
|
-
$new_node_path="D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\uuid@9.0.1\node_modules\uuid\dist\bin\node_modules;D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\uuid@9.0.1\node_modules\uuid\dist\node_modules;D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\uuid@9.0.1\node_modules\uuid\node_modules;D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\uuid@9.0.1\node_modules;D:\Dev\TegoJS\tego-standard\node_modules\.pnpm\node_modules"
|
|
8
|
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
-
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
-
# are installed in the same directory
|
|
11
|
-
$exe=".exe"
|
|
12
|
-
$pathsep=";"
|
|
13
|
-
} else {
|
|
14
|
-
$new_node_path="/mnt/d/Dev/TegoJS/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/bin/node_modules:/mnt/d/Dev/TegoJS/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/node_modules:/mnt/d/Dev/TegoJS/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/node_modules:/mnt/d/Dev/TegoJS/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules:/mnt/d/Dev/TegoJS/tego-standard/node_modules/.pnpm/node_modules"
|
|
15
|
-
}
|
|
16
|
-
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
-
$env:NODE_PATH=$new_node_path
|
|
18
|
-
} else {
|
|
19
|
-
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
$ret=0
|
|
23
|
-
if (Test-Path "$basedir/node$exe") {
|
|
24
|
-
# Support pipeline input
|
|
25
|
-
if ($MyInvocation.ExpectingInput) {
|
|
26
|
-
$input | & "$basedir/node$exe" "$basedir/../../../../../../uuid@9.0.1/node_modules/uuid/dist/bin/uuid" $args
|
|
27
|
-
} else {
|
|
28
|
-
& "$basedir/node$exe" "$basedir/../../../../../../uuid@9.0.1/node_modules/uuid/dist/bin/uuid" $args
|
|
29
|
-
}
|
|
30
|
-
$ret=$LASTEXITCODE
|
|
31
|
-
} else {
|
|
32
|
-
# Support pipeline input
|
|
33
|
-
if ($MyInvocation.ExpectingInput) {
|
|
34
|
-
$input | & "node$exe" "$basedir/../../../../../../uuid@9.0.1/node_modules/uuid/dist/bin/uuid" $args
|
|
35
|
-
} else {
|
|
36
|
-
& "node$exe" "$basedir/../../../../../../uuid@9.0.1/node_modules/uuid/dist/bin/uuid" $args
|
|
37
|
-
}
|
|
38
|
-
$ret=$LASTEXITCODE
|
|
39
|
-
}
|
|
40
|
-
$env:NODE_PATH=$env_node_path
|
|
41
|
-
exit $ret
|