4 Commits

Author SHA1 Message Date
troyeguo
15bc656749 Refactor synchronization conditions in ImportLocal and Manager components
- Updated the cloud synchronization logic in ImportLocal and Manager components to check for the 'isDisableAutoSync' setting before executing the sync function.
- Improved code readability by consolidating the conditional statements for synchronization.
- Ensured consistent behavior across components when handling book imports and synchronization.
2026-06-02 15:07:35 +08:00
troyeguo
62a88687c4 feat: enhance export functionality for notes and highlights
- Added `toBlob` utility function to convert content strings to Blob objects with appropriate MIME types.
- Implemented `groupByBook` function to group notes and highlights by book name.
- Introduced `sanitizeFileName` function to replace illegal characters in file names with underscores.
- Created `convertNotesData` and `convertHighlightsData` functions to convert notes and highlights to various text formats.
- Updated `exportNotes` and `exportHighlights` functions to support exporting multiple books as ZIP files, including individual files for each book.
- Refactored PDF generation logic to handle multiple books and fallback to HTML if necessary.
- Improved overall code organization and readability.
2026-05-26 17:07:43 +08:00
troyeguo
d014cac4d2 fix: update font-family definitions and remove redundant language styles 2026-05-26 15:53:21 +08:00
troyeguo
3cf50a7dad Add recommended layout option and corresponding CSS styles
- Updated zh-CN.json to include a new translation for "Recommended layout".
- Modified dropdownList.tsx to add "Recommended layout" option for book layout selection.
- Introduced kookit.min.css with comprehensive styling rules for various HTML elements, enhancing the visual presentation of content.
2026-05-26 12:56:51 +08:00