Commit Graph

433 Commits

Author SHA1 Message Date
kangfenmao
a469dab4ce feat: Improved UI components and added new features
- Replaced 'CopyOutlined' icon with custom 'CopyIcon'.
- Replaced Topics component with RightSidebar component to match topicPosition settings.
- Removed unused imports and updated UI components in the Inputbar.
- Implemented a new Token Count component for displaying context and estimated token information in the input bar.
- Adjusted the height of code block header.
- Added functionality to toggle theme opacity.
- Added functionality to dynamically change the sidebar border style based on stored settings.
- Updated CSS styles for dynamic topic list width and padding adjustments.
- Removed unused import and styles to improve code efficiency and reduce clutter.
2024-09-07 18:11:27 +08:00
kangfenmao
69f93d167c feat: Improved model selection and unique id generation
- Improved dropdown menu selection logic for models.
- Changes improve ModelSettings component to use getModelUniqId function for model identifiers.
- Added modeling service functionality to generate unique model identifiers.
2024-09-07 18:11:13 +08:00
kangfenmao
286ad04a36 chore(version): 0.6.9 2024-09-06 18:04:11 +08:00
kangfenmao
7e179a407e feat: Add theme switching to Navbar
- Added a new theme switching functionality to the Navbar.
2024-09-06 18:03:06 +08:00
kangfenmao
669c56bcca feat: Enhanced code block styling in Markdown editor
- Added styles for code blocks in markdown to match the application's design.
- Improved the rendering of code blocks in the Markdown editor by adding a border and changing the default display in dark mode.
2024-09-06 17:58:15 +08:00
kangfenmao
bb907f4afc chore(version): 0.6.8 2024-09-06 15:54:44 +08:00
kangfenmao
faecbbb857 refactor: Remove unused CSS classes and optimize conditional styling
- Removed unused CSS classes and optimized code for conditional styling.
2024-09-06 15:53:58 +08:00
kangfenmao
1fd0a33500 feat: Update UI components and styling for consistency and readability.
- Updated icon font asset reference URL to reflect a new timestamp.
- Updated icon-fonts file asset.
- Updated markdown styling to adjust margins and padding of pre-formatted text elements.
- Added Windows-specific styling to the Inputbar component.
- Improved the rendering of code blocks with a focus on readability and theming consistency.
- Added new 'plain' attribute to Divider component for 'clear' message type.
- Minor adjustments made to the navigation bar styles and layout.
2024-09-06 15:41:46 +08:00
kangfenmao
2e0919ae88 feat: Update context count logic
- Updated logic for determining context count based on clear messages.
2024-09-06 14:17:22 +08:00
kangfenmao
c2a777246f style: Update toolbar button hover and active states
- Updated styles and icons for hover and active states of toolbar buttons.
2024-09-06 14:12:01 +08:00
kangfenmao
777a21dcc6 style: Update styling and input bar characters.
- Updated styling and characters added to input bar.
2024-09-06 14:07:45 +08:00
kangfenmao
fb7d23682f feat: Improved chat UI with context handling and filtering #43
- Updated default context count from 5 to 6.
- Updated string translations for multiple languages.
- Added functionality to handle new context and update context count in Inputbar component.
- Added support for displaying new chat context divider for 'clear' type messages.
- Added functionality to emit estimated token count with context count when the estimated token count event is triggered.
- Improved filtering and processing of user messages for the AnthropicProvider class.
- Updated message filtering logic with context consideration.
- Improved filtering of user messages to include only context-relevant messages.
- Updated logic to pass messages directly to AI.completions and AI.suggestions API requests instead of filtered messages.
- Added new event names for handling topic sidebar and context switching.
- Improved handling of message filtering and context counting.
- Added new valid value 'clear' to type option in Message type.
2024-09-06 13:54:48 +08:00
kangfenmao
e93c3f2d1b fix: Handle Enter key press event in input field
- Updated handling for Enter key press event in input field to match shortcut settings.
2024-09-06 11:34:55 +08:00
kangfenmao
f1bd7e1cbf feat: Update icon font and navigation buttons
- Updated icon font references and added new icon font glyphs.
- Updated icon font file for improved rendering.
- Updated icon font sizes and hover animations for navigation buttons.
- Removed border styles from styled Container component.
- Removed unused import and updated icon for '/settings/model' menu item.
2024-09-06 10:00:18 +08:00
kangfenmao
99654d995e chore(version): 0.6.7 2024-09-05 23:53:47 +08:00
kangfenmao
54d1de37fc feat: change topics position 2024-09-05 23:53:47 +08:00
kangfenmao
05a9d02a72 feat: Update Content-Security-Policy to allow file: frame-src #38
- Updated Content-Security-Policy directive to allow frame-src from file: in the HTML document.
2024-09-05 17:19:17 +08:00
kangfenmao
a90a119bfe refactor: renamed and refactored topic properties and added date-time tracking
- Renamed localforage topic item property from topic object to id.
- Added date-time tracking for assistant topics.
- Incremented the store version to 24.
- Refactored migrate function to add support for local storage and update topics timestamps.
- Added createdAt and updatedAt properties to Topic type.
2024-09-05 16:15:48 +08:00
kangfenmao
c0a1482983 docs(DragableList): improve types and props documentation for DragDropContext responders 2024-09-05 15:30:26 +08:00
kangfenmao
e939a150a1 feat: highlight acitve topic icon 2024-09-05 14:36:19 +08:00
kangfenmao
e427d020b6 feat: quickly edit the asistant on edit title #42 2024-09-05 13:41:47 +08:00
kangfenmao
961b336396 fix: anthropic first message must use the user role #39
{"type":"error","error":{"type":"invalid_request_error","message":"messages: first message must use the "user" role"}}
2024-09-05 13:35:16 +08:00
kangfenmao
08f74c5356 fix: assistant and topic list style 2024-09-05 00:04:35 +08:00
kangfenmao
7ebd4312ca chore(version): 0.6.6 2024-09-04 22:33:15 +08:00
kangfenmao
1e29f7dd9c fix: left sidebar icon 2024-09-04 22:31:39 +08:00
kangfenmao
ad76ef7af9 feat: remove hashtag title 2024-09-04 21:57:23 +08:00
kangfenmao
6ff768b72a chore(version): 0.6.5 2024-09-04 21:29:56 +08:00
kangfenmao
47fb43d469 feat: new chat style 2024-09-04 21:29:16 +08:00
kangfenmao
78c82b93c8 revert: fold topics 2024-09-04 15:37:39 +08:00
kangfenmao
5ec8c4b5f2 wip 2024-09-04 13:26:51 +08:00
kangfenmao
70e599e791 feat: transparent window settings 2024-09-04 11:23:45 +08:00
kangfenmao
c33f9228d3 feat: change assistant sidebar width 2024-09-03 23:37:40 +08:00
kangfenmao
303a446dee chore(version): 0.6.4 2024-09-03 22:14:12 +08:00
kangfenmao
195e7d8867 feat: double click to change assistat view 2024-09-03 22:13:25 +08:00
kangfenmao
c2a14c5c5a chore(version): 0.6.3 2024-09-03 20:50:46 +08:00
kangfenmao
a160426cb1 fix: assistant nav style 2024-09-03 20:50:37 +08:00
kangfenmao
26de164c26 feat: change default avatar 2024-09-03 20:39:27 +08:00
kangfenmao
a3f2f8c890 fix: inputbar height 2024-09-03 20:11:25 +08:00
kangfenmao
154ed1f519 feat: change default provider 2024-09-03 20:11:20 +08:00
kangfenmao
44e2c9e571 fix: backup and restore i18n 2024-09-03 19:30:21 +08:00
kangfenmao
af2186e629 refactor: provider sdk 2024-09-03 19:00:24 +08:00
kangfenmao
acde6f4499 refactor: remove modal enabled key 2024-09-03 13:17:55 +08:00
kangfenmao
2e68b27264 fix: use webview replace iframe 2024-09-03 13:17:38 +08:00
kangfenmao
dfc886b802 refactor: remove models config enabled 2024-09-03 11:40:46 +08:00
kangfenmao
5ce380c37a feat: merge assistant and topics 2024-09-03 11:36:57 +08:00
kangfenmao
8feab6a49d refactor: assistant drap and drop 2024-09-02 20:48:31 +08:00
kangfenmao
8c390475e2 feat: expand inputbar height 2024-09-02 15:38:48 +08:00
kangfenmao
ff4ca9d5e8 feat: auto change inputbar height 2024-09-02 14:09:03 +08:00
kangfenmao
ba71e9a11e feat: add attachment button 2024-09-01 23:22:21 +08:00
kangfenmao
47a9569e13 feat: hide entry for local ai 2024-08-28 18:11:35 +08:00