Skip to content

Commit b97a7d0

Browse files
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 version
1 parent b784fa5 commit b97a7d0

30 files changed

+359
-373
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
## Introduction
2-
<img src="src-tauri/icons/128x128.png" width=128 height=128>
2+
<table>
3+
<tr>
4+
<td style="vertical-align: middle; padding-right: 16px;">
5+
<img src="src-tauri/icons/64x64.png" width="64" height="64" alt="Refiner Icon">
6+
</td>
7+
<td style="vertical-align: middle;">
8+
<b>Refiner</b>: A simple AI-powered application for translating or refining text.
9+
</td>
10+
</tr>
11+
</table>
312

4-
***Refiner***: A simple AI-powered application for translating or refining text.
13+
***Note***: This app is still in development
514

615
Features:
716
- [x] Translation: Translate inputted text to a target language.
@@ -12,7 +21,7 @@ Features:
1221
- [x] Windows support.
1322
- [WIP] Custom prompt: Adjust the translation or text refining in different style.
1423

15-
***Note***: This app is still in development
24+
1625

1726
## Screenshots:
1827
- Home:

src-tauri/icons/128x128.png

-86.8 KB
Loading

src-tauri/icons/128x128@2x.png

-83.5 KB
Loading

src-tauri/icons/32x32.png

-88.8 KB
Loading

src-tauri/icons/64x64.png

1.91 KB
Loading
-6.28 KB
Loading
-8.51 KB
Loading
-8.89 KB
Loading
-18.1 KB
Loading
-859 Bytes
Loading

0 commit comments

Comments
 (0)