Commit Graph
540 Commits
Author SHA1 Message Date
troyeguo b2eec07ddc chore: update Node.js engine version to >=22.12.0 in package.json 2026-09-27 09:21:58 +08:00
troyeguo 65db06dc7d Refactor code structure for improved readability and maintainability 2026-09-20 17:48:51 +08:00
troyeguo 42a8071121 Bump version to 2.4.5 in package.json 2026-09-20 16:09:58 +08:00
troyeguo 706829e21f feat: add biometric authentication support for Windows Hello and Touch ID
- Implemented biometric-util.js for handling biometric capabilities and authentication prompts.
- Added discord-rpc-util.js for integrating Discord Rich Presence features.
- Created network-util.js for proxy URL building and cloud URL checking.
- Developed ocr-util.js for OCR functionality using Windows and macOS specific implementations.
- Introduced powershell-util.js for executing PowerShell scripts and handling errors.
- Added tar-index.js for efficient tar file indexing and extraction based on offsets.
2026-09-06 10:32:11 +08:00
troyeguo 758075ac14 feat: add backup and restore utilities for file management
- Implemented backupToPath function to create zip archives of specified directories and files.
- Added restoreFromPath function to extract files from zip archives, handling both asset and config files.
- Introduced error handling and progress reporting for backup and restore processes.

feat: create biometric authentication utilities

- Developed getBiometricCapability function to check for biometric support on macOS and Windows.
- Implemented promptBiometricAuth function to prompt users for biometric authentication using Touch ID or Windows Hello.

feat: integrate Discord Rich Presence functionality

- Added initDiscordRPC function to initialize Discord RPC client.
- Implemented setDiscordActivity function to update user activity with book reading progress.
- Created clearDiscordActivity function to clear the current Discord activity.

feat: implement network utilities for proxy and URL checks

- Added buildProxyUrl function to construct proxy URLs from configuration.
- Implemented checkCloudUrl function to validate cloud URLs with HTTP HEAD requests.
- Created testProxyConnection function to test proxy connections against Google.

feat: add OCR utilities for image text recognition

- Developed functions to handle OCR image input parsing and temporary image storage.
- Implemented runWindowsOcr and runMacosOcr functions for OCR processing on respective platforms.

feat: create PowerShell utility for script execution

