@zaofan/dsh-qqbot 1.10.36 → 1.10.37
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/client/qqbot-settings.js +32 -1
- package/package.json +1 -1
package/client/qqbot-settings.js
CHANGED
|
@@ -6726,6 +6726,14 @@ var QQS_THEME_CSS = [
|
|
|
6726
6726
|
+ 'background:#7c6cf0;color:#fff!important;cursor:pointer;flex:0 0 auto;}',
|
|
6727
6727
|
'.qqs-mk-btn:hover{background:#6b5ae6;}',
|
|
6728
6728
|
'.qqs-mk-btn:disabled{opacity:.55;cursor:default;}',
|
|
6729
|
+
|
|
6730
|
+
/* ── 卡片底部「作者说明」链接(2026-10-25)──
|
|
6731
|
+
一键跳到 GitHub 上这个包的目录,看作者自己写的 README。
|
|
6732
|
+
用 <a target=_blank>,DSH 的 Electron 壳会交给系统浏览器打开。 */
|
|
6733
|
+
'.qqs-mk-link{display:inline-block;margin-top:10px;font-size:11.5px;line-height:1.4;'
|
|
6734
|
+
+ 'color:#7c6cf0!important;text-decoration:none;border-bottom:1px dashed rgba(124,108,240,.4);'
|
|
6735
|
+
+ 'padding-bottom:1px;width:fit-content;cursor:pointer;}',
|
|
6736
|
+
'.qqs-mk-link:hover{color:#5b4fd6!important;border-bottom-color:#5b4fd6;border-bottom-style:solid;}',
|
|
6729
6737
|
'.qqs-mk-ghost{padding:4px 14px;font-size:12px;border-radius:5px;border:1px solid #d0d5dd;'
|
|
6730
6738
|
+ 'background:#ffffff;color:#1f2329!important;cursor:pointer;flex:0 0 auto;}',
|
|
6731
6739
|
'.qqs-mk-ghost:hover{border-color:#7c6cf0;color:#6b5ae6!important;}',
|
|
@@ -6872,7 +6880,30 @@ var QQS_THEME_CSS = [
|
|
|
6872
6880
|
(p.tags && p.tags.length)
|
|
6873
6881
|
? h('div', { style: { display: 'flex', gap: 6, flexWrap: 'wrap' } },
|
|
6874
6882
|
p.tags.map(function (t, i) { return h('span', { key: i, className: 'qqs-mk-tag' }, String(t)) }))
|
|
6875
|
-
: null
|
|
6883
|
+
: null,
|
|
6884
|
+
// 2026-10-25:卡片底部加「作者说明 · README ↗」
|
|
6885
|
+
// 点开直接到 GitHub 上这个包的目录,能看到作者自己写的 README(安装说明/配置项/截图)。
|
|
6886
|
+
// 优先用 manifest 里的 homepage;没填或指向市场仓库自己 → 就用 packs/<id>/ 的固定地址。
|
|
6887
|
+
h('a', {
|
|
6888
|
+
className: 'qqs-mk-link',
|
|
6889
|
+
href: (function () {
|
|
6890
|
+
var home = String(p.homepage || p.repo || '');
|
|
6891
|
+
if (home && home.indexOf('dsh-qqbot-plugins') < 0) return home;
|
|
6892
|
+
return 'https://github.com/zaofan-make/dsh-qqbot-plugins/tree/main/packs/' + encodeURIComponent(String(id));
|
|
6893
|
+
})(),
|
|
6894
|
+
target: '_blank',
|
|
6895
|
+
rel: 'noreferrer noopener',
|
|
6896
|
+
title: '在 GitHub 上打开这个包的目录(含作者 README)',
|
|
6897
|
+
onClick: function (e) {
|
|
6898
|
+
// DSH 的 Electron 壳里 target=_blank 有时被拦,兜底手动开新窗口
|
|
6899
|
+
try {
|
|
6900
|
+
if (e && e.preventDefault) {
|
|
6901
|
+
e.preventDefault();
|
|
6902
|
+
window.open(e.currentTarget.href, '_blank', 'noopener');
|
|
6903
|
+
}
|
|
6904
|
+
} catch (x) { /* 让它走默认行为 */ }
|
|
6905
|
+
},
|
|
6906
|
+
}, '作者说明 · README ↗'))
|
|
6876
6907
|
})))
|
|
6877
6908
|
}
|
|
6878
6909
|
|