🐛 Fix: fix configure files sync bug

This commit is contained in:
萌萌哒赫萝 2023-05-05 17:57:41 +08:00
parent e8d54fac4c
commit a1981ab59d
4 changed files with 5 additions and 5 deletions

View File

@ -227,7 +227,7 @@ SETTINGS_SHORT_URL: Use short url
SETTINGS_DELETE_LOCAL_FILE_AFTER_UPLOAD: Delete local file after upload SETTINGS_DELETE_LOCAL_FILE_AFTER_UPLOAD: Delete local file after upload
SETTINGS_SYNC_CONFIG: Settings Sync Configuration SETTINGS_SYNC_CONFIG: Settings Sync Configuration
SETTINGS_SYNC_CONFIG_TITLE: Sync Settings 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_TYPE: Select sync method
SETTINGS_SYNC_CONFIG_SELECT_FILE: Select files to sync SETTINGS_SYNC_CONFIG_SELECT_FILE: Select files to sync
SETTINGS_SYNC_CONFIG_SELECT_CONFIG: Configuration files only SETTINGS_SYNC_CONFIG_SELECT_CONFIG: Configuration files only

View File

@ -230,7 +230,7 @@ SETTINGS_SHORT_URL: 使用短链接
SETTINGS_DELETE_LOCAL_FILE_AFTER_UPLOAD: 上传后删除本地文件 SETTINGS_DELETE_LOCAL_FILE_AFTER_UPLOAD: 上传后删除本地文件
SETTINGS_SYNC_CONFIG: 设置配置同步 SETTINGS_SYNC_CONFIG: 设置配置同步
SETTINGS_SYNC_CONFIG_TITLE: 同步设置 SETTINGS_SYNC_CONFIG_TITLE: 同步设置
SETTINGS_SYNC_CONFIG_NOTE: 同步的文件包括配置文件和相册文件 SETTINGS_SYNC_CONFIG_NOTE: 同步的文件为配置文件
SETTINGS_SYNC_CONFIG_SELECT_TYPE: 选择同步方式 SETTINGS_SYNC_CONFIG_SELECT_TYPE: 选择同步方式
SETTINGS_SYNC_CONFIG_SELECT_FILE: 选择同步文件 SETTINGS_SYNC_CONFIG_SELECT_FILE: 选择同步文件
SETTINGS_SYNC_CONFIG_SELECT_CONFIG: 仅配置文件 SETTINGS_SYNC_CONFIG_SELECT_CONFIG: 仅配置文件

View File

@ -228,7 +228,7 @@ SETTINGS_SHORT_URL: 使用短網址
SETTINGS_DELETE_LOCAL_FILE_AFTER_UPLOAD: 上傳後刪除本地檔案 SETTINGS_DELETE_LOCAL_FILE_AFTER_UPLOAD: 上傳後刪除本地檔案
SETTINGS_SYNC_CONFIG: 設置同步配置 SETTINGS_SYNC_CONFIG: 設置同步配置
SETTINGS_SYNC_CONFIG_TITLE: 同步設置 SETTINGS_SYNC_CONFIG_TITLE: 同步設置
SETTINGS_SYNC_CONFIG_NOTE: 同步的檔案包括配置檔案和相簿檔案 SETTINGS_SYNC_CONFIG_NOTE: 同步的檔案为配置檔案
SETTINGS_SYNC_CONFIG_SELECT_TYPE: 選擇同步方式 SETTINGS_SYNC_CONFIG_SELECT_TYPE: 選擇同步方式
SETTINGS_SYNC_CONFIG_SELECT_FILE: 選擇同步檔案 SETTINGS_SYNC_CONFIG_SELECT_FILE: 選擇同步檔案
SETTINGS_SYNC_CONFIG_SELECT_CONFIG: 僅配置檔案 SETTINGS_SYNC_CONFIG_SELECT_CONFIG: 僅配置檔案

View File

@ -60,8 +60,8 @@ function getSyncConfig () {
} }
function syncConfigValidator (syncConfig: SyncConfig) { function syncConfigValidator (syncConfig: SyncConfig) {
const { type, file, username, repo, branch, token } = syncConfig const { type, username, repo, branch, token } = syncConfig
return type && file && username && repo && branch && token return type && username && repo && branch && token
} }
async function getModifiedTime (syncConfig: SyncConfig, filePath: string) { async function getModifiedTime (syncConfig: SyncConfig, filePath: string) {