mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-16 18:57:37 +08:00
✨ Feature(custom): prioritize current endpoint for WebDAV platform in cloud page
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
- 更新了阿里云OSS,腾讯云COS和七牛云的可用地域列表,移除了已废弃的地域选项,并添加了新的可用地域
|
||||
- 添加了上传API服务的最大上传并发数和上传间隔设置项,避免并发上传过多导致服务器压力过大或被图床服务商限制访问
|
||||
- 云端页面的SM.MS迁移至S.EE平台
|
||||
- 云端页面WebDAV平台现在打开官网时会优先使用当前图床配置的endpoint作为链接地址
|
||||
- 优化了本地文件的扩展名获取逻辑,提升了对特殊文件名的兼容性
|
||||
- 更新了linux下的剪贴板图片获取脚本
|
||||
- 现在支持在拷贝文件时监听系统剪贴板的变化
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
- Updated the available regions for Alibaba Cloud OSS, Tencent Cloud COS, and Qiniu Cloud, removing deprecated regions and adding new ones.
|
||||
- Added settings for maximum upload concurrency and upload interval for the Upload API service to prevent excessive concurrent uploads that could put too much pressure on the server or lead to access restrictions by image bed providers.
|
||||
- The cloud page's SM.MS has migrated to the S.EE platform.
|
||||
- The cloud page WebDAV platform now prioritizes using the current image bed configuration's endpoint as the link address when opening the official website.
|
||||
- Optimized the logic for obtaining local file extensions, improving compatibility with special file names.
|
||||
- Updated the clipboard image acquisition script for Linux.
|
||||
- Now supports monitoring system clipboard changes when copying files.
|
||||
|
||||
@@ -342,7 +342,7 @@ watch(
|
||||
|
||||
watch(sidebarWidth, () => {}, { immediate: false })
|
||||
|
||||
const urlMap: IStringKeyMap = {
|
||||
const urlMap: IStringKeyMap = computed(() => ({
|
||||
aliyun: 'https://oss.console.aliyun.com',
|
||||
github: 'https://github.com',
|
||||
imgur: 'https://imgur.com',
|
||||
@@ -353,8 +353,9 @@ const urlMap: IStringKeyMap = {
|
||||
smms: 'https://s.ee',
|
||||
tcyun: 'https://console.cloud.tencent.com/cos',
|
||||
upyun: 'https://console.upyun.com',
|
||||
webdavplist: 'https://baike.baidu.com/item/WebDAV/4610909',
|
||||
}
|
||||
webdavplist:
|
||||
getDomainFromEndpoint(currentPagePicBedConfig.endpoint || '') || 'https://baike.baidu.com/item/WebDAV/4610909',
|
||||
}))
|
||||
|
||||
const showNewIconList = ['aliyun', 'qiniu', 'tcyun', 's3plist']
|
||||
|
||||
@@ -376,12 +377,23 @@ const menuTitleMap: IStringKeyMap = {
|
||||
local: '',
|
||||
}
|
||||
|
||||
const openPicBedUrl = () => window.electron.sendRPC(IRPCActionType.OPEN_URL, urlMap[currentPagePicBedConfig.picBedName])
|
||||
const openPicBedUrl = () =>
|
||||
window.electron.sendRPC(IRPCActionType.OPEN_URL, urlMap.value[currentPagePicBedConfig.picBedName])
|
||||
|
||||
function openNewBucketDrawer() {
|
||||
bucketDrawerVisible.value = true
|
||||
}
|
||||
|
||||
function getDomainFromEndpoint(endpoint: string): string {
|
||||
try {
|
||||
const url = new URL(endpoint)
|
||||
return url.origin
|
||||
} catch (_e) {
|
||||
console.error('Invalid endpoint URL:', endpoint)
|
||||
return endpoint
|
||||
}
|
||||
}
|
||||
|
||||
function createNewBucket(picBedName: string) {
|
||||
const configOptions = newBucketConfig[picBedName].configOptions
|
||||
const resultMap: IStringKeyMap = Object.keys(configOptions).reduce((result, key) => {
|
||||
|
||||
Reference in New Issue
Block a user