其他
完整应用
deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
A-share 实时行情小组件,钉在 DSH Web GUI 上,可拖拽、可折叠。
lib/index.js 的 SYMBOLS 里改。qt.gtimg.cn),host 侧每 30s 拉一次,client 侧只渲染。localStorage,跨会话保留。# 在 DSH 工作区的 package.json 里加:
# "dependencies": { "dsh-stock-quote": "link:./dsh-stock-quote" }
# 然后:
pnpm install
或从 GitHub:
dsh plugin add gbeta/dsh-stock-quote
lib/index.js — host 半:轮询行情接口、缓存最新快照、通过 harness.handle('stockQuote.read') 暴露给 client。lib/client.js — client 半:shell.overlay 槽里的可拖拽可折叠 widget,每 30s 调 host.call('stockQuote.read') 取数据。cordis.patch.yml — 插件注册。改 lib/index.js 顶部:
SYMBOLS — 要盯的代码(sh/sz 前缀 + 6 位代码)。POLL_MS — 刷新间隔(默认 30000)。行情数据来自外部网络请求(qt.gtimg.cn),浏览器半不能直接拉(跨域 + 不想 把 请求 暴露 给 页面),所以:
lib/index.js):拥有 网络 和 定时器,每 30s 拉 一次 行情,缓存 最新 快照,通过 harness.handle('stockQuote.read') 暴露 给 client。lib/client.js):只 渲染,每 30s 调 host.call('stockQuote.read') 取 数据。这 比 纯 浏览器 的 dsh-token-speed 多 一 个 host 半,但 结构 一样。
装 完 刷新 页面,屏幕 右下 角 会 出现 一 行 行情。
+/− 按钮):展开/收起 详情 面板。lib/index.js 顶部 的 SYMBOLS 数组(sh/sz 前缀 + 6 位 代码),刷新 页面。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。