From 7a39869f34d274d2ec7504987319e1782510b49c Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 16 Sep 2026 20:03:39 +0800 Subject: [PATCH] feat: conversation --- .../conversation => conversation-panel}/api/index.ts | 0 .../conversation => conversation-panel}/chat-panel/index.vue | 4 ++-- .../conversation => conversation-panel}/common/types.ts | 0 .../common/use-chat-store/chat/index.ts | 0 .../common/use-chat-store/debug/index.ts | 0 .../common/use-chat-store/index.ts | 0 .../common/use-chat-store/shared/use-conversation-crud.ts | 0 .../common/use-chat-store/shared/use-message-pagination.ts | 0 .../common/use-chat-store/shared/use-stream-manager.ts | 0 .../content-list/index.vue | 0 .../conversation => conversation-panel}/content/index.vue | 0 .../content/items/failure.vue | 0 .../content/items/form.vue | 0 .../content/items/question.vue | 0 .../content/items/reasoning.vue | 0 .../content/items/text.vue | 0 .../content/items/tool.vue | 0 .../conversation => conversation-panel}/editor/index.vue | 0 .../{components/conversation => conversation-panel}/index.ts | 0 .../{components/conversation => conversation-panel}/index.vue | 4 ++-- .../conversation => conversation-panel}/loading/index.vue | 0 .../conversation => conversation-panel}/sidebar/index.vue | 0 .../{components/conversation => conversation-panel}/stream.ts | 0 23 files changed, 4 insertions(+), 4 deletions(-) rename ui/src/{components/conversation => conversation-panel}/api/index.ts (100%) rename ui/src/{components/conversation => conversation-panel}/chat-panel/index.vue (99%) rename ui/src/{components/conversation => conversation-panel}/common/types.ts (100%) rename ui/src/{components/conversation => conversation-panel}/common/use-chat-store/chat/index.ts (100%) rename ui/src/{components/conversation => conversation-panel}/common/use-chat-store/debug/index.ts (100%) rename ui/src/{components/conversation => conversation-panel}/common/use-chat-store/index.ts (100%) rename ui/src/{components/conversation => conversation-panel}/common/use-chat-store/shared/use-conversation-crud.ts (100%) rename ui/src/{components/conversation => conversation-panel}/common/use-chat-store/shared/use-message-pagination.ts (100%) rename ui/src/{components/conversation => conversation-panel}/common/use-chat-store/shared/use-stream-manager.ts (100%) rename ui/src/{components/conversation => conversation-panel}/content-list/index.vue (100%) rename ui/src/{components/conversation => conversation-panel}/content/index.vue (100%) rename ui/src/{components/conversation => conversation-panel}/content/items/failure.vue (100%) rename ui/src/{components/conversation => conversation-panel}/content/items/form.vue (100%) rename ui/src/{components/conversation => conversation-panel}/content/items/question.vue (100%) rename ui/src/{components/conversation => conversation-panel}/content/items/reasoning.vue (100%) rename ui/src/{components/conversation => conversation-panel}/content/items/text.vue (100%) rename ui/src/{components/conversation => conversation-panel}/content/items/tool.vue (100%) rename ui/src/{components/conversation => conversation-panel}/editor/index.vue (100%) rename ui/src/{components/conversation => conversation-panel}/index.ts (100%) rename ui/src/{components/conversation => conversation-panel}/index.vue (96%) rename ui/src/{components/conversation => conversation-panel}/loading/index.vue (100%) rename ui/src/{components/conversation => conversation-panel}/sidebar/index.vue (100%) rename ui/src/{components/conversation => conversation-panel}/stream.ts (100%) diff --git a/ui/src/components/conversation/api/index.ts b/ui/src/conversation-panel/api/index.ts similarity index 100% rename from ui/src/components/conversation/api/index.ts rename to ui/src/conversation-panel/api/index.ts diff --git a/ui/src/components/conversation/chat-panel/index.vue b/ui/src/conversation-panel/chat-panel/index.vue similarity index 99% rename from ui/src/components/conversation/chat-panel/index.vue rename to ui/src/conversation-panel/chat-panel/index.vue index eb33cfa93cc..22d54dd57ee 100644 --- a/ui/src/components/conversation/chat-panel/index.vue +++ b/ui/src/conversation-panel/chat-panel/index.vue @@ -241,8 +241,8 @@ import { CircleCloseFilled, Paperclip, Promotion, VideoPause } from '@element-pl import ContentList from '../content-list/index.vue' import Loading from '../loading/index.vue' import { Scroll } from '../index' -import { useChatStoreByType } from '../common/use-chat-store' -import type { ChatType } from '../common/types' +import { useChatStoreByType } from '../common/use-chat-store/index.ts' +import type { ChatType } from '../common/types.ts' import { nanoid } from 'nanoid' const props = withDefaults( defineProps<{ diff --git a/ui/src/components/conversation/common/types.ts b/ui/src/conversation-panel/common/types.ts similarity index 100% rename from ui/src/components/conversation/common/types.ts rename to ui/src/conversation-panel/common/types.ts diff --git a/ui/src/components/conversation/common/use-chat-store/chat/index.ts b/ui/src/conversation-panel/common/use-chat-store/chat/index.ts similarity index 100% rename from ui/src/components/conversation/common/use-chat-store/chat/index.ts rename to ui/src/conversation-panel/common/use-chat-store/chat/index.ts diff --git a/ui/src/components/conversation/common/use-chat-store/debug/index.ts b/ui/src/conversation-panel/common/use-chat-store/debug/index.ts similarity index 100% rename from ui/src/components/conversation/common/use-chat-store/debug/index.ts rename to ui/src/conversation-panel/common/use-chat-store/debug/index.ts diff --git a/ui/src/components/conversation/common/use-chat-store/index.ts b/ui/src/conversation-panel/common/use-chat-store/index.ts similarity index 100% rename from ui/src/components/conversation/common/use-chat-store/index.ts rename to ui/src/conversation-panel/common/use-chat-store/index.ts diff --git a/ui/src/components/conversation/common/use-chat-store/shared/use-conversation-crud.ts b/ui/src/conversation-panel/common/use-chat-store/shared/use-conversation-crud.ts similarity index 100% rename from ui/src/components/conversation/common/use-chat-store/shared/use-conversation-crud.ts rename to ui/src/conversation-panel/common/use-chat-store/shared/use-conversation-crud.ts diff --git a/ui/src/components/conversation/common/use-chat-store/shared/use-message-pagination.ts b/ui/src/conversation-panel/common/use-chat-store/shared/use-message-pagination.ts similarity index 100% rename from ui/src/components/conversation/common/use-chat-store/shared/use-message-pagination.ts rename to ui/src/conversation-panel/common/use-chat-store/shared/use-message-pagination.ts diff --git a/ui/src/components/conversation/common/use-chat-store/shared/use-stream-manager.ts b/ui/src/conversation-panel/common/use-chat-store/shared/use-stream-manager.ts similarity index 100% rename from ui/src/components/conversation/common/use-chat-store/shared/use-stream-manager.ts rename to ui/src/conversation-panel/common/use-chat-store/shared/use-stream-manager.ts diff --git a/ui/src/components/conversation/content-list/index.vue b/ui/src/conversation-panel/content-list/index.vue similarity index 100% rename from ui/src/components/conversation/content-list/index.vue rename to ui/src/conversation-panel/content-list/index.vue diff --git a/ui/src/components/conversation/content/index.vue b/ui/src/conversation-panel/content/index.vue similarity index 100% rename from ui/src/components/conversation/content/index.vue rename to ui/src/conversation-panel/content/index.vue diff --git a/ui/src/components/conversation/content/items/failure.vue b/ui/src/conversation-panel/content/items/failure.vue similarity index 100% rename from ui/src/components/conversation/content/items/failure.vue rename to ui/src/conversation-panel/content/items/failure.vue diff --git a/ui/src/components/conversation/content/items/form.vue b/ui/src/conversation-panel/content/items/form.vue similarity index 100% rename from ui/src/components/conversation/content/items/form.vue rename to ui/src/conversation-panel/content/items/form.vue diff --git a/ui/src/components/conversation/content/items/question.vue b/ui/src/conversation-panel/content/items/question.vue similarity index 100% rename from ui/src/components/conversation/content/items/question.vue rename to ui/src/conversation-panel/content/items/question.vue diff --git a/ui/src/components/conversation/content/items/reasoning.vue b/ui/src/conversation-panel/content/items/reasoning.vue similarity index 100% rename from ui/src/components/conversation/content/items/reasoning.vue rename to ui/src/conversation-panel/content/items/reasoning.vue diff --git a/ui/src/components/conversation/content/items/text.vue b/ui/src/conversation-panel/content/items/text.vue similarity index 100% rename from ui/src/components/conversation/content/items/text.vue rename to ui/src/conversation-panel/content/items/text.vue diff --git a/ui/src/components/conversation/content/items/tool.vue b/ui/src/conversation-panel/content/items/tool.vue similarity index 100% rename from ui/src/components/conversation/content/items/tool.vue rename to ui/src/conversation-panel/content/items/tool.vue diff --git a/ui/src/components/conversation/editor/index.vue b/ui/src/conversation-panel/editor/index.vue similarity index 100% rename from ui/src/components/conversation/editor/index.vue rename to ui/src/conversation-panel/editor/index.vue diff --git a/ui/src/components/conversation/index.ts b/ui/src/conversation-panel/index.ts similarity index 100% rename from ui/src/components/conversation/index.ts rename to ui/src/conversation-panel/index.ts diff --git a/ui/src/components/conversation/index.vue b/ui/src/conversation-panel/index.vue similarity index 96% rename from ui/src/components/conversation/index.vue rename to ui/src/conversation-panel/index.vue index 06eeac1f2af..3af6eaceb23 100644 --- a/ui/src/components/conversation/index.vue +++ b/ui/src/conversation-panel/index.vue @@ -27,8 +27,8 @@