@hyzyn/dsh-docker 0.16.2 → 0.17.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyzyn/dsh-docker",
3
- "version": "0.16.2",
3
+ "version": "0.17.1",
4
4
  "description": "DSH Web GUI 的 Docker 容器面板插件:本机或 SSH 主机上的容器列表 / 启停删 / 日志 / 统计 / 镜像 / 一次性 exec,默认只读,配套只读优先的 agent 工具。",
5
5
  "keywords": [
6
6
  "dsh",
@@ -48,8 +48,8 @@
48
48
  "ssh2": "^1.17.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@deepseek-ai/dsh": "^0.1.7-rc.2 || ^0.2.0-rc.1 || ^0.2.0-rc.2 || ^0.2.1-alpha.1 || ^0.2.1-alpha.2 || ^0.2.1-alpha.5 || ^0.2.1-rc.1 || ^0.2.1-rc.2 || ^0.2.1-rc.3 || ^0.2.1-rc.4 || ^0.2.1-rc.5 || ^0.2.2-alpha.3 || ^0.2.2-rc.1 || ^0.2.2-rc.2",
52
- "@deepseek-ai/dsh-tools": "^0.1.7-rc.2 || ^0.2.0-rc.1 || ^0.2.0-rc.2 || ^0.2.1-alpha.1 || ^0.2.1-alpha.2 || ^0.2.1-alpha.5 || ^0.2.1-rc.1 || ^0.2.1-rc.2 || ^0.2.1-rc.3 || ^0.2.1-rc.4 || ^0.2.1-rc.5 || ^0.2.2-alpha.3 || ^0.2.2-rc.1 || ^0.2.2-rc.2"
51
+ "@deepseek-ai/dsh": "^0.1.7-rc.2 || ^0.2.0-rc.1 || ^0.2.0-rc.2 || ^0.2.1-alpha.1 || ^0.2.1-alpha.2 || ^0.2.1-alpha.5 || ^0.2.1-rc.1 || ^0.2.1-rc.2 || ^0.2.1-rc.3 || ^0.2.1-rc.4 || ^0.2.1-rc.5 || ^0.2.2-alpha.3 || ^0.2.2-rc.1 || ^0.2.2-rc.2 || ^0.2.2-rc.3",
52
+ "@deepseek-ai/dsh-tools": "^0.1.7-rc.2 || ^0.2.0-rc.1 || ^0.2.0-rc.2 || ^0.2.1-alpha.1 || ^0.2.1-alpha.2 || ^0.2.1-alpha.5 || ^0.2.1-rc.1 || ^0.2.1-rc.2 || ^0.2.1-rc.3 || ^0.2.1-rc.4 || ^0.2.1-rc.5 || ^0.2.2-alpha.3 || ^0.2.2-rc.1 || ^0.2.2-rc.2 || ^0.2.2-rc.3"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@deepseek-ai/cordis": "^4.0.4",
@@ -1323,11 +1323,15 @@ await test('切目标的过渡:过期标注 / 内容锁定 / 淡入 / 失败
1323
1323
  }
1324
1324
  })
1325
1325
 
1326
- await test('样式表:折叠态(data-sidebar-collapsed)隐藏入口标签', () => {
1327
- // DSH 外壳(dsh-client-ui-layout)在侧边栏折叠时打这个属性;tty 入口同款规则。
1328
- // 少了它,窄栏里会溢出一条竖排文字(真实踩过的回归)
1329
- assert.ok(code.includes('[data-sidebar-collapsed] [data-dsh-docker-entry]'), '缺少折叠态入口规则')
1330
- assert.ok(code.includes('[data-sidebar-collapsed] .dk_entryLabel'), '缺少折叠态标签隐藏规则')
1326
+ await test('样式表:折叠态隐藏入口标签,且只在宿主已落 rail 后生效(D171)', () => {
1327
+ // DSH 外壳在**点下收起的那一刻**就打 data-sidebar-collapsed,但布局要 150ms 之后才落到
1328
+ // rail(宽内容先冻结在展开宽度淡出)。所以规则必须带 data-sidebar-scrollport——宿主只在
1329
+ // **展开**时挂的稳定标记——这层门控:少了它,收起动画的第一帧入口就只剩图标、还被居中
1330
+ // 推到冻结宽度的一半,与同栏官方面板行不同拍(docker D171)。
1331
+ // 少了整条规则,窄栏里会溢出一条竖排文字(真实踩过的回归)。
1332
+ const gate = '[data-sidebar-collapsed] [data-dsh-docker-entry]:not([data-sidebar-scrollport] *)'
1333
+ assert.ok(code.includes(gate), '缺少折叠态入口规则(或它没带「宿主已落 rail」的门控)')
1334
+ assert.ok(code.includes(gate + ' .dk_entryLabel'), '缺少折叠态标签隐藏规则')
1331
1335
  })
1332
1336
 
1333
1337
  await test('样式表:字段标签锁死 line-height(中英混排的行框不等高会让输入框错开)', () => {