diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..f11a735 Binary files /dev/null and b/.DS_Store differ diff --git a/icons/dark/protocol.svg b/icons/dark/protocol.svg new file mode 100644 index 0000000..3fb4467 --- /dev/null +++ b/icons/dark/protocol.svg @@ -0,0 +1,15 @@ + + + + + + \ No newline at end of file diff --git a/icons/light/protocol.svg b/icons/light/protocol.svg new file mode 100644 index 0000000..59aed0a --- /dev/null +++ b/icons/light/protocol.svg @@ -0,0 +1,15 @@ + + + + + + \ No newline at end of file diff --git a/icons/protocol.svg b/icons/protocol.svg index 3b29839..2d7c653 100644 --- a/icons/protocol.svg +++ b/icons/protocol.svg @@ -1,22 +1 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/package.json b/package.json index 7ef1dd0..86eeac2 100644 --- a/package.json +++ b/package.json @@ -28,8 +28,8 @@ "title": "展示 OpenMCP", "category": "openmcp", "icon": { - "light": "./icons/protocol.svg", - "dark": "./icons/protocol.svg" + "light": "./icons/light/protocol.svg", + "dark": "./icons/dark/protocol.svg" } } ], diff --git a/renderer/public/iconfont.css b/renderer/public/iconfont.css index 99e732e..fb1e571 100644 --- a/renderer/public/iconfont.css +++ b/renderer/public/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 4870215 */ - src: url('iconfont.woff2?t=1745222758998') format('woff2'), - url('iconfont.woff?t=1745222758998') format('woff'), - url('iconfont.ttf?t=1745222758998') format('truetype'); + src: url('iconfont.woff2?t=1745241183941') format('woff2'), + url('iconfont.woff?t=1745241183941') format('woff'), + url('iconfont.ttf?t=1745241183941') format('truetype'); } .iconfont { @@ -13,6 +13,14 @@ -moz-osx-font-smoothing: grayscale; } +.icon-prompt:before { + content: "\eb50"; +} + +.icon-empty:before { + content: "\e698"; +} + .icon-test:before { content: "\e8ad"; } diff --git a/renderer/public/iconfont.woff2 b/renderer/public/iconfont.woff2 index e574c55..f1f89d7 100644 Binary files a/renderer/public/iconfont.woff2 and b/renderer/public/iconfont.woff2 differ diff --git a/renderer/src/components/main-panel/chat/index.vue b/renderer/src/components/main-panel/chat/index.vue index cf35d64..e58b981 100644 --- a/renderer/src/components/main-panel/chat/index.vue +++ b/renderer/src/components/main-panel/chat/index.vue @@ -75,8 +75,10 @@
-
{{ item.text }}
-
{{ JSON.stringify(item) }}
+ +
{{ item.text }}
+
{{ JSON.stringify(item) }}
+
@@ -107,8 +109,17 @@ -
- +
+
+ + {{ t('press-and-run') }} + + + + + + +
@@ -398,6 +409,30 @@ const formatToolArguments = (args: string) => { flex-direction: column; } +.chat-openmcp-icon { + width: 100%; + display: flex; + justify-content: center; + height: 100%; + opacity: 0.75; + padding-top: 70px; +} + +.chat-openmcp-icon > div { + display: flex; + flex-direction: column; + align-items: left; + font-size: 28px; +} + +.chat-openmcp-icon > div > span { + margin-bottom: 23px; +} + +.chat-openmcp-icon .iconfont { + font-size: 22px; +} + .message-list { max-width: 800px; margin: 0 auto; diff --git a/renderer/src/components/main-panel/chat/setting.vue b/renderer/src/components/main-panel/chat/setting.vue index 3776b52..7d016e9 100644 --- a/renderer/src/components/main-panel/chat/setting.vue +++ b/renderer/src/components/main-panel/chat/setting.vue @@ -11,15 +11,20 @@
- +
-
- -
+
+ + + {{ availableToolsNum }} + + +
+
@@ -195,9 +200,8 @@ const hasSystemPrompt = computed(() => { const showToolsDialog = ref(false); -const toolActive = computed(() => { - const availableTools = tabStorage.settings.enableTools.filter(tool => tool.enabled); - return availableTools.length > 0; +const availableToolsNum = computed(() => { + return tabStorage.settings.enableTools.filter(tool => tool.enabled).length; }); // 修改 toggleTools 方法 @@ -415,4 +419,20 @@ const disableAllTools = () => { font-size: 12px; color: var(--el-text-color-primary); } + +.badge-outer { + position: relative; +} + +.badge-inner { + position: absolute; + color: var(--foreground); + background-color: var(--main-color); + border-radius: 50%; + padding: 2px 6px; + font-size: 10px; + top: -16px; + right: -18px; + box-shadow: 0 0 6px rgba(0, 0, 0, 0.2); +} \ No newline at end of file diff --git a/renderer/src/components/sidebar/mcp-title.vue b/renderer/src/components/sidebar/mcp-title.vue index 4a0aa2d..adf32d6 100644 --- a/renderer/src/components/sidebar/mcp-title.vue +++ b/renderer/src/components/sidebar/mcp-title.vue @@ -1,7 +1,9 @@ @@ -15,9 +17,20 @@ defineComponent({ name: 'mcp-title' }); .mcp-title { display: flex; align-items: center; + padding: 5px 10px; } -.mcp-title > div { +.mcp-title>div { font-size: 24px; } + +.simple-logo { + height: 73px; + display: flex; + flex-direction: column; +} + +.simple-logo .iconfont { + font-size: 48px; +} \ No newline at end of file diff --git a/renderer/src/i18n/ar.json b/renderer/src/i18n/ar.json index 9e4b280..4b9d666 100644 --- a/renderer/src/i18n/ar.json +++ b/renderer/src/i18n/ar.json @@ -142,5 +142,6 @@ "moderate": "توازن", "creative": "إبداع", "single-dialog": "محادثة من جولة واحدة", - "multi-dialog": "محادثة متعددة الجولات" + "multi-dialog": "محادثة متعددة الجولات", + "press-and-run": "اكتب سؤالاً لبدء الاختبار" } \ No newline at end of file diff --git a/renderer/src/i18n/de.json b/renderer/src/i18n/de.json index b8d39f6..9a40e64 100644 --- a/renderer/src/i18n/de.json +++ b/renderer/src/i18n/de.json @@ -142,5 +142,6 @@ "moderate": "Gleichgewicht", "creative": "Kreativität", "single-dialog": "Einzelrunden-Dialog", - "multi-dialog": "Mehrrundengespräch" + "multi-dialog": "Mehrrundengespräch", + "press-and-run": "Geben Sie eine Frage ein, um den Test zu starten" } \ No newline at end of file diff --git a/renderer/src/i18n/en.json b/renderer/src/i18n/en.json index 8f48c2e..a029315 100644 --- a/renderer/src/i18n/en.json +++ b/renderer/src/i18n/en.json @@ -142,5 +142,6 @@ "moderate": "Balance", "creative": "Creativity", "single-dialog": "Single-round dialogue", - "multi-dialog": "Multi-turn conversation" + "multi-dialog": "Multi-turn conversation", + "press-and-run": "Type a question to start the test" } \ No newline at end of file diff --git a/renderer/src/i18n/fr.json b/renderer/src/i18n/fr.json index 067bc49..4cde1c5 100644 --- a/renderer/src/i18n/fr.json +++ b/renderer/src/i18n/fr.json @@ -142,5 +142,6 @@ "moderate": "Équilibre", "creative": "Créativité", "single-dialog": "Dialogue en un tour", - "multi-dialog": "Conversation multi-tours" + "multi-dialog": "Conversation multi-tours", + "press-and-run": "Tapez une question pour commencer le test" } \ No newline at end of file diff --git a/renderer/src/i18n/ja.json b/renderer/src/i18n/ja.json index cee8281..8fdc418 100644 --- a/renderer/src/i18n/ja.json +++ b/renderer/src/i18n/ja.json @@ -142,5 +142,6 @@ "moderate": "バランス", "creative": "創造性", "single-dialog": "単一ラウンドの対話", - "multi-dialog": "マルチターン会話" + "multi-dialog": "マルチターン会話", + "press-and-run": "テストを開始するには質問を入力してください" } \ No newline at end of file diff --git a/renderer/src/i18n/ko.json b/renderer/src/i18n/ko.json index e9364e4..2261d58 100644 --- a/renderer/src/i18n/ko.json +++ b/renderer/src/i18n/ko.json @@ -142,5 +142,6 @@ "moderate": "균형", "creative": "창의성", "single-dialog": "단일 라운드 대화", - "multi-dialog": "다중 턴 대화" + "multi-dialog": "다중 턴 대화", + "press-and-run": "테스트를 시작하려면 질문을 입력하세요" } \ No newline at end of file diff --git a/renderer/src/i18n/ru.json b/renderer/src/i18n/ru.json index e3a9350..0915026 100644 --- a/renderer/src/i18n/ru.json +++ b/renderer/src/i18n/ru.json @@ -142,5 +142,6 @@ "moderate": "Баланс", "creative": "Творчество", "single-dialog": "Однораундовый диалог", - "multi-dialog": "Многораундовый разговор" + "multi-dialog": "Многораундовый разговор", + "press-and-run": "Введите вопрос, чтобы начать тест" } \ No newline at end of file diff --git a/renderer/src/i18n/zh-cn.json b/renderer/src/i18n/zh-cn.json index 7c5fccb..92a0736 100644 --- a/renderer/src/i18n/zh-cn.json +++ b/renderer/src/i18n/zh-cn.json @@ -142,5 +142,6 @@ "moderate": "平衡", "creative": "创意", "single-dialog": "单轮对话", - "multi-dialog": "多轮对话" + "multi-dialog": "多轮对话", + "press-and-run": "键入问题以开始测试" } \ No newline at end of file diff --git a/renderer/src/i18n/zh-tw.json b/renderer/src/i18n/zh-tw.json index 6be7c1f..db2e62d 100644 --- a/renderer/src/i18n/zh-tw.json +++ b/renderer/src/i18n/zh-tw.json @@ -142,5 +142,6 @@ "moderate": "平衡", "creative": "創意", "single-dialog": "單輪對話", - "multi-dialog": "多輪對話" + "multi-dialog": "多輪對話", + "press-and-run": "輸入問題以開始測試" } \ No newline at end of file