From 0827ff58099262da6366ba87407c7f476eed2de6 Mon Sep 17 00:00:00 2001 From: Hu Gang <18768366022@163.com> Date: Mon, 19 May 2025 10:25:32 +0800 Subject: [PATCH] feat: create a pop-up window for an agent --- .../components/AssetLibraryDrawer.vue | 208 +++++ src/views/createapp/components/DebugApp.vue | 797 ++++++++++++++++++ src/views/createapp/components/McpDrawer.vue | 187 ++++ .../createapp/components/NewOrEditPrompt.vue | 141 ++++ .../components/PermissionControl.vue | 191 +++++ .../createapp/components/PromptDrawer.vue | 275 ++++++ 6 files changed, 1799 insertions(+) create mode 100644 src/views/createapp/components/AssetLibraryDrawer.vue create mode 100644 src/views/createapp/components/DebugApp.vue create mode 100644 src/views/createapp/components/McpDrawer.vue create mode 100644 src/views/createapp/components/NewOrEditPrompt.vue create mode 100644 src/views/createapp/components/PermissionControl.vue create mode 100644 src/views/createapp/components/PromptDrawer.vue diff --git a/src/views/createapp/components/AssetLibraryDrawer.vue b/src/views/createapp/components/AssetLibraryDrawer.vue new file mode 100644 index 00000000..e2937ba5 --- /dev/null +++ b/src/views/createapp/components/AssetLibraryDrawer.vue @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + {{ item.teamName }} + + + + + + {{ kb.name }} + {{ kb.description }} + ID: {{ kb.kbId }} + + + + + + + + + + 关闭 + 确认 + + + + + diff --git a/src/views/createapp/components/DebugApp.vue b/src/views/createapp/components/DebugApp.vue new file mode 100644 index 00000000..94319b7f --- /dev/null +++ b/src/views/createapp/components/DebugApp.vue @@ -0,0 +1,797 @@ + + + + + + + + + {{ config.name }} + + + + MCP 服务 + + + + + + + + + + + + 你好,我是 + {{ config.name }} + ,很高兴为您服务 + + + + {{ config.description }} + + + + + + + + + + + + + + {{ $t('feedback.stop') }} + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/createapp/components/McpDrawer.vue b/src/views/createapp/components/McpDrawer.vue new file mode 100644 index 00000000..a2820edb --- /dev/null +++ b/src/views/createapp/components/McpDrawer.vue @@ -0,0 +1,187 @@ + + + + + + + + + + + + + + + + {{ item.name }} + {{ item.description }} + + + + + + + + 关闭 + 确认 + + + + + diff --git a/src/views/createapp/components/NewOrEditPrompt.vue b/src/views/createapp/components/NewOrEditPrompt.vue new file mode 100644 index 00000000..d7b2c82c --- /dev/null +++ b/src/views/createapp/components/NewOrEditPrompt.vue @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/createapp/components/PermissionControl.vue b/src/views/createapp/components/PermissionControl.vue new file mode 100644 index 00000000..2af773f6 --- /dev/null +++ b/src/views/createapp/components/PermissionControl.vue @@ -0,0 +1,191 @@ + + + + emits('update:visibility', value)" + > + + {{ item.label }} + + + + + + + 可选 + {{ optionalList.length }} + + + + + + + {{ item.label }} + + + + + + 已选 + {{ checkedList.length }} + + + + + + {{ item.label }} + + + + + + + diff --git a/src/views/createapp/components/PromptDrawer.vue b/src/views/createapp/components/PromptDrawer.vue new file mode 100644 index 00000000..2d7376df --- /dev/null +++ b/src/views/createapp/components/PromptDrawer.vue @@ -0,0 +1,275 @@ + + + + + + + + + 新建提示词 + + + + + + + + + {{ item.name }} + + + + + + + + + + {{ item.description }} + + + + + 系统配置区: + + {{ selectedPrompt.prompt }} + + + + + + + 关闭 + + 确认 + + + + + + + + -- Gitee
{{ kb.name }}
{{ kb.description }}
ID: {{ kb.kbId }}
{{ item.name }}
{{ item.description }}
系统配置区: