From 5aced64669c93c3de94ab9b81e13d6136d035a02 Mon Sep 17 00:00:00 2001 From: Daan Meijer Date: Tue, 23 Jun 2026 11:39:45 +0200 Subject: [PATCH] refactor: Deconstruct Chat.vue into clean single-responsibility sub-components --- resources/js/components/Chat.vue | 435 ++++++++---------- resources/js/components/chat/ChatInput.vue | 112 +++++ .../js/components/chat/ChatSystemMessage.vue | 108 +++++ .../js/components/chat/ChatUserMessage.vue | 150 ++++++ 4 files changed, 569 insertions(+), 236 deletions(-) create mode 100644 resources/js/components/chat/ChatInput.vue create mode 100644 resources/js/components/chat/ChatSystemMessage.vue create mode 100644 resources/js/components/chat/ChatUserMessage.vue diff --git a/resources/js/components/Chat.vue b/resources/js/components/Chat.vue index 03e2c95..ebf8c63 100644 --- a/resources/js/components/Chat.vue +++ b/resources/js/components/Chat.vue @@ -1,9 +1,11 @@ + + diff --git a/resources/js/components/chat/ChatSystemMessage.vue b/resources/js/components/chat/ChatSystemMessage.vue new file mode 100644 index 0000000..323ee76 --- /dev/null +++ b/resources/js/components/chat/ChatSystemMessage.vue @@ -0,0 +1,108 @@ + + + diff --git a/resources/js/components/chat/ChatUserMessage.vue b/resources/js/components/chat/ChatUserMessage.vue new file mode 100644 index 0000000..97477ae --- /dev/null +++ b/resources/js/components/chat/ChatUserMessage.vue @@ -0,0 +1,150 @@ + + +