Feature: add logFileSizeLimit for log file

ISSUES CLOSED: #935, #945
This commit is contained in:
PiEgg
2022-07-31 17:47:15 +08:00
parent 3102d7b1ea
commit 219b367f7c
12 changed files with 122 additions and 54 deletions

View File

@@ -88,6 +88,7 @@ export const EN: ILocales = {
SETTINGS_TIPS_HAS_NEW_VERSION: 'PicGo has a new version, please click confirm to open download page',
SETTINGS_LOG_FILE: 'Log File',
SETTINGS_LOG_LEVEL: 'Log Level',
SETTINGS_LOG_FILE_SIZE: 'Log File Size',
SETTINGS_SET_PICGO_SERVER: 'Set PicGo Server',
SETTINGS_TIPS_SERVER_NOTICE: 'If you don\'t know what is the server\'s function, please read the document, or don\'t modify the configuration.',
SETTINGS_ENABLE_SERVER: 'Enable Server',

View File

@@ -87,6 +87,7 @@ export const ZH_CN = {
SETTINGS_TIPS_HAS_NEW_VERSION: 'PicGo更新啦请点击确定打开下载页面',
SETTINGS_LOG_FILE: '日志文件',
SETTINGS_LOG_LEVEL: '日志记录等级',
SETTINGS_LOG_FILE_SIZE: '日志文件大小',
SETTINGS_SET_PICGO_SERVER: '设置PicGo-Server',
SETTINGS_TIPS_SERVER_NOTICE: '如果你不知道Server的作用请阅读文档或者不用修改配置。',
SETTINGS_ENABLE_SERVER: '是否开启Server',

View File

@@ -11,6 +11,7 @@ interface ISettingForm {
checkBetaUpdate: boolean
useBuiltinClipboard: boolean
language: string
logFileSizeLimit: number
}
interface IShortKeyMap {

View File

@@ -37,3 +37,7 @@ export const handleStreamlinePluginName = (name: string) => {
export const simpleClone = (obj: any) => {
return JSON.parse(JSON.stringify(obj))
}
export const enforceNumber = (num: number | string) => {
return isNaN(Number(num)) ? 0 : Number(num)
}

View File

@@ -0,0 +1 @@
export const CLIPBOARD_IMAGE_FOLDER = 'picgo-clipboard-images'