Feature(custom): make configuration properties optional for various services

This commit is contained in:
Kuingsmile
2025-06-10 16:09:50 +08:00
parent d256f6f2e1
commit 36706f9359
2 changed files with 30 additions and 25 deletions

View File

@@ -317,25 +317,26 @@ interface IAliYunConfig {
accessKeySecret: string
bucket: string
area: string
path: string
customUrl: string
options: string
path?: string
webPath?: string
customUrl?: string
options?: string
}
interface IGitHubConfig {
repo: string
token: string
path: string
customUrl: string
path?: string
customUrl?: string
branch: string
}
interface IImgurConfig {
clientId: string
proxy: string
username: string
accessToken: string
album: string
clientId?: string
proxy?: string
username?: string
accessToken?: string
album?: string
}
interface IQiniuConfig {
@@ -344,8 +345,8 @@ interface IQiniuConfig {
bucket: string
url: string
area: 'z0' | 'z1' | 'z2' | 'na0' | 'as0' | string
options: string
path: string
options?: string
path?: string
}
interface ISMMSConfig {
@@ -360,23 +361,24 @@ interface ITcYunConfig {
appId: string
endpoint: string
area: string
path: string
customUrl: string
path?: string
webPath?: string
customUrl?: string
version: 'v4' | 'v5'
options: string
slim: boolean
options?: string
slim?: boolean
}
interface IUpYunConfig {
bucket: string
operator: string
password: string
options: string
path: string
options?: string
path?: string
url: string
antiLeechToken: string
expireTime: number
endpoint: string
antiLeechToken?: string
expireTime?: number
endpoint?: string
}
interface IWebdavPlistConfig {
@@ -384,11 +386,11 @@ interface IWebdavPlistConfig {
sslEnabled: boolean
username: string
password: string
path: string
webpath: string
customUrl: string
path?: string
webpath?: string
customUrl?: string
authType: string
options: string
options?: string
}
interface ISftpPlistConfig {

View File

@@ -99,6 +99,9 @@ export interface IConfigStruct {
enable: boolean
format: string
}
skipProcess: {
skipProcessExtList: string
}
}
debug: boolean
PICGO_ENV: string