feat: enhance IM channel panel with platform hints and localization updates
- Added hints for WeCom and Feishu platforms in the IM channel panel to guide users in obtaining credentials. - Included a recommendation for using WebSocket for easier setup. - Updated localization files for English, Korean, Russian, and Chinese to support new hints and console links.
This commit is contained in:
@@ -104,6 +104,7 @@
|
|||||||
<t-radio-button value="websocket">WebSocket</t-radio-button>
|
<t-radio-button value="websocket">WebSocket</t-radio-button>
|
||||||
<t-radio-button value="webhook">Webhook</t-radio-button>
|
<t-radio-button value="webhook">Webhook</t-radio-button>
|
||||||
</t-radio-group>
|
</t-radio-group>
|
||||||
|
<p class="form-hint">{{ $t('agentEditor.im.modeHint') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Output mode -->
|
<!-- Output mode -->
|
||||||
@@ -120,6 +121,13 @@
|
|||||||
|
|
||||||
<!-- WeCom credentials -->
|
<!-- WeCom credentials -->
|
||||||
<template v-if="formData.platform === 'wecom'">
|
<template v-if="formData.platform === 'wecom'">
|
||||||
|
<div class="platform-link-hint">
|
||||||
|
<t-icon name="jump" class="hint-link-icon" />
|
||||||
|
<a href="https://work.weixin.qq.com/" target="_blank" rel="noopener noreferrer" class="hint-link">
|
||||||
|
{{ $t('agentEditor.im.wecomConsole') }}
|
||||||
|
</a>
|
||||||
|
<span class="hint-text">{{ $t('agentEditor.im.consoleTip') }}</span>
|
||||||
|
</div>
|
||||||
<template v-if="formData.mode === 'websocket'">
|
<template v-if="formData.mode === 'websocket'">
|
||||||
<div class="form-item">
|
<div class="form-item">
|
||||||
<label class="form-label">Bot ID</label>
|
<label class="form-label">Bot ID</label>
|
||||||
@@ -156,6 +164,13 @@
|
|||||||
|
|
||||||
<!-- Feishu credentials -->
|
<!-- Feishu credentials -->
|
||||||
<template v-if="formData.platform === 'feishu'">
|
<template v-if="formData.platform === 'feishu'">
|
||||||
|
<div class="platform-link-hint">
|
||||||
|
<t-icon name="jump" class="hint-link-icon" />
|
||||||
|
<a href="https://open.feishu.cn/" target="_blank" rel="noopener noreferrer" class="hint-link">
|
||||||
|
{{ $t('agentEditor.im.feishuConsole') }}
|
||||||
|
</a>
|
||||||
|
<span class="hint-text">{{ $t('agentEditor.im.consoleTip') }}</span>
|
||||||
|
</div>
|
||||||
<div class="form-item">
|
<div class="form-item">
|
||||||
<label class="form-label">App ID</label>
|
<label class="form-label">App ID</label>
|
||||||
<t-input v-model="formData.credentials.app_id" placeholder="App ID" />
|
<t-input v-model="formData.credentials.app_id" placeholder="App ID" />
|
||||||
@@ -527,4 +542,41 @@ onMounted(() => {
|
|||||||
background: var(--td-component-stroke);
|
background: var(--td-component-stroke);
|
||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-hint {
|
||||||
|
margin: 6px 0 0;
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--td-text-color-placeholder);
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-link-hint {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 1.4;
|
||||||
|
color: var(--td-text-color-placeholder);
|
||||||
|
|
||||||
|
.hint-link-icon {
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--td-brand-color);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hint-link {
|
||||||
|
color: var(--td-brand-color);
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 500;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hint-text {
|
||||||
|
color: var(--td-text-color-placeholder);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -3271,6 +3271,10 @@ export default {
|
|||||||
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',
|
docLink: 'Integration Guide',
|
||||||
|
wecomConsole: 'WeCom Admin',
|
||||||
|
feishuConsole: 'Feishu Open Platform',
|
||||||
|
modeHint: 'WebSocket is recommended for easier setup',
|
||||||
|
consoleTip: 'to get credentials',
|
||||||
},
|
},
|
||||||
mcp: {
|
mcp: {
|
||||||
label: 'MCP Services',
|
label: 'MCP Services',
|
||||||
|
|||||||
@@ -3301,6 +3301,10 @@ export default {
|
|||||||
empty: "IM 채널이 없습니다. 아래 버튼을 클릭하여 추가하세요.",
|
empty: "IM 채널이 없습니다. 아래 버튼을 클릭하여 추가하세요.",
|
||||||
unnamed: "이름 없는 채널",
|
unnamed: "이름 없는 채널",
|
||||||
docLink: "통합 가이드 보기",
|
docLink: "통합 가이드 보기",
|
||||||
|
wecomConsole: "WeCom 관리 콘솔",
|
||||||
|
feishuConsole: "Feishu 개발 플랫폼",
|
||||||
|
modeHint: "WebSocket 방식이 설정이 더 간편하여 권장됩니다",
|
||||||
|
consoleTip: "자격 증명 정보를 가져오세요",
|
||||||
},
|
},
|
||||||
tools: {
|
tools: {
|
||||||
thinking: '사고',
|
thinking: '사고',
|
||||||
|
|||||||
@@ -2854,6 +2854,10 @@ export default {
|
|||||||
empty: 'Нет IM каналов. Нажмите кнопку ниже, чтобы добавить один.',
|
empty: 'Нет IM каналов. Нажмите кнопку ниже, чтобы добавить один.',
|
||||||
unnamed: 'Неименованный канал',
|
unnamed: 'Неименованный канал',
|
||||||
docLink: 'Руководство по интеграции',
|
docLink: 'Руководство по интеграции',
|
||||||
|
wecomConsole: 'Консоль WeCom',
|
||||||
|
feishuConsole: 'Платформа Feishu',
|
||||||
|
modeHint: 'Рекомендуется WebSocket — проще настроить',
|
||||||
|
consoleTip: 'для получения учётных данных',
|
||||||
},
|
},
|
||||||
mcp: {
|
mcp: {
|
||||||
label: 'MCP-сервисы',
|
label: 'MCP-сервисы',
|
||||||
|
|||||||
@@ -3246,6 +3246,10 @@ export default {
|
|||||||
empty: "暂无 IM 渠道,点击下方按钮添加",
|
empty: "暂无 IM 渠道,点击下方按钮添加",
|
||||||
unnamed: "未命名渠道",
|
unnamed: "未命名渠道",
|
||||||
docLink: "查看接入文档",
|
docLink: "查看接入文档",
|
||||||
|
wecomConsole: "企业微信管理后台",
|
||||||
|
feishuConsole: "飞书开放平台",
|
||||||
|
modeHint: "推荐使用 WebSocket 方式接入,配置更简单",
|
||||||
|
consoleTip: "前往获取凭证信息",
|
||||||
},
|
},
|
||||||
tools: {
|
tools: {
|
||||||
thinking: "思考",
|
thinking: "思考",
|
||||||
|
|||||||
Reference in New Issue
Block a user