mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-26 10:40:26 +08:00
✨ Feature: add antileechtoken and expiretime for upyun manage
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user