Feature: add antileechtoken and expiretime for upyun manage

This commit is contained in:
萌萌哒赫萝
2023-08-29 07:13:37 -07:00
parent 2daae921ff
commit ea61614ddd
8 changed files with 53 additions and 4 deletions

View File

@@ -685,6 +685,8 @@ async function transUpToManage (config: IUploaderConfigListItem, picBedName: str
operator: config.operator,
password: config.password,
bucketName: config.bucket,
antiLeechToken: config.antiLeechToken,
expireTime: config.expireTime,
baseDir: '/',
customUrl: config.url,
transformedConfig: JSON.stringify({

View File

@@ -494,6 +494,20 @@ export const supportedPicBedList: IStringKeyMap = {
}
]
},
antiLeechToken: {
required: false,
description: $T('MANAGE_CONSTANT_UPYUN_ANTI_LEECH_TOKEN_DESC'),
placeholder: $T('MANAGE_CONSTANT_UPYUN_ANTI_LEECH_TOKEN_PLACEHOLDER'),
type: 'string',
default: '',
tooltip: $T('MANAGE_CONSTANT_UPYUN_ANTI_LEECH_TOKEN_TOOLTIP')
},
expireTime: {
required: false,
description: $T('MANAGE_CONSTANT_UPYUN_EXPIRE_TIME_DESC'),
type: 'number',
default: 0
},
paging: {
required: true,
description: $T('MANAGE_CONSTANT_UPYUN_PAGING'),
@@ -511,7 +525,7 @@ export const supportedPicBedList: IStringKeyMap = {
}
},
explain: $T('MANAGE_CONSTANT_UPYUN_EXPLAIN'),
options: ['alias', 'bucketName', 'operator', 'password', 'baseDir', 'customUrl', 'paging', 'itemsPerPage'],
options: ['alias', 'bucketName', 'operator', 'password', 'baseDir', 'customUrl', 'paging', 'itemsPerPage', 'antiLeechToken', 'expireTime'],
refLink: 'https://piclist.cn/manage.html#%E5%8F%88%E6%8B%8D%E4%BA%91',
referenceText: $T('MANAGE_CONSTANT_UPYUN_REFER_TEXT')
},