dsh-mini 0.1.3 → 0.1.4
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 +14 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -105,7 +105,20 @@ PNG → base64 → `postMessage` 给页面 → 走 Lexical 粘贴事件塞进输
|
|
|
105
105
|
数据目录固定是 `%LOCALAPPDATA%\dsh-hud\`(`config.ini`、`window.txt`、日志、WebView2 用户数据),
|
|
106
106
|
改名前后没动过,装到别的机器上也是这个路径、按用户隔离。
|
|
107
107
|
|
|
108
|
-
##
|
|
108
|
+
## 安装
|
|
109
|
+
|
|
110
|
+
### A. 从 npm 装(别人用这个)
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
cd ~/.dsh/profiles/desktop
|
|
114
|
+
npm install dsh-mini
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
然后在同一个 `package.json` 的 `dsh.profile.bundles` 末尾加一项 `"dsh-mini"`,重启 DSH(或 `plugin_manager set_bundle` 关一次再开一次)。
|
|
118
|
+
|
|
119
|
+
装完不需要额外配置:插件会在 DSH 启动 2.5 秒后自己拉起常驻服务(划词药丸 + 全局热键 + 托盘),小窗由标题栏的「弹出此窗口」按需打开。**前提是机器上已有 WebView2 Runtime**(见上面「系统要求」)。
|
|
120
|
+
|
|
121
|
+
### B. 本机 link(改代码时用)
|
|
109
122
|
|
|
110
123
|
profile 走 `link:` 依赖,和 `tju-plugin` 一样:
|
|
111
124
|
|