Commit Graph

494 Commits

Author SHA1 Message Date
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
troyeguo
4b32218321 feat(i18n): add script for managing translation files and patching nan.h
- Implemented a script to list locale folders and identify missing translation terms in English.
- Added functionality to copy missing terms from Chinese translations to English.
- Enhanced the script to fill in missing terms for other languages based on the updated English file.
- Created a patch script for nan.h to comment out the inclusion of nan_scriptorigin.h for cross-platform compatibility.
2026-04-07 08:59:10 +08:00
troyeguo
8f91fd8460 feat: add discord-rpc dependency and update related packages in yarn.lock 2026-04-07 08:38:37 +08:00
troyeguo
8bddf4724d fix: update version number to 2.3.1 and enhance user prompts for Pro feature upgrades 2026-04-06 14:56:55 +08:00
troyeguo
b7ede3f4fd fix: update iCloud reference in multiple language READMEs and revert version number in package.json 2026-04-05 17:39:14 +08:00
troyeguo
af8d759f18 bump version to 2.3.2 2026-03-29 14:32:11 +08:00
troyeguo
c73d1658ed Refactor: Remove console logs and update settings
- Removed console log statements from PopupDict and TextToSpeech components to clean up the code.
- Changed the 'isPDF' property for the 'Allow Javascript in the books' setting from true to false.
- Updated the language mapping for Taiwan from "台湾地区" to "中国台湾" in the TTS language map.
2026-03-24 11:03:21 +08:00
troyeguo
825e57f748 Refactor book format checks to only consider "PDF" format
- Updated various components to remove checks for "DJVU" format, focusing solely on "PDF".
- Adjusted conditions in BookCardItem, BookCoverItem, BookListItem, and others to streamline format handling.
- Removed "DJVU" support from routing and supported formats.
- Ensured consistency across components regarding PDF handling and configuration checks.
2026-03-03 20:20:23 +08:00
troyeguo
607f5bb492 Add support for DJVU format across the application
- Updated emptyCover component to change background color for DJVU format.
- Added route for DJVU in the router configuration.
- Included DJVU in the list of supported formats.
- Enhanced GooglePickerUtil to recognize DJVU file type.
2026-02-23 19:47:54 +08:00
troyeguo
6799421634 fix: update version to 2.3.0 in package.json 2026-02-21 11:00:50 +08:00
troyeguo
4e7f183c31 fix: update version to 2.2.9 in package.json 2026-02-19 14:49:17 +08:00
troyeguo
ebe3291b08 Merge pull request #1584 from koodo-reader/dev
update to 2.2.8
2026-02-18 08:50:29 +08:00
troyeguo
945ff0943c fix: update version to 2.2.8 and enhance token configuration in prepareThirdConfig 2026-02-18 07:31:06 +08:00
troyeguo
8a5d080fca Merge pull request #1583 from koodo-reader/dev
update to 2.2.7
2026-02-17 15:26:53 +08:00
troyeguo
0be75f3483 chore: remove unused electronLanguages configuration from package.json 2026-02-17 12:01:52 +08:00
troyeguo
d42b715b19 Refactor token management and remove debug logs
- Replaced direct token deletion calls with a new `handleClearToken` utility function in multiple components (SupportDialog, UpdateDialog, AccountSetting) to streamline token management.
- Removed unnecessary console log statements across various components to clean up the codebase.
- Deleted the unused `i18n-mobile-script.js` file.
- Updated the `handleExitApp` function to include token clearing before redirecting to the login page.
2026-02-13 11:13:09 +08:00
troyeguo
0f4854d32c chore: update version to 2.2.6 in package.json 2026-01-15 17:04:02 +08:00
troyeguo
2a6c3c47d5 feat: add background color to Koodo Reader display settings 2026-01-06 15:22:37 +08:00
troyeguo
fa422d6e8f fix: update version to 2.2.6 in package.json 2026-01-06 14:26:44 +08:00
troyeguo
46c650be57 fix: update version number in package.json to 2.2.5 2026-01-02 16:58:24 +08:00
troyeguo
4f53d426a2 fix: update version number in package.json to 2.2.4; enhance hostname check in Header component to include isElectron condition 2026-01-01 11:02:55 +08:00
troyeguo
f7fb29de65 fix: correct spelling of SupportDialog in component and interface files; revert version number in package.json 2026-01-01 10:08:24 +08:00
troyeguo
3c69f3a8b3 chore: update typescript to version 5.9.3 in package.json and yarn.lock 2025-12-27 18:39:18 +08:00
troyeguo
dc2c147f28 fix: update version number to 2.2.4 in package.json 2025-12-18 22:00:57 +08:00
troyeguo
5667fbff30 feat: add debug log retrieval feature and improve error handling
- Added a new translation key for "Get debug logs" in Chinese localization.
- Implemented a UI element in the settings to trigger debug log retrieval.
- Enhanced error handling across various components to display error messages using toast notifications.
- Updated the sync settings to inform users about Aliyun Drive's restrictions.
- Added a new dependency `electron-log` for improved logging capabilities.
2025-12-17 11:29:02 +08:00
troyeguo
3dc74a41fa feat: add email format validation and improve sync record reset instructions
- Added email format validation in login and account settings.
- Enhanced user feedback for resetting sync records with detailed instructions in the sync settings.
- Introduced a version comparison utility function for better version handling in update checks.
- Updated Chinese translations for improved clarity on sync issues.
2025-12-16 17:45:31 +08:00
troyeguo
15c95cec91 feat: add additional supported languages in electronLanguages 2025-12-14 18:41:36 +08:00
troyeguo
8203b6d42e Remove toast notification for China server region selection in account and login components 2025-12-14 14:32:12 +08:00
troyeguo
caa89e3439 Refactor drive and login list handling to remove isCNAvailable checks
- Updated BackupDialog and ImportDialog components to directly use driveList without filtering based on isCNAvailable.
- Removed isCNAvailable property from driveList and loginList constants.
- Simplified login option selection in AccountSetting and Login components by eliminating region-based filtering.
- Adjusted SyncSetting component to utilize the full driveList without CN availability checks.
- Updated yarn.lock to reflect changes in megajs dependency version.
2025-12-13 16:16:56 +08:00
troyeguo
aacbbde9e1 chore: bump version to 2.2.3 in package.json 2025-11-30 09:46:47 +08:00
troyeguo
00673a1052 Bump version to 2.2.2 in package.json 2025-11-04 10:34:32 +08:00
troyeguo
43866ab9b6 Increase reading time interval from 1 second to 5 seconds in Reader component 2025-11-02 20:21:58 +08:00
troyeguo
3895cd0dd8 chore: update version to 2.2.0 and remove console log from Header component 2025-10-26 10:05:12 +08:00
troyeguo
ec27a7953f Remove unnecessary console.log statements from PopupMenu, PopupRefer, and OperationPanel components to clean up the code and improve performance. 2025-10-19 08:38:20 +08:00
troyeguo
dbf3eb3e2c Refactor: Remove console.log statements and improve code readability
- Removed unnecessary console.log statements from PopupAssist and PopupRefer components to clean up the code.
- Simplified the handleLocalSync method in the Header component by adjusting the lastSyncTime comparison logic.
- Updated the scrollContents function in common.ts to handle cases where chapterHref may be undefined.
- Cleaned up the getLastSyncTimeFromConfigJson function in file/common.ts for better clarity.
- Added a new line for better formatting in the Viewer component after setting state.
2025-10-05 11:24:23 +08:00
troyeguo
c81ecb07a9 feat: Enhance link handling and footnote detection in image viewer and popup components
- Added support for "mailto" links in the ImageViewer component.
- Refactored handleShowMenu method in PopupRefer to improve footnote handling.
- Introduced isElementFootnote utility function to identify footnote elements based on patterns.
- Updated getTargetHref function to streamline href extraction from nested elements.
- Added console logs for debugging purposes during link processing.
2025-10-04 18:26:09 +08:00
troyeguo
caef7d3b5c feat: implement download cancellation feature and add new settings for book title usage 2025-10-03 21:38:26 +08:00
troyeguo
ba44612d37 Refactor PopupRefer component to remove unnecessary console logs and streamline text content validation; enhance Login component to display a warning message for Microsoft login in China. 2025-09-28 09:59:18 +08:00
troyeguo
0825f9379f Implement code changes to enhance functionality and improve performance 2025-09-20 15:01:26 +08:00
troyeguo
19930e9597 refactor: simplify architecture targets in package.json and comment out asset filters in upload.sh 2025-09-20 10:46:25 +08:00
troyeguo
e75bd1bdf2 Implement code changes to enhance functionality and improve performance 2025-09-20 10:35:04 +08:00
troyeguo
c7e70bc3f4 Filter out specific asset files from GitHub release downloads in upload.sh 2025-09-20 10:00:55 +08:00
troyeguo
5d1c277f6c feat: add download progress tracking and browser download option for Windows
- Added "Download in Browser" option for Windows users in the update dialog.
- Implemented download progress tracking with state management for progress, downloaded size, and total size.
- Updated translation files for Chinese (Simplified and Traditional) to reflect changes in download terminology.
- Refactored download logic to handle both Windows and non-Windows environments.
2025-09-16 17:27:10 +08:00
troyeguo
a2a6afa5e8 feat: integrate auto-updater for application updates and bump version to 2.1.6 2025-09-15 17:57:57 +08:00
troyeguo
77afae29c4 Refactor code structure for improved readability and maintainability 2025-09-11 18:36:36 +08:00
troyeguo
061f8adcf3 Refactor code structure for improved readability and maintainability 2025-09-11 08:12:27 +08:00
troyeguo
8c1f2a28bd Add support for 115 Yun (yiyiwu) cloud storage
- Updated translation file to include "115 Yun" in Chinese.
- Modified import dialog to handle authentication for "yiyiwu" and log the auth URL.
- Added "115 Yun" to the drive list with necessary configurations.
- Enhanced sync settings to support "yiyiwu" for syncing options.
2025-09-10 15:36:31 +08:00