diff --git a/src/renderer/src/components/graph/ConversationNode.vue b/src/renderer/src/components/graph/ConversationNode.vue index 3b3c1d7..61d08a6 100644 --- a/src/renderer/src/components/graph/ConversationNode.vue +++ b/src/renderer/src/components/graph/ConversationNode.vue @@ -103,6 +103,22 @@ :class="msg.role === 'user' ? 'prose-invert text-white' : 'dark:prose-invert'"> + +
+
+ +
+ + + +
+
+
+
@@ -183,6 +199,22 @@
+ + + +
+ + +
+
@@ -250,6 +282,14 @@ const editingMessageId = ref(null) const editText = ref('') const isModalOpen = ref(false) +const isFullScreen = ref(false) +const fullScreenImageUrl = ref('') + +const openPreview = (url: string) => { + fullScreenImageUrl.value = mediaUrl(url) + isFullScreen.value = true +} + const startEditing = (msg: any) => { editingMessageId.value = msg.id editText.value = msg.content diff --git a/src/renderer/src/components/graph/FrameNode.vue b/src/renderer/src/components/graph/FrameNode.vue new file mode 100644 index 0000000..a1a8463 --- /dev/null +++ b/src/renderer/src/components/graph/FrameNode.vue @@ -0,0 +1,185 @@ + + + + + diff --git a/src/renderer/src/components/graph/GraphHeader.vue b/src/renderer/src/components/graph/GraphHeader.vue new file mode 100644 index 0000000..99580c2 --- /dev/null +++ b/src/renderer/src/components/graph/GraphHeader.vue @@ -0,0 +1,57 @@ + + + diff --git a/src/renderer/src/components/graph/GraphToolbar.vue b/src/renderer/src/components/graph/GraphToolbar.vue new file mode 100644 index 0000000..7848ba7 --- /dev/null +++ b/src/renderer/src/components/graph/GraphToolbar.vue @@ -0,0 +1,53 @@ + + + diff --git a/src/renderer/src/components/graph/MediaNode.vue b/src/renderer/src/components/graph/MediaNode.vue index 14b6856..a86cb5b 100644 --- a/src/renderer/src/components/graph/MediaNode.vue +++ b/src/renderer/src/components/graph/MediaNode.vue @@ -31,7 +31,7 @@