Commit Graph

531 Commits

Author SHA1 Message Date
kangfenmao
31626bde46 feat: export topic message as image #103 2024-09-22 00:16:36 +08:00
kangfenmao
d61b07dddf feat: add loading spinner #86
close #86
2024-09-21 21:07:50 +08:00
kangfenmao
7a5c72aab4 refactor: message component 2024-09-21 13:20:16 +08:00
kangfenmao
b9aeca7c13 feat: improved formula rendering with new escaping functions
- Improved formula rendering by removing unnecessary escaping of dollar numbers.
- Implemented two new string escaping functions to prevent incorrect LaTeX formula rendering.

#101
2024-09-21 10:27:32 +08:00
kangfenmao
9d45ea9e92 fix: After stopping content generation, messages cannot be cleared #66
close #66
2024-09-21 00:25:17 +08:00
kangfenmao
8420976c16 feat: improved input bar functionality and added text insertion feature
- Improved functionality for handling text input and file uploads in the input bar.
- Added functionality to insert text at cursor position in a text area.
2024-09-21 00:04:53 +08:00
kangfenmao
4372d7a4d0 fix: anthropic api url #97 2024-09-20 23:10:25 +08:00
kangfenmao
a9512c6214 chore(version): 0.7.5 2024-09-20 17:01:52 +08:00
kangfenmao
62072e4f66 feat: improved ui effects and rendering for components
- Added smooth all property transition effect to Icon component.
- Added hover effect and conditional rendering for Switch Topic Sidebar button on current assistant.
- Updated the existing conditional options array to consistently include both topic and settings options.
- Improved hover effects on topic list items.
2024-09-20 16:48:24 +08:00
kangfenmao
f26ebf44c7 feat: add new add topic button 2024-09-20 15:11:50 +08:00
kangfenmao
38697e3532 fix: attachment open handler 2024-09-20 11:38:30 +08:00
kangfenmao
1412ac9889 fix: improved api call validation
- Improved API call validation to account for additional usage properties.
2024-09-20 11:12:15 +08:00
kangfenmao
8470119adc style: removed unnecessary import and optimized sidebar styling
- Removed unnecessary import and optimized sidebar styling for improved performance.
2024-09-20 10:49:50 +08:00
kangfenmao
8943eda7a3 chore(version): 0.7.4 2024-09-20 00:15:24 +08:00
kangfenmao
25114f1325 feat: added minapp event handling and sidebar menu interactions #50
- Added functionality for handling MinApp window closure and provided a default close event handler.
- Added event listeners to Sidebar menus to interact with MinApp.
2024-09-19 23:28:06 +08:00
kangfenmao
079076d673 fix: Disable topic switching and movement during rendering.
- Added functionality to disable topic switching and movement when rendering is in progress.
2024-09-19 23:01:21 +08:00
kangfenmao
4c5cf6d977 feat: Improved layout and added file content filtering.
- Added a margin bottom to the Upload component in the MessageAttachments page for improved layout.
- Added support for not displaying file contents for specific providers.
2024-09-19 22:58:12 +08:00
kangfenmao
40702e8923 chore(version): 0.7.3 2024-09-19 18:20:52 +08:00
kangfenmao
6920f24856 fix: attachment select extension for windows 2024-09-19 17:40:45 +08:00
kangfenmao
43dcb40124 chore(version): 0.7.2 2024-09-19 16:56:58 +08:00
kangfenmao
14dd179e47 feat: Added translations, new column, and UI improvements.
- Added translations for a new field.
- Added new column for file count in the FilesPage view.
- Improved handling of message tokens in the UI.
- Added functionality to display message tokens for messages with specific roles.
- Added window style selection and styling adjustments to the General Settings page.
- Added support for vision models in OpenAIProvider.
2024-09-19 16:56:44 +08:00
kangfenmao
4465e654d6 fix: openai sdk request error 2024-09-19 15:21:24 +08:00
kangfenmao
f1d4da32dd fix: support \(...\) and \[...\] style math formula #78 2024-09-19 15:21:06 +08:00
kangfenmao
bbeca88b2b feat: add click assistant switch to topics settings 2024-09-19 13:55:44 +08:00
kangfenmao
1bc3484656 feat: enhanced user experience with layout adjustments.
- This commit addresses key feature enhancements and minor optimizations for improved user experience and functionality.
- Adjusted margin top for upload container to a positive value.
- Adjusted the max-height of the container to improve rendering on smaller screens.
2024-09-19 12:04:06 +08:00
kangfenmao
ca3150c6ed feat: Improved file management and added new features.
- Updated file manager to use FileManager class instead of File class.
- Improved file management functionality with features for finding duplicate files, file uploading, and storage management.
- Added styles to wrap and truncate text in a no-drag area.
- Added explicit file extensions to imageExts constant.
- Added the 'paste long text as file' input setting.
- Added image file display and UI improvements for file names and overflow.
- Improved file paste and long text handling functionality.
- awaited onSendMessage function call and added message to chat completion.
- Implemented new option to paste long text as file in the Settings page.
- Updated content display logic to include file origin name along with the file content for text files.
- Improved functionality for handling image and text file contents in the Gemini chat provider.
- Updated file content formatting logic for text files with origin name and content prefix.
- Added a new setting "pasteLongTextAsFile" and its corresponding action to the application settings.
2024-09-19 10:51:30 +08:00
kangfenmao
540f0126d8 feat: copy and paste files or images 2024-09-18 21:18:42 +08:00
kangfenmao
b9bb0c0f40 feat: add file attachment 2024-09-18 18:00:49 +08:00
kangfenmao
09f4ddd31c feat: estimate completion usage calculation added to chat.
- Estimated usage calculation has been added to chat completion fetching to track message usage.
- Added functionality to estimate completion usage tokens based on input and prompt data.
2024-09-17 14:56:10 +08:00
kangfenmao
53e315e265 feat: Added functionality to move topics between assistants.
- Added functionality to move topics between assistants.
- Updated i18n translations to improve user interface clarity and accessibility.
- Improved code organization and functionality to support moving topics between assistants.
2024-09-17 14:37:42 +08:00
kangfenmao
058b264c9a fix: dexie data upgrade 2024-09-16 18:04:46 +08:00
kangfenmao
d9205d08d7 chore(version): 0.7.1 2024-09-16 16:56:38 +08:00
kangfenmao
315b6d8c74 fix: clear database and restore specific data from backup
- Updated restore function now clears database and restores specific data from backup.
- Removed unused imports and refactored logic for item transformation in the '24' migration step.
2024-09-16 16:44:41 +08:00
kangfenmao
3e8a00f3a5 fix: backup and restore 2024-09-16 14:59:42 +08:00
kangfenmao
d37231dafe fix: Improved user experience by adding timeout to text area resize.
- Added timeout before resizing text area to improve user experience.
- Removed import of the unused `useProviderByAssistant` hook.
2024-09-16 13:03:29 +08:00
kangfenmao
868176ed57 feat: new message branch 2024-09-16 12:56:00 +08:00
kangfenmao
ff013c26ad feat: add copy button on message footer 2024-09-16 11:51:20 +08:00
kangfenmao
8912fde373 refactor: add topics and settings table
dexie
2024-09-16 10:19:06 +08:00
kangfenmao
576652b6b9 chore: Update package manager to yarn 4.5.0 and re-add notarize dependency.
- Updated the package manager to yarn version 4.5.0.
- Removed and re-added "electron/notarize" dependency with a specific patch version.
2024-09-15 14:20:58 +08:00
kangfenmao
808ade9615 feat: added vite_main_bundle_id config and improved code cleanliness 2024-09-15 10:35:02 +08:00
kangfenmao
2825165f77 chore(version): 0.7.0 2024-09-14 21:28:39 +08:00
kangfenmao
9e9738e3fe fix: removed dev tools, updated sidebar links, fixed file deletion.
- Removed ability to open developer tools in main window.
- Added and removed a link to the "/files" route in the Sidebar component.
- Fixed file deletion logic to correctly delete files from both the database and the file system.
2024-09-14 21:28:39 +08:00
kangfenmao
340667e926 fix: removed 'trigger' attribute from popover component 2024-09-14 17:22:03 +08:00
kangfenmao
2ca183b3e0 feat: add id to miniapp 2024-09-14 17:02:47 +08:00
kangfenmao
b85d314701 style: improved formatting in add agent popup.
- Improved formatting of prompt and fetched generated text in Add Agent Popup.
2024-09-14 16:53:22 +08:00
Aimer
fddd7c6858 Modified the prompt part Modified the minapp data part 2024-09-14 16:23:58 +08:00
kangfenmao
c5c9db44bf fix: remove trailing double spaces from markdown strings 2024-09-14 16:17:35 +08:00
kangfenmao
7eb56ef2d1 refactor: update file management to use filetype instead of filemetadata 2024-09-14 16:08:43 +08:00
kangfenmao
be6c2c14b7 refactor: remove sqlite3 use dexie 2024-09-14 15:25:56 +08:00
kangfenmao
d6cdac0895 chore: update build process and database configuration.
- Updated configuration to exclude additional directories from electron-builder's build process.
- Dropped the creation of the "files" table in the database schema.
- Improved code organization and extracted the data path into a reusable function.
- Updated database migration configuration to use a new migration manager.
- Added database migration to create a table for file management.
- A migration to remove the "files" table has been applied.
2024-09-13 17:03:26 +08:00