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
+27 -25
View File
@@ -317,25 +317,26 @@ interface IAliYunConfig {
accessKeySecret: string accessKeySecret: string
bucket: string bucket: string
area: string area: string
path: string path?: string
customUrl: string webPath?: string
options: string customUrl?: string
options?: string
} }
interface IGitHubConfig { interface IGitHubConfig {
repo: string repo: string
token: string token: string
path: string path?: string
customUrl: string customUrl?: string
branch: string branch: string
} }
interface IImgurConfig { interface IImgurConfig {
clientId: string clientId?: string
proxy: string proxy?: string
username: string username?: string
accessToken: string accessToken?: string
album: string album?: string
} }
interface IQiniuConfig { interface IQiniuConfig {
@@ -344,8 +345,8 @@ interface IQiniuConfig {
bucket: string bucket: string
url: string url: string
area: 'z0' | 'z1' | 'z2' | 'na0' | 'as0' | string area: 'z0' | 'z1' | 'z2' | 'na0' | 'as0' | string
options: string options?: string
path: string path?: string
} }
interface ISMMSConfig { interface ISMMSConfig {
@@ -360,23 +361,24 @@ interface ITcYunConfig {
appId: string appId: string
endpoint: string endpoint: string
area: string area: string
path: string path?: string
customUrl: string webPath?: string
customUrl?: string
version: 'v4' | 'v5' version: 'v4' | 'v5'
options: string options?: string
slim: boolean slim?: boolean
} }
interface IUpYunConfig { interface IUpYunConfig {
bucket: string bucket: string
operator: string operator: string
password: string password: string
options: string options?: string
path: string path?: string
url: string url: string
antiLeechToken: string antiLeechToken?: string
expireTime: number expireTime?: number
endpoint: string endpoint?: string
} }
interface IWebdavPlistConfig { interface IWebdavPlistConfig {
@@ -384,11 +386,11 @@ interface IWebdavPlistConfig {
sslEnabled: boolean sslEnabled: boolean
username: string username: string
password: string password: string
path: string path?: string
webpath: string webpath?: string
customUrl: string customUrl?: string
authType: string authType: string
options: string options?: string
} }
interface ISftpPlistConfig { interface ISftpPlistConfig {
+3
View File
@@ -99,6 +99,9 @@ export interface IConfigStruct {
enable: boolean enable: boolean
format: string format: string
} }
skipProcess: {
skipProcessExtList: string
}
} }
debug: boolean debug: boolean
PICGO_ENV: string PICGO_ENV: string