Commit Graph

3 Commits

Author SHA1 Message Date
qianlifeng 4750fc92ce
feat(setting): add custom Python and Node.js path configuration, fix #4220
* Introduced settings for custom executable paths for Python and Node.js.
* Implemented validation for the provided paths to ensure they are executable.
* Updated UI to allow users to browse and set custom paths.
* Added corresponding translations for new UI elements in English and Chinese.
2025-07-09 19:54:01 +08:00
qianlifeng 21d8d83a1f
feat(script_plugin): enhance script plugin functionality
- Increased notification display duration from 3 to 8 seconds in API implementation.
- Refactored script execution logic in host_script.go to improve error handling and streamline execution.
- Added checks for existing script plugins in WPM plugin creation process, providing options to open or overwrite.
- Enhanced user feedback with localized messages for plugin creation and actions.
- Updated script templates (JavaScript, Python, Bash) to include environment variable documentation and improved action handling.
- Improved UI responsiveness in Flutter by implementing AnimatedSwitcher for list view updates.
- Added validation for viewport height in WoxListController to prevent scrolling issues during initialization.
2025-05-25 21:48:15 +08:00
qianlifeng d488d98eec
feat(script_plugin): Add script plugin support
- Introduced a new runtime type for script plugins in `runtime.go`.
- Created script plugin templates for JavaScript, Python, and Bash in the resource directory.
- Implemented functionality to create script plugins in `wpm.go`, including handling of template files.
- Added a new `ScriptHost` to manage script plugin execution and communication via JSON-RPC.
- Enhanced the `Location` utility to manage directories for user script plugins and templates.
- Updated resource extraction to include script plugin templates.
- Implemented JSON-RPC handling in script templates for query and action methods.
2025-05-25 14:42:02 +08:00