dsh-skill-browser 1.5.8 → 1.5.10

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.
Files changed (2) hide show
  1. package/lib/client.js +24 -13
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -697,18 +697,29 @@ 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:linear-gradient(135deg,#6a5cff,#2fb7ff);color:#fff;font-size:22px;display:flex;align-items:center;justify-content:center;' +
701
- 'cursor:grab;z-index:2147481000;box-shadow:0 4px 16px rgba(40,80,255,.35);user-select:none;touch-action:none;transition:transform .15s ease}',
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}',
705
- /* 字体球统一样式:与技能球同尺寸,暖色渐变,🔤 图标(纯 CSS,幂等,不动 font-enhancer) */
706
- '#dsh-fe-root #dsh-fe-toggle{width:46px!important;height:46px!important;' +
707
- 'line-height:46px!important;font-size:0!important;color:transparent!important;' +
708
- 'display:flex!important;align-items:center!important;justify-content:center!important;' +
709
- 'background:linear-gradient(135deg,#ff8c42,#ffd27a)!important;' +
710
- 'box-shadow:0 4px 16px rgba(255,140,66,.35)!important}',
711
- '#dsh-fe-root #dsh-fe-toggle::after{content:"🔤";font-size:20px;color:#fff;display:block;line-height:1}',
722
+ /* 字体球视觉:v1.5.9 起 font-enhancer 自带暖色极光玻璃样式,本插件不再代管其外观(避免覆盖);显隐控制见下方 data-dsb-font-hidden 规则 */
712
723
  /* 显隐开关:取消勾选=彻底隐藏球(display:none),勾选=显示原版 46px 大球 */
713
724
  '[data-dsb-ball-hidden="1"] #' + BALL_ID + '{display:none!important}',
714
725
  '[data-dsb-font-hidden="1"] #dsh-fe-toggle{display:none!important}'
@@ -772,7 +783,7 @@ window.__ModuleLoader__.load({
772
783
  markRecBadge(id, recBadgeInstalled(id));
773
784
  }
774
785
  });
775
- }
786
+ }
776
787
  function resetBallToDefault() {
777
788
  try { localStorage.removeItem(BALL_POS_KEY); } catch (e) {}
778
789
  try { writeStore(BALL_VIS_KEY, true); } catch (e) {}
@@ -930,7 +941,7 @@ window.__ModuleLoader__.load({
930
941
  style: { alignSelf: "flex-start", fontSize: "13px", cursor: "pointer",
931
942
  background: "rgba(255,210,122,.12)", border: "1px solid rgba(255,210,122,.35)",
932
943
  borderRadius: "6px", padding: "6px 12px", color: "#ffd27a" }
933
- }, isFontEnhancerInstalled() ? "🎯 一键恢复悬浮球默认位置(右下角,双球)" : "🎯 一键恢复悬浮球默认位置(右下角)"));
944
+ }, isFontEnhancerInstalled() ? "🎯 一键恢复悬浮球默认位置(右下角,双球)" : "🎯 一键恢复悬浮球默认位置(右下角)"));
934
945
  // ── 推荐插件(v1.5.7 统一三条清单:字体/技能/照片,探测式安装徽标)──
935
946
  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" } }, "推荐插件"));
936
947
  function recRow(key, recId, icon, text, repo) {
@@ -1009,8 +1020,8 @@ window.__ModuleLoader__.load({
1009
1020
  applyFontBallVisibility();
1010
1021
  applyBallVisibility();
1011
1022
  } catch (e) {}
1012
- try { console.log("[dsh-skill-browser] client mounted (v1.4.1 slot-only)"); } catch (e3) {}
1013
- setTimeout(applyRecBadges, 1200);
1023
+ try { console.log("[dsh-skill-browser] client mounted (v1.4.1 slot-only)"); } catch (e3) {}
1024
+ setTimeout(applyRecBadges, 1200);
1014
1025
  setInterval(applyRecBadges, 5000);
1015
1026
  };
1016
1027
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-skill-browser",
3
- "version": "1.5.8",
3
+ "version": "1.5.10",
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",