Commit Graph

161 Commits

Author SHA1 Message Date
wizardchen f30720f99b feat: Enhance agent settings navigation and error handling in UI components
- Introduced a new method to handle navigation to agent settings, improving code organization and reusability.
- Updated tooltip content in the agent mode button to include a link for quick access to agent settings.
- Enhanced error handling in the KnowledgeBase component to provide actionable links for VLM configuration errors.
- Added initial section handling in the KnowledgeBaseEditorModal for improved user experience during knowledge base editing.
2025-11-07 16:40:53 +08:00
wizardchen d387fd672f chore: Update .gitignore and Makefile for development enhancements
- Added 'logs/' and '*.pid' to .gitignore to exclude log files and process ID files from version control.
- Expanded Makefile with new development commands for easier local environment management, including 'dev-start', 'dev-stop', 'dev-restart', 'dev-logs', 'dev-status', 'dev-app', and 'dev-frontend'.
- Updated README_CN.md to include instructions for the new development mode and commands for improved developer experience.
2025-11-07 15:52:52 +08:00
wizardchen 655df49d7d refactor: Enhance chat message handling and session management
- Updated chat message sending logic to conditionally validate knowledge base IDs based on agent mode status.
- Improved endpoint selection for chat requests, allowing for dynamic routing between agent and knowledge chat.
- Introduced a new method to select the appropriate chat model ID, prioritizing remote models for enhanced flexibility.
- Changed JSON column types for agent and context configurations in session and tenant types to jsonb for better performance.
2025-11-07 01:37:37 +08:00
wizardchen 288dfbd19e refactor: Update chat and knowledge base handling for improved flexibility
- Removed validation for empty knowledge_base_ids in useStream, allowing backend to manage this case.
- Adjusted routing in KnowledgeBase.vue to decouple session creation from knowledge base ID.
- Updated getCurrentKbId function to simplify knowledge base ID retrieval from the route.
- Enhanced comments for clarity regarding knowledge base handling in chat components.
2025-11-07 01:06:25 +08:00
wizardchen 4fb12545c1 fix: Adjust menu styles and loading state handling in chat component
- Updated submenu item styles in menu.vue for better alignment and consistency.
- Removed unnecessary loading state resets in chat/index.vue to improve user experience during data processing.
- Enhanced comments for clarity regarding loading state management in chat events.
2025-11-07 00:56:18 +08:00
wizardchen b3a0d00fc3 feat: Revamp ModelEditorDialog and ModelSettings for improved UI and validation
- Replaced the dialog component with a custom modal layout for better user experience.
- Enhanced form structure with custom styles and validation for required fields.
- Updated model source selection and added dynamic placeholders based on model type.
- Improved API validation logic for model saving in both ModelEditorDialog and ModelSettings.
- Refactored styles for better alignment and responsiveness across components.
2025-11-07 00:30:15 +08:00
wizardchen 7cc986e282 feat: Improve KnowledgeBaseSelector dropdown behavior and styling
- Enhanced dropdown positioning logic to intelligently determine whether to display above or below the trigger element based on available space.
- Updated styles for the dropdown and list components to ensure proper alignment and responsiveness.
- Added event handling for wheel events to prevent unintended scrolling and improve user experience.
- Implemented maximum height constraints for the dropdown to enhance usability on smaller screens.
2025-11-06 23:30:17 +08:00
wizardchen b8f58edc8a feat: Enhance KnowledgeBaseEditorModal and KnowledgeBaseList with tdesign icons and improved styles
- Replaced emoji icons with tdesign icons in KnowledgeBaseEditorModal for consistency.
- Updated button in KnowledgeBaseList to include an icon and improved layout.
- Adjusted styles for navigation items and buttons for better alignment and visual appeal.
- Added new sections for TenantInfo and ApiInfo in Settings.vue to enhance settings organization.
2025-11-06 23:13:13 +08:00
wizardchen 8e3771f6c1 chore: Update tdesign-vue-next and refactor UserMenu and Settings components
- Upgraded tdesign-vue-next to version 1.17.2 for improved features and performance.
- Replaced emoji icons with corresponding tdesign icons in UserMenu and Settings components for consistency.
- Adjusted styles in the nav-icon class for better alignment and visual appeal.
2025-11-06 22:02:32 +08:00
wizardchen 625b40b184 feat: Add API documentation and external links to User Menu
- Introduced new menu items for accessing API documentation, the official website, and GitHub repository.
- Implemented corresponding methods to open these links in a new tab.
- Removed the previous API documentation card from TenantInfo.vue to streamline the UI.
2025-11-06 21:44:12 +08:00
wizardchen 30a711ea2f feat: Implement logout functionality with API integration
- Added logout API call in both menu and user menu components.
- Enhanced error handling for logout process to ensure local state is cleared even if API fails.
- Updated styles for submenu items for better UI consistency.
2025-11-06 21:36:38 +08:00
wizardchen 266b9a5943 feat: Enhance chat and knowledge base functionalities with multi-KB support
- Updated agentChat API to accept optional knowledge_base_ids and agent_enabled parameters.
- Introduced getSession API to retrieve session details.
- Modified useStream to validate knowledge_base_ids for agent-chat requests and prepare POST body accordingly.
- Enhanced createKnowledgeBase API to include additional configuration options.
- Refactored chat routing to remove knowledge base ID from the chat path, allowing for dynamic knowledge base selection.
- Improved session management by preventing duplicate session entries in the menu store.
- Updated UI components for better session handling and display.
- Added context management for agent conversations to improve state persistence across sessions.
2025-11-06 21:12:26 +08:00
wizardchen 602e8a3b88 refactor: Simplify UI styles and remove unused theme management
- Removed theme initialization and management from the UI store.
- Cleaned up CSS styles across multiple components, replacing CSS variables with fixed color values for consistency.
- Updated background colors and text colors to enhance UI clarity and responsiveness.
- Streamlined component styles to improve maintainability and readability.
2025-11-06 02:47:01 +08:00
wizardchen 7a64371603 feat: Implement theme management and UI enhancements across the application
- Added theme initialization and management in the UI store.
- Enhanced dark mode styles for various components, including tables, dialogs, and inputs.
- Updated multiple components to use CSS variables for consistent theming.
- Introduced a new simplified API for updating knowledge base configurations.
- Improved overall UI consistency and responsiveness with new styles.
2025-11-06 02:45:44 +08:00
wizardchen 4fa3adbf3b feat: Add agent configuration and cleanup scripts for database migrations 2025-11-05 23:18:44 +08:00
Aleksandr da640d1d33 Feature/add multilingual support (#384)
* feat: add multilingual support (English and Russian)

- Add i18n infrastructure with vue-i18n
- Implement language switcher component
- Add Russian (ru-RU) and English (en-US) translations
- Configure TDesign locale for proper UI component translation
- Replace hardcoded Chinese strings with i18n keys
- Support dynamic language switching in all components
- Add translations for all UI elements including:
  - Menu items and navigation
  - Knowledge base management
  - Chat interface
  - Settings and initialization
  - Authentication pages
  - Separator options in document splitting

This enables users to use the application in Chinese, English, or Russian.

* chore: add vue-i18n dependency and fix Input-field i18n integration

- Add vue-i18n package to frontend dependencies
- Fix Input-field component i18n integration for multilingual support

* chore: add PROGRESS_RU.md to .gitignore

- Exclude personal progress tracking file from git

* rearrange the order of the multilingual languages: Chinese, English, Russian

* Delete docker-compose.yml

* Replaced hardcoded messages with the t() function in the following files:  all error messages, 14 console.error ,messages session creation messages
, login/registration errors

* fix: restore docker-compose.yml and update .gitignore

* restore docker-compose.yml latest

* add multilingual support
2025-11-05 12:32:16 +08:00
begoniezhao b6d8be634a feat: 新增异步任务提取服务 2025-10-16 17:48:21 +08:00
begoniezhao 02b78a5908 feat: 新增异步任务提取服务 2025-10-16 17:48:21 +08:00
wizardchen 5726e8f3f1 fix(ui): Fix Drag Upload File failed in knowlegebase 2025-09-18 13:17:54 +08:00
wizardchen 8ed050b8ec fix(ui): Fix Drag Upload File failed in knowlegebase 2025-09-18 13:17:54 +08:00
wizardchen 3c3e60b704 fix(ui): Fix Drag Upload File Knowlegebase status check 2025-09-17 22:18:31 +08:00
wizardchen 4ccbd2a127 fix(ui): Fix Drag Upload File Knowlegebase status check 2025-09-17 22:18:31 +08:00
wizardchen 7fad133175 fix(ui): Fix Ollama Model Download Progress 2025-09-17 21:35:33 +08:00
wizardchen 512910584b fix(ui): Fix Ollama Model Download Progress 2025-09-17 21:35:33 +08:00
wizardchen 41ea7b64a6 fix(frontend): Fix Login Direct Page 2025-09-17 20:29:34 +08:00
wizardchen 76fc64a807 fix(frontend): Fix Login Direct Page 2025-09-17 20:29:34 +08:00
wizardchen 2cdb4f4ae7 merge main 2025-09-17 16:14:29 +08:00
wizardchen 0157eb25bd merge main 2025-09-17 16:14:29 +08:00
wizardchen 98e47e83d2 feat(ui): Support multi knowledgebases operation 2025-09-17 16:02:08 +08:00
wizardchen 91e65d6445 feat(ui): Support multi knowledgebases operation 2025-09-17 16:02:08 +08:00
wizardchen d9c14c5bd2 chore(ui): Update Setting page 2025-09-16 20:30:09 +08:00
wizardchen 66aec78960 chore(ui): Update Setting page 2025-09-16 20:30:09 +08:00
wizardchen 0292b3ce36 chore(ui): Update Setting page 2025-09-16 20:18:47 +08:00
wizardchen 76fbfdf8ac chore(ui): Update Setting page 2025-09-16 20:18:47 +08:00
wizardchen 2495d7c084 feat(ui): Add tenant info 2025-09-16 15:46:18 +08:00
wizardchen 4137a63852 feat(ui): Add tenant info 2025-09-16 15:46:18 +08:00
wizardchen e08ccb286c fix(ui): Fix CSP error 2025-09-16 14:58:22 +08:00
wizardchen d28f805707 fix(ui): Fix CSP error 2025-09-16 14:58:22 +08:00
v_wnxinfeng 722c5cebf2 feat: 修复下载文件内容错误问题 2025-09-16 14:33:21 +08:00
v_wnxinfeng 2e395864b9 feat: 修复下载文件内容错误问题 2025-09-16 14:33:21 +08:00
wizardchen 8c4cb4334c fix(ui): fix xss in thinking 2025-09-16 13:18:58 +08:00
wizardchen 4005aa3ded fix(ui): fix xss in thinking 2025-09-16 13:18:58 +08:00
wizardchen 5af7d84d7c chore: release v0.1.3
- Add login authentication functionality
- Update security notices in all README files
- Update version badges and package.json
- Add deployment security recommendations
2025-09-16 11:08:43 +08:00
wizardchen 2237e1ee55 chore: release v0.1.3
- Add login authentication functionality
- Update security notices in all README files
- Update version badges and package.json
- Add deployment security recommendations
2025-09-16 11:08:43 +08:00
lyingbug e8b8215f1e Merge branch 'main' into login_page 2025-09-16 10:24:05 +08:00
lyingbug c3744866fd Merge branch 'main' into login_page 2025-09-16 10:24:05 +08:00
wizardchen 81bd2e6c2c feat: Add Login Page 2025-09-16 02:47:39 +08:00
wizardchen 0908f9c487 fix(ui): Fix xss attact 2025-09-15 20:02:25 +08:00
wizardchen 78088057fb fix: frontend depends app health 2025-09-11 14:22:29 +08:00
wizardchen 2b6cbee1b6 feat: add aliyun rerank 2025-09-10 01:22:25 +08:00