🐛 fix(client): 配置块去掉与插件页顶部重复的标题和描述

This commit is contained in:
pyh
2026-09-30 16:29:06 +08:00
parent f0c11176f2
commit 09114e210f
3 changed files with 14 additions and 8 deletions
+6 -6
View File
@@ -84,11 +84,10 @@ window.__ModuleLoader__.load({
'settings.kind.completion': '完成',
'settings.kind.approval': '授权',
'settings.kind.question': '提问',
'config.title': '会话通知',
'config.note': '只在会话需要你注意时提醒,而且只在 DSH 运行时。',
'config.section.kinds': '提醒内容',
'config.section.permission': '系统通知权限',
'config.section.status': '运行状态',
'config.intro': '提醒都从当前页面发出:窗口不在前台时是系统通知,窗口在前台时是这里的轻弹窗。',
'config.saveNote': '开关保存在浏览器本地,重装插件不会丢失。',
}
const en = {
@@ -125,11 +124,10 @@ window.__ModuleLoader__.load({
'settings.kind.completion': 'Finished',
'settings.kind.approval': 'Approval',
'settings.kind.question': 'Questions',
'config.title': 'Session notifications',
'config.note': 'Alerts you when a conversation needs attention, while DSH is running.',
'config.section.kinds': 'What to notify about',
'config.section.permission': 'System notification permission',
'config.section.status': 'Status',
'config.intro': 'Every alert comes from this page: a system notification while the window is in the background, the light popup here while it is in the foreground.',
'config.saveNote': 'The switches are stored in this browser and survive reinstalling the plugin.',
}
@@ -1012,9 +1010,11 @@ window.__ModuleLoader__.load({
return h(React.Fragment, null,
h('style', null, CSS),
h('div', { className: 'dsn-sections' },
// The page header already shows this bundle's title and description, so
// this section opens with what the header cannot say: how alerts are
// carried, and what this form changes.
h('section', { className: 'dsn-section' },
h('h3', { className: 'dsn-section-title' }, tr('config.title')),
h('p', { className: 'dsn-section-desc' }, tr('config.note'))),
h('p', { className: 'dsn-section-desc' }, tr('config.intro'))),
h('section', { className: 'dsn-section' },
h('h3', { className: 'dsn-section-title' }, tr('config.section.kinds')),
KINDS.map((kind) => h(KindRow, {