mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 06:38:13 -05:00
🐛 Fix: fix configure files sync bug
This commit is contained in:
parent
e8d54fac4c
commit
a1981ab59d
@ -227,7 +227,7 @@ SETTINGS_SHORT_URL: Use short url
|
||||
SETTINGS_DELETE_LOCAL_FILE_AFTER_UPLOAD: Delete local file after upload
|
||||
SETTINGS_SYNC_CONFIG: Settings Sync Configuration
|
||||
SETTINGS_SYNC_CONFIG_TITLE: Sync Settings
|
||||
SETTINGS_SYNC_CONFIG_NOTE: The files to be synchronized include both configuration files and gallery files.
|
||||
SETTINGS_SYNC_CONFIG_NOTE: The files to be synchronized are configuration files.
|
||||
SETTINGS_SYNC_CONFIG_SELECT_TYPE: Select sync method
|
||||
SETTINGS_SYNC_CONFIG_SELECT_FILE: Select files to sync
|
||||
SETTINGS_SYNC_CONFIG_SELECT_CONFIG: Configuration files only
|
||||
|
@ -230,7 +230,7 @@ SETTINGS_SHORT_URL: 使用短链接
|
||||
SETTINGS_DELETE_LOCAL_FILE_AFTER_UPLOAD: 上传后删除本地文件
|
||||
SETTINGS_SYNC_CONFIG: 设置配置同步
|
||||
SETTINGS_SYNC_CONFIG_TITLE: 同步设置
|
||||
SETTINGS_SYNC_CONFIG_NOTE: 同步的文件包括配置文件和相册文件
|
||||
SETTINGS_SYNC_CONFIG_NOTE: 同步的文件为配置文件
|
||||
SETTINGS_SYNC_CONFIG_SELECT_TYPE: 选择同步方式
|
||||
SETTINGS_SYNC_CONFIG_SELECT_FILE: 选择同步文件
|
||||
SETTINGS_SYNC_CONFIG_SELECT_CONFIG: 仅配置文件
|
||||
|
@ -228,7 +228,7 @@ SETTINGS_SHORT_URL: 使用短網址
|
||||
SETTINGS_DELETE_LOCAL_FILE_AFTER_UPLOAD: 上傳後刪除本地檔案
|
||||
SETTINGS_SYNC_CONFIG: 設置同步配置
|
||||
SETTINGS_SYNC_CONFIG_TITLE: 同步設置
|
||||
SETTINGS_SYNC_CONFIG_NOTE: 同步的檔案包括配置檔案和相簿檔案
|
||||
SETTINGS_SYNC_CONFIG_NOTE: 同步的檔案为配置檔案
|
||||
SETTINGS_SYNC_CONFIG_SELECT_TYPE: 選擇同步方式
|
||||
SETTINGS_SYNC_CONFIG_SELECT_FILE: 選擇同步檔案
|
||||
SETTINGS_SYNC_CONFIG_SELECT_CONFIG: 僅配置檔案
|
||||
|
@ -60,8 +60,8 @@ function getSyncConfig () {
|
||||
}
|
||||
|
||||
function syncConfigValidator (syncConfig: SyncConfig) {
|
||||
const { type, file, username, repo, branch, token } = syncConfig
|
||||
return type && file && username && repo && branch && token
|
||||
const { type, username, repo, branch, token } = syncConfig
|
||||
return type && username && repo && branch && token
|
||||
}
|
||||
|
||||
async function getModifiedTime (syncConfig: SyncConfig, filePath: string) {
|
||||
|
Loading…
Reference in New Issue
Block a user