dsh-workbuddy-files 0.1.3 → 0.1.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 +35 -1
- package/lib/client.js +4 -3
- package/package.json +1 -1
- package/src/client/css.ts +5 -2
package/README.md
CHANGED
|
@@ -133,10 +133,44 @@ dsh web # 重启 web 界面
|
|
|
133
133
|
|
|
134
134
|
`dsh plugin add` 会:在 `$DSH_HOME/profiles/web` 里 `pnpm add` 该包,并因为本包声明了 `dsh.bundle.patch`,自动把 `dsh-workbuddy-files` 追加进 profile 的 `dsh.profile.bundles` 层栈(可在 `~/.dsh/profiles/web/package.json` 中核对)。卸载:`dsh plugin --profile web remove dsh-workbuddy-files`。
|
|
135
135
|
|
|
136
|
-
### 方式二:npm
|
|
136
|
+
### 方式二:npm registry 安装(在其他设备上安装,推荐)
|
|
137
|
+
|
|
138
|
+
前置:目标设备已安装 DSH 与 pnpm。
|
|
137
139
|
|
|
138
140
|
```powershell
|
|
141
|
+
npm i -g pnpm # 若尚未安装
|
|
142
|
+
# DSH 未安装时:npm i -g @deepseek-ai/dsh
|
|
143
|
+
|
|
139
144
|
dsh plugin --profile web add dsh-workbuddy-files
|
|
145
|
+
dsh web # 重启 web 界面,刷新页面即生效
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### 方式三:GitHub 直装(npm registry 不可达时)
|
|
149
|
+
|
|
150
|
+
仓库自带 `lib/` 构建产物(clone 即可用,无需构建):
|
|
151
|
+
|
|
152
|
+
```powershell
|
|
153
|
+
dsh plugin --profile web add "github:miaoxintechnology/dsh-workbuddy-files"
|
|
154
|
+
dsh web
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### 方式四:离线拷贝
|
|
158
|
+
|
|
159
|
+
把整个项目目录拷到目标设备,然后:
|
|
160
|
+
|
|
161
|
+
```powershell
|
|
162
|
+
dsh plugin --profile web add file:<项目目录绝对路径>
|
|
163
|
+
dsh web
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### 更新与卸载
|
|
167
|
+
|
|
168
|
+
```powershell
|
|
169
|
+
# 更新到指定版本(显式版本号可绕过 pnpm 的「新版本最小发布年龄」供应链门禁)
|
|
170
|
+
dsh plugin --profile web add dsh-workbuddy-files@0.1.5
|
|
171
|
+
|
|
172
|
+
# 卸载
|
|
173
|
+
dsh plugin --profile web remove dsh-workbuddy-files
|
|
140
174
|
```
|
|
141
175
|
|
|
142
176
|
### 配置(可选)
|
package/lib/client.js
CHANGED
|
@@ -403,10 +403,11 @@
|
|
|
403
403
|
"/* ---- 引用气泡换肤:主题色圆角矩形(原子删除由输入机原生保证) ---- */",
|
|
404
404
|
"/* 关键:padding 用等量负 margin 抵消、描边用 box-shadow(不占布局)—— */",
|
|
405
405
|
"/* 气泡外部宽度与 textarea 字符宽度完全一致,backdrop 与光标严格对齐 */",
|
|
406
|
-
"[data-decoration=\"chip\"]{padding:0 8px !important;margin:0 -8px !important;border-radius:8px;background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4c9aff) 14%,transparent) !important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dsw-alias-brand-primary,#4c9aff) 45%,transparent);color:var(--dsw-alias-brand-primary,#4c9aff) !important;font-weight:
|
|
406
|
+
"[data-decoration=\"chip\"]{padding:0 8px !important;margin:0 -8px !important;border-radius:8px;background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4c9aff) 14%,transparent) !important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dsw-alias-brand-primary,#4c9aff) 45%,transparent);color:var(--dsw-alias-brand-primary,#4c9aff) !important;font-weight:inherit}",
|
|
407
|
+
"[data-decoration=\"chip\"] svg{display:none !important}",
|
|
408
|
+
"[data-decoration=\"chip\"] [class*=\"chipTriggerGlyph\"]{font-size:inherit !important;opacity:.8}",
|
|
407
409
|
"[data-decoration=\"chip\"]:hover{background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4c9aff) 22%,transparent) !important}",
|
|
408
|
-
"[data-decoration=\"chip\"][data-invalid=\"true\"]{color:var(--dsw-alias-state-error-primary,#e56a64) !important;background:color-mix(in srgb,var(--dsw-alias-state-error-primary,#e56a64) 14%,transparent) !important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dsw-alias-state-error-primary,#e56a64) 45%,transparent) !important}"
|
|
409
|
-
"[data-decoration=\"chip\"] [class*=\"chipTriggerGlyph\"]{font-size:12px;opacity:.8}"
|
|
410
|
+
"[data-decoration=\"chip\"][data-invalid=\"true\"]{color:var(--dsw-alias-state-error-primary,#e56a64) !important;background:color-mix(in srgb,var(--dsw-alias-state-error-primary,#e56a64) 14%,transparent) !important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dsw-alias-state-error-primary,#e56a64) 45%,transparent) !important}"
|
|
410
411
|
].join("\n");
|
|
411
412
|
//#endregion
|
|
412
413
|
//#region src/client/definitions.ts
|
package/package.json
CHANGED
package/src/client/css.ts
CHANGED
|
@@ -25,8 +25,11 @@ export const CSS = [
|
|
|
25
25
|
'/* ---- 引用气泡换肤:主题色圆角矩形(原子删除由输入机原生保证) ---- */',
|
|
26
26
|
'/* 关键:padding 用等量负 margin 抵消、描边用 box-shadow(不占布局)—— */',
|
|
27
27
|
'/* 气泡外部宽度与 textarea 字符宽度完全一致,backdrop 与光标严格对齐 */',
|
|
28
|
-
'[data-decoration="chip"]{padding:0 8px !important;margin:0 -8px !important;border-radius:8px;background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4c9aff) 14%,transparent) !important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dsw-alias-brand-primary,#4c9aff) 45%,transparent);color:var(--dsw-alias-brand-primary,#4c9aff) !important;font-weight:
|
|
28
|
+
'[data-decoration="chip"]{padding:0 8px !important;margin:0 -8px !important;border-radius:8px;background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4c9aff) 14%,transparent) !important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dsw-alias-brand-primary,#4c9aff) 45%,transparent);color:var(--dsw-alias-brand-primary,#4c9aff) !important;font-weight:inherit}',
|
|
29
|
+
/* 隐藏 chip 内的类型图标(16px,比 textarea 对应字符宽约 1 个字符 → 右偏移元凶) */
|
|
30
|
+
'[data-decoration="chip"] svg{display:none !important}',
|
|
31
|
+
/* @ 徽标保持默认字号(缩小会引入反向偏移) */
|
|
32
|
+
'[data-decoration="chip"] [class*="chipTriggerGlyph"]{font-size:inherit !important;opacity:.8}',
|
|
29
33
|
'[data-decoration="chip"]:hover{background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4c9aff) 22%,transparent) !important}',
|
|
30
34
|
'[data-decoration="chip"][data-invalid="true"]{color:var(--dsw-alias-state-error-primary,#e56a64) !important;background:color-mix(in srgb,var(--dsw-alias-state-error-primary,#e56a64) 14%,transparent) !important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dsw-alias-state-error-primary,#e56a64) 45%,transparent) !important}',
|
|
31
|
-
'[data-decoration="chip"] [class*="chipTriggerGlyph"]{font-size:12px;opacity:.8}',
|
|
32
35
|
].join('\n')
|