fix: update translation for sync issue and remove debug logs

- Updated the translation for the sync issue in `zh-CN` locale to specify the correct folder path for KoodoReader.
- Removed unnecessary console log statements from `PopupBox`, `Header`, and `backup` functions to clean up the code.
- Added a placeholder method `dumpDatabase` in `DatabaseService` for future implementation.
This commit is contained in:
troyeguo
2025-12-21 10:51:19 +08:00
parent 0c82228003
commit 4e84ed7772
8 changed files with 7 additions and 9 deletions

View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because one or more lines are too long

View File

@@ -213,7 +213,7 @@
"Get debug logs": "获取调试日志",
"To enjoy a faster and seamless synchronization experience.": "享受更快速无缝的同步体验。",
"Your reading progress, notes, highlights, bookmarks, and other data will be stored and synced through our cloud service. Your books and covers will still be synced by your added data sources. To save you from repeatedly entering your data source credentials on new devices, your credentials will be encrypted and stored securely in our cloud too. You can disable this feature anytime in the settings.": "您的阅读进度、笔记、高亮、书签等数据将通过我们的云服务进行存储和同步。您的图书和封面仍然会通过您添加的数据源进行同步。为了避免在新设备上重复输入数据源的凭证,您的凭证也将被加密后安全地存储在我们的云端。您可以随时在设置中禁用此功能。",
"Data in other devices is messed up, but the data in this device is normal. You can reset the sync record in this device, delete the KoodoReader folder in the data source(Turn off Koodo Sync if necessary), and sync again. This should resolve the issue": "其他设备上数据有问题,但此设备中的数据是正常的。您可以在此设备中重置同步记录,删除数据源中的 KoodoReader 文件夹(如有必要,请关闭 Koodo Sync然后重新同步",
"Data in other devices is messed up, but the data in this device is normal. You can reset the sync record in this device, delete the KoodoReader/config folder in the data source(Turn off Koodo Sync if necessary), and sync again. This should resolve the issue": "其他设备上数据有问题,但此设备中的数据是正常的。您可以在此设备中重置同步记录,删除数据源中的 KoodoReader/config 文件夹(如有必要,请关闭 Koodo Sync然后重新同步",
"Tasks failed after multiple retries, please check the network connection or reauthorize the data source in the settings": "多次重试后任务失败,请检查网络连接或在设置中重新授权数据源",
"This data source already contains a library. If you need to merge local and cloud data, please turn off Koodo Sync and resync.": "此数据源已经存在了一个图书库,如果需要将本地和云端的数据合并。请关闭 Koodo Sync 后重新同步。",
"Render PDF from even page": "从偶数页开始渲染 PDF",

View File

@@ -34,7 +34,6 @@ class PopupBox extends React.Component<PopupBoxProps, PopupBoxStates> {
let isShowUrl = ipcRenderer.sendSync("url-window-status", {
type: this.props.menuMode,
});
console.log(isShowUrl, "ishowurl");
this.setState({ isShowUrl });
}
}

View File

@@ -242,10 +242,8 @@ class Header extends React.Component<HeaderProps, HeaderState> {
ConfigService.getItem("lastSyncTime") &&
lastSyncTime <= parseInt(ConfigService.getItem("lastSyncTime")!)
) {
console.log("1");
await this.syncToLocation();
} else {
console.log(2);
await this.syncFromLocation();
}
}
@@ -401,7 +399,6 @@ class Header extends React.Component<HeaderProps, HeaderState> {
};
handleSuccess = async () => {
if (ConfigService.getItem("isFinshReading") !== "yes" || !isElectron) {
console.log("fetchbookss");
this.props.handleFetchBooks();
}

View File

@@ -741,7 +741,7 @@ class SyncSetting extends React.Component<SettingInfoProps, SettingInfoState> {
<p className="setting-option-subtitle">
<Trans>
{
"Data in other devices is messed up, but the data in this device is normal. You can reset the sync record in this device, delete the KoodoReader folder in the data source(Turn off Koodo Sync if necessary), and sync again. This should resolve the issue"
"Data in other devices is messed up, but the data in this device is normal. You can reset the sync record in this device, delete the KoodoReader/config folder in the data source(Turn off Koodo Sync if necessary), and sync again. This should resolve the issue"
}
</Trans>
</p>

View File

@@ -140,7 +140,6 @@ export const backupFromStorage = async () => {
export const backupToConfigJson = async () => {
let configStr = JSON.stringify(await ConfigUtil.dumpConfig("config"));
console.log(configStr, "configstr");
const fs = window.require("fs");
const path = window.require("path");
const dataPath = getStorageLocation() || "";

View File

@@ -360,6 +360,9 @@ class DatabaseService {
}
}
}
static async dumpDatabase(dbName: string) {
return;
}
}
export default DatabaseService;