dsh-config-sync-plugin 0.3.76 → 0.3.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +21 -1
- package/README.md +21 -1
- package/client.js +88 -41
- package/package.json +1 -1
- package/runtime/apply.ps1 +2 -0
- package/runtime/tools/workspace-view.mjs +136 -4
- package/tools/selftest.mjs +53 -0
package/README.en.md
CHANGED
|
@@ -19,7 +19,7 @@ The package name is **`dsh-config-sync-plugin`** (the `dsh-config-sync` name on
|
|
|
19
19
|
|
|
20
20
|
| Way | Command / entry | Notes |
|
|
21
21
|
|---|---|---|
|
|
22
|
-
| npm | `npm i dsh-config-sync-plugin` | Use it as a dependency, or add `"dsh-config-sync-plugin": "^0.3.
|
|
22
|
+
| npm | `npm i dsh-config-sync-plugin` | Use it as a dependency, or add `"dsh-config-sync-plugin": "^0.3.78"` to the profile's `package.json` and run `pnpm i`. The name matches the `cordis.patch.yml` insert name and the install folder `dsh-config-sync-plugin-<ver>` |
|
|
23
23
|
| Marketplace | client → Plugins → Discover → “Config Sync” | Installs from the git commit registered in `market-index.json` |
|
|
24
24
|
| Offline tgz | `releases\dsh-config-sync-plugin-<ver>.tgz` | GitHub Release asset for air-gapped machines; the panel's Update button downloads the same file |
|
|
25
25
|
|
|
@@ -234,6 +234,26 @@ A new **Workspace visibility** section brings both native DSH hiding mechanisms
|
|
|
234
234
|
|
|
235
235
|
Each workspace switches between the three states independently; expanding it lets you hide/show a single session without touching others (a session toggle changes only that one `archivedSessionIds` entry, never the workspace archive record). Changes write the two native DSH state files directly — the session-manager Web API needs a DSH connection-owner credential the plugin route does not have. The session list is cached locally, so restart or refresh the session list to see the effect. Since 0.3.75 the archive file is synced, so these states travel with push/pull too.
|
|
236
236
|
|
|
237
|
+
### Panel: session names, Edit button, click-to-expand and quick jump (0.3.77)
|
|
238
|
+
|
|
239
|
+
Five interaction refinements on top of the 0.3.76 "Workspace visibility" card:
|
|
240
|
+
|
|
241
|
+
1. **Session names**: each expanded session shows a readable title (from the `session/title` event, falling back to the first user message text); hover for the full session ID. Titles are cached and rebuilt from the local logs on each machine.
|
|
242
|
+
2. **Edit button**: the state dropdown and per-session Hide/Show buttons stay hidden until you click Edit on that workspace; click Done to leave edit mode, so states cannot be changed by accident.
|
|
243
|
+
3. **Click to expand**: click anywhere on a workspace row to expand/collapse its sessions; no separate expand button.
|
|
244
|
+
4. **Card position**: the Workspace visibility card moved just above Feedback, as the last configuration step.
|
|
245
|
+
5. **Sticky title + quick jump**: the panel title bar is sticky, with shortcut tabs below it (Overview / Workspaces / Targets / Automation / Scripts / Restore / Content / Plugin data / Feedback); clicking one smoothly scrolls to that section.
|
|
246
|
+
|
|
247
|
+
Title reading and state changes stay self-contained in this plugin and do not call the session-manager Web API.
|
|
248
|
+
|
|
249
|
+
### Quick-jump order matches the cards; scrolling no longer hides behind the title (0.3.78)
|
|
250
|
+
|
|
251
|
+
Two display fixes on top of 0.3.77:
|
|
252
|
+
|
|
253
|
+
1. **Jump order matches section order**: the quick-jump tabs now follow the exact render order of the sections (Overview / Sync conflicts [when present] / Local paths [when expanded] / Targets / Automation & updates / Scripts / Restore / Content / Plugin data / Workspace visibility / Feedback). The two conditional sections (conflicts, local paths) appear in the tabs only when their cards are shown.
|
|
254
|
+
2. **Scroll lands below the title**: the sticky title bar now uses an opaque background (same fill as panel cards), so content no longer shows through it; jumping to a tab sets the scroll offset from the title bar's actual height, so the target section lands fully below the title instead of being covered.
|
|
255
|
+
|
|
256
|
+
|
|
237
257
|
## New sessions land in the default workspace (since 0.3.28)
|
|
238
258
|
|
|
239
259
|
A finished sync brings DSH back up, and the client opens a fresh session on startup. Where that session lands is decided by `global.defaultWorkspaceId` in `<DshHome>\storages\workspace.json` — and DSH writes that value only during **first-time initialization**, so after a few syncs it can be left pointing at whatever workspace was used last.
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ DSH 插件:左侧栏多一行「配置同步」,点开是整页体检面板
|
|
|
15
15
|
|
|
16
16
|
| 方式 | 命令 / 入口 | 说明 |
|
|
17
17
|
|---|---|---|
|
|
18
|
-
| npm | `npm i dsh-config-sync-plugin` | 适合把它当依赖管理,或在 profile 的 `package.json` 里写 `"dsh-config-sync-plugin": "^0.3.
|
|
18
|
+
| npm | `npm i dsh-config-sync-plugin` | 适合把它当依赖管理,或在 profile 的 `package.json` 里写 `"dsh-config-sync-plugin": "^0.3.78"` 后 `pnpm i`;包名与 `cordis.patch.yml` 里注册的名字、插件目录 `dsh-config-sync-plugin-<ver>` 一致 |
|
|
19
19
|
| 插件市场 | 客户端「插件市场 → 发现」搜「配置同步」 | 走 `market-index.json` 登记的 git 提交,版本与 README 对齐 |
|
|
20
20
|
| 离线 tgz | `releases\dsh-config-sync-plugin-<ver>.tgz` | GitHub Release 附件,适合内网机器;面板「更新」按钮下载的也是它 |
|
|
21
21
|
|
|
@@ -254,6 +254,26 @@ pwsh -File runtime\sync.ps1 pull `
|
|
|
254
254
|
|
|
255
255
|
每个工作区可独立切三态;展开后还能对单个会话单独「隐藏 / 显示」,两者互不影响(会话操作只动那一条 `archivedSessionIds`,不改工作区归档记录)。改动直接写本机 DSH 的两套状态文件,不调 session-manager 的 Web API(那套 API 需要 DSH connection owner 凭证,插件路由拿不到)。会话列表有本地缓存,切换后重启或刷新会话列表生效。0.3.75 已把归档文件纳入同步,所以这里改的隐藏 / 归档状态也会跟着 push/pull 到另一台机。
|
|
256
256
|
|
|
257
|
+
### 配置同步面板:会话名称、修改按钮、点行展开与快速跳转(0.3.77)
|
|
258
|
+
|
|
259
|
+
在 0.3.76「工作区显示」卡片之上做了五点交互调整:
|
|
260
|
+
|
|
261
|
+
1. **会话名称**:工作区展开后每条会话显示可读标题(从 `session/title` 事件提取,取不到时回退到首条用户消息文本),鼠标悬停可看完整会话 ID;标题提取带缓存,换机器后按新机器日志重建。
|
|
262
|
+
2. **修改按钮**:三态下拉与会话的「隐藏 / 显示」按钮默认不出现,点该工作区的「修改」才进入编辑态,点「完成」退出,避免误改。
|
|
263
|
+
3. **点行展开**:点工作区整行即可展开 / 收起会话,不再单独点展开按钮。
|
|
264
|
+
4. **卡片位置**:工作区显示卡片移到「问题反馈」前,作为配置调整的最后一步。
|
|
265
|
+
5. **固定标题 + 快速跳转**:面板标题栏吸顶;标题下方增加快捷标签(概览 / 工作区显示 / 同步目标 / 自动化 / 生成脚本 / 还原备份 / 同步内容 / 插件数据 / 问题反馈),点击平滑滚动到对应分区。
|
|
266
|
+
|
|
267
|
+
会话标题读取与三态读写都在本插件内自包含完成,不依赖 session-manager 的 Web API。
|
|
268
|
+
|
|
269
|
+
### 快速跳转顺序与卡片对齐、滚动不再被标题遮挡(0.3.78)
|
|
270
|
+
|
|
271
|
+
0.3.77 的两处显示问题已修:
|
|
272
|
+
|
|
273
|
+
1. **跳转顺序对齐卡片**:快捷标签顺序改为与分区实际渲染顺序完全一致(概览 / 同步冲突[有冲突时] / 本机路径[展开时] / 同步目标 / 自动化与插件更新 / 生成脚本 / 还原备份 / 同步内容 / 插件数据 / 工作区显示 / 问题反馈)。同步冲突、本机路径两个条件分区只在卡片存在时才出现在标签里。
|
|
274
|
+
2. **滚动落点在标题下方**:标题栏改为不透明背景(面板卡片同色),滚动时内容不再从标题背后透出;点标签跳转时按标题栏实际高度设置滚动落点,目标分区完整显示在标题下方,不再被遮住。
|
|
275
|
+
|
|
276
|
+
|
|
257
277
|
## 同步后新会话落在默认工作区
|
|
258
278
|
|
|
259
279
|
`<DshHome>\storages\workspace.json` 的 `global.defaultWorkspaceId` 决定新会话落在哪。DSH 只在本机**首次初始化**写过一次,之后同步几轮就可能停在「上次用的工作区」。`post-exit.ps1` 在**客户端完全退出之后、重新拉起之前**把它校正到默认工作区(早写会被客户端退出时的回写盖掉)。
|
package/client.js
CHANGED
|
@@ -208,10 +208,10 @@ window.__ModuleLoader__.load({
|
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
/** 一个分区:小标题 + 一句说明 + 内部网格。卡片少时自动单列,宽了并排两列。 */
|
|
211
|
-
function Section(title, hint, cards) {
|
|
211
|
+
function Section(title, hint, cards, id) {
|
|
212
212
|
const list = (cards || []).filter(Boolean)
|
|
213
213
|
if (!list.length) return null
|
|
214
|
-
return h('div', { style: S.section },
|
|
214
|
+
return h('div', { id: id ? 'sync-section-' + id : undefined, style: id ? { ...S.section, scrollMarginTop: '8px' } : S.section },
|
|
215
215
|
h('div', { style: S.sectionHead },
|
|
216
216
|
h('div', { style: S.sectionTitle }, title),
|
|
217
217
|
hint ? h('span', { style: { ...S.sectionHint, opacity: 0.75 } }, `· `) : null,
|
|
@@ -1593,6 +1593,7 @@ window.__ModuleLoader__.load({
|
|
|
1593
1593
|
const [busy, setBusy] = react.useState(false)
|
|
1594
1594
|
const [msg, setMsg] = react.useState('')
|
|
1595
1595
|
const [expanded, setExpanded] = react.useState({})
|
|
1596
|
+
const [editing, setEditing] = react.useState({})
|
|
1596
1597
|
|
|
1597
1598
|
const load = react.useCallback(async () => {
|
|
1598
1599
|
setBusy(true); setErr('')
|
|
@@ -1631,11 +1632,12 @@ window.__ModuleLoader__.load({
|
|
|
1631
1632
|
['hide-sessions', M('隐藏会话', 'Sessions hidden')],
|
|
1632
1633
|
['archive', M('归档工作区', 'Archive workspace')],
|
|
1633
1634
|
]
|
|
1635
|
+
const stop = (e) => e.stopPropagation()
|
|
1634
1636
|
|
|
1635
1637
|
if (!data || !data.available) {
|
|
1636
1638
|
return h('div', { style: S.card },
|
|
1637
1639
|
h('div', { style: S.cardTitle }, M('工作区显示状态', 'Workspace visibility')),
|
|
1638
|
-
h('div', { style: S.hint }, err ? M(
|
|
1640
|
+
h('div', { style: S.hint }, err ? M('读取失败:' + err, 'Read failed: ' + err) : M('本机还没有工作区数据,DSH 初始化后可用。', 'No workspace data yet — available after DSH initializes.')))
|
|
1639
1641
|
}
|
|
1640
1642
|
|
|
1641
1643
|
const wss = data.workspaces || []
|
|
@@ -1644,53 +1646,75 @@ window.__ModuleLoader__.load({
|
|
|
1644
1646
|
h('div', { style: { display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'wrap' } },
|
|
1645
1647
|
h('div', { style: S.cardTitle }, M('工作区显示状态', 'Workspace visibility')),
|
|
1646
1648
|
h('div', { style: { ...S.hint, flex: 1, minWidth: '160px' } },
|
|
1647
|
-
M('
|
|
1649
|
+
M('点工作区展开会话;点「修改」后才可切换状态。改动写入本机 DSH,重启或刷新会话列表后生效。', 'Click a workspace to expand sessions; click Edit to change states. Changes write to local DSH and take effect after restarting or refreshing the session list.')),
|
|
1648
1650
|
h('button', { type: 'button', style: S.btn, disabled: busy, onClick: load }, busy ? M('刷新中…', 'Refreshing…') : M('刷新', 'Refresh')),
|
|
1649
1651
|
),
|
|
1650
1652
|
msg ? h('div', { style: { ...S.hint, color: 'var(--dsw-alias-state-success-primary, #1a7f37)' } }, msg) : null,
|
|
1651
1653
|
err ? h('div', { style: { ...S.hint, color: 'var(--dsw-alias-state-error-primary)' } }, err) : null,
|
|
1652
|
-
h('div', { style: S.footnote }, M(
|
|
1654
|
+
h('div', { style: S.footnote }, M('共 ' + wss.length + ' 个工作区,' + archived + ' 个已归档;归档的工作区会从列表消失,会话仍保留。', wss.length + ' workspaces, ' + archived + ' archived; archived ones disappear from the list, sessions are kept.')),
|
|
1653
1655
|
wss.length === 0
|
|
1654
1656
|
? h('div', { style: S.footnote }, M('没有工作区。', 'No workspaces.'))
|
|
1655
1657
|
: h('div', { style: { display: 'flex', flexDirection: 'column', gap: '6px', marginTop: '2px' } },
|
|
1656
1658
|
wss.map(w => {
|
|
1657
1659
|
const open = !!expanded[w.workspaceId]
|
|
1660
|
+
const edit = !!editing[w.workspaceId]
|
|
1658
1661
|
return h('div', { key: w.workspaceId, style: { border: '1px solid var(--dsw-alias-border-l1)', borderRadius: '8px', padding: '8px 10px' } },
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1662
|
+
// 整行可点展开 / 收起(需求3)
|
|
1663
|
+
h('div', {
|
|
1664
|
+
style: { display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'wrap', cursor: 'pointer' },
|
|
1665
|
+
onClick: () => setExpanded(e => ({ ...e, [w.workspaceId]: !open })),
|
|
1666
|
+
title: open ? M('点击收起会话', 'Click to collapse sessions') : M('点击展开会话', 'Click to expand sessions'),
|
|
1667
|
+
},
|
|
1668
|
+
h('span', { style: { fontSize: '12px', color: 'var(--dsw-alias-label-tertiary)', width: '12px' } }, open ? '▾' : '▸'),
|
|
1664
1669
|
h('span', { style: { fontSize: '12px', fontWeight: 600, minWidth: '90px' } }, w.title || w.workspaceId.slice(0, 8)),
|
|
1665
1670
|
h('span', { style: chipStyle(w.state === 'archive' ? 'warn' : w.state === 'normal' ? 'ok' : 'pull') }, stateLabel(w.state)),
|
|
1666
|
-
h('span', { style: { ...S.footnote, flex: 1 } }, M(
|
|
1667
|
-
h('
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
style: { fontSize: '12px', padding: '3px 6px', borderRadius: '6px', border: '1px solid var(--dsw-alias-border-l1)', background: 'var(--dsw-alias-bg-base)', color: 'var(--dsw-alias-label-primary)' },
|
|
1672
|
-
},
|
|
1673
|
-
w.state === 'partial' ? h('option', { value: 'partial' }, stateLabel('partial')) : null,
|
|
1674
|
-
opts.map(([v, label]) => h('option', { key: v, value: v }, label)),
|
|
1675
|
-
),
|
|
1671
|
+
h('span', { style: { ...S.footnote, flex: 1 } }, M(w.sessionCount + ' 会话 · ' + w.hiddenCount + ' 隐藏', w.sessionCount + ' sessions · ' + w.hiddenCount + ' hidden')),
|
|
1672
|
+
h('button', {
|
|
1673
|
+
type: 'button', style: S.btn, disabled: busy,
|
|
1674
|
+
onClick: (e) => { stop(e); setEditing(v => ({ ...v, [w.workspaceId]: !edit })) },
|
|
1675
|
+
}, edit ? M('完成', 'Done') : M('修改', 'Edit')),
|
|
1676
1676
|
),
|
|
1677
|
+
// 编辑态才出现三态选择(需求2)
|
|
1678
|
+
edit
|
|
1679
|
+
? h('div', { style: { display: 'flex', alignItems: 'center', gap: '8px', marginTop: '6px', flexWrap: 'wrap' }, onClick: stop },
|
|
1680
|
+
h('span', { style: S.footnote }, M('工作区状态', 'Workspace state')),
|
|
1681
|
+
h('select', {
|
|
1682
|
+
value: w.state === 'partial' ? 'partial' : w.state,
|
|
1683
|
+
disabled: busy,
|
|
1684
|
+
onChange: (e) => { if (e.target.value !== 'partial') changeWorkspace(w.workspaceId, e.target.value) },
|
|
1685
|
+
style: { fontSize: '12px', padding: '3px 6px', borderRadius: '6px', border: '1px solid var(--dsw-alias-border-l1)', background: 'var(--dsw-alias-bg-base)', color: 'var(--dsw-alias-label-primary)' },
|
|
1686
|
+
},
|
|
1687
|
+
w.state === 'partial' ? h('option', { value: 'partial' }, stateLabel('partial')) : null,
|
|
1688
|
+
opts.map(([v, label]) => h('option', { key: v, value: v }, label)),
|
|
1689
|
+
),
|
|
1690
|
+
)
|
|
1691
|
+
: null,
|
|
1692
|
+
// 展开的会话列表:显示会话名(需求1),编辑态才出隐藏/显示按钮(需求2)
|
|
1677
1693
|
open
|
|
1678
1694
|
? h('div', { style: { display: 'flex', flexDirection: 'column', gap: '2px', marginTop: '6px', paddingLeft: '18px' } },
|
|
1679
1695
|
(w.sessions || []).length === 0
|
|
1680
1696
|
? h('div', { style: S.footnote }, M('这个工作区还没有会话。', 'No sessions in this workspace.'))
|
|
1681
1697
|
: w.sessions.map(s => h('div', { key: s.id, style: { display: 'flex', alignItems: 'center', gap: '8px', fontSize: '12px', lineHeight: '18px' } },
|
|
1682
|
-
h('span', {
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1698
|
+
h('span', {
|
|
1699
|
+
style: { flex: 1, minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', color: s.hidden ? 'var(--dsw-alias-label-tertiary)' : 'var(--dsw-alias-label-secondary)' },
|
|
1700
|
+
title: (s.title || s.id) + '\n' + s.id,
|
|
1701
|
+
}, s.title || s.id),
|
|
1702
|
+
s.hidden
|
|
1703
|
+
? h('span', { style: { ...S.footnote, color: 'var(--dsw-alias-label-tertiary)' } }, M('已隐藏', 'Hidden'))
|
|
1704
|
+
: null,
|
|
1705
|
+
edit
|
|
1706
|
+
? h('button', {
|
|
1707
|
+
type: 'button', style: S.btn, disabled: busy,
|
|
1708
|
+
onClick: () => changeSession(s.id, !s.hidden),
|
|
1709
|
+
}, s.hidden ? M('显示', 'Show') : M('隐藏', 'Hide'))
|
|
1710
|
+
: null,
|
|
1687
1711
|
)),
|
|
1688
1712
|
)
|
|
1689
1713
|
: null,
|
|
1690
1714
|
)
|
|
1691
1715
|
}),
|
|
1692
1716
|
),
|
|
1693
|
-
h('div', { style: S.footnote }, M('
|
|
1717
|
+
h('div', { style: S.footnote }, M('每条会话单独控制,不影响工作区三态;工作区三态会作用于整组会话。', 'Each session is controlled independently; workspace states affect the whole group.')),
|
|
1694
1718
|
)
|
|
1695
1719
|
}
|
|
1696
1720
|
function ScopeCard() {
|
|
@@ -2141,6 +2165,7 @@ window.__ModuleLoader__.load({
|
|
|
2141
2165
|
// 定时器放 ref 里:数据每刷新一次 effect 就会重跑,若在 effect 里 return 清理函数,
|
|
2142
2166
|
// 会把还没到点的"5 秒后消失"定时器一起清掉,提示就一直挂在屏幕上。
|
|
2143
2167
|
const toastTimer = react.useRef(null)
|
|
2168
|
+
const headerRef = react.useRef(null)
|
|
2144
2169
|
const summary = summarize(data)
|
|
2145
2170
|
// 门禁分三条:有路径就能生成还原脚本;拉取允许「真仓库 or 空目录」;推送只允许真仓库。
|
|
2146
2171
|
// 空目录 = 新机器还没拉过,面板只放行「拉取」,推送按钮直接禁掉(后端也会再拦一次)。
|
|
@@ -2612,7 +2637,7 @@ window.__ModuleLoader__.load({
|
|
|
2612
2637
|
|
|
2613
2638
|
return h('div', { style: S.page },
|
|
2614
2639
|
h('div', { style: S.pageInner },
|
|
2615
|
-
h('div', { style: S.pageHeader },
|
|
2640
|
+
h('div', { ref: headerRef, style: { ...S.pageHeader, position: 'sticky', top: '0', zIndex: 50, background: 'var(--dsw-alias-settings-card-fill, #fff)', boxShadow: '0 2px 8px var(--dsw-alias-border-l1)' } },
|
|
2616
2641
|
h('div', { style: S.pageHeaderMain },
|
|
2617
2642
|
h('div', { style: S.pageTitleRow },
|
|
2618
2643
|
h('div', { style: S.pageTitle }, M('配置同步', 'Config Sync')),
|
|
@@ -2662,6 +2687,29 @@ window.__ModuleLoader__.load({
|
|
|
2662
2687
|
h('button', { type: 'button', style: S.btn, disabled: busy, onClick: doRefresh },
|
|
2663
2688
|
busy ? M('检测中…', 'Checking…') : M('重新检测', 'Re-check')),
|
|
2664
2689
|
),
|
|
2690
|
+
h('div', { style: { display: 'flex', gap: '4px', flexWrap: 'wrap', width: '100%', borderTop: '1px solid var(--dsw-alias-border-l1)', paddingTop: '8px' } },
|
|
2691
|
+
[
|
|
2692
|
+
['overview', M('概览', 'Overview')],
|
|
2693
|
+
...(conflictCard ? [['conflict', M('同步冲突', 'Sync conflicts')]] : []),
|
|
2694
|
+
...(showRoots ? [['roots', M('本机路径', 'Local paths')]] : []),
|
|
2695
|
+
['targets', M('同步目标', 'Targets')],
|
|
2696
|
+
['automation', M('自动化', 'Automation')],
|
|
2697
|
+
['actions', M('生成脚本', 'Scripts')],
|
|
2698
|
+
['restore', M('还原备份', 'Restore')],
|
|
2699
|
+
['scope', M('同步内容', 'Content')],
|
|
2700
|
+
['extra', M('插件数据', 'Plugin data')],
|
|
2701
|
+
['workspace', M('工作区显示', 'Workspaces')],
|
|
2702
|
+
['feedback', M('问题反馈', 'Feedback')],
|
|
2703
|
+
].map((pair) => {
|
|
2704
|
+
const sid = pair[0], label = pair[1]
|
|
2705
|
+
return h('button', {
|
|
2706
|
+
key: sid, type: 'button',
|
|
2707
|
+
style: { fontSize: '12px', lineHeight: '18px', padding: '3px 10px', borderRadius: '6px', border: '1px solid transparent', background: 'transparent', color: 'var(--dsw-alias-label-secondary)', cursor: 'pointer' },
|
|
2708
|
+
title: M('跳转到此区', 'Jump to section'),
|
|
2709
|
+
onClick: () => { const el = document.getElementById('sync-section-' + sid); if (!el || !el.scrollIntoView) return; const hh = headerRef.current ? headerRef.current.offsetHeight : 160; el.style.scrollMarginTop = (hh + 8) + 'px'; el.scrollIntoView({ behavior: 'smooth', block: 'start' }) },
|
|
2710
|
+
}, label)
|
|
2711
|
+
}),
|
|
2712
|
+
),
|
|
2665
2713
|
),
|
|
2666
2714
|
toast
|
|
2667
2715
|
? h('div', {
|
|
@@ -2678,22 +2726,21 @@ window.__ModuleLoader__.load({
|
|
|
2678
2726
|
: null,
|
|
2679
2727
|
err ? h('div', { style: { ...S.hint, color: 'var(--dsw-alias-state-error-primary)' } }, M(`读取失败:${err}`, `Read failed: ${err}`)) : null,
|
|
2680
2728
|
// 按内容分区:状态在上、配置居中、动作在下;每区内部网格并排(宽屏两列)
|
|
2681
|
-
Section(M('概览', 'Overview'), M('版本、依赖、快照一眼看完', 'Versions, dependencies and snapshots at a glance'), [overview]),
|
|
2729
|
+
Section(M('概览', 'Overview'), M('版本、依赖、快照一眼看完', 'Versions, dependencies and snapshots at a glance'), [overview], 'overview'),
|
|
2682
2730
|
conflictCard
|
|
2683
|
-
? Section(M('同步冲突', 'Sync conflicts'), M('这些文件挡住了拉取:逐项选完保存,再点「立即拉取」', 'These files block the pull: pick per file, save, then pull'), [conflictCard])
|
|
2731
|
+
? Section(M('同步冲突', 'Sync conflicts'), M('这些文件挡住了拉取:逐项选完保存,再点「立即拉取」', 'These files block the pull: pick per file, save, then pull'), [conflictCard], 'conflict')
|
|
2684
2732
|
: null,
|
|
2685
|
-
Section(M('
|
|
2686
|
-
Section(M('
|
|
2687
|
-
Section(M('
|
|
2688
|
-
Section(M('
|
|
2689
|
-
Section(M('
|
|
2690
|
-
|
|
2691
|
-
Section(M('
|
|
2692
|
-
//
|
|
2693
|
-
Section(M('
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
Section(M('问题反馈', 'Feedback'), M('提交即建 GitHub Issue,跨机器共用;离线先排队', 'Each report becomes a GitHub Issue, shared across machines; offline reports queue locally'), [feedbackCard]),
|
|
2733
|
+
Section(M('本机路径', 'Local paths'), M('每台机器确认一次即可:仓库里用占位符,落地时按这里展开', 'Confirm once per machine: the repo stores placeholders, expanded with these paths'), [rootsCard], 'roots'),
|
|
2734
|
+
Section(M('同步目标', 'Sync targets'), M('仓库与远端都是本机设置,改完即生效', 'Repo and remote are local settings, applied at once'), [repoCard, remoteCard].filter(Boolean), 'targets'),
|
|
2735
|
+
Section(M('自动化与插件更新', 'Automation & plugin update'), M('退出后自动做什么、插件自己怎么升级', 'What runs automatically after exit, and how the plugin upgrades'), [autoCard, updCard].filter(Boolean), 'automation'),
|
|
2736
|
+
Section(M('退出后执行', 'After exit'), M('生成脚本 → 退出客户端后跑一遍', 'Generate the script → it runs after the client quits'), [actionCard], 'actions'),
|
|
2737
|
+
Section(M('还原备份', 'Restore backup'), M('点快照 → 确认差异 → 排队还原(退出客户端后执行)', 'Pick a snapshot → confirm the diff → queued restore (runs after the client quits)'), [restoreCard].filter(Boolean), 'restore'),
|
|
2738
|
+
Section(M('同步内容', 'Sync content'), M('十二组内容,默认全勾;必需组锁定', 'Twelve groups, all checked; required groups are locked'), [scopeCard], 'scope'),
|
|
2739
|
+
Section(M('插件数据与额外路径', 'Plugin data & extra paths'), M('插件自己的配置与数据:默认自动收,可改排除名单与体积上限', 'A plugin\'s own config and data: collected automatically, with editable exclusions and a size cap'), [extraCard], 'extra'),
|
|
2740
|
+
// 需求4:工作区显示卡片移到「问题反馈」前
|
|
2741
|
+
Section(M('工作区显示', 'Workspace visibility'), M('点工作区展开会话,点「修改」后才可切换状态;工作区与会话独立操作', 'Click a workspace to expand; click Edit to change states; workspaces and sections are independent'), [workspaceViewCard], 'workspace'),
|
|
2742
|
+
// 反馈放在最后一区
|
|
2743
|
+
Section(M('问题反馈', 'Feedback'), M('提交即建 GitHub Issue,跨机器共用;离线先排队', 'Each report becomes a GitHub Issue, shared across machines; offline reports queue locally'), [feedbackCard], 'feedback'),
|
|
2697
2744
|
),
|
|
2698
2745
|
)
|
|
2699
2746
|
}
|
package/package.json
CHANGED
package/runtime/apply.ps1
CHANGED
|
@@ -900,6 +900,8 @@ $localPluginMap = [ordered]@{
|
|
|
900
900
|
'dsh-our-free-model-2.8.0' = 'dsh-our-free-model'
|
|
901
901
|
'dsh-purge-1.4.0' = 'dsh-purge'
|
|
902
902
|
'dsh-config-sync-plugin-0.3.69' = 'dsh-config-sync-plugin'
|
|
903
|
+
'dsh-config-sync-plugin-0.3.78' = 'dsh-config-sync-plugin'
|
|
904
|
+
'dsh-config-sync-plugin-0.3.77' = 'dsh-config-sync-plugin'
|
|
903
905
|
'dsh-config-sync-plugin-0.3.76' = 'dsh-config-sync-plugin'
|
|
904
906
|
'dsh-config-sync-plugin-0.3.75' = 'dsh-config-sync-plugin'
|
|
905
907
|
'dsh-config-sync-plugin-0.3.74' = 'dsh-config-sync-plugin'
|
|
@@ -20,14 +20,25 @@
|
|
|
20
20
|
* 会话级独立操作:隐藏/显示单个会话只增删 global.archivedSessionIds 里的一个 id,
|
|
21
21
|
* 不碰工作区 archive 记录 —— 与工作区三态互不影响。
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* 会话名称:从会话日志开头的 `session/title` 事件读取(fallback / provider 两种,
|
|
24
|
+
* 取最后一个、即 provider 生成的那个);没有 title 事件时回退到第一条 user/message
|
|
25
|
+
* 文本。只读每个日志的前若干 zstd 帧,不解压整份历史,按 mtime 缓存。
|
|
26
|
+
*
|
|
27
|
+
* 格式保持:两个状态文件原本都是 UTF-8 无 BOM、LF、2 空格缩进、末尾一个 \n。
|
|
24
28
|
* 写回统一用 JSON.stringify(obj, null, 2) + '\n',实测与原文件逐字节一致。
|
|
25
29
|
*/
|
|
26
30
|
import * as fs from 'node:fs'
|
|
27
31
|
import { join } from 'node:path'
|
|
32
|
+
import { zstdDecompressSync } from 'node:zlib'
|
|
28
33
|
|
|
29
34
|
const WS_REL = ['storages', 'workspace.json']
|
|
30
35
|
const ARCH_REL = ['dsh-session-manager', 'workspace-archives.v1.json']
|
|
36
|
+
const SESSIONS_REL = ['sessions']
|
|
37
|
+
|
|
38
|
+
const ZSTD_MAGIC = 0xfd2fb528
|
|
39
|
+
const TITLE_EVENTS = ['session.v4.jsonl.zstd', 'session.v3.jsonl.zstd', 'session.v2.jsonl.zstd', 'session.jsonl.zstd', 'session.jsonl']
|
|
40
|
+
const TITLE_FRAME_LIMIT = 40 // 只读开头 40 帧:title 事件在前 10 帧内
|
|
41
|
+
const TITLE_CACHE = new Map() // path+mtime -> {title, byId}
|
|
31
42
|
|
|
32
43
|
function readJson(path) {
|
|
33
44
|
try {
|
|
@@ -58,7 +69,123 @@ function writeJsonAtomic(path, obj) {
|
|
|
58
69
|
function archivePath(dshHome) { return join(dshHome, ...ARCH_REL) }
|
|
59
70
|
function workspacePath(dshHome) { return join(dshHome, ...WS_REL) }
|
|
60
71
|
|
|
61
|
-
/**
|
|
72
|
+
/** 只扫前 maxFrames 个 zstd 帧的字节边界,返回 Buffer 片段;不再往后读。 */
|
|
73
|
+
function scanFrameBuffers(buf, maxFrames) {
|
|
74
|
+
const out = []
|
|
75
|
+
let offset = 0
|
|
76
|
+
while (offset < buf.length && out.length < maxFrames) {
|
|
77
|
+
const start = offset
|
|
78
|
+
if (buf.length - offset < 4 || buf.readUInt32LE(offset) !== ZSTD_MAGIC) break
|
|
79
|
+
offset += 4
|
|
80
|
+
if (offset === buf.length) break
|
|
81
|
+
if (buf.length - offset < 1) break
|
|
82
|
+
const d = buf.readUInt8(offset++)
|
|
83
|
+
if ((d & 0x18) !== 0) break
|
|
84
|
+
const csf = d >>> 6
|
|
85
|
+
const single = (d & 0x20) !== 0
|
|
86
|
+
const checksum = (d & 0x04) !== 0
|
|
87
|
+
const df = d & 0x03
|
|
88
|
+
const dictBytes = df === 3 ? 4 : df
|
|
89
|
+
const sizeBytes = csf === 0 ? (single ? 1 : 0) : (1 << csf)
|
|
90
|
+
offset += (single ? 0 : 1) + dictBytes + sizeBytes
|
|
91
|
+
let ok = true
|
|
92
|
+
for (;;) {
|
|
93
|
+
if (buf.length - offset < 3) { ok = false; break }
|
|
94
|
+
const bh = buf.readUIntLE(offset, 3); offset += 3
|
|
95
|
+
const last = (bh & 1) !== 0
|
|
96
|
+
const bt = (bh >>> 1) & 0x03
|
|
97
|
+
const bs = bh >>> 3
|
|
98
|
+
if (bt === 0x03) { ok = false; break }
|
|
99
|
+
offset += bt === 0x01 ? 1 : bs
|
|
100
|
+
if (last) break
|
|
101
|
+
}
|
|
102
|
+
if (!ok) break
|
|
103
|
+
if (checksum) offset += 4
|
|
104
|
+
out.push(buf.subarray(start, offset))
|
|
105
|
+
}
|
|
106
|
+
return out
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function cleanTitle(text) {
|
|
110
|
+
if (typeof text !== 'string') return ''
|
|
111
|
+
let s = text.replace(/\s+/g, ' ').trim()
|
|
112
|
+
// 系统提醒 / 工具输出这类前缀不作为标题
|
|
113
|
+
if (/^<system-reminder>/.test(s)) return ''
|
|
114
|
+
if (/^\[MNEMON\]/.test(s)) return ''
|
|
115
|
+
if (s.length > 48) s = s.slice(0, 48) + '…'
|
|
116
|
+
return s
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** 从单个会话日志文件提取标题。返回 {title} 并写入缓存。 */
|
|
120
|
+
function titleFromFile(file) {
|
|
121
|
+
let mtime = 0
|
|
122
|
+
try { mtime = fs.statSync(file).mtimeMs } catch { return { title: '' } }
|
|
123
|
+
const key = `${file}:${mtime}`
|
|
124
|
+
const hit = TITLE_CACHE.get(key)
|
|
125
|
+
if (hit) return hit
|
|
126
|
+
let result = { title: '' }
|
|
127
|
+
try {
|
|
128
|
+
const buf = fs.readFileSync(file)
|
|
129
|
+
let text = ''
|
|
130
|
+
if (file.endsWith('.zstd')) {
|
|
131
|
+
for (const fr of scanFrameBuffers(buf, TITLE_FRAME_LIMIT)) {
|
|
132
|
+
try { text += zstdDecompressSync(fr).toString('utf8') } catch { /* torn frame */ }
|
|
133
|
+
}
|
|
134
|
+
} else {
|
|
135
|
+
text = buf.toString('utf8', 0, 256 * 1024)
|
|
136
|
+
}
|
|
137
|
+
let lastTitle = ''
|
|
138
|
+
let firstUserText = ''
|
|
139
|
+
for (const line of text.split('\n')) {
|
|
140
|
+
if (!line) continue
|
|
141
|
+
let ev
|
|
142
|
+
try { ev = JSON.parse(line) } catch { continue }
|
|
143
|
+
if (ev.type === 'session/title' && ev.data && typeof ev.data.title === 'string') {
|
|
144
|
+
lastTitle = ev.data.title
|
|
145
|
+
}
|
|
146
|
+
if (!firstUserText && ev.type === 'user/message' && ev.data && Array.isArray(ev.data.content)) {
|
|
147
|
+
for (const part of ev.data.content) {
|
|
148
|
+
if (part && part.type === 'text' && typeof part.text === 'string') {
|
|
149
|
+
firstUserText = part.text
|
|
150
|
+
break
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (lastTitle) break
|
|
155
|
+
}
|
|
156
|
+
result = { title: cleanTitle(lastTitle) || cleanTitle(firstUserText) }
|
|
157
|
+
} catch {
|
|
158
|
+
result = { title: '' }
|
|
159
|
+
}
|
|
160
|
+
if (TITLE_CACHE.size > 400) TITLE_CACHE.clear()
|
|
161
|
+
TITLE_CACHE.set(key, result)
|
|
162
|
+
return result
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** 建一次 sid -> 日志文件路径 的索引(目录遍历很快,不读文件内容)。 */
|
|
166
|
+
function buildSessionLogIndex(dshHome) {
|
|
167
|
+
const byId = new Map()
|
|
168
|
+
const root = join(dshHome, ...SESSIONS_REL)
|
|
169
|
+
let projects
|
|
170
|
+
try { projects = fs.readdirSync(root, { withFileTypes: true }) } catch { return byId }
|
|
171
|
+
for (const proj of projects) {
|
|
172
|
+
if (!proj.isDirectory()) continue
|
|
173
|
+
const pd = join(root, proj.name)
|
|
174
|
+
let dirs
|
|
175
|
+
try { dirs = fs.readdirSync(pd, { withFileTypes: true }) } catch { continue }
|
|
176
|
+
for (const d of dirs) {
|
|
177
|
+
if (!d.isDirectory()) continue
|
|
178
|
+
const dd = join(pd, d.name)
|
|
179
|
+
for (const name of TITLE_EVENTS) {
|
|
180
|
+
const f = join(dd, name)
|
|
181
|
+
if (fs.existsSync(f)) { byId.set(d.name, f); break }
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return byId
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/** 读视图:列出所有工作区 + 每个工作区下会话的隐藏状态 + 三态归一化 + 会话名称。 */
|
|
62
189
|
export function readView(dshHome) {
|
|
63
190
|
const ws = readJson(workspacePath(dshHome))
|
|
64
191
|
const arch = readJson(archivePath(dshHome))
|
|
@@ -67,13 +194,18 @@ export function readView(dshHome) {
|
|
|
67
194
|
}
|
|
68
195
|
const globalArchived = new Set(Array.isArray(ws.global?.archivedSessionIds) ? ws.global.archivedSessionIds : [])
|
|
69
196
|
const archMap = (arch && arch.workspaces && typeof arch.workspaces === 'object') ? arch.workspaces : {}
|
|
197
|
+
const logIndex = buildSessionLogIndex(dshHome)
|
|
70
198
|
const workspaces = []
|
|
71
199
|
for (const [wsId, rec] of Object.entries(ws.tables.workspaces)) {
|
|
72
200
|
if (!rec || typeof rec !== 'object') continue
|
|
73
201
|
const sessionIds = Array.isArray(rec.sessionIds) ? rec.sessionIds.slice() : []
|
|
74
202
|
const archRec = archMap[wsId]
|
|
75
203
|
const workspaceArchived = Boolean(archRec && archRec.archived === true)
|
|
76
|
-
const sessions = sessionIds.map((sid) =>
|
|
204
|
+
const sessions = sessionIds.map((sid) => {
|
|
205
|
+
const log = logIndex.get(sid)
|
|
206
|
+
const title = log ? titleFromFile(log).title : ''
|
|
207
|
+
return { id: sid, title, hidden: globalArchived.has(sid) }
|
|
208
|
+
})
|
|
77
209
|
const hiddenCount = sessions.filter((s) => s.hidden).length
|
|
78
210
|
let state = 'normal'
|
|
79
211
|
if (workspaceArchived) state = 'archive'
|
|
@@ -144,7 +276,7 @@ export function setSessionState(dshHome, sessionId, hidden) {
|
|
|
144
276
|
if (!ws || !ws.global || typeof ws.global !== 'object') {
|
|
145
277
|
throw new Error('workspace.json 缺少 global 段')
|
|
146
278
|
}
|
|
147
|
-
const ga = new Set(Array.isArray(ws.global
|
|
279
|
+
const ga = new Set(Array.isArray(ws.global?.archivedSessionIds) ? ws.global.archivedSessionIds : [])
|
|
148
280
|
if (hidden) ga.add(sessionId)
|
|
149
281
|
else ga.delete(sessionId)
|
|
150
282
|
ws.global.archivedSessionIds = Array.from(ga)
|
package/tools/selftest.mjs
CHANGED
|
@@ -1616,5 +1616,58 @@ console.log('== 工作区显示状态卡片 ==')
|
|
|
1616
1616
|
&& cliSrc.includes('workspaceViewCard'), 'client.js 的卡片')
|
|
1617
1617
|
check('面板新增「工作区显示」分区', cliSrc.includes("Section(M('工作区显示', 'Workspace visibility')"), '分区装配')
|
|
1618
1618
|
}
|
|
1619
|
+
|
|
1620
|
+
console.log('')
|
|
1621
|
+
console.log('== 配置同步页面 5 点调整 ==')
|
|
1622
|
+
{
|
|
1623
|
+
const cliSrc = existsSync(join(pluginRootSelf, 'client.js')) ? readFileSync(join(pluginRootSelf, 'client.js'), 'utf8') : ''
|
|
1624
|
+
const wvSrc = existsSync(join(pluginRootSelf, 'runtime', 'tools', 'workspace-view.mjs')) ? readFileSync(join(pluginRootSelf, 'runtime', 'tools', 'workspace-view.mjs'), 'utf8') : ''
|
|
1625
|
+
// 1) 会话名称:工具侧读 session/title 并在 readView 里带 title 字段;卡片侧显示 s.title
|
|
1626
|
+
check('会话名称:工具从 session 日志提取 title 并随 readView 返回',
|
|
1627
|
+
wvSrc.includes('zstdDecompressSync') && wvSrc.includes('buildSessionLogIndex')
|
|
1628
|
+
&& wvSrc.includes("'session/title'") && wvSrc.includes('title: rec.title || wsId')
|
|
1629
|
+
&& wvSrc.includes('const title = log ? titleFromFile(log).title'), 'workspace-view.mjs 的标题提取')
|
|
1630
|
+
check('会话名称:卡片显示 s.title || s.id', cliSrc.includes('s.title || s.id'), 'client.js 卡片')
|
|
1631
|
+
// 2) 修改按钮:点「修改」才出现三态 select 与会话隐藏按钮
|
|
1632
|
+
check('修改按钮:编辑态才显示三态 select 与会话隐藏按钮',
|
|
1633
|
+
cliSrc.includes('const [editing, setEditing]')
|
|
1634
|
+
&& cliSrc.includes("M('修改', 'Edit')") && cliSrc.includes("M('完成', 'Done')")
|
|
1635
|
+
&& cliSrc.includes('const edit = !!editing[w.workspaceId]')
|
|
1636
|
+
&& cliSrc.includes('setEditing(v => ({ ...v, [w.workspaceId]: !edit }))')
|
|
1637
|
+
&& cliSrc.includes('changeWorkspace(w.workspaceId, e.target.value)')
|
|
1638
|
+
&& cliSrc.includes('changeSession(s.id, !s.hidden)'), 'client.js 编辑态')
|
|
1639
|
+
// 3) 点工作区整行即展开,不再单独展开按钮
|
|
1640
|
+
check('点工作区即展开(整行 onClick,无独立展开按钮)',
|
|
1641
|
+
cliSrc.includes("onClick: () => setExpanded(e => ({ ...e, [w.workspaceId]: !open }))")
|
|
1642
|
+
&& !cliSrc.includes("open ? '▾' : '▸', 'Expand sessions'"), 'client.js 展开交互')
|
|
1643
|
+
// 4) 工作区显示卡片排在问题反馈前
|
|
1644
|
+
const wvPos = cliSrc.indexOf("Section(M('工作区显示', 'Workspace visibility')")
|
|
1645
|
+
const fbPos = cliSrc.indexOf("Section(M('问题反馈', 'Feedback')")
|
|
1646
|
+
check('工作区显示卡片移到问题反馈前', wvPos > 0 && fbPos > 0 && wvPos < fbPos, '分区顺序')
|
|
1647
|
+
// 5) 标题固定 + 快速跳转 tab:Section 支持 id 锚点、pageHeader sticky、tab 点击 scrollIntoView
|
|
1648
|
+
check('标题固定:pageHeader sticky', cliSrc.includes("position: 'sticky'") && cliSrc.includes('zIndex: 50'), 'pageHeader sticky')
|
|
1649
|
+
check('快速跳转 tab:Section 带锚点 id', cliSrc.includes('function Section(title, hint, cards, id)') && cliSrc.includes("sync-section-' + id"), 'Section id')
|
|
1650
|
+
check('快速跳转 tab:点击后平滑滚动到对应卡片',
|
|
1651
|
+
cliSrc.includes("getElementById('sync-section-' + sid)")
|
|
1652
|
+
&& cliSrc.includes("scrollIntoView({ behavior: 'smooth', block: 'start' })")
|
|
1653
|
+
&& cliSrc.includes("['feedback', M('问题反馈', 'Feedback')]"), 'tab 跳转')
|
|
1654
|
+
// 6) tab 顺序 = 卡片渲染顺序:workspace 在 extra 之后、feedback 之前(不再是第 2 位)
|
|
1655
|
+
const tabBlock = cliSrc.slice(cliSrc.indexOf("['overview', M('概览', 'Overview')]"), cliSrc.indexOf('.map((pair) =>'))
|
|
1656
|
+
const tabOrder = ['overview', 'workspace', 'targets', 'automation', 'actions', 'restore', 'scope', 'extra', 'feedback']
|
|
1657
|
+
.filter((k) => k !== 'workspace' && k !== 'feedback') // 下面单独校验位置
|
|
1658
|
+
const tabIdx = (s) => tabBlock.indexOf("['" + s + "',")
|
|
1659
|
+
check('快速跳转 tab 顺序与卡片顺序一致:workspace 在 extra 后、feedback 前',
|
|
1660
|
+
tabIdx('extra') > 0 && tabIdx('feedback') > tabIdx('extra')
|
|
1661
|
+
&& tabBlock.indexOf("['workspace',") > tabIdx('extra')
|
|
1662
|
+
&& tabBlock.indexOf("['workspace',") < tabIdx('feedback'), 'tab 顺序')
|
|
1663
|
+
// 7) 条件区(同步冲突/本机路径)按卡片是否存在动态出现在 tab
|
|
1664
|
+
check('快速跳转 tab:条件区 conflict/roots 动态过滤',
|
|
1665
|
+
cliSrc.includes('...(conflictCard ?') && cliSrc.includes('...(showRoots ?'), 'tab 条件区')
|
|
1666
|
+
// 8) 内容不在标题背后显示:sticky 头部不透明背景 + 跳转按头部高度设 scrollMarginTop
|
|
1667
|
+
check('滚动落点在标题下方:sticky 不透明背景 + 动态 scrollMarginTop',
|
|
1668
|
+
cliSrc.includes('background: \'var(--dsw-alias-settings-card-fill, #fff)\'')
|
|
1669
|
+
&& cliSrc.includes('el.style.scrollMarginTop = (hh + 8)')
|
|
1670
|
+
&& cliSrc.includes('headerRef.current ? headerRef.current.offsetHeight'), '滚动遮挡')
|
|
1671
|
+
}
|
|
1619
1672
|
process.exit(failures === 0 ? 0 : 1)
|
|
1620
1673
|
|