Commit b97a7d0
authored
Fix the config store and improve prompts for the local model. (#23)
* Enhance settings management and translation functionality
- Updated `tauri_get_result` and related functions to accept optional provider and model parameters, defaulting to null if not provided.
- Introduced API key management in the settings provider, allowing for loading and saving of the API key.
- Enhanced settings loading to include provider, model, and prompt, with appropriate fallbacks.
- Updated UI components to reflect changes in settings, including API key input and model/provider selection.
- Improved error handling for invalid prompts and settings loading.
* fix right click menu in Windows
* Refactor translation shortcut events
- Updated event names for translation shortcuts from "shortcut-quickTranslate" to "shortcut-main-translate" and "shortcut-popup-translate" for consistency across components.
- Enhanced event listener setup in the translate popup to utilize refs for current context values, improving performance and reliability.
- Removed unused event handler code and cleaned up the event management logic in the Tauri backend.
* Update source and target language handling in TranslatePopupClient
- Modified the source and target language parameters to use placeholder text for automatic detection and opposite language selection, enhancing user guidance for language input.
* change icon
* Update copyright year in BottomBar component and refine translation prompts in commands.rs for clarity and consistency
* bump version1 parent b784fa5 commit b97a7d0
File tree
30 files changed
+359
-373
lines changed- src-tauri
- icons
- src
- src/app
- providers
- sections
- translate-popup
- types
30 files changed
+359
-373
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
3 | 12 | | |
4 | | - | |
| 13 | + | |
5 | 14 | | |
6 | 15 | | |
7 | 16 | | |
| |||
12 | 21 | | |
13 | 22 | | |
14 | 23 | | |
15 | | - | |
| 24 | + | |
16 | 25 | | |
17 | 26 | | |
18 | 27 | | |
| |||
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
0 commit comments