Commit Graph

1530 Commits

Author SHA1 Message Date
troyeguo
cf37c90d47 feat: update text parser configuration and localization
- Added new localization entries for "Number parser" and its description in zh-CN.json.
- Refactored dropdown list component to utilize KookitConfig for content regex configurations instead of the removed contentRegxConfig.
- Updated ChapterSetting component to use KookitConfig.ContentRegxConfig for built-in parsers.
- Adjusted common utility functions to integrate KookitConfig.ContentRegxConfig for text parsing.
2026-04-29 16:38:57 +08:00
troyeguo
48a30d6e5b refactor: enforce minimum window dimensions and improve reader window close logic 2026-04-29 16:07:15 +08:00
troyeguo
b4ae26b88d refactor: move heatmap rendering to a new position in Stats component 2026-04-29 15:13:34 +08:00
troyeguo
f5111d74de fix bug 2026-04-29 10:13:50 +08:00
troyeguo
35df7f3df8 Refactor PopupOption component styles: inline color and font size for setting icon
- Updated the PopupOption component to apply inline styles for the setting icon, changing its color to #8a8f9f and font size to 24px.
- Removed the corresponding CSS class definition for .setting-icon from popupOption.css to streamline styles.
2026-04-28 22:10:28 +08:00
troyeguo
4ebda2564b refactor: simplify speech text normalization and improve getSpeechStartIndex logic 2026-04-28 20:24:53 +08:00
troyeguo
76d4ecebe4 feat: add quote text handling in PopupAssist and PopupOption components 2026-04-28 20:16:46 +08:00
troyeguo
ff7bf41d8c refactor: remove unnecessary timeout for setting textarea value in assistant mode 2026-04-28 20:07:19 +08:00
troyeguo
161f42350b feat: implement auto-resizing textarea in PopupAssist component
- Added a textareaRef to manage the textarea element.
- Implemented autoResizeTextarea method to adjust the height of the textarea based on content.
- Updated the rendering logic to include the new textarea with auto-resizing functionality.
- Adjusted styles for better layout and user experience in the PopupAssist component.
2026-04-28 20:03:48 +08:00
troyeguo
855a846154 feat: Add customizable popup menu options and AI features
- Introduced new popup options: "Read from here" and "Ask AI" in both English and Chinese localization files.
- Enhanced PopupOption component to handle new options and their interactions.
- Implemented PopupOptionDialog for customizing the popup menu, allowing users to enable/disable options with a limit of 8.
- Added functionality to start text-to-speech from selected text and to open an AI assistant with the selected text.
- Updated Redux actions and reducers to manage the state of the new popup options and speech settings.
- Improved styling for the new popup options and dialog components.
2026-04-28 19:24:37 +08:00
troyeguo
cebf9391de Refactor code structure for improved readability and maintainability 2026-04-28 16:30:26 +08:00
troyeguo
cb075c0ef0 Update TTS quota messages across multiple language files for clarity and consistency 2026-04-28 10:56:53 +08:00
troyeguo
9e71b83ce8 feat: add support for word definitions in multiple languages and improve user feedback
- Added a message for unsupported languages in word definitions, currently supporting only Chinese, Japanese, and English.
- Updated the settings component to include a subtitle for adding definitions next to English, Chinese, and Japanese words.
- Implemented a toast notification for unsupported language detection in the word definition feature.
- Enhanced the page widget component to utilize translation for the new features.
2026-04-28 09:05:39 +08:00
troyeguo
a7b95ec0af fix bug 2026-04-27 18:36:13 +08:00
troyeguo
55ce972def feat: add shelf book count display and related settings 2026-04-27 17:37:30 +08:00
troyeguo
3d1f6a5d07 feat: add new pin icon and update styles for top books
- Added new pin icon to icomoon font set.
- Updated style.css to include the new pin icon and adjusted font-face URLs.
- Enhanced bookCardItem and bookCoverItem components to display pin icon for top books.
- Introduced new CSS classes for status actions in bookCardItem and bookCoverItem.
- Updated useBookItem hook to include logic for identifying top books.
- Modified bookListItem component to show status icons for favorite and top books.
2026-04-27 16:48:54 +08:00
troyeguo
d7bdd81c15 feat: add pinning feature for top books in action dialog and book list 2026-04-27 16:11:09 +08:00
troyeguo
bb59483c62 fix: update icon class for sidebar shelf to improve styling 2026-04-27 15:54:40 +08:00
troyeguo
ee98fea65f feat: add book path selection feature in edit dialog
- Added a new field for selecting and displaying the book path in the edit dialog.
- Integrated Electron's IPC to allow users to select a book path from the file system.
- Updated the state management to include the book path and ensure it is saved with the book details.
- Enhanced the UI to provide options for locating and selecting the book path.
- Added corresponding styles for the new book path UI elements.
2026-04-27 15:35:50 +08:00
troyeguo
51e4b4cc86 refactor: update PDF conversion logic to use list configuration for current book 2026-04-27 14:56:04 +08:00
troyeguo
a63d396e2e fix bug 2026-04-27 14:12:03 +08:00
troyeguo
c09441dd60 Enhance data security in synchronization features
- Updated localization files for multiple languages to reflect that reading progress, notes, highlights, bookmarks, and other related data will be encrypted before being stored and synced via the cloud service.
- Modified descriptions in settings and header components to emphasize data encryption and security.
2026-04-27 10:54:41 +08:00
troyeguo
8a40c53ce5 feat(OPDSDialog): add catalog testing functionality and update UI
- Introduced a new state variable `isTesting` to manage the testing state of the catalog connection.
- Implemented `handleTestCatalog` method to validate the catalog URL and provide feedback on connection success or failure.
- Updated the dialog UI to reflect the testing state, disabling the test button during the process and changing its label to "Testing...".
- Refactored the button layout for better alignment and user experience.
- Removed redundant code from the SupportDialog component related to the redemption code query.
2026-04-26 20:09:12 +08:00
troyeguo
5619b6f815 fix: update font size for TXT parser sidebar item 2026-04-26 19:51:38 +08:00
troyeguo
508e69cfeb feat: add TXT parser support with customizable options and integrate into dropdown 2026-04-26 19:39:36 +08:00
troyeguo
078f5f7308 feat: add TXT parser support and update related settings UI 2026-04-26 19:15:16 +08:00
troyeguo
387640d1de feat: enhance chapter parser form with improved styling and functionality 2026-04-26 18:59:44 +08:00
troyeguo
5e88325b61 feat: add chapter parser settings with UI for managing custom parsers 2026-04-26 18:51:44 +08:00
troyeguo
b7900ecd0e fix: simplify inline styles for backup page container 2026-04-26 18:29:43 +08:00
troyeguo
7bfe2e4c8d fix bug 2026-04-26 17:07:48 +08:00
troyeguo
e5a745acb5 feat: adjust heatmap layout and card styles for improved responsiveness 2026-04-25 10:15:12 +08:00
troyeguo
39c7be656c feat: adjust sidebar styles for improved spacing and font size 2026-04-25 10:10:00 +08:00
troyeguo
7dc1a68691 Refactor sidebar icon styles for improved layout and consistency
- Adjusted margin styles for the sidebar menu icon when expanded.
- Changed the icon class from 'icon-digest' to 'icon-chart'.
- Updated font size for the icon to maintain uniformity in collapsed and expanded states.
2026-04-25 09:53:07 +08:00
troyeguo
28aa8c2cc6 Refactor reading time utilities: consolidate imports and remove redundant file
- Merged ReadingTimeUtil import into ConfigService import in reader and stats components.
- Deleted the ReadingTimeUtil file as its functionality is now integrated into ConfigService.
2026-04-24 16:30:05 +08:00
troyeguo
853409c0ed feat: refactor ReadingTimeUtil to support platform-specific unload handling and update method calls 2026-04-24 16:25:03 +08:00
troyeguo
d2c742c648 feat: adjust icon sizes for improved visual consistency in stats display 2026-04-24 16:05:45 +08:00
troyeguo
10f311bdc3 feat: update Chinese localization and enhance icon font styles
- Added new translation for "Reading stats" in zh-CN.json.
- Updated icon font files (eot, svg, ttf, woff) with new versions.
- Modified icon-chart glyph in icomoon.svg for improved rendering.
- Adjusted font-face URLs in style.css for new icon font versions.
- Added color styling for .icon-chart in style.css.
- Cleaned up tooltip formatting in Stats component for better display.
2026-04-24 15:59:43 +08:00
troyeguo
1935538a5b feat: enhance heatmap layout and styling for improved readability 2026-04-24 15:45:00 +08:00
troyeguo
b8c6fdf6d4 feat: update icon fonts and styles; add new icons for clock and chart
- Updated icomoon font files (eot, ttf, woff, svg) with new icons.
- Added new icons for clock and chart in the icomoon.svg file.
- Updated style.css to reference new font files and added content for new icons.
- Modified Stats component to use new icons and adjusted icon sizes.
- Changed stats card value font size for better readability.
2026-04-24 15:21:53 +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
6a2bc00c42 feat: add color normalization utility for consistent color handling in theme settings 2026-04-24 12:36:32 +08:00
troyeguo
39cfc43ece Refactor code structure for improved readability and maintainability 2026-04-24 12:28:08 +08:00
troyeguo
f1cead8c2e feat: implement reading time tracking with event-driven storage management 2026-04-24 10:28:57 +08:00
troyeguo
968c09a69d refactor: update language level terminology and enhance word definition handling
- Changed terminology for language levels in zh-CN locale from "Current [Language] level" to "[Language] words level".
- Updated dropdown list to reflect new terminology for language levels.
- Enhanced SettingSwitch component to manage word definitions based on the current book.
- Added logging for debugging purposes in SettingSwitch and Background components.
2026-04-24 09:09:02 +08:00
troyeguo
376220f45b feat: add new word definition and language level prompts in Chinese localization 2026-04-23 16:19:08 +08:00
troyeguo
c9d773666d feat: add word definition feature with language detection
- Implemented a toggle for enabling word definitions in the SettingSwitch component.
- Integrated language detection for word definitions based on the text content.
- Updated state management to handle word definition settings and user levels for Chinese, Japanese, and English.
- Enhanced the Background component to fetch word definitions based on the current book and user authentication status.
- Refactored common utility functions to export language detection functionality.
2026-04-23 16:16:53 +08:00
troyeguo
0f67234391 fix: rename language detection function to clarify its purpose 2026-04-23 14:44:11 +08:00
troyeguo
1d02fd45f7 feat: add language proficiency dropdowns and enhance word definition fetching
- Introduced a new `wordFrequencyList` constant with dropdown options for current Chinese, Japanese, and English levels.
- Updated the `handleWordDefinition` method to show a toast notification while fetching word definitions.
- Modified the `getWordDefinitions` function to accept an array of texts instead of a single string for improved flexibility.
2026-04-22 17:51:31 +08:00
troyeguo
80f1eeb617 fix: update language code for word definition retrieval in Background component 2026-04-22 07:31:02 +08:00
troyeguo
2dc2e2faba feat: add word definition functionality to pageWidget component
- Imported getWordDefinitions from request/reader utility.
- Implemented handleWordDefinition method in Background component to fetch and handle word definitions when the page is rendered.
- Updated the rendered event listener to call handleWordDefinition.
- Added getWordDefinitions function in request/reader to analyze text and return word definitions.
2026-04-21 21:24:52 +08:00