mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
09055595e4
* ♻️ refactor(utils): extract args parsing logic from ArgsInput component - Extract parseArgs and argsToString functions to src/utils/args.ts - Add comprehensive test suite with 19 test cases covering edge cases - Fix escaped quote handling in parseArgs function - Replace String.replace() with String.replaceAll() for better readability - Improve code reusability and maintainability following project best practices * 📝 docs(utils): improve JSDoc comments and clean up redundant comments - Add comprehensive JSDoc with @param and @returns for args functions - Translate inline comments to English for consistency - Remove redundant comments in ArgsInput component - Keep only essential comments and improve code clarity - Improve code documentation quality and IDE support * ♻️ refactor(ArgsInput): completely redesign as array editor - Replace single input with individual argument inputs - Add visual array structure with add/remove buttons - Support keyboard shortcuts (Enter to add, Backspace to delete) - Improve UX with proper array operations and indexing - Remove dependency on args parsing utils for better performance * 🌐 i18n: add ArgsInput internationalization support - Add ArgsInput translations for en-US and zh-CN - Add TypeScript type definitions for new translation keys - Support dynamic placeholder with argument index - Fix TypeScript error for missing translation keys