Commit Graph
13 Commits
Author SHA1 Message Date
xixu-me dda4fcd039 fix(test): restore lint and jest coverage 2026-03-30 22:16:00 +08:00
xixu-me 32578e95ee Disable debug endpoint by default 2026-03-11 14:07:24 +08:00
xixu-me 3afd1b79ef Add CLAUDE.md and enhance proxy browser fingerprint headers
Introduces CLAUDE.md with detailed project, architecture, and contribution guidelines. Improves generateBrowserFingerprint in proxyManager.ts by adding comprehensive headers to better mimic real browsers and bypass DeepL bot detection. Minor cleanup in testHelpers.ts. package-lock.json updated for peer dependencies.
2025-11-07 16:02:04 +08:00
xixu-me b2fdd0e22d Remove Microsoft Translator integration and update docs
Eliminated Microsoft Translator support from the codebase, including its service implementation, API endpoint, and related tests. Updated both English and Chinese README files to reflect the removal and to clarify usage of DeepL and Google endpoints, providing improved examples and API documentation.
2025-08-09 18:41:49 +08:00
xixu-me 8ae7c122b6 Refactor Microsoft Translator integration and tests
Refactored the Microsoft Translator service to use a parameter object for translation requests, improved language code normalization, and enhanced error handling. Updated integration and unit tests to match the new API and moved Microsoft Translator unit tests to a new location under tests/lib/services. Removed the old test file and added more comprehensive test coverage for translation scenarios and error cases.
2025-08-09 18:18:36 +08:00
xixu-me 07923fdb10 Refactor Microsoft Translator service and add tests
Refactored the Microsoft Translator integration to improve error handling, token acquisition, and API request structure. Added comprehensive unit tests for translation and service availability, covering success, error, and edge cases.
2025-08-09 17:17:43 +08:00
xixu-me 3011014355 Add Microsoft Translator integration and endpoint
Introduces a new Microsoft Translator service with a compatible API, adds the /microsoft POST endpoint, and updates the translation handler to support Microsoft as a provider. Also includes minor cleanup in testHelpers.
2025-08-09 16:18:03 +08:00
xixu-me 1edc187e15 Add Google Translate provider and multi-provider support
Introduces a Google Translate integration with a new service module and endpoint (/google), refactors translation handling to support both DeepL and Google providers, and updates cache key generation to include the provider. Adds integration and unit tests for the new provider and updates API route definitions for clarity and extensibility.
2025-08-09 14:05:37 +08:00
xixu-me d906756141 Update docs and remove obsolete test README
Improved instructions and added Zotero integration steps in both English and Chinese README files. Removed references to tests/README.md in setup scripts and deleted the obsolete tests/README.md file.
2025-07-29 12:28:46 +08:00
xixu-me 5017e7d011 Update docs and code comments to use 'app' terminology
Replaced occurrences of 'application' with 'app' in code comments and documentation for consistency and brevity. Updated both English and Chinese README files to add and clarify DeepLX App usage instructions, and adjusted section order for better clarity.
2025-07-28 22:05:14 +08:00
xixu-me ce22782652 Remove HTML content preservation utilities
Deleted htmlUtils module and its related tests. Removed all references to HTML preservation functions from index.ts and query.ts, simplifying the query logic and eliminating HTML-specific handling.
2025-07-27 15:07:02 +08:00
xixu-me 49b976acf3 Improve placeholder handling in HTML utils
Changed placeholder format to a unique string less likely to be altered by translation services and added zero-padding for consistency. Updated restoration logic to handle case-insensitive matching of placeholders. Added tests to verify correct restoration when placeholders are converted to lowercase.
2025-07-27 14:55:50 +08:00
xixu-me 8afa94767e Initial repository setup and core files added
Add configuration, documentation, code of conduct, contributing guide, license, and README files. Set up .gitignore, coverage config, GitHub issue templates, pull request template, and initial source code, scripts, and tests for DeepLX optimized for Cloudflare Workers.
2025-07-27 02:09:25 +08:00