dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DSH 桌面端输入框里的实时时钟 | Live clock chip in the DSH composer tool row
DSH 桌面端输入框工具行里的实时时钟,就在发送按钮前面。
A live clock chip in the DSH composer tool row, before the submit action.
… ◷ 22:30:44 · 9月29日 周二 ⏎
9月29日 周二 / Sep 29 Mon)。localStorage。GMT+08:00 与 ISO 周次。≤880px 收起星期,≤680px 收起日期。样式对齐工具行里已有的无边框控件,所以它读起来像第 N 个控件,而不是贴上去的外挂。时钟读的是浏览器本机时间,不请求 Host —— Host 半边是空的。
本仓库通过 dsh.bundle.patch 声明了自带的 cordis.patch.yml,不需要手写补丁行:
dsh plugin --profile desktop add github:wangxiang0605qvq/dsh-clock
把 lib/ 下的两个文件当作插件的两个半边:
~/.dsh/profiles/desktop/plugins/clock/
├── package.json # name 必须与下面 client.js 的 load id 一致
├── index.js # 即 lib/index.js
└── client.js # 即 lib/client.js
补丁行用相对路径,由 patch 文件所在目录解析:
- insert:
- id: clock
name: ./plugins/clock/index.js
window.__ModuleLoader__.load({ id })必须与 package.json 的name完全一致,否则 browser 模块表找不到 factory,插件会静默不生效。
| 文件 | 作用 |
|---|---|
lib/client.js | 浏览器半边:样式、秒边界时钟源、Intl 本地化、微表盘、胶囊组件、conversation.input.right 注册 |
lib/index.js | Host 半边:空的 apply,只为让 Loader 有可挂载的条目 |
cordis.patch.yml | bundle 层:声明本包自带的挂载行 |
conversation.input.right 是 session 作用域,空白新会话页上没有。prefers-reduced-motion: reduce。MIT