@weitc/dfy-awesome-sidebar 0.0.0-stage → 1.0.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.
Files changed (120) hide show
  1. package/CHANGELOG.md +4540 -0
  2. package/FEASIBILITY.md +250 -0
  3. package/INSTALL.md +93 -0
  4. package/LICENSE +43 -0
  5. package/README.md +170 -2
  6. package/assets/backgrounds/sidebar-default.jpg +0 -0
  7. package/assets/eggs/325/avatar.png +0 -0
  8. package/assets/eggs/325/baka-65-105-40s.webm +0 -0
  9. package/assets/eggs/325/stage.jpg +0 -0
  10. package/assets/eggs/347/avatar.png +0 -0
  11. package/assets/eggs/347/stage.jpg +0 -0
  12. package/assets/eggs/347/track-10-50-40s.webm +0 -0
  13. package/assets/themes/glass/actions-frame.css +90 -0
  14. package/assets/themes/glass/brand-frame.css +64 -0
  15. package/assets/themes/glass/footer-frame.css +111 -0
  16. package/assets/themes/glass/header-frame.css +285 -0
  17. package/assets/themes/glass/options-frame.css +129 -0
  18. package/assets/themes/glass/sidebar-outer.css +66 -0
  19. package/assets/themes/glass/topbar-frame.css +91 -0
  20. package/assets/themes/metal/actions-frame.css +90 -0
  21. package/assets/themes/metal/brand-frame.css +64 -0
  22. package/assets/themes/metal/footer-frame.css +111 -0
  23. package/assets/themes/metal/header-frame.css +300 -0
  24. package/assets/themes/metal/options-frame.css +129 -0
  25. package/assets/themes/metal/sidebar-outer.css +66 -0
  26. package/assets/themes/metal/topbar-frame.css +91 -0
  27. package/assets/themes/minimal/actions-frame.css +90 -0
  28. package/assets/themes/minimal/brand-frame.css +64 -0
  29. package/assets/themes/minimal/footer-frame.css +115 -0
  30. package/assets/themes/minimal/header-frame.css +271 -0
  31. package/assets/themes/minimal/options-frame.css +129 -0
  32. package/assets/themes/minimal/sidebar-outer.css +66 -0
  33. package/assets/themes/minimal/topbar-frame.css +91 -0
  34. package/assets/themes/neon/actions-frame.css +90 -0
  35. package/assets/themes/neon/brand-frame.css +64 -0
  36. package/assets/themes/neon/footer-frame.css +111 -0
  37. package/assets/themes/neon/header-frame.css +286 -0
  38. package/assets/themes/neon/options-frame.css +129 -0
  39. package/assets/themes/neon/sidebar-outer.css +66 -0
  40. package/assets/themes/neon/topbar-frame.css +91 -0
  41. package/assets/themes/ocean/actions-frame.css +90 -0
  42. package/assets/themes/ocean/brand-frame.css +64 -0
  43. package/assets/themes/ocean/footer-frame.css +111 -0
  44. package/assets/themes/ocean/header-frame.css +287 -0
  45. package/assets/themes/ocean/options-frame.css +129 -0
  46. package/assets/themes/ocean/sidebar-outer.css +66 -0
  47. package/assets/themes/ocean/topbar-frame.css +91 -0
  48. package/assets/themes/oldday/actions-frame.css +90 -0
  49. package/assets/themes/oldday/brand-frame.css +43 -0
  50. package/assets/themes/oldday/footer-frame.css +116 -0
  51. package/assets/themes/oldday/header-frame.css +142 -0
  52. package/assets/themes/oldday/options-frame.css +129 -0
  53. package/assets/themes/oldday/sidebar-outer.css +69 -0
  54. package/assets/themes/oldday/topbar-frame.css +91 -0
  55. package/assets/themes/pop/actions-frame.css +3 -0
  56. package/assets/themes/pop/brand-frame.css +3 -0
  57. package/assets/themes/pop/footer-frame.css +3 -0
  58. package/assets/themes/pop/header-frame.css +289 -0
  59. package/assets/themes/pop/options-frame.css +3 -0
  60. package/assets/themes/pop/pop-dust.css +37 -0
  61. package/assets/themes/pop/sidebar-outer.css +3 -0
  62. package/assets/themes/pop/topbar-frame.css +3 -0
  63. package/assets/themes/vaporwave/actions-frame.css +3 -0
  64. package/assets/themes/vaporwave/brand-frame.css +3 -0
  65. package/assets/themes/vaporwave/footer-frame.css +3 -0
  66. package/assets/themes/vaporwave/header-frame.css +436 -0
  67. package/assets/themes/vaporwave/options-frame.css +3 -0
  68. package/assets/themes/vaporwave/sidebar-outer.css +3 -0
  69. package/assets/themes/vaporwave/topbar-frame.css +3 -0
  70. package/assets/themes/vaporwave/vapor-dust.css +40 -0
  71. package/client.js +8116 -0
  72. package/cordis.patch.yml +6 -0
  73. package/docs/ACCEPTANCE-/345/244/264/345/203/217/351/242/204/350/247/210-20261201.md +42 -0
  74. package/docs/DETAIL.md +1 -0
  75. package/docs/DETAIL.zh.md +1 -0
  76. package/docs/pin-compare.png +0 -0
  77. package/docs/pin-modes.png +0 -0
  78. package/docs/preview.svg +84 -0
  79. package/docs/shot-fix7.png +0 -0
  80. package/docs/shot-frame-ocean.png +0 -0
  81. package/docs/shot-metal.png +0 -0
  82. package/docs/shot-stars.png +0 -0
  83. package/docs/shot-zones.png +0 -0
  84. package/icon.svg +5 -0
  85. package/index.js +2015 -0
  86. package/locale/en.json +7 -0
  87. package/locale/zh.json +7 -0
  88. package/package.json +58 -3
  89. package/pin.ps1 +172 -0
  90. package/rollback.ps1 +196 -0
  91. package/tools/__pycache__/pack-release.cpython-312.pyc +0 -0
  92. package/tools/_slice.txt +9 -0
  93. package/tools/boot.cjs +16 -0
  94. package/tools/build-frame-css.cjs +33 -0
  95. package/tools/check-docs.ps1 +41 -0
  96. package/tools/check-names.ps1 +35 -0
  97. package/tools/extract.cjs +28 -0
  98. package/tools/find-in-asar.cjs +43 -0
  99. package/tools/list-dir.cjs +21 -0
  100. package/tools/list-pkgs.cjs +10 -0
  101. package/tools/probe-delay.cjs +109 -0
  102. package/tools/probe-star-icon.cjs +164 -0
  103. package/tools/proof-glow-persist.cjs +102 -0
  104. package/tools/proof-migration.cjs +88 -0
  105. package/tools/proof-opacity.cjs +153 -0
  106. package/tools/proof-race.cjs +103 -0
  107. package/tools/run-asar.ps1 +53 -0
  108. package/tools/run.cmd +8 -0
  109. package/tools/scan.cjs +24 -0
  110. package/tools/smoke.cjs +179 -0
  111. package/tools/source-health.cjs +165 -0
  112. package/tools/splice.cjs +20 -0
  113. package/tools/test-account.cjs +74 -0
  114. package/tools/test-client.cjs +265 -0
  115. package/tools/test-dom.cjs +258 -0
  116. package/tools/test-host.cjs +500 -0
  117. package/tools/test-menu.cjs +591 -0
  118. package/tools/test-recharge.cjs +111 -0
  119. package/tools/test-v20.cjs +1793 -0
  120. package/workspace-pin.cmd +8 -0
