From d29402746305ff2bf2172a9dc94b34c1a3ceedf2 Mon Sep 17 00:00:00 2001 From: keven Date: Sat, 18 Oct 2025 13:36:04 +0800 Subject: [PATCH] feat(front): add TextInlineAIDrawer and BubbleMenuView components for enhanced AI interaction and text formatting options --- .../components/Drawer/TextInlineAIDrawer.vue | 100 +++++++++++++++++ .../Tiptap/BubbleMenu/BubbleMenuView.vue | 106 ++++++++++++++++++ front/components/Tiptap/Index.vue | 2 + 3 files changed, 208 insertions(+) create mode 100644 front/components/Drawer/TextInlineAIDrawer.vue create mode 100644 front/components/Tiptap/BubbleMenu/BubbleMenuView.vue diff --git a/front/components/Drawer/TextInlineAIDrawer.vue b/front/components/Drawer/TextInlineAIDrawer.vue new file mode 100644 index 0000000..43e86d3 --- /dev/null +++ b/front/components/Drawer/TextInlineAIDrawer.vue @@ -0,0 +1,100 @@ + + + diff --git a/front/components/Tiptap/BubbleMenu/BubbleMenuView.vue b/front/components/Tiptap/BubbleMenu/BubbleMenuView.vue new file mode 100644 index 0000000..c705fb9 --- /dev/null +++ b/front/components/Tiptap/BubbleMenu/BubbleMenuView.vue @@ -0,0 +1,106 @@ + + diff --git a/front/components/Tiptap/Index.vue b/front/components/Tiptap/Index.vue index 5e01987..4017b61 100644 --- a/front/components/Tiptap/Index.vue +++ b/front/components/Tiptap/Index.vue @@ -3,6 +3,7 @@ import { Editor, EditorContent } from '@tiptap/vue-3' import StarterKit from '@tiptap/starter-kit' import { Markdown } from 'tiptap-markdown' import Placeholder from '@tiptap/extension-placeholder' +import BubbleMenuView from './BubbleMenu/BubbleMenuView.vue' import { cx } from 'class-variance-authority' const props = defineProps<{ @@ -57,4 +58,5 @@ onUnmounted(() => { " > +