refactor: simplify plugin branding

This commit is contained in:
xmanrui 2026-08-20 17:37:44 +08:00
parent 4c5d9722e8
commit e85dfa6a79
5 changed files with 15 additions and 34 deletions

View file

@ -44,8 +44,6 @@ import { WorkspaceDirectoryPickerContext } from './workspace-editor.js';
export const name = 'im-settings';
export const inject = ['slots', 'connection', 'locale', 'workspaces'];
const IM_PLUGIN_LOGO_URL = globalThis.__DSH_IM_LOGO_DATA_URL__ ?? 'assets/logo-plugin-phone.png';
const CHANNELS = Object.freeze([
{ id: 'weixin', label: '微信' },
{ id: 'feishu', label: '飞书' },
@ -132,13 +130,7 @@ export function IMSettingsTab({
h('section', { className: 'dim-page', 'aria-label': 'IM机器人设置' },
h('header', { className: 'dim-title' },
h('div', { className: 'dim-brand' },
h('img', {
className: 'dim-brandLogo',
src: IM_PLUGIN_LOGO_URL,
alt: 'dsh-im',
width: 48,
height: 48,
}),
h('strong', { className: 'dim-brandName' }, 'DSH-IM'),
h('p', null, '让 DeepSeek Harness 触手可及')),
h('span', { className: 'dim-githubAction' },
h('a', {