Skip to content

Conversation

@Hardelele
Copy link
Member

Add API integration to support reckue.com for wordbook management and temporary authorization.


Open in WebOpen in CursorOpen Docs

cursoragent and others added 5 commits July 28, 2025 10:06
Co-authored-by: hardelele <hardelele@gmail.com>
…ntegration

- Updated build script in package.json to use local webpack.
- Changed pug version in devDependencies.
- Modified App class to initialize wordbook service with API support and handle errors gracefully.
- Enhanced page and popup scripts to start applications asynchronously with error handling.
- Added new API endpoints for wordbook levels and updated ApiService to use them.
- Refactored wordbook adapter methods for compatibility with both API and local modes.
- Updated word handling methods in PageWord and WordbookScroll to support async operations.
- Added a new method to detect the language of the page by analyzing the first 1000 characters of text.
- Integrated the franc library to facilitate language detection.
- Enhanced logging to capture detected languages and any errors during the detection process.
- Updated package-lock.json and package.json to include franc as a dependency.
- Added a new endpoint for creating temporary users to facilitate authorization.
- Implemented fallback logic for retrieving the main wordbook, creating it if it doesn't exist.
- Updated the tempAuth method to utilize stored tempId for authorization.
- Refactored API request methods to improve error handling and logging.
- Removed the ApiIntegrationExample class as it is no longer needed.
- Updated README to reflect changes in API usage and new components.
- Introduced a new migration summary document detailing changes from local storage to API integration.
- Removed obsolete local storage components and implemented new API services for wordbooks and settings.
- Updated core application logic to eliminate fallback to local storage, ensuring all data is managed via the API.
- Enhanced error handling and logging throughout the application to improve robustness.
- Refactored existing components to utilize the new API services, ensuring compatibility and improved performance.
- Updated documentation to reflect the new architecture and usage patterns.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants