dsh-quick-phrases 0.3.4 → 0.3.5
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.md
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|

|
|
13
13
|
|
|
14
|
+
> 文档里的截图都是**界面示意图**:由 `test/preview.mjs` 把真实组件套上宿主主题 token 渲染出来,不是真机截屏。实际观感以运行中的界面为准。
|
|
15
|
+
|
|
14
16
|
## 功能
|
|
15
17
|
|
|
16
18
|
- **一排短语按钮**:显示名称与发送内容分离,默认四条:继续 / 提交 / 推送 / 发版。
|
|
@@ -53,17 +55,17 @@ Plugins → Add plugin → 选择本仓库目录;或让 DSH 里的 agent 执
|
|
|
53
55
|
|
|
54
56
|
| 位置 | 插槽 | 说明 |
|
|
55
57
|
| --- | --- | --- |
|
|
56
|
-
| 输入框下方(默认) | `conversation.composer.dock` |
|
|
58
|
+
| 输入框下方(默认) | `conversation.composer.dock` | 常驻在输入卡片下方的一整行,最宽松;同样与卡片内边对齐。 |
|
|
57
59
|
| 输入框上方 | `conversation.input.dock` | 卡片上方一整行;宽度与居中按宿主 dock 几何计算,和卡片文字内边对齐。 |
|
|
58
60
|
| 工具行右侧 | `conversation.input.right` | 挤进输入框底部工具行;空间有限,超出部分横向滚动。 |
|
|
59
61
|
|
|
60
|
-

|
|
61
63
|
|
|
62
64
|
### 管理页
|
|
63
65
|
|
|
64
66
|
设置 → **快捷短语**:上面两个下拉框决定位置与点按行为,下面一条短语一张卡片。
|
|
65
67
|
|
|
66
|
-

|
|
67
69
|
|
|
68
70
|
- 拖动左侧 `⠿` 手柄排序,或用 `↑` / `↓` 一格一格挪;列表顺序就是按钮的从左到右顺序。
|
|
69
71
|
- 卡片顶部那行是**显示名称**,直接点进去改;下面大框是**发送内容**。
|
package/client.js
CHANGED
|
@@ -37,7 +37,7 @@ window.__ModuleLoader__.load({
|
|
|
37
37
|
* row moves between slots without an extra round of registration.
|
|
38
38
|
*/
|
|
39
39
|
var PLACEMENTS = [
|
|
40
|
-
{ slot: 'conversation.composer.dock', value: 'composer-dock', tag: 'dock', order: DOCK_ORDER, compact: false, key: 'manager.placementDock' },
|
|
40
|
+
{ slot: 'conversation.composer.dock', value: 'composer-dock', tag: 'dock', order: DOCK_ORDER, compact: false, inset: true, key: 'manager.placementDock' },
|
|
41
41
|
// `dock` rows live in the composer stack, whose children stretch to the
|
|
42
42
|
// whole column; the card itself is narrower. `inset: true` copies the
|
|
43
43
|
// host's own dock geometry (QueueDock/TodoPanel) so the row lines up with
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -91,7 +91,7 @@ margin: 0 auto;
|
|
|
91
91
|
|
|
92
92
|
`test/smoke.mjs` 把真实的 `client.js` 放进 `vm` 沙箱,用最小假 React(按组件名分配 hook 单元)和假 ModuleLoader 跑起来,直接调组件自己的 `onClick` / `onChange`,断言落在 `localStorage` 和渲染树上的结果。改行为时先改这里——它是唯一能在没有宿主的情况下验证「显示与发送分离」「位置切换」「拖动排序」是否还成立的护栏。
|
|
93
93
|
|
|
94
|
-
`test/preview.mjs` 把组件渲染成静态 HTML,拼上宿主主题 CSS,可用无头 Chromium
|
|
94
|
+
`test/preview.mjs` 把组件渲染成静态 HTML,拼上宿主主题 CSS,可用无头 Chromium 截图,用来肉眼核对深浅两套主题。`docs/images/` 下的图就是它产出的**界面示意图**(图内带「界面示意图」标题),不是真机截屏。
|
|
95
95
|
|
|
96
96
|
## 兼容性注意
|
|
97
97
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/images/row-dark.png
CHANGED
|
Binary file
|