@@ -0,0 +1,6 @@
1
+ # Workspace Pin bundle patch.
2
+ # 一行 Host 插件:置顶状态文件 + /workspace-pin/* 两条只读/写状态的路由。
3
+ # 移除整个 bundle 即移除该行;浏览器半插件随 client entry 一起消失。
4
+ - insert:
5
+ - id: workspace-pin
6
+ name: '@weitc/dfy-awesome-sidebar'
@@ -0,0 +1,42 @@
1
+ # 验收单 · 头像悬停预览(2026-12-01 / 内部版本 v0.22.365)
2
+
3
+ 本文只记录「头像悬停预览」这一项的验收口径与取证条件,不含实现过程。
4
+
5
+ ## 需求
6
+
7
+ 1. 前提:设置里开启工作区头像(`settings.avatar.enabled === true`)。
8
+ 2. 范围:**工作区行头像**、**会话行头像**、**用户栏头像** 三处。
9
+ 3. 触发:鼠标停在头像上满 **1 秒**(1000ms)。
10
+ 4. 形态:在头像**左上角**弹出 **112px** 圆形大图;不覆盖头像本体,不拦点击。
11
+ 5. 消失:鼠标离开即消失;滚动 / 切换目标不残留。
12
+ 6. 无图(占位 / 首字)不弹。
13
+
14
+ ## 验收项与结论
15
+
16
+ | # | 验收项 | 结论 | 代码路径 |
17
+ |---|---|---|---|
18
+ | ① | 工作区行头像:悬停 1.1s 出现 112px 预览 | PASS | `onPeekOver` → `setTimeout(PEEK_DELAY)` → `showPeek` |
19
+ | ② | 会话行头像:同上(含 18px 小头像的命中容差) | PASS | `resolvePeekTarget` + 行左侧图标带兜底 |
20
+ | ③ | 用户栏头像:同上(DSH 原生节点,图在 `background-image`) | PASS | `resolvePeekTarget` footArea 分支 + `peekSrcOf` 背景图取源 |
21
+ | ④ | 位置在头像左上角、不覆盖头像 | PASS | `left = rect.left − 112 − 8`、`top = rect.top − 112 − 8`,再钳进视口 |
22
+ | ⑤ | 移开立即消失、不残留 | PASS | 150ms 坐标轮询 + `hidePeek(reason)` |
23
+ | ⑥ | 关闭头像功能后完全不弹 | PASS | `readSettings().avatar.enabled !== true` 直接返回 |
24
+ | ⑦ | 不影响悬停高亮 / 置顶 / 星标点击 / 原生菜单 | PASS | 预览层 `pointer-events:none`、挂 `body`、`z-index:900` |
25
+
26
+ ## 取证条件(重点)
27
+
28
+ `dump`(`~/.dsh/workspace-pin/menu-dump.html`)里的 `peekDebug` **只在诊断开关打开时记录**。
29
+
30
+ **读之前先确认顶层 `peekDiagOn` 字段:**
31
+
32
+ - `peekDiagOn === true`:诊断开关当时是开的,`peekDebug` 为空 = 这段时间确实没触发;
33
+ - `peekDiagOn === false`:诊断开关当时是关的,`peekDebug` 为空**不代表**未触发。
34
+
35
+ 否则空数组会被误读成「没测过」或「没生效」,两种含义在旧数据里完全一样。
36
+
37
+ 诊断开关的打开方式:在数据目录临时创建 `~/.dsh/workspace-pin/debug-menu.flag`;验完删除该文件,`dump` 会停止更新。
38
+
39
+ ## 版本
40
+
41
+ - 内部版本:**v0.22.365**
42
+ - 对应 `CHANGELOG.md`:`2026-12-01 · 头像预览:悬停 1 秒弹 112px 大图`
package/docs/DETAIL.md ADDED
@@ -0,0 +1 @@
1
+ ![Overview](preview.svg)
@@ -0,0 +1 @@
1
+ ![说明](preview.svg)
Binary file
Binary file
@@ -0,0 +1,84 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- 很炫的栏 · 特性图(640×300,全矢量,无外链、无文字元素) -->
3
+ <svg xmlns="http://www.w3.org/2000/svg" width="640" height="300" viewBox="0 0 640 300" role="img" aria-label="不错的侧边栏:七区框体、置顶与星标">
4
+ <defs>
5
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
6
+ <stop offset="0" stop-color="#10141a"/>
7
+ <stop offset="1" stop-color="#0a0d12"/>
8
+ </linearGradient>
9
+ <linearGradient id="lid" x1="0" y1="0" x2="0" y2="1">
10
+ <stop offset="0" stop-color="#173245"/>
11
+ <stop offset="1" stop-color="#0f2230"/>
12
+ </linearGradient>
13
+ <linearGradient id="card" x1="0" y1="0" x2="0" y2="1">
14
+ <stop offset="0" stop-color="#161c24"/>
15
+ <stop offset="1" stop-color="#11161d"/>
16
+ </linearGradient>
17
+ <radialGradient id="glow" cx="0.28" cy="0.2" r="0.7">
18
+ <stop offset="0" stop-color="#4fd1c5" stop-opacity="0.16"/>
19
+ <stop offset="1" stop-color="#4fd1c5" stop-opacity="0"/>
20
+ </radialGradient>
21
+ <path id="star5" d="M8 1.7 L9.9 5.5 L14.1 6.1 L11.1 9.1 L11.8 13.3 L8 11.3 L4.2 13.3 L4.9 9.1 L1.9 6.1 L6.1 5.5 Z"/>
22
+ <path id="pin" d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146"/>
23
+ <path id="spark4" d="M8 0.5 C8.7 4.8 11.2 7.3 15.5 8 C11.2 8.7 8.7 11.2 8 15.5 C7.3 11.2 4.8 8.7 0.5 8 C4.8 7.3 7.3 4.8 8 0.5 Z"/>
24
+ </defs>
25
+
26
+ <rect width="640" height="300" fill="url(#bg)"/>
27
+ <rect width="640" height="300" fill="url(#glow)"/>
28
+
29
+ <!-- 左侧:侧栏七区示意 -->
30
+ <rect x="36" y="24" width="220" height="252" rx="14" fill="#0e1319" stroke="#2b3644"/>
31
+ <rect x="44" y="32" width="204" height="30" rx="8" fill="#1a2129" stroke="#35424f"/>
32
+ <circle cx="61" cy="47" r="7" fill="#4fd1c5"/>
33
+ <rect x="74" y="42" width="82" height="4" rx="2" fill="#e8eef4" opacity="0.85"/>
34
+ <rect x="74" y="50" width="54" height="4" rx="2" fill="#8d98a5" opacity="0.7"/>
35
+
36
+ <rect x="44" y="70" width="204" height="34" rx="8" fill="#102636" stroke="#3f9aa8" stroke-opacity="0.65"/>
37
+ <rect x="86" y="82" width="120" height="10" rx="5" fill="#4fd1c5" opacity="0.28"/>
38
+
39
+ <rect x="44" y="112" width="204" height="24" rx="6" fill="#0c1f2b" stroke="#2f6f7f"/>
40
+ <rect x="140" y="118" width="12" height="12" rx="3" fill="#9fe8e0" opacity="0.75"/>
41
+ <rect x="158" y="118" width="12" height="12" rx="3" fill="#9fe8e0" opacity="0.75"/>
42
+ <rect x="176" y="118" width="12" height="12" rx="3" fill="#9fe8e0" opacity="0.75"/>
43
+ <circle cx="222" cy="124" r="6" fill="none" stroke="#9fe8e0" stroke-width="2"/>
44
+
45
+ <!-- 工作区盒子 1:盖子 + 会话区 -->
46
+ <rect x="44" y="144" width="204" height="56" rx="8" fill="#0f1a24" stroke="#1f4a5f"/>
47
+ <path d="M44 152a8 8 0 0 1 8-8h188a8 8 0 0 1 8 8v14H44z" fill="url(#lid)"/>
48
+ <rect x="56" y="170" width="118" height="5" rx="2.5" fill="#c9d6e2" opacity="0.8"/>
49
+ <rect x="56" y="182" width="92" height="5" rx="2.5" fill="#7d8896" opacity="0.7"/>
50
+ <use href="#pin" x="196" y="168" width="16" height="16" fill="#e5484d"/>
51
+ <use href="#star5" x="216" y="168" width="16" height="16" fill="#ff3224"/>
52
+
53
+ <!-- 工作区盒子 2 -->
54
+ <rect x="44" y="206" width="204" height="42" rx="8" fill="#0f1a24" stroke="#1f4a5f"/>
55
+ <path d="M44 214a8 8 0 0 1 8-8h188a8 8 0 0 1 8 8v12H44z" fill="url(#lid)" opacity="0.85"/>
56
+ <rect x="56" y="228" width="104" height="5" rx="2.5" fill="#c9d6e2" opacity="0.8"/>
57
+ <use href="#pin" x="196" y="222" width="16" height="16" fill="#7d8896" opacity="0.55"/>
58
+ <use href="#spark4" x="216" y="222" width="16" height="16" fill="#fff824"/>
59
+
60
+ <!-- 页脚账号区 -->
61
+ <rect x="44" y="254" width="204" height="18" rx="6" fill="#151c23" stroke="#26303c"/>
62
+ <circle cx="58" cy="263" r="6" fill="none" stroke="#8d98a5" stroke-width="1.6"/>
63
+ <rect x="70" y="261" width="70" height="4" rx="2" fill="#aab4c0" opacity="0.8"/>
64
+
65
+ <!-- 右侧:三张特性卡(图形 + 文字条) -->
66
+ <rect x="286" y="24" width="318" height="70" rx="12" fill="url(#card)" stroke="#26303c"/>
67
+ <use href="#star5" x="302" y="40" width="34" height="34" fill="#ff3224"/>
68
+ <rect x="352" y="44" width="150" height="7" rx="3.5" fill="#e8eef4" opacity="0.9"/>
69
+ <rect x="352" y="58" width="108" height="5" rx="2.5" fill="#8d98a5" opacity="0.75"/>
70
+ <rect x="352" y="69" width="176" height="5" rx="2.5" fill="#5f6a77" opacity="0.6"/>
71
+
72
+ <rect x="286" y="108" width="318" height="70" rx="12" fill="url(#card)" stroke="#26303c"/>
73
+ <use href="#pin" x="300" y="122" width="34" height="34" fill="#e5484d"/>
74
+ <rect x="352" y="128" width="138" height="7" rx="3.5" fill="#e8eef4" opacity="0.9"/>
75
+ <rect x="352" y="142" width="96" height="5" rx="2.5" fill="#8d98a5" opacity="0.75"/>
76
+ <rect x="352" y="153" width="160" height="5" rx="2.5" fill="#5f6a77" opacity="0.6"/>
77
+
78
+ <rect x="286" y="192" width="318" height="84" rx="12" fill="url(#card)" stroke="#26303c"/>
79
+ <use href="#spark4" x="300" y="206" width="34" height="34" fill="#fff824"/>
80
+ <rect x="352" y="212" width="160" height="7" rx="3.5" fill="#e8eef4" opacity="0.9"/>
81
+ <rect x="352" y="226" width="112" height="5" rx="2.5" fill="#8d98a5" opacity="0.75"/>
82
+ <rect x="302" y="248" width="286" height="5" rx="2.5" fill="#5f6a77" opacity="0.55"/>
83
+ <rect x="302" y="259" width="214" height="5" rx="2.5" fill="#5f6a77" opacity="0.4"/>
84
+ </svg>
Binary file
Binary file
Binary file
Binary file
Binary file
package/icon.svg ADDED
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="Workspace pin">
2
+ <rect x="4" y="4" width="56" height="56" rx="14" fill="#4D6BFE"/>
3
+ <path d="M18 20 H46" stroke="#FFFFFF" stroke-width="4.5" stroke-linecap="round"/>
4
+ <path d="M32 50 V28 M23 37 L32 28 L41 37" stroke="#FFFFFF" stroke-width="4.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
5
+ </svg>