feat: enhance IM channel panel and localization support
- Added a new integration guide link in the IM channel panel description for better user guidance. - Updated localization files for English, Korean, Russian, and Chinese to include the new 'docLink' key for the integration guide. - Improved styling for the add button in the IM channel panel to enhance visual alignment and user experience.
This commit is contained in:
@@ -497,6 +497,12 @@ onMounted(() => {
|
|||||||
// --- Add button ---
|
// --- Add button ---
|
||||||
.add-btn {
|
.add-btn {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
|
|
||||||
|
:deep(.t-button__text) {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- Dialog form (matches share form pattern) ---
|
// --- Dialog form (matches share form pattern) ---
|
||||||
|
|||||||
@@ -3270,6 +3270,7 @@ export default {
|
|||||||
callbackUrl: 'Callback URL',
|
callbackUrl: 'Callback URL',
|
||||||
empty: 'No IM channels yet. Click the button below to add one.',
|
empty: 'No IM channels yet. Click the button below to add one.',
|
||||||
unnamed: 'Unnamed Channel',
|
unnamed: 'Unnamed Channel',
|
||||||
|
docLink: 'Integration Guide',
|
||||||
},
|
},
|
||||||
mcp: {
|
mcp: {
|
||||||
label: 'MCP Services',
|
label: 'MCP Services',
|
||||||
|
|||||||
@@ -3300,6 +3300,7 @@ export default {
|
|||||||
callbackUrl: "콜백 URL",
|
callbackUrl: "콜백 URL",
|
||||||
empty: "IM 채널이 없습니다. 아래 버튼을 클릭하여 추가하세요.",
|
empty: "IM 채널이 없습니다. 아래 버튼을 클릭하여 추가하세요.",
|
||||||
unnamed: "이름 없는 채널",
|
unnamed: "이름 없는 채널",
|
||||||
|
docLink: "통합 가이드 보기",
|
||||||
},
|
},
|
||||||
tools: {
|
tools: {
|
||||||
thinking: '사고',
|
thinking: '사고',
|
||||||
|
|||||||
@@ -2852,7 +2852,8 @@ export default {
|
|||||||
outputFull: 'Полное выходное значение',
|
outputFull: 'Полное выходное значение',
|
||||||
callbackUrl: 'URL обратного вызова',
|
callbackUrl: 'URL обратного вызова',
|
||||||
empty: 'Нет IM каналов. Нажмите кнопку ниже, чтобы добавить один.',
|
empty: 'Нет IM каналов. Нажмите кнопку ниже, чтобы добавить один.',
|
||||||
unnamed: 'Неименованный канал'
|
unnamed: 'Неименованный канал',
|
||||||
|
docLink: 'Руководство по интеграции',
|
||||||
},
|
},
|
||||||
mcp: {
|
mcp: {
|
||||||
label: 'MCP-сервисы',
|
label: 'MCP-сервисы',
|
||||||
|
|||||||
@@ -3245,6 +3245,7 @@ export default {
|
|||||||
callbackUrl: "回调地址",
|
callbackUrl: "回调地址",
|
||||||
empty: "暂无 IM 渠道,点击下方按钮添加",
|
empty: "暂无 IM 渠道,点击下方按钮添加",
|
||||||
unnamed: "未命名渠道",
|
unnamed: "未命名渠道",
|
||||||
|
docLink: "查看接入文档",
|
||||||
},
|
},
|
||||||
tools: {
|
tools: {
|
||||||
thinking: "思考",
|
thinking: "思考",
|
||||||
|
|||||||
@@ -1120,7 +1120,12 @@
|
|||||||
<div v-if="props.mode === 'edit' && props.agent?.id" v-show="currentSection === 'im'" class="section">
|
<div v-if="props.mode === 'edit' && props.agent?.id" v-show="currentSection === 'im'" class="section">
|
||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<h2>{{ $t('agentEditor.im.title') }}</h2>
|
<h2>{{ $t('agentEditor.im.title') }}</h2>
|
||||||
<p class="section-description">{{ $t('agentEditor.im.description') }}</p>
|
<p class="section-description">
|
||||||
|
{{ $t('agentEditor.im.description') }}
|
||||||
|
<a href="https://github.com/Tencent/WeKnora/blob/main/docs/IM%E9%9B%86%E6%88%90%E5%BC%80%E5%8F%91%E6%96%87%E6%A1%A3.md" target="_blank" rel="noopener noreferrer" class="section-doc-link">
|
||||||
|
<t-icon name="link" class="link-icon" />{{ $t('agentEditor.im.docLink') }}
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="settings-group">
|
<div class="settings-group">
|
||||||
<IMChannelPanel :agent-id="props.agent.id" />
|
<IMChannelPanel :agent-id="props.agent.id" />
|
||||||
@@ -2943,6 +2948,26 @@ const handleSave = async () => {
|
|||||||
color: var(--td-text-color-secondary);
|
color: var(--td-text-color-secondary);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
|
|
||||||
|
.section-doc-link {
|
||||||
|
margin-left: 8px;
|
||||||
|
color: var(--td-brand-color);
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 500;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 3px;
|
||||||
|
transition: color 0.2s ease;
|
||||||
|
|
||||||
|
.link-icon {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: var(--td-brand-color-hover);
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user