mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-24 01:30:16 +08:00
🐛 Fix(custom): fix an issue eslint not worked as expected
This commit is contained in:
@@ -17,14 +17,12 @@ import type {
|
||||
ITcYunConfig,
|
||||
IUploaderConfig,
|
||||
IUpYunConfig,
|
||||
IWebdavPlistConfig
|
||||
IWebdavPlistConfig,
|
||||
} from '#/types/types'
|
||||
|
||||
export type manualPageOpenType = 'window' | 'browser'
|
||||
|
||||
interface IPicGoPlugins {
|
||||
[key: `picgo-plugin-${string}`]: boolean
|
||||
}
|
||||
type IPicGoPlugins = Record<`picgo-plugin-${string}`, boolean>
|
||||
|
||||
export interface IConfigStruct {
|
||||
picBed: {
|
||||
@@ -48,9 +46,7 @@ export interface IConfigStruct {
|
||||
[others: string]: any
|
||||
}
|
||||
settings: {
|
||||
shortKey: {
|
||||
[key: string]: IShortKeyConfig
|
||||
}
|
||||
shortKey: Record<string, IShortKeyConfig>
|
||||
isAlwaysForceReload: boolean
|
||||
logLevel: string[]
|
||||
logPath: string
|
||||
@@ -133,12 +129,12 @@ export const configPaths = {
|
||||
secondUploaderConfig: 'picBed.secondUploaderConfig',
|
||||
proxy: 'picBed.proxy',
|
||||
transformer: 'picBed.transformer',
|
||||
list: 'picBed.list'
|
||||
list: 'picBed.list',
|
||||
},
|
||||
settings: {
|
||||
shortKey: {
|
||||
_path: 'settings.shortKey',
|
||||
'picgo:upload': 'settings.shortKey[picgo:upload]'
|
||||
'picgo:upload': 'settings.shortKey[picgo:upload]',
|
||||
},
|
||||
isAlwaysForceReload: 'settings.isAlwaysForceReload',
|
||||
logLevel: 'settings.logLevel',
|
||||
@@ -194,7 +190,7 @@ export const configPaths = {
|
||||
autoImport: 'settings.autoImport',
|
||||
autoImportPicBed: 'settings.autoImportPicBed',
|
||||
galleryPicBedFilter: 'settings.galleryPicBedFilter',
|
||||
enableSecondUploader: 'settings.enableSecondUploader'
|
||||
enableSecondUploader: 'settings.enableSecondUploader',
|
||||
},
|
||||
needReload: 'needReload',
|
||||
picgoPlugins: 'picgoPlugins',
|
||||
@@ -203,8 +199,8 @@ export const configPaths = {
|
||||
compress: 'buildIn.compress',
|
||||
watermark: 'buildIn.watermark',
|
||||
rename: 'buildIn.rename',
|
||||
skipProcess: 'buildIn.skipProcess'
|
||||
skipProcess: 'buildIn.skipProcess',
|
||||
},
|
||||
debug: 'debug',
|
||||
PICGO_ENV: 'PICGO_ENV'
|
||||
PICGO_ENV: 'PICGO_ENV',
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ export const IPasteStyle = {
|
||||
HTML: 'HTML',
|
||||
URL: 'URL',
|
||||
UBB: 'UBB',
|
||||
CUSTOM: 'Custom'
|
||||
CUSTOM: 'Custom',
|
||||
}
|
||||
|
||||
export const IWindowList = {
|
||||
@@ -11,7 +11,7 @@ export const IWindowList = {
|
||||
TRAY_WINDOW: 'TRAY_WINDOW',
|
||||
MINI_WINDOW: 'MINI_WINDOW',
|
||||
RENAME_WINDOW: 'RENAME_WINDOW',
|
||||
TOOLBOX_WINDOW: 'TOOLBOX_WINDOW'
|
||||
TOOLBOX_WINDOW: 'TOOLBOX_WINDOW',
|
||||
}
|
||||
|
||||
export const IRPCActionType = {
|
||||
@@ -133,32 +133,32 @@ export const IRPCActionType = {
|
||||
MANAGE_OPEN_DOWNLOADED_FOLDER: 'MANAGE_OPEN_DOWNLOADED_FOLDER',
|
||||
MANAGE_OPEN_LOCAL_FILE: 'MANAGE_OPEN_LOCAL_FILE',
|
||||
MANAGE_DOWNLOAD_FILE_FROM_URL: 'MANAGE_DOWNLOAD_FILE_FROM_URL',
|
||||
MANAGE_CONVERT_PATH_TO_BASE64: 'MANAGE_CONVERT_PATH_TO_BASE64'
|
||||
MANAGE_CONVERT_PATH_TO_BASE64: 'MANAGE_CONVERT_PATH_TO_BASE64',
|
||||
}
|
||||
|
||||
export const IToolboxItemType = {
|
||||
IS_CONFIG_FILE_BROKEN: 'IS_CONFIG_FILE_BROKEN',
|
||||
IS_GALLERY_FILE_BROKEN: 'IS_GALLERY_FILE_BROKEN',
|
||||
HAS_PROBLEM_WITH_CLIPBOARD_PIC_UPLOAD: 'HAS_PROBLEM_WITH_CLIPBOARD_PIC_UPLOAD',
|
||||
HAS_PROBLEM_WITH_PROXY: 'HAS_PROBLEM_WITH_PROXY'
|
||||
HAS_PROBLEM_WITH_PROXY: 'HAS_PROBLEM_WITH_PROXY',
|
||||
}
|
||||
|
||||
export const IToolboxItemCheckStatus = {
|
||||
INIT: 'init',
|
||||
LOADING: 'loading',
|
||||
SUCCESS: 'success',
|
||||
ERROR: 'error'
|
||||
ERROR: 'error',
|
||||
}
|
||||
|
||||
export const ISartMode = {
|
||||
QUIET: 'quiet',
|
||||
MINI: 'mini',
|
||||
MAIN: 'main',
|
||||
NO_TRAY: 'no-tray'
|
||||
NO_TRAY: 'no-tray',
|
||||
}
|
||||
|
||||
export const II18nLanguage = {
|
||||
ZH_CN: 'zh-CN',
|
||||
ZH_TW: 'zh-TW',
|
||||
EN: 'en'
|
||||
EN: 'en',
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ const keyBinding = (event: KeyboardEvent) => {
|
||||
Ctrl: event.ctrlKey,
|
||||
Shift: event.shiftKey,
|
||||
Alt: event.altKey,
|
||||
[meta]: event.metaKey
|
||||
[meta]: event.metaKey,
|
||||
}
|
||||
|
||||
const pressKey = []
|
||||
|
||||
@@ -24,7 +24,7 @@ export const picBedsCanbeDeleted = [
|
||||
'smms',
|
||||
'tcyun',
|
||||
'upyun',
|
||||
'webdavplist'
|
||||
'webdavplist',
|
||||
]
|
||||
|
||||
export const picBedManualUrlList: IStringKeyMap = {
|
||||
@@ -46,7 +46,7 @@ export const picBedManualUrlList: IStringKeyMap = {
|
||||
sftpplist: 'https://piclist.cn/configure.html#%E5%86%85%E7%BD%AEsftp',
|
||||
smms: 'https://piclist.cn/configure.html#sm-ms',
|
||||
upyun: 'https://piclist.cn/configure.html#%E5%8F%88%E6%8B%8D%E4%BA%91',
|
||||
webdavplist: 'https://piclist.cn/configure.html#webdav'
|
||||
webdavplist: 'https://piclist.cn/configure.html#webdav',
|
||||
},
|
||||
en: {
|
||||
advancedpiclist: 'https://piclist.cn/en/configure.html#advanced',
|
||||
@@ -66,6 +66,6 @@ export const picBedManualUrlList: IStringKeyMap = {
|
||||
sftpplist: 'https://piclist.cn/en/configure.html#built-in-sftp',
|
||||
smms: 'https://piclist.cn/en/configure.html#sm-ms',
|
||||
upyun: 'https://piclist.cn/en/configure.html#upyun',
|
||||
webdavplist: 'https://piclist.cn/en/configure.html#webdav'
|
||||
}
|
||||
webdavplist: 'https://piclist.cn/en/configure.html#webdav',
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user