diff --git a/app/pages/messages/index.vue b/app/pages/messages/index.vue index d43c8b9..5947b88 100644 --- a/app/pages/messages/index.vue +++ b/app/pages/messages/index.vue @@ -32,7 +32,17 @@ >
{{ JSON.stringify(lastEvent, null, 2) }}
No events received yet
@@ -73,7 +83,16 @@ v-if="showChatsDebug" class="mt-2 p-2 rounded bg-gray-900 border border-gray-700 text-xs font-mono max-h-60 overflow-auto" > -{{ JSON.stringify(chats, null, 2) }}
@@ -127,7 +146,16 @@
v-if="showSelectedChatDebug"
class="mt-2 p-2 rounded bg-gray-900 border border-gray-700 text-xs font-mono max-h-40 overflow-auto"
>
- {{ JSON.stringify(selectedChat, null, 2) }}
@@ -229,6 +257,15 @@ const filteredChats = computed(() => {
)
})
+// Copy to clipboard function
+const copyToClipboard = async (text: string) => {
+ try {
+ await navigator.clipboard.writeText(text)
+ } catch (err) {
+ console.error('Failed to copy:', err)
+ }
+}
+
const handleSendMessage = async (content: string) => {
if (!selectedInstance.value?.value || !selectedChat.value) return