dsh-liuying-voice 1.3.0 → 1.3.2

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 +32 -0
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -119,10 +119,42 @@ window.__ModuleLoader__.load({
119
119
  href: "/liuying-voice",
120
120
  target: "_blank",
121
121
  rel: "noreferrer",
122
+ onClick: (e) => {
123
+ e.preventDefault();
124
+ const url = (typeof location !== "undefined" ? location.origin : "") + "/liuying-voice";
125
+ try {
126
+ if (window.open(url, "_blank")) return;
127
+ } catch {}
128
+ try {
129
+ navigator.clipboard?.writeText(url);
130
+ } catch {}
131
+ alert("链接已复制,粘贴到浏览器打开:\n" + url);
132
+ },
122
133
  style: { fontSize: 13, color: "var(--dsh-accent, #4db6a0)", textDecoration: "none" },
123
134
  },
124
135
  "在浏览器打开独立设置页 ↗",
125
136
  ),
137
+ h(
138
+ "a",
139
+ {
140
+ href: "/liuying-voice/persona",
141
+ target: "_blank",
142
+ rel: "noreferrer",
143
+ onClick: (e) => {
144
+ e.preventDefault();
145
+ const url = (typeof location !== "undefined" ? location.origin : "") + "/liuying-voice/persona";
146
+ try {
147
+ if (window.open(url, "_blank")) return;
148
+ } catch {}
149
+ try {
150
+ navigator.clipboard?.writeText(url);
151
+ } catch {}
152
+ alert("链接已复制,粘贴到浏览器打开:\n" + url);
153
+ },
154
+ style: { fontSize: 13, color: "var(--dsh-accent, #4db6a0)", textDecoration: "none" },
155
+ },
156
+ "浏览人格卡 ↗",
157
+ ),
126
158
  h(
127
159
  "label",
128
160
  { style: { display: "flex", alignItems: "center", gap: 8 } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-liuying-voice",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "流萤语音插件 for DeepSeek Harness:本地 edge-tts + RVC / GPT-SoVITS 双引擎,自带流萤参考音频、一键环境安装脚本、独立设置页面与 DSH 设置入口。开源 MIT。",
5
5
  "keywords": [
6
6
  "deepseek-harness",