cherry-studio/src/renderer
beyondkmp 362658339a
feat: integrate file selection and upload functionality in KnowledgeFiles component (#9815)
* feat: integrate file selection and upload functionality in KnowledgeFiles component

- Added useFiles hook to manage file selection.
- Updated handleAddFile to utilize the new file selection logic, allowing multiple file uploads.
- Improved user experience by handling file uploads asynchronously and logging the results.

* feat: enhance file upload interaction in KnowledgeFiles component

- Wrapped Dragger component in a div to allow for custom click handling.
- Prevented default click behavior to improve user experience when adding files.
- Maintained existing file upload functionality while enhancing the UI interaction.

* refactor(KnowledgeFiles): 提取文件处理逻辑到独立函数

将重复的文件上传和处理逻辑提取到独立的processFiles函数中,提高代码复用性和可维护性

---------

Co-authored-by: icarus <eurfelux@gmail.com>
2025-09-02 23:34:08 +08:00
..
src feat: integrate file selection and upload functionality in KnowledgeFiles component (#9815) 2025-09-02 23:34:08 +08:00
index.html style: set eol to lf, code formatting (#7923) 2025-07-08 09:50:33 +08:00
miniWindow.html feat: Use different window name for Quick Assistant (#9217) 2025-08-16 11:21:29 +08:00
selectionAction.html style: set eol to lf, code formatting (#7923) 2025-07-08 09:50:33 +08:00
selectionToolbar.html style: set eol to lf, code formatting (#7923) 2025-07-08 09:50:33 +08:00
traceWindow.html refactor: streamline system prompt handling and introduce built-in tools (#7714) 2025-07-23 17:27:39 +08:00