dsh-quark 0.1.0 → 0.1.3
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 +17 -3
- package/lib/client.js +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -116,9 +116,19 @@ node <DSH_HOME>/skills/quarkclouddrive/scripts/quark-drive.cjs get-user-info
|
|
|
116
116
|
|
|
117
117
|
## 安装插件
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
**方式一:从 npm 装(推荐)**
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
插件已发布到 npm,包名就是 `dsh-quark`:
|
|
122
|
+
|
|
123
|
+
```js
|
|
124
|
+
plugin_manager({ action: 'install_bundle', target: 'dsh-quark' })
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
更简单的办法是打开插件页「添加插件」,在「包名或地址」里填 `dsh-quark` 直接装。这种装法依赖写成版本号,升级跟着 `npm update` 走,不用管 GitHub 通不通。
|
|
128
|
+
|
|
129
|
+
**方式二:直接装打包好的 tgz**
|
|
130
|
+
|
|
131
|
+
如果 npm 装不上(网络、镜像问题),让 agent 执行:
|
|
122
132
|
|
|
123
133
|
```js
|
|
124
134
|
plugin_manager({
|
|
@@ -135,7 +145,7 @@ https://github.com/Bennie96/dsh-quark/releases/download/v0.1.0/dsh-quark.tgz
|
|
|
135
145
|
|
|
136
146
|
这种装法把依赖写成一条 URL,和 `dsh-ima` 等插件的安装形态一致。
|
|
137
147
|
|
|
138
|
-
|
|
148
|
+
**方式三:clone 仓库后装本地目录**
|
|
139
149
|
|
|
140
150
|
```bash
|
|
141
151
|
git clone https://github.com/Bennie96/dsh-quark.git ~/dsh-quark
|
|
@@ -302,6 +312,10 @@ DSH 输入框是 Lexical 受控编辑器,不是 textarea,改 DOM 会被覆
|
|
|
302
312
|
|
|
303
313
|
样式只用 `--dsw-alias-*` 主题 token,控件自己画,不动 `document.body`,资源都挂在 `ctx.effect` 上随插件卸载释放。
|
|
304
314
|
|
|
315
|
+
## 致谢
|
|
316
|
+
|
|
317
|
+
整体做法借鉴了 [dsh-ima](https://github.com/ikevss/dsh-ima);网盘操作全部由夸克官方的 [quarkclouddrive](https://b.quark.cn/apps/quarkcloud_skill_info/routes/V-sc7gOBT) skill 提供,本插件只做包装。
|
|
318
|
+
|
|
305
319
|
## 隐私
|
|
306
320
|
|
|
307
321
|
- 插件不收集、不上传任何数据,没有埋点。
|
package/lib/client.js
CHANGED
|
@@ -79,6 +79,8 @@ window.__ModuleLoader__.load({
|
|
|
79
79
|
'.dq-set-text{display:flex;flex-direction:column;gap:3px;flex:1 1 auto;min-width:0}',
|
|
80
80
|
'.dq-set-title{font-weight:600}',
|
|
81
81
|
'.dq-set-desc{font-size:12px;color:var(--dsw-alias-label-secondary);line-height:1.5}',
|
|
82
|
+
'.dq-set-plain{align-items:flex-start}',
|
|
83
|
+
'.dq-thanks-title{font-weight:600;font-size:12px;color:var(--dsw-alias-label-secondary)}',
|
|
82
84
|
'.dq-target{display:flex;flex-direction:column;gap:8px;min-height:0}',
|
|
83
85
|
'.dq-mv{display:flex;flex-direction:column;gap:8px;min-height:0}',
|
|
84
86
|
'.dq-mv-crumbs{display:flex;align-items:center;gap:2px;flex-wrap:wrap}',
|
|
@@ -1361,6 +1363,12 @@ window.__ModuleLoader__.load({
|
|
|
1361
1363
|
},
|
|
1362
1364
|
}, '现在打开'),
|
|
1363
1365
|
),
|
|
1366
|
+
h('div', { className: 'dq-set-row dq-set-plain' },
|
|
1367
|
+
h('div', { className: 'dq-set-text' },
|
|
1368
|
+
h('div', { className: 'dq-thanks-title' }, '致谢'),
|
|
1369
|
+
h('div', { className: 'dq-set-desc' }, '整体做法借鉴了 dsh-ima(github.com/ikevss/dsh-ima);网盘操作全部由夸克官方的 quarkclouddrive skill 提供,本插件只做包装。'),
|
|
1370
|
+
),
|
|
1371
|
+
),
|
|
1364
1372
|
)
|
|
1365
1373
|
}
|
|
1366
1374
|
|