From c08cbe5c0fed022212d7fd8c53f26353dc815a1a Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Sun, 1 Mar 2026 11:11:46 +0300 Subject: [PATCH] Split ChatPanel into ChatMessage, ChatInput, ApiKeySetup --- components.d.ts | 3 + src/components/ChatPanel.vue | 299 +--------------------------- src/components/chat/ApiKeySetup.vue | 43 ++++ src/components/chat/ChatInput.vue | 137 +++++++++++++ src/components/chat/ChatMessage.vue | 137 +++++++++++++ 5 files changed, 330 insertions(+), 289 deletions(-) create mode 100644 src/components/chat/ApiKeySetup.vue create mode 100644 src/components/chat/ChatInput.vue create mode 100644 src/components/chat/ChatMessage.vue diff --git a/components.d.ts b/components.d.ts index 3978490b6..920ce0af4 100644 --- a/components.d.ts +++ b/components.d.ts @@ -11,8 +11,11 @@ export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { + ApiKeySetup: typeof import('./src/components/chat/ApiKeySetup.vue')['default'] AppearanceSection: typeof import('./src/components/properties/AppearanceSection.vue')['default'] CanvasContextMenu: typeof import('./src/components/CanvasContextMenu.vue')['default'] + ChatInput: typeof import('./src/components/chat/ChatInput.vue')['default'] + ChatMessage: typeof import('./src/components/chat/ChatMessage.vue')['default'] ChatPanel: typeof import('./src/components/ChatPanel.vue')['default'] ColorInput: typeof import('./src/components/ColorInput.vue')['default'] ColorPicker: typeof import('./src/components/ColorPicker.vue')['default'] diff --git a/src/components/ChatPanel.vue b/src/components/ChatPanel.vue index 5e03c7f7a..72855542d 100644 --- a/src/components/ChatPanel.vue +++ b/src/components/ChatPanel.vue @@ -1,44 +1,22 @@ diff --git a/src/components/chat/ApiKeySetup.vue b/src/components/chat/ApiKeySetup.vue new file mode 100644 index 000000000..0dd9c3263 --- /dev/null +++ b/src/components/chat/ApiKeySetup.vue @@ -0,0 +1,43 @@ + + + diff --git a/src/components/chat/ChatInput.vue b/src/components/chat/ChatInput.vue new file mode 100644 index 000000000..2471c4e0a --- /dev/null +++ b/src/components/chat/ChatInput.vue @@ -0,0 +1,137 @@ + + + diff --git a/src/components/chat/ChatMessage.vue b/src/components/chat/ChatMessage.vue new file mode 100644 index 000000000..481d00680 --- /dev/null +++ b/src/components/chat/ChatMessage.vue @@ -0,0 +1,137 @@ + + +