Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions astrbot/core/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,17 +360,20 @@
"weixin_oc_long_poll_timeout_ms": 35_000,
"weixin_oc_api_timeout_ms": 120_000,
},
"飞书(Lark)": {
"id": "lark",
"type": "lark",
"微信公众平台": {
"id": "weixin_official_account",
"type": "weixin_official_account",
"enable": True,
"app_id": "",
"app_secret": "",
"domain": "https://open.feishu.cn",
"lark_connection_mode": "socket", # webhook, socket
"appid": "",
"secret": "",
"token": "",
"encoding_aes_key": "",
"api_base_url": "https://api.weixin.qq.com/cgi-bin/",
"unified_webhook_mode": True,
"webhook_uuid": "",
"lark_encrypt_key": "",
"lark_verification_token": "",
"callback_server_host": "0.0.0.0",
"port": 6194,
"active_send_mode": False,
},
"企业微信 (智能机器人)": {
"id": "wecom_ai_bot",
Expand Down Expand Up @@ -409,6 +412,18 @@
"callback_server_host": "0.0.0.0",
"port": 6195,
},
"飞书(Lark)": {
"id": "lark",
"type": "lark",
"enable": True,
"app_id": "",
"app_secret": "",
"domain": "https://open.feishu.cn",
"lark_connection_mode": "socket", # webhook, socket
"webhook_uuid": "",
"lark_encrypt_key": "",
"lark_verification_token": "",
},
"钉钉(DingTalk)": {
"id": "dingtalk",
"type": "dingtalk",
Expand All @@ -417,21 +432,6 @@
"client_secret": "",
"card_template_id": "",
},
"微信公众平台": {
"id": "weixin_official_account",
"type": "weixin_official_account",
"enable": True,
"appid": "",
"secret": "",
"token": "",
"encoding_aes_key": "",
"api_base_url": "https://api.weixin.qq.com/cgi-bin/",
"unified_webhook_mode": True,
"webhook_uuid": "",
"callback_server_host": "0.0.0.0",
"port": 6194,
"active_send_mode": False,
},
"Telegram": {
"id": "telegram",
"type": "telegram",
Expand Down
8 changes: 8 additions & 0 deletions dashboard/src/scss/_override.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,11 @@ pre, code, .markdown pre, .markdown code, .release-notes pre, .release-notes cod
.v-theme--PurpleThemeDark img[src*="/mirarouter"] {
filter: invert(1);
}

// Invert the black Mattermost and Matrix logos on dark surfaces.
// The leading slash keeps these selectors from matching inline SVG data URIs,
// where words like "matrix" also appear in transform functions.
.v-theme--PurpleThemeDark img[src*="/mattermost"],
.v-theme--PurpleThemeDark img[src*="/matrix"] {
filter: brightness(0) invert(1);
}
8 changes: 6 additions & 2 deletions dashboard/src/utils/platformUtils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ?no-inline keeps the asset URL matchable by the dark mode CSS rules.
import matrixIcon from '@/assets/images/platform_logos/matrix.svg?no-inline';
import mattermostIcon from '@/assets/images/platform_logos/mattermost.svg?no-inline';

/**
* 平台相关工具函数
*/
Expand Down Expand Up @@ -41,9 +45,9 @@ export function getPlatformIcon(name) {
} else if (name === 'line') {
return new URL('@/assets/images/platform_logos/line.png', import.meta.url).href
} else if (name === 'matrix') {
return new URL('@/assets/images/platform_logos/matrix.svg', import.meta.url).href
return matrixIcon
} else if (name === 'mattermost') {
return new URL('@/assets/images/platform_logos/mattermost.svg', import.meta.url).href
return mattermostIcon
}
}

Expand Down
8 changes: 7 additions & 1 deletion dashboard/src/utils/providerUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ export function isMonochromeProviderIcon(type) {
'xiaomi',
'xiaomi-token-plan',
'openrouter',
'groq'
'groq',
'microsoft',
'fishaudio',
'vllm',
'huggingface',
'coze',
'deerflow'
].includes(type);
}

Expand Down