- Added runPowerShellScript function to execute PowerShell scripts with error handling and output extraction.
2026-09-06 10:28:15 +08:00
troyeguo 89eec765bd fix: correct formatting of extraResources in package.json 2026-09-06 10:07:11 +08:00
troyeguo c138db051a feat: implement tar index and extraction functionality
- Added `tar-index.js` to handle tar file indexing and extraction.
- Implemented functions to normalize entry names, ensure entries are within a specified directory, and parse tar headers.
- Introduced caching for tar index to optimize repeated access.
- Added support for reading tar data blocks and extracting files based on their offsets.
- Included error handling for invalid entries and extraction paths.
2026-09-06 10:06:36 +08:00
troyeguo 6f1207bb33 feat: add stream processing for book content in ImportLocal component
- Implemented `streamProcessBookContent` method to handle streaming imports for CBZ and CBT file types.
- Added error handling for non-Electron environments.
- Updated dependencies in yarn.lock to include new packages and versions for improved functionality.
2026-09-05 10:52:55 +08:00
troyeguo 07bcb22d0a fix: remove AdmZip dependency and related zip command functionality 2026-09-01 09:05:47 +08:00
troyeguo 9ce88e38f8 feat: implement restore-path functionality for backup restoration using yauzl 2026-08-29 14:26:42 +08:00
troyeguo 97914f5892 feat(backup): implement backup functionality using yazl for efficient file zipping 2026-08-16 17:55:25 +08:00
troyeguo bfbd40df13 Merge branch 'dev' into feature-next-stable 2026-08-05 17:10:06 +08:00
troyeguo 141d2bfa3f Bump version to 2.4.4 in package.json and update snap base to core22 2026-08-05 15:46:43 +08:00
troyeguo 8ae38d1add Bump version to 2.4.3 in package.json 2026-08-01 10:39:09 +08:00
troyeguo 4cafffc062 feat: add multiple translation plugins and registry
- Implemented new translation plugins: ollamaTranslate, potTranslate, reversoEmbedTranslate, sogouEmbedTranslate, tencentTranslate, transmartEmbedTranslate, volcengineTranslate, yandexEmbedTranslate, youdaoGeneralTranslate, and youdaoLlmTranslate.
- Created a centralized rendererRegistry to manage translation plugins.
- Defined types for plugin configuration and translation functionality in types.ts.
2026-07-31 09:59:05 +08:00
troyeguo 673aa05fc4 refactor: replace window.require with window.electronAPI for improved module access
- Updated file handling in coverUtil, dictUtil, export, fontUtil, restore, sqlUtil, and other utility files to use window.electronAPI for accessing Electron modules.
- Refactored IPC calls to utilize the new context bridge for better security and maintainability.
- Introduced a preload script to expose necessary APIs to the renderer process, enhancing the overall architecture.
- Ensured compatibility with Electron's security model by removing direct access to Node.js modules from the renderer.
2026-07-30 14:00:29 +08:00
troyeguo 048749146a feat(proxy): add network proxy settings and connection testing functionality
- Introduced proxy settings in the MoreSetting component, allowing users to enable/disable proxy, and configure proxy type, host, port, username, and password.
- Implemented connection testing for the configured proxy settings with user feedback through toast notifications.
- Updated English and Chinese localization files to include new proxy-related strings.
- Enhanced state management to handle proxy configuration and testing states.
2026-07-21 12:22:21 +08:00
troyeguo e449b109ba Bump version to 2.4.2 in package.json 2026-07-16 17:11:20 +08:00
troyeguo 52c39fbc2e bump version to 2.4.1 2026-07-15 08:58:18 +08:00
troyeguo 356b64528e feat: migrate chat functionality to preload.js and remove preload.chat.js 2026-07-12 15:55:58 +08:00
troyeguo 6bbc3101a0 feat: implement chat functionality with IPC communication and preload script 2026-07-12 15:42:20 +08:00
troyeguo ca0503d15f Refactor code structure for improved readability and maintainability 2026-07-11 09:36:52 +08:00
troyeguo 0871c307dc feat: add extraResources for macOS OCR binaries in package.json 2026-07-09 18:33:23 +08:00
troyeguo 4f1eafed18 feat: update version to 2.4.0 2026-07-09 17:54:18 +08:00
troyeguo 491b49b821 Refactor code structure for improved readability and maintainability 2026-07-09 12:08:23 +08:00
troyeguo bdbca68a79 Refactor code structure for improved readability and maintainability 2026-07-07 17:46:20 +08:00
troyeguo e4f3309065 feat: integrate PDF generation using @cantoo/pdf-lib
- Replaced jsPDF with @cantoo/pdf-lib for generating PDFs from HTML content.
- Updated the PDF export logic to create a PDF document with proper dimensions and margins.
- Adjusted image embedding and page handling to accommodate the new library.
- Removed dependency on jsPDF and ensured fallback to HTML Blob when necessary.
- Updated yarn.lock to include @cantoo/pdf-lib and its dependencies.
2026-07-07 15:14:22 +08:00
troyeguo 737d54afe9 chore: bump version to 2.3.9 2026-07-06 12:45:11 +08:00
troyeguo aa511c5e98 Update tray icon for macOS and increment version to 2.3.8 2026-06-16 10:37:57 +08:00
troyeguo 66d4a9126e Refactor code structure for improved readability and maintainability 2026-06-15 07:32:42 +08:00
troyeguo e0660be64e Add @mozilla/readability dependency and enhance HTML import functionality in ImportLocal component
- Introduced the @mozilla/readability library to improve HTML content extraction from URLs.
- Enhanced the importHtmlFromURL method to fetch, parse, and sanitize HTML content, ensuring relative URLs are converted to absolute.
- Added utility functions for escaping HTML and making URLs absolute within the imported content.
- Updated type definitions to include Readability class for TypeScript support.
2026-06-01 11:16:08 +08:00
troyeguo ea9d271074 refactor: replace SparkMD5 with CryptoJS for MD5 hashing and remove unused dependencies 2026-05-28 16:46:45 +08:00
troyeguo d3b27e7eda feat(package): update version to 2.3.6 2026-05-22 07:47:59 +08:00
troyeguo 4b97774d58 Remove unnecessary console.log statements from DeleteIcon, Viewer, and koReaderSync components to clean up the code and improve performance. 2026-05-19 10:59:04 +08:00
troyeguo 88e34fd082 Refactor code structure for improved readability and maintainability 2026-05-18 09:50:34 +08:00
troyeguo 96f6bd8998 git commit -m "Closed implemented features and outdated issues, closes #1317, closes #1306, closes #1305, closes #1303, closes #1302, closes #1300, closes #1297, closes #1292, closes #1289, closes #1287, closes #1274, closes #1272, closes #1361, closes #1360, closes #1358, closes #1357, closes #1355, closes #1351, closes #1344, closes #1342, closes #1339, closes #1333, closes #1332, closes #1330, closes #1328, closes #1325, closes #1322, closes #1318" 2026-05-15 11:45:37 +08:00
troyeguo 13756dd72d git commit -m "Closed implemented features and outdated issues, closes #1121, closes #1119, closes #1118, closes #1115, closes #1113, closes #1110, closes #1109, closes #1107, closes #1105, closes #1104, closes #1101, closes #1099, closes #1098, closes #1097, closes #1095, closes #1093, closes #1091, closes #1090, closes #1089, closes #1087, closes #1086, closes #1158, closes #1155, closes #1151, closes #1148, closes #1146, closes #1145, closes #1144, closes #1140, closes #1139, closes #1138, closes #1136, closes #1134, closes #1133, closes #1132, closes #1125, closes #1124, closes #1201, closes #1200, closes #1199, closes #1195, closes #1194, closes #1193, closes #1188, closes #1178, closes #1175, closes #1174, closes #1173, closes #1171, closes #1170, closes #1169, closes #1168, closes #1167, closes #1163, closes #1160, closes #1233, closes #1230, closes #1227, closes #1222, closes #1219, closes #1218, closes #1217, closes #1216, closes #1206, closes #1205, closes #1203, closes #1265, closes #1264, closes #1261, closes #1258, closes #1256, closes #1253, closes #1250, closes #1244, closes #1243, closes #1240, closes #1238, closes #1237, closes #1236" 2026-05-15 11:26:47 +08:00
troyeguo 141ef4f2d8 git commit -m "Closed implemented features and outdated issues, closes #850, closes #846, closes #845, closes #843, closes #841, closes #836, closes #834, closes #833, closes #827, closes #825, closes #817, closes #815, closes #814, closes #811, closes #804, closes #803, closes #799, closes #909, closes #908, closes #904, closes #893, closes #890, closes #877, closes #873, closes #869, closes #868, closes #859, closes #858, closes #855, closes #852, closes #995, closes #994, closes #979, closes #977, closes #976, closes #972, closes #969, closes #957, closes #955, closes #950, closes #944, closes #928, closes #921, closes #918, closes #917, closes #915, closes #1039, closes #1032, closes #1030, closes #1025, closes #1022, closes #1021, closes #1019, closes #1016, closes #1015, closes #1011, closes #1000, closes #1082, closes #1081, closes #1077, closes #1074, closes #1069, closes #1060, closes #1043" 2026-05-15 11:05:01 +08:00
troyeguo 1a0471f930 git commit -m "Closed implemented features and outdated issues, closes #448, closes #449, closes #450, closes #454, closes #551, closes #549, closes #538, closes #535, closes #529, closes #517, closes #508, closes #491, closes #489, closes #478, closes #473, closes #655, closes #651, closes #648, closes #645, closes #639, closes #638, closes #637, closes #591, closes #589, closes #589, closes #572, closes #555, closes #721, closes #711, closes #708, closes #707, closes #707, closes #701, closes #695, closes #687, closes #681, closes #678, closes #678, closes #675, closes #666, closes #798, closes #794, closes #792, closes #790, closes #786, closes #785, closes #783, closes #779, closes #776, closes #769, closes #762, closes #756, closes #755, closes #751, closes #741, closes #737, closes #734, closes #732, closes #730" 2026-05-15 10:37:01 +08:00
troyeguo 6a6a1f29bb git commit -m "Closed implemented features and outdated issues, closes #16, closes #20, closes #50, closes #145, closes #160, closes #166, closes #173, closes #186, closes #193, closes #212, closes #50, closes #50, closes #50, closes #50, closes #50, closes #50, closes #50, closes #50, closes #246, closes #253, closes #263, closes #264, closes #283, closes #298, closes #311, closes #319, closes #335, closes #340, closes #344, closes #352, closes #353, closes #355, closes #376, closes #387, closes #395, closes #396, closes #409, closes #412, closes #416, closes #431, closes #434, closes #440, closes #444" 2026-05-15 10:13:52 +08:00
troyeguo a1f94da97d Merge pull request #1604 from koodo-reader/feature-microsoft-store
Feature microsoft store
2026-05-14 15:25:05 +08:00
troyeguo 4a3c6a0554 fix: update version to 2.3.5 in package.json 2026-05-14 15:23:23 +08:00
troyeguo fdd066300b feat: add js-mdict dependency and update commander version in package.json and yarn.lock 2026-05-14 10:06:03 +08:00
troyeguo cf8fae86f9 fix: update version to 2.3.4 in package.json 2026-05-12 05:28:06 +08:00
troyeguo 66a4c87444 Remove unnecessary console logs from various components to clean up the codebase and improve readability. 2026-05-06 09:52:01 +08:00
troyeguo 351da80ee1 fix: update driveList support to include browser for Yandex, Yiyiwu, and PCloud
chore: add crypto-js dependency to yarn.lock
2026-05-03 10:31:15 +08:00
troyeguo 50b50e9861 feat: add reading statistics page with heatmap and charts
- Implemented Stats component to display reading statistics including total books read, total reading time, longest streak, and daily averages.
- Added heatmap visualization for reading activity over the last 52 weeks.
- Included bar and line chart options for displaying reading data over the last 30 days.
- Created responsive layout with styled cards for displaying key statistics.
- Integrated i18n for translation support.
- Added CSS for styling the stats page, cards, heatmap, and charts.
2026-04-24 14:57:28 +08:00
troyeguo 39cfc43ece Refactor code structure for improved readability and maintainability 2026-04-24 12:28:08 +08:00
troyeguo cad73999ff refactor: remove debug log for original text in handleLookUp method 2026-04-14 16:08:57 +08:00
troyeguo a79bc0b8fa feat: integrate color-thief-browser for background color analysis in settings 2026-04-11 16:23:30 +08:00