dsh-skill-browser 1.5.7 → 1.5.9
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/lib/client.js +32 -6
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -697,8 +697,25 @@ window.__ModuleLoader__.load({
|
|
|
697
697
|
var CSS = [
|
|
698
698
|
/* 技能球 */
|
|
699
699
|
'#' + BALL_ID + '{position:fixed;right:74px;bottom:18px;width:46px;height:46px;border-radius:50%;' +
|
|
700
|
-
'background:
|
|
701
|
-
'
|
|
700
|
+
'background:radial-gradient(circle at 50% 60%, rgba(255,255,255,.98) 0%, rgba(214,232,247,.9) 9%, rgba(111,158,232,.7) 18%, rgba(165,46,255,.5) 32%, rgba(206,44,203,.35) 46%, rgba(10,14,30,.9) 66%, rgba(4,6,14,.99) 100%);' +
|
|
701
|
+
'color:#fff;font-size:17px;display:flex;align-items:center;justify-content:center;' +
|
|
702
|
+
'cursor:grab;z-index:2147481000;user-select:none;touch-action:none;transition:transform .15s ease;' +
|
|
703
|
+
'box-shadow:0 0 22px rgba(111,158,232,.45),0 0 4px rgba(206,44,203,.3),0 4px 18px rgba(0,0,0,.55),' +
|
|
704
|
+
'inset 0 1px 3px rgba(255,255,255,.4),inset 0 -8px 16px rgba(206,44,203,.14),inset 0 0 14px rgba(80,120,255,.2);' +
|
|
705
|
+
'text-shadow:0 0 10px rgba(255,255,255,.5),0 1px 3px rgba(0,0,0,.6)}',
|
|
706
|
+
'#' + BALL_ID + ' > *{position:relative;z-index:2}',
|
|
707
|
+
'#' + BALL_ID + '::before{content:"";position:absolute;inset:1px;border-radius:50%;z-index:-1;' +
|
|
708
|
+
'background:radial-gradient(ellipse 85% 26% at 50% 60%, rgba(255,255,255,1) 0%, rgba(235,245,255,.85) 18%, rgba(160,200,255,.5) 38%, rgba(190,120,255,.35) 55%, transparent 75%),' +
|
|
709
|
+
'radial-gradient(ellipse 70% 18% at 45% 42%, rgba(111,158,232,.55) 0%, transparent 70%),' +
|
|
710
|
+
'radial-gradient(ellipse 70% 18% at 55% 74%, rgba(206,44,203,.4) 0%, transparent 70%);' +
|
|
711
|
+
'filter:blur(1px);animation:dsbBandFlow 4.5s ease-in-out infinite}',
|
|
712
|
+
'#' + BALL_ID + '::after{content:"";position:absolute;inset:-1px;border-radius:50%;z-index:-1;' +
|
|
713
|
+
'background:conic-gradient(from 200deg, rgba(255,255,255,.55), rgba(140,180,255,.35), rgba(206,44,203,.4), rgba(255,255,255,.15), rgba(111,158,232,.4), rgba(255,255,255,.55));' +
|
|
714
|
+
'-webkit-mask:radial-gradient(circle, transparent 63%, #000 66%, #000 72%, transparent 76%);' +
|
|
715
|
+
'mask:radial-gradient(circle, transparent 63%, #000 66%, #000 72%, transparent 76%);' +
|
|
716
|
+
'animation:dsbRimSpin 7s linear infinite;filter:blur(.5px)}',
|
|
717
|
+
'@keyframes dsbBandFlow{0%,100%{transform:translateY(-3px) scaleY(.94);opacity:.8}50%{transform:translateY(3px) scaleY(1.12);opacity:1}}',
|
|
718
|
+
'@keyframes dsbRimSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',
|
|
702
719
|
'#' + BALL_ID + ':hover{transform:scale(1.08)}',
|
|
703
720
|
'#' + BALL_ID + '.dsb-ghost{width:12px!important;height:12px!important;font-size:0!important;right:10px!important;bottom:10px!important;opacity:.3}',
|
|
704
721
|
'#' + BALL_ID + '.dsb-ghost:hover{opacity:.8}',
|
|
@@ -772,7 +789,7 @@ window.__ModuleLoader__.load({
|
|
|
772
789
|
markRecBadge(id, recBadgeInstalled(id));
|
|
773
790
|
}
|
|
774
791
|
});
|
|
775
|
-
}
|
|
792
|
+
}
|
|
776
793
|
function resetBallToDefault() {
|
|
777
794
|
try { localStorage.removeItem(BALL_POS_KEY); } catch (e) {}
|
|
778
795
|
try { writeStore(BALL_VIS_KEY, true); } catch (e) {}
|
|
@@ -913,6 +930,15 @@ window.__ModuleLoader__.load({
|
|
|
913
930
|
}));
|
|
914
931
|
rows.push(React.createElement("div", { key: "hint", style: { fontSize: "12px", color: "#8b93a8" } },
|
|
915
932
|
"悬浮球可拖动;清单面板始终居中;本分区就在 DSH 设置中,随时可改悬浮球显隐"));
|
|
933
|
+
// ── 安装与更新须知(v1.5.7:24h 供应链政策 + 推荐清单说明)──
|
|
934
|
+
rows.push(React.createElement("div", { key: "notice-block", style: { marginTop: "12px", padding: "10px 12px", background: "rgba(255,255,255,.03)", border: "1px solid rgba(255,255,255,.06)", borderRadius: "10px", fontSize: "12px", color: "#9aa1b5", lineHeight: "1.7" } },
|
|
935
|
+
React.createElement("div", { style: { fontWeight: "600", color: "#cfd4dc", marginBottom: "4px" } }, "📌 安装与更新须知"),
|
|
936
|
+
React.createElement("div", null, "1. 本分区由「技能浏览器」提供;若同时安装了字体插件,两个悬浮球的显隐都在这里控制。"),
|
|
937
|
+
React.createElement("div", null, "2. 推荐插件列表实时显示「已安装 / 未安装」状态:绿色「已安装」= 可直接使用;红色「未安装」= 点击 ⭐ Star 前往仓库,或到插件市场搜索安装。"),
|
|
938
|
+
React.createElement("div", { style: { color: "#e0b0b0" } }, "3. 【重要】安装或更新插件时,若报错含 minimumReleaseAge 或 ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION:这不是插件坏了,是 DSH 对刚发布 npm 包的 24 小时安全观察期(防止刚发布的投毒包)。"),
|
|
939
|
+
React.createElement("div", { style: { color: "#e0b0b0" } }, "4. 遇到 24h 报错的处理:等一天再安装/更新即可自动通过,插件本体没有任何问题。插件作者连发多版时窗口期会顺延一天。"),
|
|
940
|
+
React.createElement("div", null, "5. 悬浮球可拖动换位置;拖到屏幕外找不到时,点上方 🎯 按钮一键复位(检测到字体插件时双球一起归位)。")
|
|
941
|
+
));
|
|
916
942
|
// ── 一键恢复默认位置(v1.5.3 用户要求):悬浮球被拖出屏幕外卡住时,
|
|
917
943
|
// 点此按钮立即回到默认右下角 (right:26px bottom:118px) 46px 常规大小,
|
|
918
944
|
// 并顺带恢复显示、解除收起小圆点状态。无需重启。──
|
|
@@ -921,7 +947,7 @@ window.__ModuleLoader__.load({
|
|
|
921
947
|
style: { alignSelf: "flex-start", fontSize: "13px", cursor: "pointer",
|
|
922
948
|
background: "rgba(255,210,122,.12)", border: "1px solid rgba(255,210,122,.35)",
|
|
923
949
|
borderRadius: "6px", padding: "6px 12px", color: "#ffd27a" }
|
|
924
|
-
}, isFontEnhancerInstalled() ? "🎯 一键恢复悬浮球默认位置(右下角,双球)" : "🎯 一键恢复悬浮球默认位置(右下角)"));
|
|
950
|
+
}, isFontEnhancerInstalled() ? "🎯 一键恢复悬浮球默认位置(右下角,双球)" : "🎯 一键恢复悬浮球默认位置(右下角)"));
|
|
925
951
|
// ── 推荐插件(v1.5.7 统一三条清单:字体/技能/照片,探测式安装徽标)──
|
|
926
952
|
rows.push(React.createElement("div", { key: "rec-head", style: { fontWeight: "600", marginTop: "12px", marginBottom: "4px", borderTop: "1px solid rgba(255,255,255,.08)", paddingTop: "10px" } }, "推荐插件"));
|
|
927
953
|
function recRow(key, recId, icon, text, repo) {
|
|
@@ -1000,8 +1026,8 @@ window.__ModuleLoader__.load({
|
|
|
1000
1026
|
applyFontBallVisibility();
|
|
1001
1027
|
applyBallVisibility();
|
|
1002
1028
|
} catch (e) {}
|
|
1003
|
-
try { console.log("[dsh-skill-browser] client mounted (v1.4.1 slot-only)"); } catch (e3) {}
|
|
1004
|
-
setTimeout(applyRecBadges, 1200);
|
|
1029
|
+
try { console.log("[dsh-skill-browser] client mounted (v1.4.1 slot-only)"); } catch (e3) {}
|
|
1030
|
+
setTimeout(applyRecBadges, 1200);
|
|
1005
1031
|
setInterval(applyRecBadges, 5000);
|
|
1006
1032
|
};
|
|
1007
1033
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-skill-browser",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.9",
|
|
4
4
|
"description": "DSH 技能浏览器:悬浮球面板浏览共享技能库(分类/中文简介/搜索/失效台账/全文查看),含 DSH 设置页悬浮球显隐开关与一键恢复默认位置按钮、技能库位置可配置(原生目录选择框)与技能失效台账自动登记(自动/人工分开显示);推荐插件位仅保留面板设置展开区一处。Skill library browser panel with categories, Chinese descriptions, configurable skill root with native directory chooser, one-click ball position reset and automatic skill-failure ledger.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|