From d1e27924a5c08978d40154b445dc6be94da01e3c Mon Sep 17 00:00:00 2001 From: Kuingsmile Date: Fri, 19 Jan 2024 18:00:34 -0800 Subject: [PATCH] :sparkles: Feature(custom): support build-in s3 remote delete --- src/main.ts | 3 ++- src/renderer/apis/allApi.ts | 1 + src/universal/utils/static.ts | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index a35d890..332b7bd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -58,7 +58,8 @@ app.config.globalProperties.$builtInPicBed = [ 'sftpplist', 'telegraphplist', 'piclist', - 'lskyplist' + 'lskyplist', + 'aws-s3-plist' ] app.config.globalProperties.$$db = db diff --git a/src/renderer/apis/allApi.ts b/src/renderer/apis/allApi.ts index d5cbde9..f95a2b4 100644 --- a/src/renderer/apis/allApi.ts +++ b/src/renderer/apis/allApi.ts @@ -18,6 +18,7 @@ import LskyplistApi from './lskyplist' const apiMap: IStringKeyMap = { aliyun: AliyunApi, 'aws-s3': AwsS3Api, + 'aws-s3-plist': AwsS3Api, github: GithubApi, imgur: ImgurApi, local: LocalApi, diff --git a/src/universal/utils/static.ts b/src/universal/utils/static.ts index c7965c2..6369774 100644 --- a/src/universal/utils/static.ts +++ b/src/universal/utils/static.ts @@ -22,5 +22,6 @@ export const picBedsCanbeDeleted = [ 'huaweicloud-uploader', 'alist', 'piclist', - 'lskyplist' + 'lskyplist', + 'aws-s3-plist' ]