@morehao/dsh-github-trending 0.8.16 → 0.8.17
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 +1 -1
- package/client.js +31 -37
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ GitHub 趋势榜的 **DeepSeek Harness 插件**:按日 / 周 / 月周期定时
|
|
|
33
33
|
|
|
34
34
|
### 概览
|
|
35
35
|
|
|
36
|
-
一屏回答「下次什么时候跑、四项就绪检查是否齐、上次交付了什么」。顶部是插件身份条(版本 / 包名 /
|
|
36
|
+
一屏回答「下次什么时候跑、四项就绪检查是否齐、上次交付了什么」。顶部是插件身份条(版本 / 包名 / 检查更新 / GitHub,两个图标紧跟包名),点包名打开「关于」弹层;右侧常驻下次运行与就绪 N/4。
|
|
37
37
|
|
|
38
38
|

|
|
39
39
|
|
package/client.js
CHANGED
|
@@ -1346,15 +1346,15 @@ var CSS = `
|
|
|
1346
1346
|
.dshgt-id-sep{width:1px;height:16px;background:var(--gt-border);flex:none;}
|
|
1347
1347
|
.dshgt-id-pkg{appearance:none;border:0;background:none;padding:2px 4px;border-radius:5px;color:var(--gt-muted);cursor:pointer;font-size:12px;max-width:min(44vw,360px);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto;}
|
|
1348
1348
|
.dshgt-id-pkg:hover{color:var(--gt-fg);background:color-mix(in srgb,var(--gt-fg) 5%,var(--gt-bg));}
|
|
1349
|
-
|
|
1349
|
+
/* 更新 / GitHub 入口:紧跟包名,不再靠右推到底,也不加分隔线(A 方案)。 */
|
|
1350
|
+
.dshgt-idbar-actions{margin-left:2px;position:relative;display:flex;align-items:center;gap:2px;flex:none;min-width:0;}
|
|
1350
1351
|
.dshgt-id-gh{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:6px;color:var(--gt-muted);border:1px solid transparent;flex:none;}
|
|
1351
1352
|
.dshgt-id-gh:hover{color:var(--gt-fg);background:color-mix(in srgb,var(--gt-fg) 6%,var(--gt-bg));border-color:var(--gt-border);}
|
|
1352
|
-
/* 更新入口:版本徽标 + 纯图标刷新,作为一个整体;与 GitHub 图标同形制 */
|
|
1353
|
-
.dshgt-upd-unit{display:inline-flex;align-items:center;gap:4px;flex:none;}
|
|
1354
1353
|
/* 版本徽标:仅「有新版本」时出现,透明底细描边,高度对齐图标按钮中线 */
|
|
1355
1354
|
.dshgt-ver-badge{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:22px;padding:0 8px;border-radius:999px;
|
|
1356
1355
|
border:1px solid color-mix(in srgb,var(--gt-warn) 42%,transparent);background:transparent;color:var(--gt-warn);
|
|
1357
1356
|
font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;cursor:pointer;
|
|
1357
|
+
margin-left:6px;
|
|
1358
1358
|
transition:background .12s ease,border-color .12s ease;}
|
|
1359
1359
|
.dshgt-ver-badge:hover{background:color-mix(in srgb,var(--gt-warn) 12%,transparent);border-color:color-mix(in srgb,var(--gt-warn) 60%,transparent);}
|
|
1360
1360
|
.dshgt-ver-badge:focus-visible{outline:2px solid var(--gt-accent);outline-offset:1px;}
|
|
@@ -1374,8 +1374,8 @@ var CSS = `
|
|
|
1374
1374
|
.dshgt-refresh[data-state="error"]{color:var(--gt-err);}
|
|
1375
1375
|
.dshgt-refresh[data-state="ok-flash"]{color:var(--gt-ok);}
|
|
1376
1376
|
@keyframes dshgt-refresh-spin{to{transform:rotate(360deg);}}
|
|
1377
|
-
/*
|
|
1378
|
-
.dshgt-confirm-pop{position:absolute;top:calc(100% + 8px);
|
|
1377
|
+
/* 确认气泡:贴刷新图标左下方弹出(图标在条左侧,贴右会让气泡朝右伸出屏幕) */
|
|
1378
|
+
.dshgt-confirm-pop{position:absolute;top:calc(100% + 8px);left:0;z-index:30;box-sizing:border-box;min-width:210px;max-width:280px;
|
|
1379
1379
|
display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:12px;background:var(--gt-card);border:1px solid var(--gt-border);
|
|
1380
1380
|
box-shadow:0 12px 32px rgba(0,0,0,.28);}
|
|
1381
1381
|
.dshgt-confirm-title{font-size:12.5px;color:var(--gt-fg);line-height:1.45;}
|
|
@@ -6030,43 +6030,37 @@ function IdentityBar(props) {
|
|
|
6030
6030
|
{ type: "button", className: "dshgt-id-pkg dshgt-mono", title: t("about.title"), onClick: () => props.onOpenAbout() },
|
|
6031
6031
|
plugin.name
|
|
6032
6032
|
),
|
|
6033
|
-
//
|
|
6033
|
+
// 更新与仓库入口:紧跟包名,作为身份条的第二段。
|
|
6034
|
+
// 有新版本时版本徽标排在 GitHub 之后,图标位置不随状态跳动。
|
|
6034
6035
|
h(
|
|
6035
6036
|
"div",
|
|
6036
6037
|
{ className: "dshgt-idbar-actions" },
|
|
6037
6038
|
h(
|
|
6038
|
-
"
|
|
6039
|
-
{
|
|
6040
|
-
|
|
6041
|
-
"
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
) : null,
|
|
6051
|
-
h(
|
|
6052
|
-
"button",
|
|
6053
|
-
{
|
|
6054
|
-
type: "button",
|
|
6055
|
-
className: "dshgt-refresh",
|
|
6056
|
-
"data-state": st.state,
|
|
6057
|
-
disabled: busy,
|
|
6058
|
-
title: st.tip,
|
|
6059
|
-
"aria-label": st.tip,
|
|
6060
|
-
"aria-expanded": confirmOpen ? "true" : void 0,
|
|
6061
|
-
onClick: onRefreshClick
|
|
6062
|
-
},
|
|
6063
|
-
refreshIcon()
|
|
6064
|
-
)
|
|
6039
|
+
"button",
|
|
6040
|
+
{
|
|
6041
|
+
type: "button",
|
|
6042
|
+
className: "dshgt-refresh",
|
|
6043
|
+
"data-state": st.state,
|
|
6044
|
+
disabled: busy,
|
|
6045
|
+
title: st.tip,
|
|
6046
|
+
"aria-label": st.tip,
|
|
6047
|
+
"aria-expanded": confirmOpen ? "true" : void 0,
|
|
6048
|
+
onClick: onRefreshClick
|
|
6049
|
+
},
|
|
6050
|
+
refreshIcon()
|
|
6065
6051
|
),
|
|
6066
|
-
plugin.repository === void 0 ? null :
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6052
|
+
plugin.repository === void 0 ? null : h("a", { className: "dshgt-id-gh", href: plugin.repository, target: "_blank", rel: "noreferrer", title: t("about.repo"), "aria-label": t("about.repo") }, githubIcon()),
|
|
6053
|
+
showBadge ? h(
|
|
6054
|
+
"button",
|
|
6055
|
+
{
|
|
6056
|
+
type: "button",
|
|
6057
|
+
className: "dshgt-ver-badge",
|
|
6058
|
+
title: t("shell.update.badgeTitle", { version: latestVersion }),
|
|
6059
|
+
"aria-label": t("shell.update.badgeTitle", { version: latestVersion }),
|
|
6060
|
+
onClick: () => setConfirming((v) => !v)
|
|
6061
|
+
},
|
|
6062
|
+
`v${latestVersion}`
|
|
6063
|
+
) : null,
|
|
6070
6064
|
confirmOpen ? h(
|
|
6071
6065
|
"div",
|
|
6072
6066
|
{ className: "dshgt-confirm-pop", role: "dialog", "aria-label": t("shell.update.confirmHint") },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morehao/dsh-github-trending",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.17",
|
|
4
4
|
"description": "GitHub 趋势日报的 DeepSeek Harness 插件:按日 / 周 / 月周期定时 spawn 本地 trendradar 核心,抓取 Trending、生成中文简介与周期总结,并可选把订阅仓库的新 Release 合成中文摘要,一起提交到你的仓库、自动开 PR 合并;内置概览 / 榜单 / 运行记录 / 订阅 / 设置工作台。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|