dsh-life-pack 0.3.85 → 0.3.86
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/dist/base-ui.d.ts +25 -0
- package/dist/base-ui.d.ts.map +1 -0
- package/dist/base-ui.js +67 -0
- package/dist/base-ui.js.map +1 -0
- package/dist/client.js +2462 -218
- package/dist/client.js.map +1 -1
- package/dist/nav.d.ts +6 -36
- package/dist/nav.d.ts.map +1 -1
- package/dist/nav.js +5 -41
- package/dist/nav.js.map +1 -1
- package/package.json +3 -2
package/dist/client.js
CHANGED
|
@@ -91,62 +91,2365 @@ window.__ModuleLoader__.load({
|
|
|
91
91
|
hint: "未安装[" + tab.plugin + "],请补装后使用:" + installCmd
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
/** 面板右上角两个入口:星(去本仓点 star)+ 气泡(去本仓开 issue)。
|
|
95
|
-
*
|
|
96
|
-
* 两处都指本仓 FeatherHunter/ilife——这是 map #671 裁定过的(「星与气泡指向哪个仓」
|
|
97
|
-
* 一问:反馈要落在本仓的需求池,「引流到作者其他技能」是底部那张卡的事)。
|
|
98
|
-
* 三件并排里的第三件「检查更新」住隔壁票(#678),本表不管它。
|
|
99
|
-
*/
|
|
100
|
-
const PANEL_LINKS = [{
|
|
101
|
-
key: "star",
|
|
102
|
-
icon: {
|
|
103
|
-
path: "M12 2.6l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6-5.9-3.2-5.9 3.2 1.3-6.6L2.5 9.5l6.6-.8z",
|
|
104
|
-
filled: true
|
|
105
|
-
},
|
|
106
|
-
tip: "你的🌟是我夜空中最亮的星。",
|
|
107
|
-
url: "https://github.com/FeatherHunter/ilife"
|
|
108
|
-
}, {
|
|
109
|
-
key: "feedback",
|
|
110
|
-
icon: {
|
|
111
|
-
path: "M5 4h14a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-7.5L7 18v-4H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z",
|
|
112
|
-
filled: false
|
|
113
|
-
},
|
|
114
|
-
tip: "反馈问题",
|
|
115
|
-
url: "https://github.com/FeatherHunter/ilife/issues/new"
|
|
116
|
-
}];
|
|
117
94
|
const MANUAL_ENTRY = {
|
|
118
95
|
key: "manual",
|
|
119
96
|
title: "使用手册",
|
|
120
97
|
tip: "打开使用手册"
|
|
121
98
|
};
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region ../../node_modules/.pnpm/dsh-featherhunter-plugin-base@0.1.5_react@19.2.8/node_modules/dsh-featherhunter-plugin-base/dist/client/index.js
|
|
101
|
+
/*! dsh-featherhunter-plugin-base v0.1.5 */
|
|
102
|
+
var BASELINE = {
|
|
103
|
+
"manifest": {
|
|
104
|
+
"schema": 1,
|
|
105
|
+
"version": "0.1.5",
|
|
106
|
+
"revision": 2,
|
|
107
|
+
"updatedAt": "2026-10-31T00:00:00+08:00",
|
|
108
|
+
"fallbackUrl": "https://github.com/FeatherHunter/featherhunter-plugin-manage",
|
|
109
|
+
"groups": [
|
|
110
|
+
{
|
|
111
|
+
"id": "feishu",
|
|
112
|
+
"platform": "feishu",
|
|
113
|
+
"order": 10,
|
|
114
|
+
"readmeTitle": {
|
|
115
|
+
"zh": "飞书群(主)",
|
|
116
|
+
"en": "Feishu Group (Main)"
|
|
117
|
+
},
|
|
118
|
+
"alt": {
|
|
119
|
+
"zh": "DSH 插件交流群 飞书群二维码",
|
|
120
|
+
"en": "DSH plugin community group Feishu QR code"
|
|
121
|
+
},
|
|
122
|
+
"card": "card-feishu.png",
|
|
123
|
+
"qr": {
|
|
124
|
+
"kind": "bundled",
|
|
125
|
+
"key": "qr-feishu"
|
|
126
|
+
},
|
|
127
|
+
"title": {
|
|
128
|
+
"zh": "DSH 插件交流群",
|
|
129
|
+
"en": "DSH Plugin Community"
|
|
130
|
+
},
|
|
131
|
+
"subtitle": {
|
|
132
|
+
"zh": "用户418832的组织",
|
|
133
|
+
"en": "User 418832's organization"
|
|
134
|
+
},
|
|
135
|
+
"note": {
|
|
136
|
+
"zh": "该二维码永久有效",
|
|
137
|
+
"en": "This QR code never expires"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"id": "qq",
|
|
142
|
+
"platform": "qq",
|
|
143
|
+
"order": 20,
|
|
144
|
+
"readmeTitle": {
|
|
145
|
+
"zh": "QQ群(新)",
|
|
146
|
+
"en": "QQ Group (New)"
|
|
147
|
+
},
|
|
148
|
+
"alt": {
|
|
149
|
+
"zh": "DSH 插件交流群 QQ 群二维码",
|
|
150
|
+
"en": "DSH plugin community group QQ QR code"
|
|
151
|
+
},
|
|
152
|
+
"card": "card-qq.png",
|
|
153
|
+
"qr": {
|
|
154
|
+
"kind": "bundled",
|
|
155
|
+
"key": "qr-qq"
|
|
156
|
+
},
|
|
157
|
+
"title": {
|
|
158
|
+
"zh": "DSH 插件交流群",
|
|
159
|
+
"en": "DSH Plugin Community"
|
|
160
|
+
},
|
|
161
|
+
"subtitle": {
|
|
162
|
+
"zh": "群号:1020866453",
|
|
163
|
+
"en": "Group ID: 1020866453"
|
|
164
|
+
},
|
|
165
|
+
"note": {
|
|
166
|
+
"zh": "扫一扫二维码,加入群聊",
|
|
167
|
+
"en": "Scan the QR code to join the group chat"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "wechat",
|
|
172
|
+
"platform": "wechat",
|
|
173
|
+
"order": 30,
|
|
174
|
+
"readmeTitle": {
|
|
175
|
+
"zh": "微信群(新)",
|
|
176
|
+
"en": "WeChat Group (New)"
|
|
177
|
+
},
|
|
178
|
+
"alt": {
|
|
179
|
+
"zh": "DSH 插件交流群微信群二维码",
|
|
180
|
+
"en": "DSH plugin community group WeChat QR code"
|
|
181
|
+
},
|
|
182
|
+
"card": "card-wechat-2026-10-31.png",
|
|
183
|
+
"qr": {
|
|
184
|
+
"kind": "bundled",
|
|
185
|
+
"key": "qr-wechat"
|
|
186
|
+
},
|
|
187
|
+
"title": {
|
|
188
|
+
"zh": "DSH 插件交流群",
|
|
189
|
+
"en": "DSH Plugin Community"
|
|
190
|
+
},
|
|
191
|
+
"subtitle": {
|
|
192
|
+
"zh": "群聊:DSH 插件交流群",
|
|
193
|
+
"en": "Group chat: DSH Plugin Community"
|
|
194
|
+
},
|
|
195
|
+
"validUntil": "2026-11-07"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"plugins": [
|
|
199
|
+
{
|
|
200
|
+
"id": "deck",
|
|
201
|
+
"order": 10,
|
|
202
|
+
"verifiedAt": "2026-10-30",
|
|
203
|
+
"name": "dsh-mattpocock-skills-deck",
|
|
204
|
+
"repo": "FeatherHunter/dsh-mattpocock-skills-deck",
|
|
205
|
+
"desc": {
|
|
206
|
+
"zh": "近 30 万 star 的 mattpocock/skills 整套预置好(27 个技能),装好即用。",
|
|
207
|
+
"en": "The whole mattpocock/skills set (nearly 300k stars) preinstalled — 27 skills, ready as soon as it is installed."
|
|
208
|
+
},
|
|
209
|
+
"url": "https://github.com/FeatherHunter/dsh-mattpocock-skills-deck"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"id": "prompt",
|
|
213
|
+
"order": 20,
|
|
214
|
+
"verifiedAt": "2026-10-30",
|
|
215
|
+
"name": "dsh-prompt",
|
|
216
|
+
"repo": "FeatherHunter/dsh-prompt",
|
|
217
|
+
"desc": {
|
|
218
|
+
"zh": "经常反复重复的模板化提示词,存成自定义模板,选中后直接注入,不再需要耗费精力。",
|
|
219
|
+
"en": "The boilerplate prompts you keep retyping, saved as custom templates and injected on selection — no more wasted effort."
|
|
220
|
+
},
|
|
221
|
+
"url": "https://github.com/FeatherHunter/dsh-prompt"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"id": "palette",
|
|
225
|
+
"order": 30,
|
|
226
|
+
"verifiedAt": "2026-10-30",
|
|
227
|
+
"name": "dsh-opencode-palette",
|
|
228
|
+
"repo": "FeatherHunter/dsh-opencode-palette",
|
|
229
|
+
"desc": {
|
|
230
|
+
"zh": "38 款 opencode 经典配色 + 20+自定义主题 一键换装 DSH。",
|
|
231
|
+
"en": "38 classic opencode themes + 20+ custom themes — reskin DSH in one click."
|
|
232
|
+
},
|
|
233
|
+
"url": "https://github.com/FeatherHunter/dsh-opencode-palette"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"id": "im",
|
|
237
|
+
"order": 40,
|
|
238
|
+
"verifiedAt": "2026-10-30",
|
|
239
|
+
"name": "dsh-im-companion",
|
|
240
|
+
"repo": "FeatherHunter/dsh-im-companion",
|
|
241
|
+
"desc": {
|
|
242
|
+
"zh": "给 dsh-im 加了「助理」和「家」的概念。",
|
|
243
|
+
"en": "Adds the ideas of an “assistant” and a “home” to dsh-im."
|
|
244
|
+
},
|
|
245
|
+
"url": "https://github.com/FeatherHunter/dsh-im-companion"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"id": "ilife",
|
|
249
|
+
"order": 50,
|
|
250
|
+
"verifiedAt": "2026-10-30",
|
|
251
|
+
"name": "ilife",
|
|
252
|
+
"repo": "FeatherHunter/ilife",
|
|
253
|
+
"desc": {
|
|
254
|
+
"zh": "⚠️建设中⚠️爱生活:居家生活套件,记账、运动、饮食、体重、食谱、物品管理、作息规划、备忘录等。",
|
|
255
|
+
"en": "⚠️Work in progress⚠️ iLife, the home-life suite: bookkeeping, exercise, diet, weight, recipes, item management, schedule planning, memos and more."
|
|
256
|
+
},
|
|
257
|
+
"url": "https://github.com/FeatherHunter/ilife"
|
|
258
|
+
}
|
|
259
|
+
]
|
|
143
260
|
},
|
|
144
|
-
{
|
|
145
|
-
pkg: "dsh-im-companion",
|
|
146
|
-
desc: "聊天机器人的伴侣插件:扫码或填凭据就把飞书、微信等聊天接进来",
|
|
147
|
-
url: "https://github.com/FeatherHunter/dsh-im-companion"
|
|
261
|
+
"qr": {
|
|
262
|
+
"qr-feishu": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFABAMAAAA/vriZAAAAMFBMVEUBAQELCwsqKipUVFR1dXV/f383ZMthnZmLi4uXl5i9vb3g4uLv7+/6+vr9/f3///+Ul/FRAAAfyUlEQVR42u2df4wUx5XHu2dBwso/04sjYfhnGYhkFv8BNEiGJZGBsRSDbQXbK8U/yJ+czv7/LN3ldPHhSGOf7fMCkTz8WMtg35les5aBKPYOO0gG62yYXaSLT2cWepCsWIp3d6qkJP/kgKpTvVdVXf1rpmd212Ay9Y+Zne6ej6u7q169932vLH6HN6sL2AXsAnYBu4BdwC5gF7AL2AXsAnYBu4BdwC7g9wVwn5vYqpwch39sIvJA9pn5/WbKb7iuO2xciRxw3QHOps3DNk3y2Sdd9zF9TPLPbWoCuM5KanaVkzfhXz0a8Lx5wDLKbvRZ9hvUAPyVZa3g7Nu8cVjPJJ9dZ1lb1WHkocSf61koQKsL2DkgYTNtAJKFBSSiNcKAfmOqz7JerxPd/CTACXJNAPqEzAFwaeSd2hABvHWiLNp+vNgq111vWUvL5bfylrW5bLQnXXcXANr6UhvL5fIO132kXD5MFWDCz7UA7K+F28cRwNn1jmjYM/aRWu2YZdmO41iW5Zjt0VptEgE/UJe6uNLpPVKrveM4y4kCXBv5uc/zrQDXGvdJ3MuvooDmY2AfrTeOJd4n67E6IQh4Ul1qKm/ZR0n9HcsKAB8gkZ9rDUhDf2HNAd+mLAXwcXEdABxVl5rOW/Ywp+9Y1j0BYHjeYH+8KwCZ7nE6J0BGyJW8lRtVlwJAQgBQvMgSMPRzmQBnK6qNm4B2obCK8NkNBdlWSkD4l9ULf8ubgDOVyseFQmFEXUoAHq5Ujh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QAeJ2Ng5kxuZlFYoGWE5Sb6cg7p8tAT/Nt0sBJuoUqw3q7/rx8L6sOBtxMXn4vVAcTHaix3FgXbpoiTUbCpqkyLwY3Y5LFg7JbQKXwORW5mUelkLCLf47aWqES25UJG6tvjy2hvpqGpw++CUlSokU48/B+hNXWsMIL5ob895Tpt93ixl3dLefz6ruYsOuHerta8UK6mqnDUMMmPUX3KGOsqUTUYEaiaU7R+STGaiaC8cmLxjruXMm1IzQbgs8kwnrQWLczUhkkQZbynjCTRO8kk+HFWjLJrwngDxflkGM2e80N3IxaCHUmW9n68l3OzWgb1LRZDfCIlxgfMedmnkXw0T/KHvE3csZNOSd6ZYP/BEOtJnrYrGhUbWLg4Xv2CzdE6mE60+P2bHL7z3/+M6j/brzLS2Mdhm9+bzj9j/i76BLRX+UxA3AG4AzAGYAzAGcAzgCcATgDcAbgDMAZgDMAYxz/D3/9zb4M9D4UAAAAAElFTkSuQmCC"
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
var DAY_MS = 864e5;
|
|
268
|
+
var DATE_ONLY_RE = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
269
|
+
function pickText$1(text, lang) {
|
|
270
|
+
if (!text) return "";
|
|
271
|
+
return text[lang] ?? text.zh ?? text.en ?? "";
|
|
272
|
+
}
|
|
273
|
+
function normalizeLang(value) {
|
|
274
|
+
if (!value) return null;
|
|
275
|
+
const lower = value.toLowerCase();
|
|
276
|
+
if (lower.startsWith("zh")) return "zh";
|
|
277
|
+
if (lower.startsWith("en")) return "en";
|
|
278
|
+
return null;
|
|
279
|
+
}
|
|
280
|
+
function resolveLang$1(hints = {}) {
|
|
281
|
+
const explicit = normalizeLang(hints.explicit);
|
|
282
|
+
if (explicit) return explicit;
|
|
283
|
+
const html = normalizeLang(hints.htmlLang);
|
|
284
|
+
if (html) return html;
|
|
285
|
+
for (const candidate of hints.navigatorLanguages ?? []) {
|
|
286
|
+
const normalized = normalizeLang(candidate);
|
|
287
|
+
if (normalized) return normalized;
|
|
288
|
+
}
|
|
289
|
+
return "zh";
|
|
290
|
+
}
|
|
291
|
+
function sortByOrder(items) {
|
|
292
|
+
return [...items].sort((a, b) => a.order - b.order);
|
|
293
|
+
}
|
|
294
|
+
function pluginHref(plugin) {
|
|
295
|
+
const url = plugin.url;
|
|
296
|
+
return url !== void 0 && url.length > 0 ? url : "https://github.com/" + plugin.repo;
|
|
297
|
+
}
|
|
298
|
+
function parseDateOnly(value) {
|
|
299
|
+
const match = DATE_ONLY_RE.exec(value);
|
|
300
|
+
if (!match) return null;
|
|
301
|
+
const year = Number(match[1]);
|
|
302
|
+
const month = Number(match[2]);
|
|
303
|
+
const day = Number(match[3]);
|
|
304
|
+
const date = new Date(Date.UTC(year, month - 1, day));
|
|
305
|
+
if (date.getUTCFullYear() !== year || date.getUTCMonth() !== month - 1 || date.getUTCDate() !== day) return null;
|
|
306
|
+
return date;
|
|
307
|
+
}
|
|
308
|
+
function startOfLocalDay(now) {
|
|
309
|
+
return Date.UTC(now.getFullYear(), now.getMonth(), now.getDate());
|
|
310
|
+
}
|
|
311
|
+
function isExpired(validUntil, now = /* @__PURE__ */ new Date()) {
|
|
312
|
+
if (!validUntil) return false;
|
|
313
|
+
const until = parseDateOnly(validUntil);
|
|
314
|
+
if (!until) return false;
|
|
315
|
+
return until.getTime() < startOfLocalDay(now);
|
|
316
|
+
}
|
|
317
|
+
function formatValidity(validUntil, options) {
|
|
318
|
+
if (!validUntil) return null;
|
|
319
|
+
const until = parseDateOnly(validUntil);
|
|
320
|
+
if (!until) return null;
|
|
321
|
+
const now = options.now ?? /* @__PURE__ */ new Date();
|
|
322
|
+
if (isExpired(validUntil, now)) return null;
|
|
323
|
+
const days = Math.round((until.getTime() - startOfLocalDay(now)) / DAY_MS);
|
|
324
|
+
const month = until.getUTCMonth() + 1;
|
|
325
|
+
const day = until.getUTCDate();
|
|
326
|
+
if (days <= 0) {
|
|
327
|
+
if (options.lang === "en") return `Valid today (until ${month}/${day}), refreshed on re-entry`;
|
|
328
|
+
return `\u8BE5\u4E8C\u7EF4\u7801\u4ECA\u5929\uFF08${month} \u6708 ${day} \u65E5\u524D\uFF09\u6709\u6548\uFF0C\u91CD\u65B0\u8FDB\u5165\u5C06\u66F4\u65B0`;
|
|
329
|
+
}
|
|
330
|
+
if (options.lang === "en") return `Valid for ${days} day${days === 1 ? "" : "s"} (until ${month}/${day}), refreshed on re-entry`;
|
|
331
|
+
return `\u8BE5\u4E8C\u7EF4\u7801 ${days} \u5929\u5185\uFF08${month} \u6708 ${day} \u65E5\u524D\uFF09\u6709\u6548\uFF0C\u91CD\u65B0\u8FDB\u5165\u5C06\u66F4\u65B0`;
|
|
332
|
+
}
|
|
333
|
+
function isRecord(value) {
|
|
334
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
335
|
+
}
|
|
336
|
+
function requireString(record, key, where) {
|
|
337
|
+
const value = record[key];
|
|
338
|
+
if (typeof value !== "string" || value.length === 0) throw new Error(`manifest: ${where}.${key} must be a non-empty string`);
|
|
339
|
+
return value;
|
|
340
|
+
}
|
|
341
|
+
function requireI18n(record, key, where) {
|
|
342
|
+
const value = record[key];
|
|
343
|
+
if (!isRecord(value)) throw new Error(`manifest: ${where}.${key} must be an object`);
|
|
344
|
+
const zh = value.zh;
|
|
345
|
+
const en = value.en;
|
|
346
|
+
if (typeof zh !== "string" || zh.length === 0) throw new Error(`manifest: ${where}.${key}.zh must be a non-empty string`);
|
|
347
|
+
if (typeof en !== "string" || en.length === 0) throw new Error(`manifest: ${where}.${key}.en must be a non-empty string`);
|
|
348
|
+
return {
|
|
349
|
+
zh,
|
|
350
|
+
en
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
function requireOrder(record, where) {
|
|
354
|
+
const value = record["order"];
|
|
355
|
+
if (typeof value !== "number" || !Number.isFinite(value)) throw new Error(`manifest: ${where}.order must be a number`);
|
|
356
|
+
return value;
|
|
357
|
+
}
|
|
358
|
+
function validateGroup(value, index) {
|
|
359
|
+
const where = `groups[${index}]`;
|
|
360
|
+
if (!isRecord(value)) throw new Error(`manifest: ${where} must be an object`);
|
|
361
|
+
const id = requireString(value, "id", where);
|
|
362
|
+
const platform = requireString(value, "platform", where);
|
|
363
|
+
const order = requireOrder(value, where);
|
|
364
|
+
const readmeTitle = requireI18n(value, "readmeTitle", where);
|
|
365
|
+
const alt = requireI18n(value, "alt", where);
|
|
366
|
+
const card = requireString(value, "card", where);
|
|
367
|
+
const title = requireI18n(value, "title", where);
|
|
368
|
+
const qrRaw = value["qr"];
|
|
369
|
+
if (!isRecord(qrRaw)) throw new Error(`manifest: ${where}.qr must be an object`);
|
|
370
|
+
const kind = qrRaw["kind"];
|
|
371
|
+
let qr;
|
|
372
|
+
if (kind === "bundled") qr = {
|
|
373
|
+
kind: "bundled",
|
|
374
|
+
key: requireString(qrRaw, "key", `${where}.qr`)
|
|
375
|
+
};
|
|
376
|
+
else if (kind === "remote") qr = {
|
|
377
|
+
kind: "remote",
|
|
378
|
+
path: requireString(qrRaw, "path", `${where}.qr`)
|
|
379
|
+
};
|
|
380
|
+
else throw new Error(`manifest: ${where}.qr.kind must be "bundled" or "remote"`);
|
|
381
|
+
const group = {
|
|
382
|
+
id,
|
|
383
|
+
platform,
|
|
384
|
+
order,
|
|
385
|
+
readmeTitle,
|
|
386
|
+
alt,
|
|
387
|
+
card,
|
|
388
|
+
qr,
|
|
389
|
+
title
|
|
390
|
+
};
|
|
391
|
+
const subtitle = value["subtitle"];
|
|
392
|
+
if (subtitle !== void 0) {
|
|
393
|
+
if (!isRecord(subtitle)) throw new Error(`manifest: ${where}.subtitle must be an object`);
|
|
394
|
+
group.subtitle = requireI18n(value, "subtitle", where);
|
|
395
|
+
}
|
|
396
|
+
const note = value["note"];
|
|
397
|
+
if (note !== void 0) {
|
|
398
|
+
if (!isRecord(note)) throw new Error(`manifest: ${where}.note must be an object`);
|
|
399
|
+
group.note = requireI18n(value, "note", where);
|
|
400
|
+
}
|
|
401
|
+
const validUntil = value["validUntil"];
|
|
402
|
+
if (validUntil !== void 0) {
|
|
403
|
+
if (typeof validUntil !== "string" || parseDateOnly(validUntil) === null) throw new Error(`manifest: ${where}.validUntil must be a valid YYYY-MM-DD date`);
|
|
404
|
+
group.validUntil = validUntil;
|
|
405
|
+
}
|
|
406
|
+
return group;
|
|
407
|
+
}
|
|
408
|
+
function validatePlugin(value, index) {
|
|
409
|
+
const where = `plugins[${index}]`;
|
|
410
|
+
if (!isRecord(value)) throw new Error(`manifest: ${where} must be an object`);
|
|
411
|
+
const id = requireString(value, "id", where);
|
|
412
|
+
const order = requireOrder(value, where);
|
|
413
|
+
const verifiedAt = requireString(value, "verifiedAt", where);
|
|
414
|
+
if (parseDateOnly(verifiedAt) === null) throw new Error(`manifest: ${where}.verifiedAt must be a valid YYYY-MM-DD date`);
|
|
415
|
+
const entry = {
|
|
416
|
+
id,
|
|
417
|
+
order,
|
|
418
|
+
verifiedAt,
|
|
419
|
+
name: requireString(value, "name", where),
|
|
420
|
+
repo: requireString(value, "repo", where),
|
|
421
|
+
desc: requireI18n(value, "desc", where)
|
|
422
|
+
};
|
|
423
|
+
if (value["url"] !== void 0) entry.url = requireString(value, "url", where);
|
|
424
|
+
return entry;
|
|
425
|
+
}
|
|
426
|
+
function parseManifest(raw) {
|
|
427
|
+
if (!isRecord(raw)) throw new Error("manifest: root must be an object");
|
|
428
|
+
if (raw["schema"] !== 1) throw new Error("manifest: schema must be 1");
|
|
429
|
+
const version = requireString(raw, "version", "manifest");
|
|
430
|
+
const revision = raw["revision"];
|
|
431
|
+
if (typeof revision !== "number" || !Number.isInteger(revision) || revision < 0) throw new Error("manifest: revision must be a non-negative integer");
|
|
432
|
+
const updatedAt = requireString(raw, "updatedAt", "manifest");
|
|
433
|
+
if (Number.isNaN(Date.parse(updatedAt))) throw new Error("manifest: updatedAt must be a parseable timestamp");
|
|
434
|
+
const fallbackUrl = requireString(raw, "fallbackUrl", "manifest");
|
|
435
|
+
if (!/^https?:\/\//.test(fallbackUrl)) throw new Error("manifest: fallbackUrl must be an absolute http(s) URL");
|
|
436
|
+
const groupsRaw = raw["groups"];
|
|
437
|
+
if (!Array.isArray(groupsRaw)) throw new Error("manifest: groups must be an array");
|
|
438
|
+
if (groupsRaw.length === 0) throw new Error("manifest: groups must not be empty");
|
|
439
|
+
const pluginsRaw = raw["plugins"];
|
|
440
|
+
if (!Array.isArray(pluginsRaw)) throw new Error("manifest: plugins must be an array");
|
|
441
|
+
if (pluginsRaw.length === 0) throw new Error("manifest: plugins must not be empty");
|
|
442
|
+
const groups = groupsRaw.map(validateGroup);
|
|
443
|
+
const plugins = pluginsRaw.map(validatePlugin);
|
|
444
|
+
const ids = /* @__PURE__ */ new Set();
|
|
445
|
+
for (const group of groups) {
|
|
446
|
+
if (ids.has(group.id)) throw new Error(`manifest: duplicate group id "${group.id}"`);
|
|
447
|
+
ids.add(group.id);
|
|
448
|
+
}
|
|
449
|
+
return {
|
|
450
|
+
schema: 1,
|
|
451
|
+
version,
|
|
452
|
+
revision,
|
|
453
|
+
updatedAt,
|
|
454
|
+
fallbackUrl,
|
|
455
|
+
groups,
|
|
456
|
+
plugins
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
var TIP_CLASS = "dsh-base-tip";
|
|
460
|
+
var GAP = 8;
|
|
461
|
+
var EDGE = 8;
|
|
462
|
+
var activeDispose = null;
|
|
463
|
+
var tipSerial = 0;
|
|
464
|
+
var TIP_HIDE_DELAY = 160;
|
|
465
|
+
function createTipController(options = {}) {
|
|
466
|
+
const hideDelay = options.hideDelay ?? TIP_HIDE_DELAY;
|
|
467
|
+
let handle = null;
|
|
468
|
+
let described = null;
|
|
469
|
+
let hideTimer = null;
|
|
470
|
+
let onKeyDown = null;
|
|
471
|
+
function boundedDocument() {
|
|
472
|
+
return typeof document === "undefined" ? null : document;
|
|
473
|
+
}
|
|
474
|
+
function unbindEscape() {
|
|
475
|
+
const doc = boundedDocument();
|
|
476
|
+
if (!doc || !onKeyDown) return;
|
|
477
|
+
doc.removeEventListener("keydown", onKeyDown, true);
|
|
478
|
+
onKeyDown = null;
|
|
479
|
+
}
|
|
480
|
+
function clearDescribed() {
|
|
481
|
+
if (!described) return;
|
|
482
|
+
described.removeAttribute("aria-describedby");
|
|
483
|
+
described = null;
|
|
484
|
+
}
|
|
485
|
+
function hideNow() {
|
|
486
|
+
if (hideTimer !== null) {
|
|
487
|
+
clearTimeout(hideTimer);
|
|
488
|
+
hideTimer = null;
|
|
489
|
+
}
|
|
490
|
+
unbindEscape();
|
|
491
|
+
if (handle) {
|
|
492
|
+
handle.dispose();
|
|
493
|
+
handle = null;
|
|
494
|
+
}
|
|
495
|
+
clearDescribed();
|
|
496
|
+
}
|
|
497
|
+
return {
|
|
498
|
+
show(anchor, content) {
|
|
499
|
+
if (typeof document === "undefined") return;
|
|
500
|
+
if (hideTimer !== null) {
|
|
501
|
+
clearTimeout(hideTimer);
|
|
502
|
+
hideTimer = null;
|
|
503
|
+
}
|
|
504
|
+
if (handle) {
|
|
505
|
+
handle.dispose();
|
|
506
|
+
handle = null;
|
|
507
|
+
}
|
|
508
|
+
clearDescribed();
|
|
509
|
+
const tip = mountTip(anchor, content, {
|
|
510
|
+
exclusive: true,
|
|
511
|
+
maxWidth: options.maxWidth
|
|
512
|
+
});
|
|
513
|
+
handle = tip;
|
|
514
|
+
if (tip.id) {
|
|
515
|
+
anchor.setAttribute("aria-describedby", tip.id);
|
|
516
|
+
described = anchor;
|
|
517
|
+
}
|
|
518
|
+
const doc = boundedDocument();
|
|
519
|
+
if (doc && !onKeyDown) {
|
|
520
|
+
onKeyDown = (event) => {
|
|
521
|
+
if (event.key === "Escape") hideNow();
|
|
522
|
+
};
|
|
523
|
+
doc.addEventListener("keydown", onKeyDown, true);
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
hideSoon() {
|
|
527
|
+
if (hideTimer !== null) clearTimeout(hideTimer);
|
|
528
|
+
hideTimer = setTimeout(() => {
|
|
529
|
+
hideTimer = null;
|
|
530
|
+
hideNow();
|
|
531
|
+
}, hideDelay);
|
|
532
|
+
},
|
|
533
|
+
hideNow,
|
|
534
|
+
dispose: hideNow
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
function mountTip(anchor, content, options = {}) {
|
|
538
|
+
if (typeof document === "undefined") return {
|
|
539
|
+
id: "",
|
|
540
|
+
dispose: () => {}
|
|
541
|
+
};
|
|
542
|
+
const exclusive = options.exclusive ?? true;
|
|
543
|
+
if (exclusive) activeDispose?.();
|
|
544
|
+
const el = document.createElement("div");
|
|
545
|
+
el.className = TIP_CLASS;
|
|
546
|
+
el.id = "dsh-base-tip-" + (tipSerial += 1);
|
|
547
|
+
el.setAttribute("role", "tooltip");
|
|
548
|
+
el.textContent = content;
|
|
549
|
+
el.style.maxWidth = String(options.maxWidth ?? 320) + "px";
|
|
550
|
+
const place = () => {
|
|
551
|
+
if (!el.isConnected || !anchor.isConnected) return;
|
|
552
|
+
const rect = anchor.getBoundingClientRect();
|
|
553
|
+
const width = el.offsetWidth;
|
|
554
|
+
const height = el.offsetHeight;
|
|
555
|
+
const viewW = window.innerWidth;
|
|
556
|
+
const viewH = window.innerHeight;
|
|
557
|
+
let side = options.placement ?? "top";
|
|
558
|
+
if (side === "top" && rect.top - height - GAP < EDGE) side = "bottom";
|
|
559
|
+
if (side === "bottom" && rect.bottom + height + GAP > viewH - EDGE) side = rect.top - height - GAP >= EDGE ? "top" : "bottom";
|
|
560
|
+
const centered = rect.left + rect.width / 2 - width / 2;
|
|
561
|
+
const maxLeft = Math.max(EDGE, viewW - width - EDGE);
|
|
562
|
+
const left = Math.min(Math.max(centered, EDGE), maxLeft);
|
|
563
|
+
const wanted = side === "top" ? rect.top - height - GAP : rect.bottom + GAP;
|
|
564
|
+
el.style.left = Math.round(left) + "px";
|
|
565
|
+
el.style.top = Math.round(Math.max(EDGE, Math.min(wanted, viewH - height - EDGE))) + "px";
|
|
566
|
+
el.dataset.side = side;
|
|
567
|
+
};
|
|
568
|
+
document.body.appendChild(el);
|
|
569
|
+
place();
|
|
570
|
+
let frame = 0;
|
|
571
|
+
if (typeof window.requestAnimationFrame === "function") frame = window.requestAnimationFrame(() => {
|
|
572
|
+
el.dataset.show = "true";
|
|
573
|
+
});
|
|
574
|
+
else el.dataset.show = "true";
|
|
575
|
+
const onViewportChange = () => place();
|
|
576
|
+
window.addEventListener("scroll", onViewportChange, true);
|
|
577
|
+
window.addEventListener("resize", onViewportChange);
|
|
578
|
+
const dispose = () => {
|
|
579
|
+
window.removeEventListener("scroll", onViewportChange, true);
|
|
580
|
+
window.removeEventListener("resize", onViewportChange);
|
|
581
|
+
if (typeof window.cancelAnimationFrame === "function") window.cancelAnimationFrame(frame);
|
|
582
|
+
el.remove();
|
|
583
|
+
if (activeDispose === dispose) activeDispose = null;
|
|
584
|
+
};
|
|
585
|
+
if (exclusive) activeDispose = dispose;
|
|
586
|
+
return {
|
|
587
|
+
id: el.id,
|
|
588
|
+
dispose
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
function createHoverTip(React) {
|
|
592
|
+
const h = React.createElement;
|
|
593
|
+
function HoverTip(props) {
|
|
594
|
+
const anchorRef = React.useRef(null);
|
|
595
|
+
const hideTimer = React.useRef(null);
|
|
596
|
+
const [hovered, setHovered] = React.useState(false);
|
|
597
|
+
const [dismissed, setDismissed] = React.useState(false);
|
|
598
|
+
const controlled = props.visible !== void 0;
|
|
599
|
+
const active = (controlled ? Boolean(props.visible) : hovered) && !dismissed;
|
|
600
|
+
const hideDelay = props.hideDelay ?? 160;
|
|
601
|
+
const clearHide = React.useCallback(() => {
|
|
602
|
+
if (hideTimer.current === null) return;
|
|
603
|
+
clearTimeout(hideTimer.current);
|
|
604
|
+
hideTimer.current = null;
|
|
605
|
+
}, []);
|
|
606
|
+
const show = React.useCallback(() => {
|
|
607
|
+
clearHide();
|
|
608
|
+
setDismissed(false);
|
|
609
|
+
setHovered(true);
|
|
610
|
+
}, [clearHide]);
|
|
611
|
+
const hideSoon = React.useCallback(() => {
|
|
612
|
+
clearHide();
|
|
613
|
+
hideTimer.current = setTimeout(() => {
|
|
614
|
+
hideTimer.current = null;
|
|
615
|
+
setHovered(false);
|
|
616
|
+
}, hideDelay);
|
|
617
|
+
}, [clearHide, hideDelay]);
|
|
618
|
+
React.useEffect(() => clearHide, [clearHide]);
|
|
619
|
+
React.useEffect(() => {
|
|
620
|
+
setDismissed(false);
|
|
621
|
+
}, [props.visible, props.content]);
|
|
622
|
+
React.useEffect(() => {
|
|
623
|
+
if (!active || !props.content) return void 0;
|
|
624
|
+
if (typeof document === "undefined") return void 0;
|
|
625
|
+
const anchor = anchorRef.current;
|
|
626
|
+
if (!anchor) return void 0;
|
|
627
|
+
const tip = mountTip(anchor, props.content, {
|
|
628
|
+
maxWidth: props.maxWidth,
|
|
629
|
+
placement: props.placement,
|
|
630
|
+
exclusive: !controlled
|
|
631
|
+
});
|
|
632
|
+
const onKeyDown = (event) => {
|
|
633
|
+
if (event.key !== "Escape") return;
|
|
634
|
+
setHovered(false);
|
|
635
|
+
setDismissed(true);
|
|
636
|
+
tip.dispose();
|
|
637
|
+
};
|
|
638
|
+
document.addEventListener("keydown", onKeyDown, true);
|
|
639
|
+
return () => {
|
|
640
|
+
document.removeEventListener("keydown", onKeyDown, true);
|
|
641
|
+
tip.dispose();
|
|
642
|
+
};
|
|
643
|
+
}, [
|
|
644
|
+
active,
|
|
645
|
+
controlled,
|
|
646
|
+
props.content,
|
|
647
|
+
props.maxWidth,
|
|
648
|
+
props.placement
|
|
649
|
+
]);
|
|
650
|
+
return h("span", {
|
|
651
|
+
ref: (node) => {
|
|
652
|
+
anchorRef.current = node;
|
|
653
|
+
},
|
|
654
|
+
className: "dsh-base-tip-anchor" + (props.className ? " " + props.className : ""),
|
|
655
|
+
onMouseEnter: show,
|
|
656
|
+
onMouseLeave: hideSoon,
|
|
657
|
+
onFocus: show,
|
|
658
|
+
onBlur: hideSoon
|
|
659
|
+
}, props.children ?? null);
|
|
660
|
+
}
|
|
661
|
+
return HoverTip;
|
|
662
|
+
}
|
|
663
|
+
function contactIcon(h, size) {
|
|
664
|
+
return h("svg", {
|
|
665
|
+
width: size,
|
|
666
|
+
height: size,
|
|
667
|
+
viewBox: "0 0 24 24",
|
|
668
|
+
fill: "none",
|
|
669
|
+
stroke: "currentColor",
|
|
670
|
+
strokeWidth: 1.8,
|
|
671
|
+
strokeLinecap: "round",
|
|
672
|
+
strokeLinejoin: "round",
|
|
673
|
+
"aria-hidden": "true",
|
|
674
|
+
focusable: "false"
|
|
675
|
+
}, h("rect", {
|
|
676
|
+
x: 3,
|
|
677
|
+
y: 3,
|
|
678
|
+
width: 18,
|
|
679
|
+
height: 18,
|
|
680
|
+
rx: 4,
|
|
681
|
+
key: "frame"
|
|
682
|
+
}), h("rect", {
|
|
683
|
+
x: 7,
|
|
684
|
+
y: 7,
|
|
685
|
+
width: 3.6,
|
|
686
|
+
height: 3.6,
|
|
687
|
+
rx: 1,
|
|
688
|
+
key: "tl"
|
|
689
|
+
}), h("rect", {
|
|
690
|
+
x: 13.4,
|
|
691
|
+
y: 7,
|
|
692
|
+
width: 3.6,
|
|
693
|
+
height: 3.6,
|
|
694
|
+
rx: 1,
|
|
695
|
+
key: "tr"
|
|
696
|
+
}), h("rect", {
|
|
697
|
+
x: 7,
|
|
698
|
+
y: 13.4,
|
|
699
|
+
width: 3.6,
|
|
700
|
+
height: 3.6,
|
|
701
|
+
rx: 1,
|
|
702
|
+
key: "bl"
|
|
703
|
+
}), h("path", {
|
|
704
|
+
d: "M13.4 14h1.4M13.4 17.2h1.4M16.8 14h1.4M16.8 17.2h1.4",
|
|
705
|
+
key: "data"
|
|
706
|
+
}));
|
|
707
|
+
}
|
|
708
|
+
function gridIcon(h, size) {
|
|
709
|
+
return h("svg", {
|
|
710
|
+
width: size,
|
|
711
|
+
height: size,
|
|
712
|
+
viewBox: "0 0 24 24",
|
|
713
|
+
fill: "none",
|
|
714
|
+
stroke: "currentColor",
|
|
715
|
+
strokeWidth: 2,
|
|
716
|
+
strokeLinecap: "round",
|
|
717
|
+
strokeLinejoin: "round",
|
|
718
|
+
"aria-hidden": "true",
|
|
719
|
+
focusable: "false"
|
|
720
|
+
}, h("rect", {
|
|
721
|
+
x: 3,
|
|
722
|
+
y: 3,
|
|
723
|
+
width: 7,
|
|
724
|
+
height: 7,
|
|
725
|
+
rx: 1,
|
|
726
|
+
key: "tl"
|
|
727
|
+
}), h("rect", {
|
|
728
|
+
x: 14,
|
|
729
|
+
y: 3,
|
|
730
|
+
width: 7,
|
|
731
|
+
height: 7,
|
|
732
|
+
rx: 1,
|
|
733
|
+
key: "tr"
|
|
734
|
+
}), h("rect", {
|
|
735
|
+
x: 3,
|
|
736
|
+
y: 14,
|
|
737
|
+
width: 7,
|
|
738
|
+
height: 7,
|
|
739
|
+
rx: 1,
|
|
740
|
+
key: "bl"
|
|
741
|
+
}), h("rect", {
|
|
742
|
+
x: 14,
|
|
743
|
+
y: 14,
|
|
744
|
+
width: 7,
|
|
745
|
+
height: 7,
|
|
746
|
+
rx: 1,
|
|
747
|
+
key: "br"
|
|
748
|
+
}));
|
|
749
|
+
}
|
|
750
|
+
function starIcon(h, size) {
|
|
751
|
+
return h("svg", {
|
|
752
|
+
width: size,
|
|
753
|
+
height: size,
|
|
754
|
+
viewBox: "0 0 24 24",
|
|
755
|
+
fill: "none",
|
|
756
|
+
stroke: "currentColor",
|
|
757
|
+
strokeWidth: 1.8,
|
|
758
|
+
strokeLinecap: "round",
|
|
759
|
+
strokeLinejoin: "round",
|
|
760
|
+
"aria-hidden": "true",
|
|
761
|
+
focusable: "false"
|
|
762
|
+
}, h("path", {
|
|
763
|
+
d: "M12 3.6l2.5 5.2 5.7.8-4.1 4 1 5.6-5.1-2.7-5.1 2.7 1-5.6-4.1-4 5.7-.8Z",
|
|
764
|
+
key: "star"
|
|
765
|
+
}));
|
|
766
|
+
}
|
|
767
|
+
function issueIcon(h, size) {
|
|
768
|
+
return h("svg", {
|
|
769
|
+
width: size,
|
|
770
|
+
height: size,
|
|
771
|
+
viewBox: "0 0 24 24",
|
|
772
|
+
fill: "none",
|
|
773
|
+
stroke: "currentColor",
|
|
774
|
+
strokeWidth: 1.8,
|
|
775
|
+
strokeLinecap: "round",
|
|
776
|
+
strokeLinejoin: "round",
|
|
777
|
+
"aria-hidden": "true",
|
|
778
|
+
focusable: "false"
|
|
779
|
+
}, h("circle", {
|
|
780
|
+
cx: 12,
|
|
781
|
+
cy: 12,
|
|
782
|
+
r: 9,
|
|
783
|
+
key: "ring"
|
|
784
|
+
}), h("path", {
|
|
785
|
+
d: "M12 7.8v4.8",
|
|
786
|
+
key: "stem"
|
|
787
|
+
}), h("path", {
|
|
788
|
+
d: "M12 16.2h.01",
|
|
789
|
+
key: "dot"
|
|
790
|
+
}));
|
|
791
|
+
}
|
|
792
|
+
function externalLinkIcon(h) {
|
|
793
|
+
return h("svg", {
|
|
794
|
+
width: 14,
|
|
795
|
+
height: 14,
|
|
796
|
+
viewBox: "0 0 24 24",
|
|
797
|
+
fill: "none",
|
|
798
|
+
stroke: "currentColor",
|
|
799
|
+
strokeWidth: 2,
|
|
800
|
+
strokeLinecap: "round",
|
|
801
|
+
strokeLinejoin: "round",
|
|
802
|
+
"aria-hidden": "true",
|
|
803
|
+
focusable: "false"
|
|
804
|
+
}, h("path", {
|
|
805
|
+
d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",
|
|
806
|
+
key: "box"
|
|
807
|
+
}), h("polyline", {
|
|
808
|
+
points: "15 3 21 3 21 9",
|
|
809
|
+
key: "arrow"
|
|
810
|
+
}), h("line", {
|
|
811
|
+
x1: 10,
|
|
812
|
+
y1: 14,
|
|
813
|
+
x2: 21,
|
|
814
|
+
y2: 3,
|
|
815
|
+
key: "line"
|
|
816
|
+
}));
|
|
817
|
+
}
|
|
818
|
+
function classes(first, extra) {
|
|
819
|
+
return extra ? first + " " + extra : first;
|
|
820
|
+
}
|
|
821
|
+
function trimSlashes(url) {
|
|
822
|
+
return url.replace(/\/+$/, "");
|
|
823
|
+
}
|
|
824
|
+
function createActions(React, deps) {
|
|
825
|
+
const h = React.createElement;
|
|
826
|
+
const HoverTip = createHoverTip(React);
|
|
827
|
+
function iconAction(spec) {
|
|
828
|
+
const body = h("span", {
|
|
829
|
+
className: "dsh-base-icon-action__icon",
|
|
830
|
+
key: "icon",
|
|
831
|
+
"aria-hidden": "true"
|
|
832
|
+
}, spec.icon);
|
|
833
|
+
const control = spec.href ? h("a", {
|
|
834
|
+
className: classes("dsh-base-icon-action", spec.className),
|
|
835
|
+
href: spec.href,
|
|
836
|
+
target: "_blank",
|
|
837
|
+
rel: "noreferrer noopener",
|
|
838
|
+
"aria-label": spec.label,
|
|
839
|
+
key: "control"
|
|
840
|
+
}, body) : h("button", {
|
|
841
|
+
type: "button",
|
|
842
|
+
className: classes("dsh-base-icon-action", spec.className),
|
|
843
|
+
"aria-label": spec.label,
|
|
844
|
+
key: "control",
|
|
845
|
+
onClick: (event) => {
|
|
846
|
+
spec.onClick?.(event.currentTarget);
|
|
847
|
+
}
|
|
848
|
+
}, body);
|
|
849
|
+
return h(HoverTip, { content: spec.tip }, control);
|
|
850
|
+
}
|
|
851
|
+
function ContactButton(props) {
|
|
852
|
+
const size = props.size ?? 16;
|
|
853
|
+
return iconAction({
|
|
854
|
+
className: classes("dsh-base-contact-button", props.className),
|
|
855
|
+
label: props.title ?? deps.text("contact"),
|
|
856
|
+
tip: props.tip ?? deps.text("contactTip"),
|
|
857
|
+
icon: contactIcon(h, size),
|
|
858
|
+
onClick: (trigger) => deps.openContact(trigger)
|
|
859
|
+
});
|
|
148
860
|
}
|
|
861
|
+
function StarButton(props) {
|
|
862
|
+
const href = props.repoUrl ?? deps.repoUrl;
|
|
863
|
+
if (!href) return null;
|
|
864
|
+
return iconAction({
|
|
865
|
+
className: props.className,
|
|
866
|
+
label: props.label ?? deps.text("starLabel"),
|
|
867
|
+
tip: props.tip ?? deps.text("starTip"),
|
|
868
|
+
href,
|
|
869
|
+
icon: starIcon(h, props.size ?? 16)
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
function IssueButton(props) {
|
|
873
|
+
const explicit = props.issuesUrl ?? deps.issuesUrl;
|
|
874
|
+
const repo = props.repoUrl ?? deps.repoUrl;
|
|
875
|
+
const href = explicit ?? (repo ? trimSlashes(repo) + "/issues" : void 0);
|
|
876
|
+
if (!href) return null;
|
|
877
|
+
return iconAction({
|
|
878
|
+
className: props.className,
|
|
879
|
+
label: props.label ?? deps.text("issueLabel"),
|
|
880
|
+
tip: props.tip ?? deps.text("issueTip"),
|
|
881
|
+
href,
|
|
882
|
+
icon: issueIcon(h, props.size ?? 16)
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
function actionSet(props, grouped) {
|
|
886
|
+
return h("span", {
|
|
887
|
+
className: classes(grouped ? "dsh-base-actions dsh-base-actions--group" : "dsh-base-actions", props.className),
|
|
888
|
+
role: "group",
|
|
889
|
+
"aria-label": deps.text("actionsLabel")
|
|
890
|
+
}, h(ContactButton, {
|
|
891
|
+
size: props.size,
|
|
892
|
+
key: "contact"
|
|
893
|
+
}), h(StarButton, {
|
|
894
|
+
size: props.size,
|
|
895
|
+
repoUrl: props.repoUrl,
|
|
896
|
+
key: "star"
|
|
897
|
+
}), h(IssueButton, {
|
|
898
|
+
size: props.size,
|
|
899
|
+
repoUrl: props.repoUrl,
|
|
900
|
+
issuesUrl: props.issuesUrl,
|
|
901
|
+
key: "issue"
|
|
902
|
+
}));
|
|
903
|
+
}
|
|
904
|
+
function ActionButtons(props) {
|
|
905
|
+
return actionSet(props, false);
|
|
906
|
+
}
|
|
907
|
+
function ActionGroup(props) {
|
|
908
|
+
return actionSet(props, true);
|
|
909
|
+
}
|
|
910
|
+
return {
|
|
911
|
+
ContactButton,
|
|
912
|
+
StarButton,
|
|
913
|
+
IssueButton,
|
|
914
|
+
ActionButtons,
|
|
915
|
+
ActionGroup,
|
|
916
|
+
HoverTip
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
function gradientId(name, uid) {
|
|
920
|
+
const suffix = uid && uid.length > 0 ? uid : "base";
|
|
921
|
+
return "dsh-base-cluster-" + name + "-" + suffix;
|
|
922
|
+
}
|
|
923
|
+
var SVG_CLASS = "dsh-base-cluster__svg";
|
|
924
|
+
function contactClusterIcon(h, size = 16, uid) {
|
|
925
|
+
return h("svg", {
|
|
926
|
+
width: size,
|
|
927
|
+
height: size,
|
|
928
|
+
viewBox: "0 0 24 24",
|
|
929
|
+
className: SVG_CLASS + " dsh-base-cluster__svg--contact",
|
|
930
|
+
"aria-hidden": "true",
|
|
931
|
+
focusable: "false"
|
|
932
|
+
}, h("defs", { key: "defs" }, h("linearGradient", {
|
|
933
|
+
id: gradientId("ca", uid),
|
|
934
|
+
x1: "0",
|
|
935
|
+
y1: "0",
|
|
936
|
+
x2: "1",
|
|
937
|
+
y2: "1",
|
|
938
|
+
key: "ca"
|
|
939
|
+
}, h("stop", {
|
|
940
|
+
offset: "0",
|
|
941
|
+
stopColor: "#7cc4ff",
|
|
942
|
+
key: "s1"
|
|
943
|
+
}), h("stop", {
|
|
944
|
+
offset: ".55",
|
|
945
|
+
stopColor: "#4f8bff",
|
|
946
|
+
key: "s2"
|
|
947
|
+
}), h("stop", {
|
|
948
|
+
offset: "1",
|
|
949
|
+
stopColor: "#3f5cff",
|
|
950
|
+
key: "s3"
|
|
951
|
+
})), h("linearGradient", {
|
|
952
|
+
id: gradientId("cb", uid),
|
|
953
|
+
x1: "0",
|
|
954
|
+
y1: "0",
|
|
955
|
+
x2: "1",
|
|
956
|
+
y2: "1",
|
|
957
|
+
key: "cb"
|
|
958
|
+
}, h("stop", {
|
|
959
|
+
offset: "0",
|
|
960
|
+
stopColor: "#c79bff",
|
|
961
|
+
key: "s1"
|
|
962
|
+
}), h("stop", {
|
|
963
|
+
offset: "1",
|
|
964
|
+
stopColor: "#8b5cf6",
|
|
965
|
+
key: "s2"
|
|
966
|
+
}))), h("g", {
|
|
967
|
+
className: "dsh-base-ico-bob",
|
|
968
|
+
key: "bob"
|
|
969
|
+
}, h("path", {
|
|
970
|
+
d: "M3 7.4A3.4 3.4 0 0 1 6.4 4h7.1A3.4 3.4 0 0 1 16.9 7.4v3.1a3.4 3.4 0 0 1-3.4 3.4H8.3l-3.9 3.05a.65.65 0 0 1-1.05-.51v-2.9A3.4 3.4 0 0 1 3 10.5z",
|
|
971
|
+
fill: "url(#" + gradientId("ca", uid) + ")",
|
|
972
|
+
key: "back"
|
|
973
|
+
}), h("ellipse", {
|
|
974
|
+
cx: 6.8,
|
|
975
|
+
cy: 7.4,
|
|
976
|
+
rx: 3.1,
|
|
977
|
+
ry: 1.35,
|
|
978
|
+
fill: "#fff",
|
|
979
|
+
opacity: ".32",
|
|
980
|
+
key: "shine"
|
|
981
|
+
}), h("path", {
|
|
982
|
+
d: "M10.5 11.2A3.5 3.5 0 0 1 14 7.7h5.2a3.5 3.5 0 0 1 3.5 3.5v3a3.5 3.5 0 0 1-3.5 3.5h-4.9l-3.15 2.5a.62.62 0 0 1-1-.49v-2.24a3.5 3.5 0 0 1-1.86-3.12z",
|
|
983
|
+
fill: "url(#" + gradientId("cb", uid) + ")",
|
|
984
|
+
key: "front"
|
|
985
|
+
}), h("circle", {
|
|
986
|
+
className: "dsh-base-ico-dot dsh-base-ico-dot--1",
|
|
987
|
+
cx: 13.1,
|
|
988
|
+
cy: 14.1,
|
|
989
|
+
r: 1.2,
|
|
990
|
+
fill: "#fff",
|
|
991
|
+
key: "d1"
|
|
992
|
+
}), h("circle", {
|
|
993
|
+
className: "dsh-base-ico-dot dsh-base-ico-dot--2",
|
|
994
|
+
cx: 16.2,
|
|
995
|
+
cy: 14.1,
|
|
996
|
+
r: 1.2,
|
|
997
|
+
fill: "#fff",
|
|
998
|
+
key: "d2"
|
|
999
|
+
}), h("circle", {
|
|
1000
|
+
className: "dsh-base-ico-dot dsh-base-ico-dot--3",
|
|
1001
|
+
cx: 19.3,
|
|
1002
|
+
cy: 14.1,
|
|
1003
|
+
r: 1.2,
|
|
1004
|
+
fill: "#fff",
|
|
1005
|
+
key: "d3"
|
|
1006
|
+
})));
|
|
1007
|
+
}
|
|
1008
|
+
function starClusterIcon(h, size = 16, uid) {
|
|
1009
|
+
return h("svg", {
|
|
1010
|
+
width: size,
|
|
1011
|
+
height: size,
|
|
1012
|
+
viewBox: "0 0 24 24",
|
|
1013
|
+
className: SVG_CLASS + " dsh-base-cluster__svg--star",
|
|
1014
|
+
"aria-hidden": "true",
|
|
1015
|
+
focusable: "false"
|
|
1016
|
+
}, h("defs", { key: "defs" }, h("linearGradient", {
|
|
1017
|
+
id: gradientId("sa", uid),
|
|
1018
|
+
x1: "0",
|
|
1019
|
+
y1: "0",
|
|
1020
|
+
x2: ".85",
|
|
1021
|
+
y2: "1",
|
|
1022
|
+
key: "sa"
|
|
1023
|
+
}, h("stop", {
|
|
1024
|
+
offset: "0",
|
|
1025
|
+
stopColor: "#ffe98a",
|
|
1026
|
+
key: "s1"
|
|
1027
|
+
}), h("stop", {
|
|
1028
|
+
offset: ".45",
|
|
1029
|
+
stopColor: "#ffc12e",
|
|
1030
|
+
key: "s2"
|
|
1031
|
+
}), h("stop", {
|
|
1032
|
+
offset: "1",
|
|
1033
|
+
stopColor: "#ff8a1e",
|
|
1034
|
+
key: "s3"
|
|
1035
|
+
})), h("radialGradient", {
|
|
1036
|
+
id: gradientId("sg", uid),
|
|
1037
|
+
cx: ".5",
|
|
1038
|
+
cy: ".5",
|
|
1039
|
+
r: ".5",
|
|
1040
|
+
key: "sg"
|
|
1041
|
+
}, h("stop", {
|
|
1042
|
+
offset: "0",
|
|
1043
|
+
stopColor: "#ffd75e",
|
|
1044
|
+
stopOpacity: ".55",
|
|
1045
|
+
key: "s1"
|
|
1046
|
+
}), h("stop", {
|
|
1047
|
+
offset: "1",
|
|
1048
|
+
stopColor: "#ffd75e",
|
|
1049
|
+
stopOpacity: "0",
|
|
1050
|
+
key: "s2"
|
|
1051
|
+
}))), h("circle", {
|
|
1052
|
+
className: "dsh-base-ico-halo",
|
|
1053
|
+
cx: 12,
|
|
1054
|
+
cy: 12,
|
|
1055
|
+
r: 10.6,
|
|
1056
|
+
fill: "url(#" + gradientId("sg", uid) + ")",
|
|
1057
|
+
key: "halo"
|
|
1058
|
+
}), h("g", {
|
|
1059
|
+
className: "dsh-base-ico-bigstar",
|
|
1060
|
+
key: "bigstar"
|
|
1061
|
+
}, h("path", {
|
|
1062
|
+
d: "M12 2.7l2.72 5.49 6.06.89-4.39 4.27 1.04 6.04L12 16.55l-5.43 2.84 1.04-6.04L3.22 9.08l6.06-.89z",
|
|
1063
|
+
fill: "url(#" + gradientId("sa", uid) + ")",
|
|
1064
|
+
stroke: "#ffb020",
|
|
1065
|
+
strokeWidth: ".35",
|
|
1066
|
+
strokeLinejoin: "round",
|
|
1067
|
+
key: "star"
|
|
1068
|
+
}), h("path", {
|
|
1069
|
+
d: "M12 5.35l1.55 3.13 3.45.51-2.5 2.43.6 3.44L12 13.2l-3.1 1.66.6-3.44-2.5-2.43 3.45-.51z",
|
|
1070
|
+
fill: "#fff",
|
|
1071
|
+
opacity: ".33",
|
|
1072
|
+
key: "shine"
|
|
1073
|
+
})), h("g", {
|
|
1074
|
+
className: "dsh-base-ico-spark dsh-base-ico-spark--1",
|
|
1075
|
+
fill: "#fff",
|
|
1076
|
+
key: "sp1"
|
|
1077
|
+
}, h("path", {
|
|
1078
|
+
d: "M19.9 3.0l.52 1.3 1.3.52-1.3.52-.52 1.3-.52-1.3-1.3-.52 1.3-.52z",
|
|
1079
|
+
key: "p"
|
|
1080
|
+
})), h("g", {
|
|
1081
|
+
className: "dsh-base-ico-spark dsh-base-ico-spark--2",
|
|
1082
|
+
fill: "#ffe27a",
|
|
1083
|
+
key: "sp2"
|
|
1084
|
+
}, h("path", {
|
|
1085
|
+
d: "M4.2 16.4l.38.95.95.38-.95.38-.38.95-.38-.95-.95-.38.95-.38z",
|
|
1086
|
+
key: "p"
|
|
1087
|
+
})), h("g", {
|
|
1088
|
+
className: "dsh-base-ico-spark dsh-base-ico-spark--3",
|
|
1089
|
+
fill: "#fff",
|
|
1090
|
+
key: "sp3"
|
|
1091
|
+
}, h("path", {
|
|
1092
|
+
d: "M21.1 17.2l.3.76.76.3-.76.3-.3.76-.3-.76-.76-.3.76-.3z",
|
|
1093
|
+
key: "p"
|
|
1094
|
+
})), h("g", {
|
|
1095
|
+
className: "dsh-base-ico-spark dsh-base-ico-spark--4",
|
|
1096
|
+
fill: "#ffd75e",
|
|
1097
|
+
key: "sp4"
|
|
1098
|
+
}, h("path", {
|
|
1099
|
+
d: "M5.7 3.9l.3.76.76.3-.76.3-.3.76-.3-.76-.76-.3.76-.3z",
|
|
1100
|
+
key: "p"
|
|
1101
|
+
})));
|
|
1102
|
+
}
|
|
1103
|
+
function issueClusterIcon(h, size = 16, uid) {
|
|
1104
|
+
return h("svg", {
|
|
1105
|
+
width: size,
|
|
1106
|
+
height: size,
|
|
1107
|
+
viewBox: "0 0 24 24",
|
|
1108
|
+
className: SVG_CLASS + " dsh-base-cluster__svg--issue",
|
|
1109
|
+
"aria-hidden": "true",
|
|
1110
|
+
focusable: "false"
|
|
1111
|
+
}, h("defs", { key: "defs" }, h("linearGradient", {
|
|
1112
|
+
id: gradientId("ia", uid),
|
|
1113
|
+
x1: "0",
|
|
1114
|
+
y1: "0",
|
|
1115
|
+
x2: "1",
|
|
1116
|
+
y2: "1",
|
|
1117
|
+
key: "ia"
|
|
1118
|
+
}, h("stop", {
|
|
1119
|
+
offset: "0",
|
|
1120
|
+
stopColor: "#ffa3b5",
|
|
1121
|
+
key: "s1"
|
|
1122
|
+
}), h("stop", {
|
|
1123
|
+
offset: ".5",
|
|
1124
|
+
stopColor: "#ff6b8a",
|
|
1125
|
+
key: "s2"
|
|
1126
|
+
}), h("stop", {
|
|
1127
|
+
offset: "1",
|
|
1128
|
+
stopColor: "#f43f5e",
|
|
1129
|
+
key: "s3"
|
|
1130
|
+
}))), h("g", {
|
|
1131
|
+
className: "dsh-base-ico-bubble",
|
|
1132
|
+
key: "bubble"
|
|
1133
|
+
}, h("path", {
|
|
1134
|
+
d: "M6.6 4.4h10.8A3.6 3.6 0 0 1 21 8v6.2a3.6 3.6 0 0 1-3.6 3.6h-6.1l-4.4 3.4a.72.72 0 0 1-1.15-.57v-2.83H6.6A3.6 3.6 0 0 1 3 14.2V8a3.6 3.6 0 0 1 3.6-3.6z",
|
|
1135
|
+
fill: "url(#" + gradientId("ia", uid) + ")",
|
|
1136
|
+
key: "bubble"
|
|
1137
|
+
}), h("ellipse", {
|
|
1138
|
+
cx: 7.3,
|
|
1139
|
+
cy: 6.2,
|
|
1140
|
+
rx: 3.3,
|
|
1141
|
+
ry: 1.3,
|
|
1142
|
+
fill: "#fff",
|
|
1143
|
+
opacity: ".3",
|
|
1144
|
+
key: "shine"
|
|
1145
|
+
}), h("rect", {
|
|
1146
|
+
className: "dsh-base-ico-bang",
|
|
1147
|
+
x: 11.05,
|
|
1148
|
+
y: 6.55,
|
|
1149
|
+
width: 1.9,
|
|
1150
|
+
height: 5.35,
|
|
1151
|
+
rx: ".95",
|
|
1152
|
+
fill: "#fff",
|
|
1153
|
+
key: "stem"
|
|
1154
|
+
}), h("circle", {
|
|
1155
|
+
className: "dsh-base-ico-bang",
|
|
1156
|
+
cx: 12,
|
|
1157
|
+
cy: 14.15,
|
|
1158
|
+
r: 1.02,
|
|
1159
|
+
fill: "#fff",
|
|
1160
|
+
key: "dot"
|
|
1161
|
+
})), h("g", {
|
|
1162
|
+
className: "dsh-base-ico-spark",
|
|
1163
|
+
fill: "#fff",
|
|
1164
|
+
opacity: ".9",
|
|
1165
|
+
key: "spark"
|
|
1166
|
+
}, h("path", {
|
|
1167
|
+
d: "M19.7 2.2l.46 1.15 1.15.46-1.15.46-.46 1.15-.46-1.15-1.15-.46 1.15-.46z",
|
|
1168
|
+
key: "p"
|
|
1169
|
+
})));
|
|
1170
|
+
}
|
|
1171
|
+
function moreClusterIcon(h, size = 16) {
|
|
1172
|
+
return h("svg", {
|
|
1173
|
+
width: size,
|
|
1174
|
+
height: size,
|
|
1175
|
+
viewBox: "0 0 24 24",
|
|
1176
|
+
className: SVG_CLASS + " dsh-base-cluster__svg--more",
|
|
1177
|
+
"aria-hidden": "true",
|
|
1178
|
+
focusable: "false"
|
|
1179
|
+
}, h("g", {
|
|
1180
|
+
fill: "currentColor",
|
|
1181
|
+
key: "dots"
|
|
1182
|
+
}, h("circle", {
|
|
1183
|
+
cx: 5.5,
|
|
1184
|
+
cy: 12,
|
|
1185
|
+
r: 1.8,
|
|
1186
|
+
key: "a"
|
|
1187
|
+
}), h("circle", {
|
|
1188
|
+
cx: 12,
|
|
1189
|
+
cy: 12,
|
|
1190
|
+
r: 1.8,
|
|
1191
|
+
key: "b"
|
|
1192
|
+
}), h("circle", {
|
|
1193
|
+
cx: 18.5,
|
|
1194
|
+
cy: 12,
|
|
1195
|
+
r: 1.8,
|
|
1196
|
+
key: "c"
|
|
1197
|
+
})));
|
|
1198
|
+
}
|
|
1199
|
+
var DEFAULT_SIZE = 16;
|
|
1200
|
+
var DEFAULT_GAP = 4;
|
|
1201
|
+
var BUTTON_PADDING = 12;
|
|
1202
|
+
function trimSlashes2(url) {
|
|
1203
|
+
return url.replace(/\/+$/, "");
|
|
1204
|
+
}
|
|
1205
|
+
function classes2(...parts) {
|
|
1206
|
+
return parts.filter(Boolean).join(" ");
|
|
1207
|
+
}
|
|
1208
|
+
function actionClass(id) {
|
|
1209
|
+
return "dsh-base-cluster__btn--" + id.replace(/[^a-zA-Z0-9_-]/g, "-");
|
|
1210
|
+
}
|
|
1211
|
+
function createActionCluster(React, deps) {
|
|
1212
|
+
const h = React.createElement;
|
|
1213
|
+
function defaultItems(size, uid) {
|
|
1214
|
+
const repo = deps.repoUrl;
|
|
1215
|
+
const issues = deps.issuesUrl ?? (repo ? trimSlashes2(repo) + "/issues" : void 0);
|
|
1216
|
+
const items = [{
|
|
1217
|
+
id: "contact",
|
|
1218
|
+
icon: contactClusterIcon(h, size, uid + "c"),
|
|
1219
|
+
label: deps.text("contact"),
|
|
1220
|
+
tip: deps.text("contactTip"),
|
|
1221
|
+
onClick: (trigger) => deps.openContact(trigger)
|
|
1222
|
+
}];
|
|
1223
|
+
if (repo) items.push({
|
|
1224
|
+
id: "star",
|
|
1225
|
+
icon: starClusterIcon(h, size, uid + "s"),
|
|
1226
|
+
label: deps.text("starLabel"),
|
|
1227
|
+
tip: deps.text("starTip"),
|
|
1228
|
+
href: repo
|
|
1229
|
+
});
|
|
1230
|
+
if (issues) items.push({
|
|
1231
|
+
id: "issue",
|
|
1232
|
+
icon: issueClusterIcon(h, size, uid + "i"),
|
|
1233
|
+
label: deps.text("issueLabel"),
|
|
1234
|
+
tip: deps.text("issueTip"),
|
|
1235
|
+
href: issues
|
|
1236
|
+
});
|
|
1237
|
+
return items;
|
|
1238
|
+
}
|
|
1239
|
+
function ActionCluster(props) {
|
|
1240
|
+
const size = props.size ?? DEFAULT_SIZE;
|
|
1241
|
+
const gap = props.gap ?? DEFAULT_GAP;
|
|
1242
|
+
const uid = React.useId().replace(/[^a-zA-Z0-9_-]/g, "");
|
|
1243
|
+
const tip = React.useMemo(() => createTipController(), []);
|
|
1244
|
+
const [menuOpen, setMenuOpen] = React.useState(false);
|
|
1245
|
+
const moreRef = React.useRef(null);
|
|
1246
|
+
const menuRef = React.useRef(null);
|
|
1247
|
+
React.useEffect(() => () => tip.dispose(), [tip]);
|
|
1248
|
+
const items = props.items ?? defaultItems(size, uid);
|
|
1249
|
+
const cap = props.maxVisible === void 0 ? items.length : Math.max(0, Math.floor(props.maxVisible));
|
|
1250
|
+
const visible = items.slice(0, Math.min(items.length, cap));
|
|
1251
|
+
const overflow = items.slice(visible.length);
|
|
1252
|
+
const overflowLabel = props.overflowLabel ?? deps.text("moreActions");
|
|
1253
|
+
const showTip = (anchor, item) => {
|
|
1254
|
+
if (item.disabled || !item.tip) return;
|
|
1255
|
+
tip.show(anchor, item.tip);
|
|
1256
|
+
};
|
|
1257
|
+
const hideTip = () => tip.hideSoon();
|
|
1258
|
+
const renderButton = (item) => {
|
|
1259
|
+
const icon = h("span", {
|
|
1260
|
+
className: "dsh-base-cluster__icon",
|
|
1261
|
+
key: "icon",
|
|
1262
|
+
"aria-hidden": "true"
|
|
1263
|
+
}, item.icon);
|
|
1264
|
+
const shared = {
|
|
1265
|
+
className: classes2("dsh-base-cluster__btn", actionClass(item.id), item.className),
|
|
1266
|
+
style: {
|
|
1267
|
+
width: size + BUTTON_PADDING,
|
|
1268
|
+
height: size + BUTTON_PADDING
|
|
1269
|
+
},
|
|
1270
|
+
"aria-label": item.label,
|
|
1271
|
+
"data-cluster-item": item.id,
|
|
1272
|
+
onMouseEnter: (event) => showTip(event.currentTarget, item),
|
|
1273
|
+
onMouseLeave: hideTip,
|
|
1274
|
+
onFocus: (event) => showTip(event.currentTarget, item),
|
|
1275
|
+
onBlur: hideTip
|
|
1276
|
+
};
|
|
1277
|
+
if (item.disabled) return h("button", {
|
|
1278
|
+
...shared,
|
|
1279
|
+
key: item.id,
|
|
1280
|
+
type: "button",
|
|
1281
|
+
disabled: true,
|
|
1282
|
+
"aria-disabled": "true"
|
|
1283
|
+
}, icon);
|
|
1284
|
+
if (item.href) return h("a", {
|
|
1285
|
+
...shared,
|
|
1286
|
+
key: item.id,
|
|
1287
|
+
href: item.href,
|
|
1288
|
+
target: "_blank",
|
|
1289
|
+
rel: "noreferrer noopener",
|
|
1290
|
+
onClick: (event) => {
|
|
1291
|
+
item.onClick?.(event.currentTarget);
|
|
1292
|
+
}
|
|
1293
|
+
}, icon);
|
|
1294
|
+
return h("button", {
|
|
1295
|
+
...shared,
|
|
1296
|
+
key: item.id,
|
|
1297
|
+
type: "button",
|
|
1298
|
+
onClick: (event) => {
|
|
1299
|
+
item.onClick?.(event.currentTarget);
|
|
1300
|
+
}
|
|
1301
|
+
}, icon);
|
|
1302
|
+
};
|
|
1303
|
+
const renderMenuItem = (item) => {
|
|
1304
|
+
const icon = h("span", {
|
|
1305
|
+
className: "dsh-base-cluster__icon",
|
|
1306
|
+
key: "icon",
|
|
1307
|
+
"aria-hidden": "true"
|
|
1308
|
+
}, item.icon);
|
|
1309
|
+
const label = h("span", {
|
|
1310
|
+
className: "dsh-base-cluster__menu-label",
|
|
1311
|
+
key: "label"
|
|
1312
|
+
}, item.label);
|
|
1313
|
+
const shared = {
|
|
1314
|
+
className: "dsh-base-cluster__menu-item",
|
|
1315
|
+
role: "menuitem",
|
|
1316
|
+
"data-cluster-item": item.id
|
|
1317
|
+
};
|
|
1318
|
+
if (item.disabled) return h("button", {
|
|
1319
|
+
...shared,
|
|
1320
|
+
key: item.id,
|
|
1321
|
+
type: "button",
|
|
1322
|
+
disabled: true
|
|
1323
|
+
}, icon, label);
|
|
1324
|
+
if (item.href) return h("a", {
|
|
1325
|
+
...shared,
|
|
1326
|
+
key: item.id,
|
|
1327
|
+
href: item.href,
|
|
1328
|
+
target: "_blank",
|
|
1329
|
+
rel: "noreferrer noopener",
|
|
1330
|
+
onClick: (event) => {
|
|
1331
|
+
item.onClick?.(event.currentTarget);
|
|
1332
|
+
setMenuOpen(false);
|
|
1333
|
+
}
|
|
1334
|
+
}, icon, label);
|
|
1335
|
+
return h("button", {
|
|
1336
|
+
...shared,
|
|
1337
|
+
key: item.id,
|
|
1338
|
+
type: "button",
|
|
1339
|
+
onClick: (event) => {
|
|
1340
|
+
item.onClick?.(event.currentTarget);
|
|
1341
|
+
setMenuOpen(false);
|
|
1342
|
+
}
|
|
1343
|
+
}, icon, label);
|
|
1344
|
+
};
|
|
1345
|
+
const overflowButton = overflow.length > 0 ? h("button", {
|
|
1346
|
+
key: "__more",
|
|
1347
|
+
ref: moreRef,
|
|
1348
|
+
type: "button",
|
|
1349
|
+
className: classes2("dsh-base-cluster__btn", "dsh-base-cluster__btn--more", menuOpen && "is-open"),
|
|
1350
|
+
style: {
|
|
1351
|
+
width: size + BUTTON_PADDING,
|
|
1352
|
+
height: size + BUTTON_PADDING
|
|
1353
|
+
},
|
|
1354
|
+
"aria-label": overflowLabel,
|
|
1355
|
+
"aria-haspopup": "menu",
|
|
1356
|
+
"aria-expanded": menuOpen,
|
|
1357
|
+
"data-cluster-item": "__more",
|
|
1358
|
+
onMouseEnter: (event) => {
|
|
1359
|
+
if (!menuOpen) tip.show(event.currentTarget, overflowLabel);
|
|
1360
|
+
},
|
|
1361
|
+
onMouseLeave: hideTip,
|
|
1362
|
+
onFocus: (event) => {
|
|
1363
|
+
if (!menuOpen) tip.show(event.currentTarget, overflowLabel);
|
|
1364
|
+
},
|
|
1365
|
+
onBlur: hideTip,
|
|
1366
|
+
onClick: (event) => {
|
|
1367
|
+
event.stopPropagation();
|
|
1368
|
+
setMenuOpen((open) => !open);
|
|
1369
|
+
}
|
|
1370
|
+
}, h("span", {
|
|
1371
|
+
className: "dsh-base-cluster__icon",
|
|
1372
|
+
key: "icon",
|
|
1373
|
+
"aria-hidden": "true"
|
|
1374
|
+
}, moreClusterIcon(h, size))) : null;
|
|
1375
|
+
const menu = overflow.length > 0 && menuOpen ? h("div", {
|
|
1376
|
+
key: "menu",
|
|
1377
|
+
ref: menuRef,
|
|
1378
|
+
className: "dsh-base-cluster__menu",
|
|
1379
|
+
role: "menu",
|
|
1380
|
+
"aria-label": props.ariaLabel ?? deps.text("actionsLabel")
|
|
1381
|
+
}, overflow.map(renderMenuItem)) : null;
|
|
1382
|
+
React.useEffect(() => {
|
|
1383
|
+
if (!menuOpen) return void 0;
|
|
1384
|
+
if (typeof document === "undefined") return void 0;
|
|
1385
|
+
const onPointerDown = (event) => {
|
|
1386
|
+
const target = event.target;
|
|
1387
|
+
if (target && (menuRef.current?.contains(target) || moreRef.current?.contains(target))) return;
|
|
1388
|
+
setMenuOpen(false);
|
|
1389
|
+
};
|
|
1390
|
+
const onKeyDown = (event) => {
|
|
1391
|
+
if (event.key !== "Escape") return;
|
|
1392
|
+
setMenuOpen(false);
|
|
1393
|
+
moreRef.current?.focus();
|
|
1394
|
+
};
|
|
1395
|
+
document.addEventListener("pointerdown", onPointerDown, true);
|
|
1396
|
+
document.addEventListener("keydown", onKeyDown, true);
|
|
1397
|
+
(menuRef.current?.querySelector("[role='menuitem']"))?.focus();
|
|
1398
|
+
return () => {
|
|
1399
|
+
document.removeEventListener("pointerdown", onPointerDown, true);
|
|
1400
|
+
document.removeEventListener("keydown", onKeyDown, true);
|
|
1401
|
+
};
|
|
1402
|
+
}, [menuOpen]);
|
|
1403
|
+
return h("div", {
|
|
1404
|
+
className: classes2("dsh-base-cluster", props.variant === "tray" && "dsh-base-cluster--tray", props.className),
|
|
1405
|
+
role: "group",
|
|
1406
|
+
"aria-label": props.ariaLabel ?? deps.text("actionsLabel"),
|
|
1407
|
+
style: { gap: gap + "px" }
|
|
1408
|
+
}, visible.map(renderButton), overflowButton, menu);
|
|
1409
|
+
}
|
|
1410
|
+
return ActionCluster;
|
|
1411
|
+
}
|
|
1412
|
+
var PACKAGE_NAME = "dsh-featherhunter-plugin-base";
|
|
1413
|
+
var CONTENT_IMAGE_TIMEOUT_MS = 6e3;
|
|
1414
|
+
var MANIFEST_CACHE_TTL_MS = 18e5;
|
|
1415
|
+
var MANIFEST_FAILURE_TTL_MS = 6e4;
|
|
1416
|
+
var MAX_MANIFEST_BYTES = 524288;
|
|
1417
|
+
var UTF8_ENCODER = new TextEncoder();
|
|
1418
|
+
function utf8ByteLength$1(value) {
|
|
1419
|
+
return UTF8_ENCODER.encode(value).byteLength;
|
|
1420
|
+
}
|
|
1421
|
+
var ALLOWED_CDN_HOSTS = [
|
|
1422
|
+
"unpkg.com",
|
|
1423
|
+
"registry.npmmirror.com",
|
|
1424
|
+
"cdn.jsdelivr.net"
|
|
149
1425
|
];
|
|
1426
|
+
var SEMVER_PATTERN = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/;
|
|
1427
|
+
var PACKAGE_NAME_PATTERN = /^[a-z0-9][a-z0-9._-]*$/;
|
|
1428
|
+
var IMAGE_PATH_PATTERN = /^[a-z0-9][a-z0-9._-]*\.(?:png|jpe?g)$/i;
|
|
1429
|
+
var MAX_ID_LENGTH = 64;
|
|
1430
|
+
var MAX_TEXT_LENGTH = 200;
|
|
1431
|
+
var MAX_NOTE_LENGTH = 300;
|
|
1432
|
+
var MAX_PATH_LENGTH = 128;
|
|
1433
|
+
function fail(message) {
|
|
1434
|
+
throw new Error("manifest: " + message);
|
|
1435
|
+
}
|
|
1436
|
+
function requireString2(value, field, maxLength) {
|
|
1437
|
+
if (typeof value !== "string" || value.length === 0) fail(field + " must be a non-empty string");
|
|
1438
|
+
if (value.length > maxLength) fail(field + " is longer than " + maxLength + " characters");
|
|
1439
|
+
return value;
|
|
1440
|
+
}
|
|
1441
|
+
function requireI18nText(value, field) {
|
|
1442
|
+
if (!isRecord(value)) fail(field + " must be an object with zh/en");
|
|
1443
|
+
requireString2(value["zh"], field + ".zh", MAX_TEXT_LENGTH);
|
|
1444
|
+
requireString2(value["en"], field + ".en", MAX_TEXT_LENGTH);
|
|
1445
|
+
}
|
|
1446
|
+
function parseUrl(value) {
|
|
1447
|
+
try {
|
|
1448
|
+
return new URL(value);
|
|
1449
|
+
} catch {
|
|
1450
|
+
return null;
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
function isHttpsUrl(value) {
|
|
1454
|
+
const url = parseUrl(value);
|
|
1455
|
+
return url !== null && url.protocol === "https:";
|
|
1456
|
+
}
|
|
1457
|
+
function isAllowedCdnUrl(value) {
|
|
1458
|
+
const url = parseUrl(value);
|
|
1459
|
+
if (!url || url.protocol !== "https:") return false;
|
|
1460
|
+
return ALLOWED_CDN_HOSTS.includes(url.hostname);
|
|
1461
|
+
}
|
|
1462
|
+
function imageUrls(version, path, packageName = PACKAGE_NAME) {
|
|
1463
|
+
if (!SEMVER_PATTERN.test(version)) return [];
|
|
1464
|
+
if (!IMAGE_PATH_PATTERN.test(path) || path.length > MAX_PATH_LENGTH) return [];
|
|
1465
|
+
return ["https://cdn.jsdelivr.net/npm/" + packageName + "@" + version + "/data/img/" + path, "https://registry.npmmirror.com/" + packageName + "/" + version + "/files/data/img/" + path];
|
|
1466
|
+
}
|
|
1467
|
+
function defaultChannels(packageName = PACKAGE_NAME) {
|
|
1468
|
+
const unpkgUrl = "https://unpkg.com/" + packageName + "@latest/data/manifest.json";
|
|
1469
|
+
const npmmirrorLatest = "https://registry.npmmirror.com/" + packageName + "/latest";
|
|
1470
|
+
const jsdelivrUrl = "https://cdn.jsdelivr.net/npm/" + packageName + "@latest/data/manifest.json";
|
|
1471
|
+
return [
|
|
1472
|
+
{
|
|
1473
|
+
name: "unpkg",
|
|
1474
|
+
load: async (context) => ({
|
|
1475
|
+
raw: JSON.parse(await context.fetchText(unpkgUrl)),
|
|
1476
|
+
url: unpkgUrl
|
|
1477
|
+
})
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
name: "npmmirror",
|
|
1481
|
+
load: async (context) => {
|
|
1482
|
+
const latest = await context.fetchJson(npmmirrorLatest);
|
|
1483
|
+
const version = isRecord(latest) ? latest["version"] : void 0;
|
|
1484
|
+
if (typeof version !== "string" || !SEMVER_PATTERN.test(version)) fail("npmmirror latest is missing a usable version");
|
|
1485
|
+
const url = "https://registry.npmmirror.com/" + packageName + "/" + version + "/files/data/manifest.json";
|
|
1486
|
+
return {
|
|
1487
|
+
raw: JSON.parse(await context.fetchText(url)),
|
|
1488
|
+
url
|
|
1489
|
+
};
|
|
1490
|
+
}
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
name: "jsdelivr",
|
|
1494
|
+
load: async (context) => ({
|
|
1495
|
+
raw: JSON.parse(await context.fetchText(jsdelivrUrl)),
|
|
1496
|
+
url: jsdelivrUrl
|
|
1497
|
+
})
|
|
1498
|
+
}
|
|
1499
|
+
];
|
|
1500
|
+
}
|
|
1501
|
+
function validateRemoteManifest(raw) {
|
|
1502
|
+
const manifest = parseManifest(raw);
|
|
1503
|
+
if (!SEMVER_PATTERN.test(manifest.version)) fail("version must be a semantic version");
|
|
1504
|
+
if (!isHttpsUrl(manifest.fallbackUrl)) fail("fallbackUrl must be https");
|
|
1505
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1506
|
+
for (const group of manifest.groups) {
|
|
1507
|
+
if (group.id.length > MAX_ID_LENGTH) fail("group id is too long");
|
|
1508
|
+
if (seen.has(group.id)) fail("duplicate group id " + group.id);
|
|
1509
|
+
seen.add(group.id);
|
|
1510
|
+
requireString2(group.platform, "group.platform", MAX_ID_LENGTH);
|
|
1511
|
+
requireI18nText(group.readmeTitle, "group.readmeTitle");
|
|
1512
|
+
requireI18nText(group.alt, "group.alt");
|
|
1513
|
+
requireI18nText(group.title, "group.title");
|
|
1514
|
+
if (group.subtitle) requireI18nText(group.subtitle, "group.subtitle");
|
|
1515
|
+
if (group.note) {
|
|
1516
|
+
if (!isRecord(group.note)) fail("group.note must be an object with zh/en");
|
|
1517
|
+
requireString2(group.note.zh, "group.note.zh", MAX_NOTE_LENGTH);
|
|
1518
|
+
requireString2(group.note.en, "group.note.en", MAX_NOTE_LENGTH);
|
|
1519
|
+
}
|
|
1520
|
+
requireString2(group.card, "group.card", MAX_PATH_LENGTH);
|
|
1521
|
+
if (!IMAGE_PATH_PATTERN.test(group.card)) fail("group.card must be a png/jpg file name");
|
|
1522
|
+
if (group.qr.kind === "remote") {
|
|
1523
|
+
if (!IMAGE_PATH_PATTERN.test(group.qr.path)) fail("group.qr.path must be a png/jpg file name");
|
|
1524
|
+
if (group.qr.path.length > MAX_PATH_LENGTH) fail("group.qr.path is too long");
|
|
1525
|
+
} else requireString2(group.qr.key, "group.qr.key", MAX_ID_LENGTH);
|
|
1526
|
+
}
|
|
1527
|
+
return manifest;
|
|
1528
|
+
}
|
|
1529
|
+
function toDataUrl(bytes, contentType) {
|
|
1530
|
+
let binary = "";
|
|
1531
|
+
const chunk = 32768;
|
|
1532
|
+
for (let index = 0; index < bytes.length; index += chunk) binary += String.fromCharCode(...bytes.subarray(index, index + chunk));
|
|
1533
|
+
return "data:" + (contentType && contentType.startsWith("image/") ? contentType : "image/png") + ";base64," + btoa(binary);
|
|
1534
|
+
}
|
|
1535
|
+
var sessionCache = null;
|
|
1536
|
+
var inFlight = null;
|
|
1537
|
+
var ContentLoader = class {
|
|
1538
|
+
packageName;
|
|
1539
|
+
timeoutMs;
|
|
1540
|
+
imageTimeoutMs;
|
|
1541
|
+
failureTtlMs;
|
|
1542
|
+
maxImageBytes;
|
|
1543
|
+
fetchImpl;
|
|
1544
|
+
now;
|
|
1545
|
+
channels;
|
|
1546
|
+
constructor(options = {}) {
|
|
1547
|
+
this.packageName = options.packageName ?? PACKAGE_NAME;
|
|
1548
|
+
if (!PACKAGE_NAME_PATTERN.test(this.packageName)) throw new Error("invalid package name: " + this.packageName);
|
|
1549
|
+
this.timeoutMs = options.timeoutMs ?? 1500;
|
|
1550
|
+
this.imageTimeoutMs = options.imageTimeoutMs ?? CONTENT_IMAGE_TIMEOUT_MS;
|
|
1551
|
+
this.failureTtlMs = options.failureTtlMs ?? MANIFEST_FAILURE_TTL_MS;
|
|
1552
|
+
this.maxImageBytes = options.maxImageBytes ?? 524288;
|
|
1553
|
+
this.now = options.now ?? (() => Date.now());
|
|
1554
|
+
const injected = options.fetchImpl ?? globalThis.fetch;
|
|
1555
|
+
if (typeof injected !== "function") throw new Error("fetch is not available in this environment");
|
|
1556
|
+
this.fetchImpl = injected;
|
|
1557
|
+
if (options.manifestUrl !== void 0) {
|
|
1558
|
+
if (!isHttpsUrl(options.manifestUrl)) throw new Error("manifestUrl must be https");
|
|
1559
|
+
const url = options.manifestUrl;
|
|
1560
|
+
this.channels = [{
|
|
1561
|
+
name: "custom",
|
|
1562
|
+
load: async (context) => ({
|
|
1563
|
+
raw: JSON.parse(await context.fetchText(url)),
|
|
1564
|
+
url
|
|
1565
|
+
})
|
|
1566
|
+
}];
|
|
1567
|
+
} else if (options.channels) this.channels = options.channels.slice();
|
|
1568
|
+
else this.channels = defaultChannels(this.packageName);
|
|
1569
|
+
}
|
|
1570
|
+
/** Success lives 30 minutes; a hard failure only 60 seconds. */
|
|
1571
|
+
ttlFor(content) {
|
|
1572
|
+
return content === null ? this.failureTtlMs : MANIFEST_CACHE_TTL_MS;
|
|
1573
|
+
}
|
|
1574
|
+
/** Cached result while it is still inside its own window. */
|
|
1575
|
+
getCached() {
|
|
1576
|
+
if (!sessionCache) return null;
|
|
1577
|
+
if (this.now() - sessionCache.at >= this.ttlFor(sessionCache.content)) return null;
|
|
1578
|
+
return sessionCache.content;
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* Fetch and validate the manifest once per window; concurrent callers share
|
|
1582
|
+
* one request. Resolves to null when every channel failed, and that empty
|
|
1583
|
+
* result is only kept for a minute so the next open can retry.
|
|
1584
|
+
*/
|
|
1585
|
+
load() {
|
|
1586
|
+
if (sessionCache !== null && this.now() - sessionCache.at < this.ttlFor(sessionCache.content)) return Promise.resolve(sessionCache.content);
|
|
1587
|
+
if (inFlight) return inFlight;
|
|
1588
|
+
const startedAt = this.now();
|
|
1589
|
+
const promise = this.fetchContent(startedAt).then((content) => {
|
|
1590
|
+
sessionCache = {
|
|
1591
|
+
at: this.now(),
|
|
1592
|
+
content
|
|
1593
|
+
};
|
|
1594
|
+
return content;
|
|
1595
|
+
}).finally(() => {
|
|
1596
|
+
inFlight = null;
|
|
1597
|
+
});
|
|
1598
|
+
inFlight = promise;
|
|
1599
|
+
return promise;
|
|
1600
|
+
}
|
|
1601
|
+
/** Prefetch every remote QR image of a manifest (best effort). */
|
|
1602
|
+
async ensureImages(content) {
|
|
1603
|
+
const pending = [];
|
|
1604
|
+
for (const group of content.manifest.groups) {
|
|
1605
|
+
if (group.qr.kind !== "remote") continue;
|
|
1606
|
+
const key = content.manifest.version + "/" + group.qr.path;
|
|
1607
|
+
if (content.images.has(key)) continue;
|
|
1608
|
+
pending.push(this.loadImage(content, group.qr.path, key));
|
|
1609
|
+
}
|
|
1610
|
+
await Promise.all(pending);
|
|
1611
|
+
}
|
|
1612
|
+
/** Data URI for a remote QR path, or null when it is not prefetched. */
|
|
1613
|
+
imageFor(content, path) {
|
|
1614
|
+
if (!content) return null;
|
|
1615
|
+
return content.images.get(content.manifest.version + "/" + path) ?? null;
|
|
1616
|
+
}
|
|
1617
|
+
/** Warm the cache: manifest plus images. Never rejects. */
|
|
1618
|
+
async preload() {
|
|
1619
|
+
try {
|
|
1620
|
+
const content = await this.load();
|
|
1621
|
+
if (content) await this.ensureImages(content);
|
|
1622
|
+
} catch {}
|
|
1623
|
+
}
|
|
1624
|
+
async loadImage(content, path, key) {
|
|
1625
|
+
for (const url of imageUrls(content.manifest.version, path, this.packageName)) {
|
|
1626
|
+
if (!isAllowedCdnUrl(url)) continue;
|
|
1627
|
+
try {
|
|
1628
|
+
const data = await this.fetchImage(url);
|
|
1629
|
+
if (data) {
|
|
1630
|
+
content.images.set(key, data);
|
|
1631
|
+
return;
|
|
1632
|
+
}
|
|
1633
|
+
} catch {}
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
async fetchImage(url) {
|
|
1637
|
+
const response = await this.request(url, this.imageTimeoutMs);
|
|
1638
|
+
if (!response.ok) return null;
|
|
1639
|
+
const declared = Number(response.headers.get("content-length"));
|
|
1640
|
+
if (Number.isFinite(declared) && declared > this.maxImageBytes) return null;
|
|
1641
|
+
const buffer = await response.arrayBuffer();
|
|
1642
|
+
if (buffer.byteLength > this.maxImageBytes) return null;
|
|
1643
|
+
return toDataUrl(new Uint8Array(buffer), response.headers.get("content-type"));
|
|
1644
|
+
}
|
|
1645
|
+
async fetchContent(fetchedAt) {
|
|
1646
|
+
const context = {
|
|
1647
|
+
packageName: this.packageName,
|
|
1648
|
+
fetchText: (url) => this.fetchText(url),
|
|
1649
|
+
fetchJson: async (url) => JSON.parse(await this.fetchText(url))
|
|
1650
|
+
};
|
|
1651
|
+
for (const channel of this.channels) try {
|
|
1652
|
+
return {
|
|
1653
|
+
manifest: validateRemoteManifest((await channel.load(context)).raw),
|
|
1654
|
+
source: channel.name,
|
|
1655
|
+
fetchedAt,
|
|
1656
|
+
images: /* @__PURE__ */ new Map()
|
|
1657
|
+
};
|
|
1658
|
+
} catch {}
|
|
1659
|
+
return null;
|
|
1660
|
+
}
|
|
1661
|
+
async fetchText(url) {
|
|
1662
|
+
const response = await this.request(url);
|
|
1663
|
+
if (!response.ok) throw new Error("HTTP " + response.status);
|
|
1664
|
+
const declared = Number(response.headers.get("content-length"));
|
|
1665
|
+
if (Number.isFinite(declared) && declared > 524288) throw new Error("manifest text exceeds " + MAX_MANIFEST_BYTES + " bytes");
|
|
1666
|
+
const text = await response.text();
|
|
1667
|
+
if (utf8ByteLength$1(text) > 524288) throw new Error("manifest text exceeds " + MAX_MANIFEST_BYTES + " bytes");
|
|
1668
|
+
return text;
|
|
1669
|
+
}
|
|
1670
|
+
/** One request with its own abort window; the timer is always cleared. */
|
|
1671
|
+
async request(url, timeoutMs = this.timeoutMs) {
|
|
1672
|
+
if (!isAllowedCdnUrl(url)) throw new Error("blocked url: " + url);
|
|
1673
|
+
const controller = typeof AbortController === "function" ? new AbortController() : null;
|
|
1674
|
+
let timer;
|
|
1675
|
+
const timeout = new Promise((_resolve, reject) => {
|
|
1676
|
+
timer = setTimeout(() => {
|
|
1677
|
+
if (controller) controller.abort();
|
|
1678
|
+
reject(/* @__PURE__ */ new Error("timeout after " + timeoutMs + "ms"));
|
|
1679
|
+
}, timeoutMs);
|
|
1680
|
+
});
|
|
1681
|
+
try {
|
|
1682
|
+
const request = this.fetchImpl(url, {
|
|
1683
|
+
signal: controller ? controller.signal : void 0,
|
|
1684
|
+
cache: "no-store",
|
|
1685
|
+
credentials: "omit"
|
|
1686
|
+
});
|
|
1687
|
+
request.catch(() => {});
|
|
1688
|
+
return await Promise.race([request, timeout]);
|
|
1689
|
+
} finally {
|
|
1690
|
+
if (timer !== void 0) clearTimeout(timer);
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
};
|
|
1694
|
+
function createContentLoader(options = {}) {
|
|
1695
|
+
return new ContentLoader(options);
|
|
1696
|
+
}
|
|
1697
|
+
var BASE_STYLE_ID = "dsh-base-ui-style";
|
|
1698
|
+
function rowSkin(className) {
|
|
1699
|
+
return [
|
|
1700
|
+
"." + className + "{display:flex;align-items:center;gap:8px;min-width:0;padding:7px 4px;border-radius:6px;color:inherit;text-decoration:none;transition:background .15s ease}",
|
|
1701
|
+
"." + className + ":hover{background:rgba(127,127,127,.1)}",
|
|
1702
|
+
"." + className + ":focus-visible{outline:2px solid #4d6bfe;outline-offset:2px}"
|
|
1703
|
+
];
|
|
1704
|
+
}
|
|
1705
|
+
var BASE_CSS = [
|
|
1706
|
+
".dsh-base-contact-button{display:inline-flex;align-items:center;justify-content:center;padding:6px;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;line-height:0;cursor:pointer;transition:background .15s ease}",
|
|
1707
|
+
".dsh-base-contact-button:hover{background:var(--dsw-alias-bg-layer-2,rgba(127,127,127,.12))}",
|
|
1708
|
+
".dsh-base-contact-button:focus-visible{outline:2px solid var(--dsw-alias-link,#4d6bfe);outline-offset:2px}",
|
|
1709
|
+
".dsh-base-contact-button__icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}",
|
|
1710
|
+
".dsh-base-contact-button__icon svg{display:block}",
|
|
1711
|
+
...rowSkin("dsh-base-contact-row"),
|
|
1712
|
+
".dsh-base-contact-row{border:0;background:transparent;font:inherit;text-align:left;cursor:pointer;width:100%;text-decoration:none}",
|
|
1713
|
+
".dsh-base-contact-row__icon{display:inline-flex;flex:0 0 auto;align-items:center;color:var(--dsw-alias-label-secondary,#86909c)}",
|
|
1714
|
+
".dsh-base-contact-row__icon svg{display:block}",
|
|
1715
|
+
".dsh-base-contact-row__label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.5}",
|
|
1716
|
+
".dsh-base-contact-row__hint{font-size:12px;color:var(--dsw-alias-label-tertiary,#a9aeb8)}",
|
|
1717
|
+
".dsh-base-contact-row__ext{display:inline-flex;flex:0 0 auto;align-items:center;color:var(--dsw-alias-label-tertiary,#a9aeb8)}",
|
|
1718
|
+
".dsh-base-contact-row__ext svg{display:block}",
|
|
1719
|
+
".dsh-base-icon-action{display:inline-flex;align-items:center;justify-content:center;padding:6px;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;line-height:0;text-decoration:none;cursor:pointer;transition:background .15s ease,color .15s ease}",
|
|
1720
|
+
".dsh-base-icon-action:hover{background:var(--dsw-alias-bg-layer-2,rgba(127,127,127,.12))}",
|
|
1721
|
+
".dsh-base-icon-action:focus-visible{outline:2px solid var(--dsw-alias-link,#4d6bfe);outline-offset:2px}",
|
|
1722
|
+
".dsh-base-icon-action__icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}",
|
|
1723
|
+
".dsh-base-icon-action__icon svg{display:block}",
|
|
1724
|
+
".dsh-base-actions{display:inline-flex;flex:0 0 auto;align-items:center;gap:2px}",
|
|
1725
|
+
".dsh-base-actions--group{gap:0;padding:1px;border:1px solid var(--dsw-alias-border-l1,rgba(127,127,127,.2));border-radius:10px;background:var(--dsw-alias-bg-layer-2,rgba(127,127,127,.04))}",
|
|
1726
|
+
".dsh-base-cluster{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;gap:var(--dsh-base-cluster-gap,4px);color:inherit}",
|
|
1727
|
+
".dsh-base-cluster--tray{gap:0;padding:1px;border:1px solid var(--dsw-alias-border-l1,rgba(127,127,127,.2));border-radius:10px;background:var(--dsw-alias-bg-layer-2,rgba(127,127,127,.04))}",
|
|
1728
|
+
".dsh-base-cluster__btn{--dsh-base-glow:rgba(127,127,127,.42);position:relative;isolation:isolate;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;padding:0;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;line-height:0;text-decoration:none;cursor:pointer;transition:transform .1s ease}",
|
|
1729
|
+
".dsh-base-cluster__btn::before{content:'';position:absolute;inset:-10px;z-index:0;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--dsh-base-glow) 0%,transparent 62%);opacity:0;transform:scale(.5);transition:opacity .16s ease,transform .2s ease;pointer-events:none}",
|
|
1730
|
+
".dsh-base-cluster__btn:hover::before,.dsh-base-cluster__btn.is-hover::before,.dsh-base-cluster__btn.is-open::before{opacity:.85;transform:scale(1)}",
|
|
1731
|
+
".dsh-base-cluster__btn:active,.dsh-base-cluster__btn.is-active{transform:translateY(1px) scale(.88)}",
|
|
1732
|
+
".dsh-base-cluster__btn:active::before,.dsh-base-cluster__btn.is-active::before{opacity:.95;transform:scale(1.02)}",
|
|
1733
|
+
".dsh-base-cluster__btn:focus-visible,.dsh-base-cluster__btn.is-focus{outline:2px solid var(--dsw-alias-link,#4d6bfe);outline-offset:2px}",
|
|
1734
|
+
".dsh-base-cluster__btn:disabled{opacity:.38;filter:grayscale(1) saturate(.25);cursor:default}",
|
|
1735
|
+
".dsh-base-cluster__btn:disabled::before{display:none}",
|
|
1736
|
+
".dsh-base-cluster__icon{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;line-height:0}",
|
|
1737
|
+
".dsh-base-cluster__icon svg{display:block;overflow:visible}",
|
|
1738
|
+
".dsh-base-cluster__btn--contact{--dsh-base-glow:rgba(79,139,255,.55)}",
|
|
1739
|
+
".dsh-base-cluster__btn--star{--dsh-base-glow:rgba(255,193,46,.6)}",
|
|
1740
|
+
".dsh-base-cluster__btn--issue{--dsh-base-glow:rgba(255,107,138,.55)}",
|
|
1741
|
+
".dsh-base-cluster__btn:hover .dsh-base-cluster__svg--contact .dsh-base-ico-bob,.dsh-base-cluster__btn.is-hover .dsh-base-cluster__svg--contact .dsh-base-ico-bob{animation:dsh-base-cluster-floaty 2.4s ease-in-out infinite}",
|
|
1742
|
+
".dsh-base-cluster__btn:hover .dsh-base-cluster__svg--contact .dsh-base-ico-dot,.dsh-base-cluster__btn.is-hover .dsh-base-cluster__svg--contact .dsh-base-ico-dot{animation:dsh-base-cluster-dotpulse 1.2s ease-in-out infinite}",
|
|
1743
|
+
".dsh-base-cluster__btn:hover .dsh-base-cluster__svg--contact .dsh-base-ico-dot--2,.dsh-base-cluster__btn.is-hover .dsh-base-cluster__svg--contact .dsh-base-ico-dot--2{animation-delay:.18s}",
|
|
1744
|
+
".dsh-base-cluster__btn:hover .dsh-base-cluster__svg--contact .dsh-base-ico-dot--3,.dsh-base-cluster__btn.is-hover .dsh-base-cluster__svg--contact .dsh-base-ico-dot--3{animation-delay:.36s}",
|
|
1745
|
+
".dsh-base-cluster__btn:hover .dsh-base-cluster__svg--star .dsh-base-ico-bigstar,.dsh-base-cluster__btn.is-hover .dsh-base-cluster__svg--star .dsh-base-ico-bigstar{animation:dsh-base-cluster-twinkle 1.7s ease-in-out infinite}",
|
|
1746
|
+
".dsh-base-cluster__btn:hover .dsh-base-cluster__svg--star .dsh-base-ico-halo,.dsh-base-cluster__btn.is-hover .dsh-base-cluster__svg--star .dsh-base-ico-halo{animation:dsh-base-cluster-halo 1.7s ease-in-out infinite}",
|
|
1747
|
+
".dsh-base-cluster__btn:hover .dsh-base-cluster__svg--star .dsh-base-ico-spark,.dsh-base-cluster__btn.is-hover .dsh-base-cluster__svg--star .dsh-base-ico-spark{animation:dsh-base-cluster-blink 1.3s ease-in-out infinite}",
|
|
1748
|
+
".dsh-base-cluster__btn:hover .dsh-base-cluster__svg--star .dsh-base-ico-spark--2,.dsh-base-cluster__btn.is-hover .dsh-base-cluster__svg--star .dsh-base-ico-spark--2{animation-delay:.22s}",
|
|
1749
|
+
".dsh-base-cluster__btn:hover .dsh-base-cluster__svg--star .dsh-base-ico-spark--3,.dsh-base-cluster__btn.is-hover .dsh-base-cluster__svg--star .dsh-base-ico-spark--3{animation-delay:.44s}",
|
|
1750
|
+
".dsh-base-cluster__btn:hover .dsh-base-cluster__svg--star .dsh-base-ico-spark--4,.dsh-base-cluster__btn.is-hover .dsh-base-cluster__svg--star .dsh-base-ico-spark--4{animation-delay:.66s}",
|
|
1751
|
+
".dsh-base-cluster__btn:hover .dsh-base-cluster__svg--issue .dsh-base-ico-bubble,.dsh-base-cluster__btn.is-hover .dsh-base-cluster__svg--issue .dsh-base-ico-bubble{animation:dsh-base-cluster-wiggle 1.1s ease-in-out infinite}",
|
|
1752
|
+
".dsh-base-cluster__btn:hover .dsh-base-cluster__svg--issue .dsh-base-ico-bang,.dsh-base-cluster__btn.is-hover .dsh-base-cluster__svg--issue .dsh-base-ico-bang{animation:dsh-base-cluster-bounce 1.1s ease-in-out infinite}",
|
|
1753
|
+
".dsh-base-cluster__btn:hover .dsh-base-cluster__svg--issue .dsh-base-ico-spark,.dsh-base-cluster__btn.is-hover .dsh-base-cluster__svg--issue .dsh-base-ico-spark{animation:dsh-base-cluster-blink 1.2s ease-in-out .3s infinite}",
|
|
1754
|
+
"@keyframes dsh-base-cluster-floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.8px)}}",
|
|
1755
|
+
"@keyframes dsh-base-cluster-dotpulse{0%,100%{opacity:.35;transform:scale(.75)}50%{opacity:1;transform:scale(1.18)}}",
|
|
1756
|
+
"@keyframes dsh-base-cluster-twinkle{0%,100%{transform:scale(1) rotate(0);filter:brightness(1)}45%{transform:scale(1.1) rotate(7deg);filter:brightness(1.2)}}",
|
|
1757
|
+
"@keyframes dsh-base-cluster-halo{0%,100%{opacity:.3;transform:scale(.9)}50%{opacity:.85;transform:scale(1.1)}}",
|
|
1758
|
+
"@keyframes dsh-base-cluster-blink{0%,100%{opacity:.18;transform:scale(.55)}50%{opacity:1;transform:scale(1.15)}}",
|
|
1759
|
+
"@keyframes dsh-base-cluster-wiggle{0%,100%{transform:rotate(0)}25%{transform:rotate(-5deg)}70%{transform:rotate(5deg)}}",
|
|
1760
|
+
"@keyframes dsh-base-cluster-bounce{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-1.6px) scale(1.05)}}",
|
|
1761
|
+
".dsh-base-cluster__menu{position:absolute;top:calc(100% + 6px);right:0;z-index:2147482000;display:flex;flex-direction:column;gap:2px;min-width:170px;padding:6px;border:1px solid var(--dsw-alias-border-l1,rgba(127,127,127,.2));border-radius:10px;background:var(--dsw-alias-bg-layer-2,#fff);box-shadow:0 12px 32px rgba(0,0,0,.18)}",
|
|
1762
|
+
".dsh-base-cluster__menu-item{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:12.5px;line-height:1.5;text-align:left;text-decoration:none;cursor:pointer}",
|
|
1763
|
+
".dsh-base-cluster__menu-item:hover{background:rgba(127,127,127,.12)}",
|
|
1764
|
+
".dsh-base-cluster__menu-item:focus-visible{outline:2px solid var(--dsw-alias-link,#4d6bfe);outline-offset:-2px}",
|
|
1765
|
+
".dsh-base-cluster__menu-item:disabled{opacity:.38;cursor:default}",
|
|
1766
|
+
".dsh-base-cluster__menu-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",
|
|
1767
|
+
"@media (prefers-reduced-motion:reduce){.dsh-base-cluster__btn,.dsh-base-cluster__btn::before,.dsh-base-cluster__btn svg *{animation:none!important;transition:none!important}}",
|
|
1768
|
+
".dsh-base-tip-anchor{display:inline-flex;align-items:center}",
|
|
1769
|
+
".dsh-base-tip{position:fixed;z-index:2147483000;max-width:320px;padding:6px 10px;border-radius:8px;background:rgba(23,23,26,.94);color:#fff;font-size:12px;font-weight:400;line-height:1.55;letter-spacing:0;text-align:left;white-space:normal;overflow-wrap:anywhere;pointer-events:none;box-shadow:0 8px 24px rgba(0,0,0,.28);opacity:0;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}",
|
|
1770
|
+
".dsh-base-tip[data-side='bottom']{transform:translateY(-2px)}",
|
|
1771
|
+
".dsh-base-tip[data-show='true']{opacity:1;transform:none}",
|
|
1772
|
+
".dsh-base-modal{position:fixed;inset:0;margin:auto;width:min(800px,92vw);max-width:min(800px,92vw);max-height:88vh;padding:0;border:0;border-radius:18px;background:var(--dsw-alias-bg-layer-2,#fff);color:var(--dsw-alias-label-primary,#1f2329);box-shadow:0 24px 64px rgba(0,0,0,.24);overflow:hidden}",
|
|
1773
|
+
".dsh-base-modal[open]{display:block}",
|
|
1774
|
+
".dsh-base-modal::backdrop{background:rgba(0,0,0,.45)}",
|
|
1775
|
+
".dsh-base-modal__panel{display:flex;flex-direction:column;max-height:88vh}",
|
|
1776
|
+
".dsh-base-modal__header{position:relative;padding:22px 56px 8px;text-align:center}",
|
|
1777
|
+
".dsh-base-modal__heading{display:flex;flex-direction:column;align-items:center;gap:2px}",
|
|
1778
|
+
".dsh-base-modal__kicker{display:block;font-size:10px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--dsw-alias-label-tertiary,#86909c)}",
|
|
1779
|
+
".dsh-base-modal__title{margin:0;font-size:18px;font-weight:600;line-height:1.4;letter-spacing:.01em;color:var(--dsw-alias-label-primary,#1f2329)}",
|
|
1780
|
+
".dsh-base-modal__close{position:absolute;top:14px;right:14px;width:32px;height:32px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--dsw-alias-label-tertiary,#86909c);font:inherit;font-size:20px;line-height:1;cursor:pointer;transition:background .15s ease,color .15s ease}",
|
|
1781
|
+
".dsh-base-modal__close:hover{background:var(--dsw-alias-fill-tsp-secondary,rgba(0,0,0,.06));color:var(--dsw-alias-label-primary,#1f2329)}",
|
|
1782
|
+
".dsh-base-modal__close:focus-visible{outline:2px solid var(--dsw-alias-link,#4d6bfe);outline-offset:2px}",
|
|
1783
|
+
".dsh-base-modal__welcome{margin:4px auto 16px;padding:0 24px;font-size:13px;line-height:1.75;color:var(--dsw-alias-label-secondary,#4e5969);text-align:center;max-width:640px}",
|
|
1784
|
+
".dsh-base-modal__body{flex:1 1 auto;min-height:0;padding:0 24px 18px;overflow:auto;overscroll-behavior:contain}",
|
|
1785
|
+
".dsh-base-modal__grid{display:grid;grid-template-columns:repeat(var(--dsh-base-columns,4),minmax(0,1fr));gap:14px;align-items:start}",
|
|
1786
|
+
".dsh-base-modal__card{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;padding:14px 12px;border:1px solid var(--dsw-alias-border-l1,rgba(127,127,127,.2));border-radius:14px;background:var(--dsw-alias-bg-layer-2,#fff);text-align:center}",
|
|
1787
|
+
".dsh-base-modal__card--expired{background:var(--dsw-alias-state-warn-tertiary,#fffaf3);border-color:var(--dsw-alias-state-warn-secondary,rgba(180,83,9,.28))}",
|
|
1788
|
+
".dsh-base-modal__card-title{margin:0;font-size:13px;font-weight:600;line-height:1.4;color:var(--dsw-alias-label-primary,#1f2329)}",
|
|
1789
|
+
".dsh-base-modal__card-subtitle{display:inline-block;align-self:center;margin:0;padding:2px 6px;border:0;border-radius:6px;background:transparent;color:var(--dsw-alias-label-tertiary,#86909c);font:inherit;font-size:11px;line-height:1.5;cursor:pointer;transition:background .15s ease,color .15s ease}",
|
|
1790
|
+
".dsh-base-modal__card-subtitle:hover{background:rgba(127,127,127,.1);color:var(--dsw-alias-label-secondary,#4e5969)}",
|
|
1791
|
+
".dsh-base-modal__card-subtitle[data-copied='true']{color:var(--dsw-alias-link,#4d6bfe)}",
|
|
1792
|
+
".dsh-base-modal__card-subtitle:focus-visible{outline:2px solid var(--dsw-alias-link,#4d6bfe);outline-offset:2px}",
|
|
1793
|
+
".dsh-base-modal__qr{box-sizing:border-box;max-width:100%;width:100%;height:auto;min-height:150px;padding:6px;border-radius:8px;background:#fff;object-fit:contain;image-rendering:pixelated}",
|
|
1794
|
+
".dsh-base-modal__card-note{margin-top:2px;font-size:10.5px;line-height:1.5;color:var(--dsw-alias-label-tertiary,#86909c)}",
|
|
1795
|
+
".dsh-base-modal__card-expired{margin-top:2px;font-size:10.5px;line-height:1.5;color:var(--dsw-alias-state-warn-label,#b45309)}",
|
|
1796
|
+
".dsh-base-modal__card-link{align-self:center;margin-top:4px;padding:6px 10px;border:1px solid var(--dsw-alias-border-l2,rgba(77,107,254,.35));border-radius:8px;color:var(--dsw-alias-link,#4d6bfe);font-size:11.5px;line-height:1.4;text-decoration:none;word-break:break-all}",
|
|
1797
|
+
".dsh-base-modal__card-link:hover{background:var(--dsw-alias-fill-tsp-secondary,rgba(77,107,254,.08))}",
|
|
1798
|
+
".dsh-base-modal__card-link:focus-visible{outline:2px solid var(--dsw-alias-link,#4d6bfe);outline-offset:2px}",
|
|
1799
|
+
".dsh-base-modal__footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 10px;padding:0 24px 18px;font-size:11.5px;line-height:1.6;color:var(--dsw-alias-label-tertiary,#86909c);text-align:center}",
|
|
1800
|
+
".dsh-base-modal__mobile-hint{display:none}",
|
|
1801
|
+
".dsh-base-plugins{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border:1px solid var(--dsw-alias-border-l1,rgba(127,127,127,.2));border-radius:10px;background:var(--dsw-alias-bg-layer-2,rgba(127,127,127,.06))}",
|
|
1802
|
+
".dsh-base-plugins__title{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;font-weight:600;line-height:1.4;color:inherit}",
|
|
1803
|
+
".dsh-base-plugins__title-icon{display:inline-flex;flex:0 0 auto;align-items:center;color:var(--dsw-alias-label-secondary,#86909c)}",
|
|
1804
|
+
".dsh-base-plugins__title-icon svg{display:block}",
|
|
1805
|
+
".dsh-base-plugins__list{display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none}",
|
|
1806
|
+
".dsh-base-plugins__item{min-width:0}",
|
|
1807
|
+
...rowSkin("dsh-base-plugins__row"),
|
|
1808
|
+
".dsh-base-plugins__icon{display:inline-flex;flex:0 0 auto;align-items:center;color:var(--dsw-alias-label-secondary,#86909c)}",
|
|
1809
|
+
".dsh-base-plugins__icon svg{display:block}",
|
|
1810
|
+
".dsh-base-plugins__name{flex:0 0 auto;font-family:var(--ds-font-family-code,Consolas,Menlo,monospace);font-size:12px;font-weight:650;line-height:1.5;white-space:nowrap;color:inherit}",
|
|
1811
|
+
".dsh-base-plugins__desc{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.5;color:var(--dsw-alias-label-secondary,#86909c)}",
|
|
1812
|
+
".dsh-base-plugins__ext{display:inline-flex;flex:0 0 auto;align-items:center;color:var(--dsw-alias-label-tertiary,#a9aeb8)}",
|
|
1813
|
+
".dsh-base-plugins__ext svg{display:block}",
|
|
1814
|
+
"@media (max-width:719px){.dsh-base-modal__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}",
|
|
1815
|
+
"@media (max-width:479px){.dsh-base-modal__grid{grid-template-columns:minmax(0,1fr)}}",
|
|
1816
|
+
"@media (max-width:719px){.dsh-base-modal__mobile-hint{display:inline}}",
|
|
1817
|
+
"@media (prefers-reduced-motion:reduce){.dsh-base-modal__close,.dsh-base-modal__card-subtitle,.dsh-base-contact-button,.dsh-base-contact-row,.dsh-base-plugins__row,.dsh-base-icon-action,.dsh-base-tip{transition:none}}"
|
|
1818
|
+
].join("\n");
|
|
1819
|
+
function ensureBaseStyles(doc) {
|
|
1820
|
+
if (doc.getElementById("dsh-base-ui-style")) return;
|
|
1821
|
+
const style = doc.createElement("style");
|
|
1822
|
+
style.id = BASE_STYLE_ID;
|
|
1823
|
+
style.textContent = BASE_CSS;
|
|
1824
|
+
(doc.head ?? doc.documentElement).appendChild(style);
|
|
1825
|
+
}
|
|
1826
|
+
var MESSAGES = {
|
|
1827
|
+
zh: {
|
|
1828
|
+
contact: "联系我们",
|
|
1829
|
+
contactHint: "加入交流群",
|
|
1830
|
+
kicker: "CONNECT",
|
|
1831
|
+
modalTitle: "反馈与联系",
|
|
1832
|
+
welcome: "👏欢迎提交PR、ISSUE。星星之火可以燎原🔥有任何建议、意见、想法、吐槽、idea都可以进群交流。",
|
|
1833
|
+
scanHint: "扫描二维码加入我们",
|
|
1834
|
+
mobileHint: "请在手机上扫码,或复制群号搜索",
|
|
1835
|
+
close: "关闭",
|
|
1836
|
+
copyHint: "点击复制",
|
|
1837
|
+
copied: "已复制",
|
|
1838
|
+
expired: "该二维码已过期,请点击下方链接获取最新群码",
|
|
1839
|
+
fallback: "点此获取最新群二维码",
|
|
1840
|
+
plugins: "作者的其他插件",
|
|
1841
|
+
contactTip: "扫码加入交流群,反馈、建议、idea 都欢迎🎉",
|
|
1842
|
+
starTip: "您的🌟是我夜空中最亮的星🌹",
|
|
1843
|
+
issueTip: "任何功能需求、故障、建议、意见都可以提ISSUE问题单🙏",
|
|
1844
|
+
starLabel: "Star 这个项目",
|
|
1845
|
+
issueLabel: "提交 Issue",
|
|
1846
|
+
actionsLabel: "快捷操作",
|
|
1847
|
+
moreActions: "更多操作"
|
|
1848
|
+
},
|
|
1849
|
+
en: {
|
|
1850
|
+
contact: "Contact us",
|
|
1851
|
+
contactHint: "Join the community",
|
|
1852
|
+
kicker: "CONNECT",
|
|
1853
|
+
modalTitle: "Feedback and Contact",
|
|
1854
|
+
welcome: "👏Welcome PRs and issues. A single spark can start a prairie fire 🔥. Any suggestion, opinion, idea or rant — come join the group and talk.",
|
|
1855
|
+
scanHint: "Scan the QR code to join us",
|
|
1856
|
+
mobileHint: "Scan with your phone, or copy the group ID to search",
|
|
1857
|
+
close: "Close",
|
|
1858
|
+
copyHint: "Click to copy",
|
|
1859
|
+
copied: "Copied",
|
|
1860
|
+
expired: "This QR code has expired. Use the link below for the latest one.",
|
|
1861
|
+
fallback: "Get the latest QR code",
|
|
1862
|
+
plugins: "More plugins by the author",
|
|
1863
|
+
contactTip: "Scan to join the community — feedback, ideas and rants are all welcome 🎉",
|
|
1864
|
+
starTip: "Your ⭐ is the brightest star in my night sky 🌹",
|
|
1865
|
+
issueTip: "Feature requests, bugs or ideas — just open an ISSUE ticket 🙏",
|
|
1866
|
+
starLabel: "Star this project",
|
|
1867
|
+
issueLabel: "Open an issue",
|
|
1868
|
+
actionsLabel: "Quick actions",
|
|
1869
|
+
moreActions: "More actions"
|
|
1870
|
+
}
|
|
1871
|
+
};
|
|
1872
|
+
function resolveText(key, lang, overrides) {
|
|
1873
|
+
const custom = overrides?.[key];
|
|
1874
|
+
if (typeof custom === "string" && custom.length > 0) return custom;
|
|
1875
|
+
return MESSAGES[lang][key];
|
|
1876
|
+
}
|
|
1877
|
+
var TITLE_ID = "dsh-base-modal-title";
|
|
1878
|
+
var DESC_ID = "dsh-base-modal-desc";
|
|
1879
|
+
var FOCUSABLE_SELECTOR = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1880
|
+
function mountContactModal(config) {
|
|
1881
|
+
const { doc, lang } = config;
|
|
1882
|
+
const win = doc.defaultView;
|
|
1883
|
+
let current = config;
|
|
1884
|
+
const t = (key) => resolveText(key, lang, config.texts);
|
|
1885
|
+
ensureBaseStyles(doc);
|
|
1886
|
+
const dialog = doc.createElement("dialog");
|
|
1887
|
+
dialog.className = "dsh-base-modal";
|
|
1888
|
+
dialog.setAttribute("role", "dialog");
|
|
1889
|
+
dialog.setAttribute("aria-modal", "true");
|
|
1890
|
+
dialog.setAttribute("aria-labelledby", TITLE_ID);
|
|
1891
|
+
dialog.setAttribute("aria-describedby", DESC_ID);
|
|
1892
|
+
const panel = doc.createElement("div");
|
|
1893
|
+
panel.className = "dsh-base-modal__panel";
|
|
1894
|
+
const header = doc.createElement("div");
|
|
1895
|
+
header.className = "dsh-base-modal__header";
|
|
1896
|
+
const heading = doc.createElement("div");
|
|
1897
|
+
heading.className = "dsh-base-modal__heading";
|
|
1898
|
+
const kicker = doc.createElement("span");
|
|
1899
|
+
kicker.className = "dsh-base-modal__kicker";
|
|
1900
|
+
kicker.textContent = t("kicker");
|
|
1901
|
+
const title = doc.createElement("h2");
|
|
1902
|
+
title.id = TITLE_ID;
|
|
1903
|
+
title.className = "dsh-base-modal__title";
|
|
1904
|
+
title.textContent = t("modalTitle");
|
|
1905
|
+
heading.append(kicker, title);
|
|
1906
|
+
const closeButton = doc.createElement("button");
|
|
1907
|
+
closeButton.type = "button";
|
|
1908
|
+
closeButton.className = "dsh-base-modal__close";
|
|
1909
|
+
closeButton.setAttribute("aria-label", t("close"));
|
|
1910
|
+
closeButton.title = t("close");
|
|
1911
|
+
closeButton.textContent = "×";
|
|
1912
|
+
header.append(heading, closeButton);
|
|
1913
|
+
const welcome = doc.createElement("p");
|
|
1914
|
+
welcome.id = DESC_ID;
|
|
1915
|
+
welcome.className = "dsh-base-modal__welcome";
|
|
1916
|
+
welcome.textContent = t("welcome");
|
|
1917
|
+
const body = doc.createElement("div");
|
|
1918
|
+
body.className = "dsh-base-modal__body";
|
|
1919
|
+
const grid = doc.createElement("div");
|
|
1920
|
+
grid.className = "dsh-base-modal__grid";
|
|
1921
|
+
function renderGroups(groups, columns) {
|
|
1922
|
+
grid.style.setProperty("--dsh-base-columns", String(columns));
|
|
1923
|
+
grid.replaceChildren(...sortByOrder(groups).map((group) => buildCard(group)));
|
|
1924
|
+
}
|
|
1925
|
+
renderGroups(current.groups, current.columns);
|
|
1926
|
+
body.append(grid);
|
|
1927
|
+
const footer = doc.createElement("div");
|
|
1928
|
+
footer.className = "dsh-base-modal__footer";
|
|
1929
|
+
const scanHint = doc.createElement("span");
|
|
1930
|
+
scanHint.className = "dsh-base-modal__hint";
|
|
1931
|
+
scanHint.textContent = t("scanHint");
|
|
1932
|
+
const mobileHint = doc.createElement("span");
|
|
1933
|
+
mobileHint.className = "dsh-base-modal__mobile-hint";
|
|
1934
|
+
mobileHint.textContent = t("mobileHint");
|
|
1935
|
+
footer.append(scanHint, mobileHint);
|
|
1936
|
+
panel.append(header, welcome, body, footer);
|
|
1937
|
+
dialog.append(panel);
|
|
1938
|
+
const previousOverflow = doc.body.style.overflow;
|
|
1939
|
+
doc.body.style.overflow = "hidden";
|
|
1940
|
+
let closed = false;
|
|
1941
|
+
function destroy(restoreFocus = true) {
|
|
1942
|
+
if (closed) return;
|
|
1943
|
+
closed = true;
|
|
1944
|
+
if (typeof dialog.close === "function" && dialog.hasAttribute("open")) try {
|
|
1945
|
+
dialog.close();
|
|
1946
|
+
} catch {
|
|
1947
|
+
dialog.removeAttribute("open");
|
|
1948
|
+
}
|
|
1949
|
+
if (dialog.isConnected) {
|
|
1950
|
+
dialog.remove();
|
|
1951
|
+
doc.body.style.overflow = previousOverflow;
|
|
1952
|
+
}
|
|
1953
|
+
if (restoreFocus && config.trigger && config.trigger.isConnected && typeof config.trigger.focus === "function") config.trigger.focus();
|
|
1954
|
+
}
|
|
1955
|
+
function trapFocus(event) {
|
|
1956
|
+
const focusable = Array.from(dialog.querySelectorAll(FOCUSABLE_SELECTOR)).filter((element) => !element.hasAttribute("disabled"));
|
|
1957
|
+
if (focusable.length === 0) return;
|
|
1958
|
+
const first = focusable[0];
|
|
1959
|
+
const last = focusable[focusable.length - 1];
|
|
1960
|
+
const active = doc.activeElement;
|
|
1961
|
+
if (event.shiftKey) {
|
|
1962
|
+
if (active === first || !dialog.contains(active)) {
|
|
1963
|
+
event.preventDefault();
|
|
1964
|
+
last.focus();
|
|
1965
|
+
}
|
|
1966
|
+
} else if (active === last || !dialog.contains(active)) {
|
|
1967
|
+
event.preventDefault();
|
|
1968
|
+
first.focus();
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
dialog.addEventListener("keydown", (event) => {
|
|
1972
|
+
if (event.key === "Escape") {
|
|
1973
|
+
event.preventDefault();
|
|
1974
|
+
destroy(true);
|
|
1975
|
+
return;
|
|
1976
|
+
}
|
|
1977
|
+
if (event.key === "Tab") trapFocus(event);
|
|
1978
|
+
});
|
|
1979
|
+
dialog.addEventListener("cancel", (event) => {
|
|
1980
|
+
event.preventDefault();
|
|
1981
|
+
destroy(true);
|
|
1982
|
+
});
|
|
1983
|
+
dialog.addEventListener("click", (event) => {
|
|
1984
|
+
if (event.target === dialog) destroy(true);
|
|
1985
|
+
});
|
|
1986
|
+
dialog.addEventListener("close", () => destroy(true));
|
|
1987
|
+
closeButton.addEventListener("click", () => destroy(true));
|
|
1988
|
+
doc.body.append(dialog);
|
|
1989
|
+
let inTopLayer = false;
|
|
1990
|
+
if (typeof dialog.showModal === "function") try {
|
|
1991
|
+
dialog.showModal();
|
|
1992
|
+
inTopLayer = true;
|
|
1993
|
+
} catch {
|
|
1994
|
+
inTopLayer = false;
|
|
1995
|
+
}
|
|
1996
|
+
if (!inTopLayer) dialog.setAttribute("open", "");
|
|
1997
|
+
closeButton.focus();
|
|
1998
|
+
function buildCard(group) {
|
|
1999
|
+
const card = doc.createElement("div");
|
|
2000
|
+
card.className = "dsh-base-modal__card";
|
|
2001
|
+
card.dataset.groupId = group.id;
|
|
2002
|
+
const expired = isExpired(group.validUntil, current.now);
|
|
2003
|
+
if (expired) card.classList.add("dsh-base-modal__card--expired");
|
|
2004
|
+
const qrSrc = expired ? null : current.resolveQr(group);
|
|
2005
|
+
const cardTitle = doc.createElement("h3");
|
|
2006
|
+
cardTitle.className = "dsh-base-modal__card-title";
|
|
2007
|
+
cardTitle.textContent = pickText$1(group.title, lang);
|
|
2008
|
+
card.append(cardTitle);
|
|
2009
|
+
if (group.subtitle) {
|
|
2010
|
+
const subtitle = doc.createElement("button");
|
|
2011
|
+
subtitle.type = "button";
|
|
2012
|
+
subtitle.className = "dsh-base-modal__card-subtitle";
|
|
2013
|
+
subtitle.textContent = pickText$1(group.subtitle, lang);
|
|
2014
|
+
subtitle.title = t("copyHint");
|
|
2015
|
+
subtitle.addEventListener("click", () => copyText(subtitle, subtitle.textContent ?? ""));
|
|
2016
|
+
card.append(subtitle);
|
|
2017
|
+
}
|
|
2018
|
+
if (qrSrc) {
|
|
2019
|
+
const image = doc.createElement("img");
|
|
2020
|
+
image.className = "dsh-base-modal__qr";
|
|
2021
|
+
image.src = qrSrc;
|
|
2022
|
+
image.alt = pickText$1(group.alt, lang);
|
|
2023
|
+
image.loading = "lazy";
|
|
2024
|
+
image.decoding = "async";
|
|
2025
|
+
card.append(image);
|
|
2026
|
+
}
|
|
2027
|
+
if (expired) {
|
|
2028
|
+
const note = doc.createElement("span");
|
|
2029
|
+
note.className = "dsh-base-modal__card-expired";
|
|
2030
|
+
note.textContent = t("expired");
|
|
2031
|
+
card.append(note);
|
|
2032
|
+
} else {
|
|
2033
|
+
const noteText = formatValidity(group.validUntil, {
|
|
2034
|
+
lang,
|
|
2035
|
+
now: current.now
|
|
2036
|
+
}) ?? (group.note ? pickText$1(group.note, lang) : null);
|
|
2037
|
+
if (noteText) {
|
|
2038
|
+
const note = doc.createElement("span");
|
|
2039
|
+
note.className = "dsh-base-modal__card-note";
|
|
2040
|
+
note.textContent = noteText;
|
|
2041
|
+
card.append(note);
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
2044
|
+
if (!qrSrc) {
|
|
2045
|
+
const link = doc.createElement("a");
|
|
2046
|
+
link.className = "dsh-base-modal__card-link";
|
|
2047
|
+
link.href = current.fallbackUrl;
|
|
2048
|
+
link.target = "_blank";
|
|
2049
|
+
link.rel = "noopener noreferrer";
|
|
2050
|
+
link.textContent = t("fallback");
|
|
2051
|
+
card.append(link);
|
|
2052
|
+
}
|
|
2053
|
+
return card;
|
|
2054
|
+
}
|
|
2055
|
+
function copyText(button, text) {
|
|
2056
|
+
const markCopied = () => {
|
|
2057
|
+
button.dataset.copied = "true";
|
|
2058
|
+
button.setAttribute("aria-label", t("copied"));
|
|
2059
|
+
};
|
|
2060
|
+
const selectText = () => {
|
|
2061
|
+
const selection = win?.getSelection?.();
|
|
2062
|
+
if (!selection) return;
|
|
2063
|
+
const range = doc.createRange();
|
|
2064
|
+
range.selectNodeContents(button);
|
|
2065
|
+
selection.removeAllRanges();
|
|
2066
|
+
selection.addRange(range);
|
|
2067
|
+
};
|
|
2068
|
+
const clipboard = win?.navigator?.clipboard;
|
|
2069
|
+
if (clipboard && typeof clipboard.writeText === "function") clipboard.writeText(text).then(markCopied, selectText);
|
|
2070
|
+
else selectText();
|
|
2071
|
+
}
|
|
2072
|
+
function update(next) {
|
|
2073
|
+
if (closed) return;
|
|
2074
|
+
current = {
|
|
2075
|
+
...current,
|
|
2076
|
+
...next
|
|
2077
|
+
};
|
|
2078
|
+
renderGroups(current.groups, current.columns);
|
|
2079
|
+
}
|
|
2080
|
+
return {
|
|
2081
|
+
dialog,
|
|
2082
|
+
close: (restoreFocus = true) => destroy(restoreFocus),
|
|
2083
|
+
update
|
|
2084
|
+
};
|
|
2085
|
+
}
|
|
2086
|
+
var DEFAULT_MAX_ROWS = 5;
|
|
2087
|
+
function selectAuthorPlugins(options) {
|
|
2088
|
+
const cap = typeof options.maxRows === "number" && Number.isFinite(options.maxRows) ? Math.max(0, Math.floor(options.maxRows)) : DEFAULT_MAX_ROWS;
|
|
2089
|
+
const sorted = sortByOrder(options.plugins);
|
|
2090
|
+
return (options.showSelf || !options.selfId ? sorted : sorted.filter((plugin) => plugin.id !== options.selfId)).slice(0, cap);
|
|
2091
|
+
}
|
|
2092
|
+
function renderAuthorPlugins(options) {
|
|
2093
|
+
const rows = selectAuthorPlugins(options);
|
|
2094
|
+
if (rows.length === 0) return null;
|
|
2095
|
+
if (typeof document !== "undefined") ensureBaseStyles(document);
|
|
2096
|
+
const h = options.React.createElement;
|
|
2097
|
+
return h("div", { className: options.className ? "dsh-base-plugins " + options.className : "dsh-base-plugins" }, h("h3", {
|
|
2098
|
+
className: "dsh-base-plugins__title",
|
|
2099
|
+
key: "title"
|
|
2100
|
+
}, h("span", {
|
|
2101
|
+
className: "dsh-base-plugins__title-icon",
|
|
2102
|
+
key: "icon",
|
|
2103
|
+
"aria-hidden": "true"
|
|
2104
|
+
}, gridIcon(h, 14)), h("span", {
|
|
2105
|
+
className: "dsh-base-plugins__title-text",
|
|
2106
|
+
key: "text"
|
|
2107
|
+
}, options.title)), h("ul", {
|
|
2108
|
+
className: "dsh-base-plugins__list",
|
|
2109
|
+
key: "list"
|
|
2110
|
+
}, rows.map((plugin) => {
|
|
2111
|
+
const desc = pickText$1(plugin.desc, options.lang);
|
|
2112
|
+
const tip = options.tip;
|
|
2113
|
+
const rowTip = tip && desc ? {
|
|
2114
|
+
onMouseEnter: (event) => {
|
|
2115
|
+
tip.show(event.currentTarget, desc);
|
|
2116
|
+
},
|
|
2117
|
+
onMouseLeave: () => tip.hideSoon(),
|
|
2118
|
+
onFocus: (event) => {
|
|
2119
|
+
tip.show(event.currentTarget, desc);
|
|
2120
|
+
},
|
|
2121
|
+
onBlur: () => tip.hideSoon()
|
|
2122
|
+
} : {};
|
|
2123
|
+
return h("li", {
|
|
2124
|
+
className: "dsh-base-plugins__item",
|
|
2125
|
+
key: plugin.id
|
|
2126
|
+
}, h("a", {
|
|
2127
|
+
className: "dsh-base-plugins__row",
|
|
2128
|
+
href: pluginHref(plugin),
|
|
2129
|
+
target: "_blank",
|
|
2130
|
+
rel: "noopener noreferrer",
|
|
2131
|
+
...rowTip
|
|
2132
|
+
}, h("span", {
|
|
2133
|
+
className: "dsh-base-plugins__icon",
|
|
2134
|
+
key: "icon",
|
|
2135
|
+
"aria-hidden": "true"
|
|
2136
|
+
}, gridIcon(h, 12)), h("span", {
|
|
2137
|
+
className: "dsh-base-plugins__name",
|
|
2138
|
+
key: "name"
|
|
2139
|
+
}, plugin.name), h("span", {
|
|
2140
|
+
className: "dsh-base-plugins__desc",
|
|
2141
|
+
key: "desc"
|
|
2142
|
+
}, desc), h("span", {
|
|
2143
|
+
className: "dsh-base-plugins__ext",
|
|
2144
|
+
key: "ext",
|
|
2145
|
+
"aria-hidden": "true"
|
|
2146
|
+
}, externalLinkIcon(h))));
|
|
2147
|
+
})));
|
|
2148
|
+
}
|
|
2149
|
+
var MAX_COLUMNS = 4;
|
|
2150
|
+
var sharedModal = null;
|
|
2151
|
+
function detectLang(explicit) {
|
|
2152
|
+
return resolveLang$1({
|
|
2153
|
+
explicit: explicit ?? null,
|
|
2154
|
+
htmlLang: typeof document === "undefined" ? null : document.documentElement.lang,
|
|
2155
|
+
navigatorLanguages: typeof navigator === "undefined" ? null : navigator.languages
|
|
2156
|
+
});
|
|
2157
|
+
}
|
|
2158
|
+
function clampColumns(requested, groupCount) {
|
|
2159
|
+
if (typeof requested === "number" && Number.isFinite(requested)) return Math.min(MAX_COLUMNS, Math.max(1, Math.floor(requested)));
|
|
2160
|
+
return Math.max(1, Math.min(MAX_COLUMNS, groupCount));
|
|
2161
|
+
}
|
|
2162
|
+
function resolveBaselineQr(group) {
|
|
2163
|
+
if (group.qr.kind !== "bundled") return null;
|
|
2164
|
+
return BASELINE.qr[group.qr.key] ?? null;
|
|
2165
|
+
}
|
|
2166
|
+
function resolveBundledQrForGroupId(id) {
|
|
2167
|
+
return BASELINE.qr["qr-" + id] ?? null;
|
|
2168
|
+
}
|
|
2169
|
+
function resolveGroupQr(group, content, loader) {
|
|
2170
|
+
if (group.qr.kind === "bundled") return resolveBaselineQr(group);
|
|
2171
|
+
return (content && loader ? loader.imageFor(content, group.qr.path) : null) ?? resolveBundledQrForGroupId(group.id);
|
|
2172
|
+
}
|
|
2173
|
+
function mergeTexts(overrides, extra) {
|
|
2174
|
+
if (!overrides && !extra) return void 0;
|
|
2175
|
+
return {
|
|
2176
|
+
...overrides,
|
|
2177
|
+
...extra
|
|
2178
|
+
};
|
|
2179
|
+
}
|
|
2180
|
+
function classes3(base, extra) {
|
|
2181
|
+
return extra ? base + " " + extra : base;
|
|
2182
|
+
}
|
|
2183
|
+
function createBaseUI(React, options = {}) {
|
|
2184
|
+
let active = null;
|
|
2185
|
+
let loader = options.contentLoader ?? null;
|
|
2186
|
+
function getLoader() {
|
|
2187
|
+
if (loader) return loader;
|
|
2188
|
+
try {
|
|
2189
|
+
loader = createContentLoader({
|
|
2190
|
+
manifestUrl: options.manifestUrl,
|
|
2191
|
+
fetchImpl: options.fetchImpl
|
|
2192
|
+
});
|
|
2193
|
+
} catch {
|
|
2194
|
+
loader = null;
|
|
2195
|
+
}
|
|
2196
|
+
return loader;
|
|
2197
|
+
}
|
|
2198
|
+
function widgetText(key) {
|
|
2199
|
+
return resolveText(key, detectLang(options.lang), options.texts);
|
|
2200
|
+
}
|
|
2201
|
+
function closeActive(restoreFocus) {
|
|
2202
|
+
const handle = active;
|
|
2203
|
+
active = null;
|
|
2204
|
+
if (!handle) return;
|
|
2205
|
+
if (sharedModal === handle) sharedModal = null;
|
|
2206
|
+
handle.close(restoreFocus);
|
|
2207
|
+
}
|
|
2208
|
+
function closeContactModal() {
|
|
2209
|
+
closeActive(true);
|
|
2210
|
+
}
|
|
2211
|
+
function buildResolver(callOptions, content) {
|
|
2212
|
+
const custom = callOptions.resolveQr ?? options.resolveQr;
|
|
2213
|
+
if (custom) return custom;
|
|
2214
|
+
return (group) => resolveGroupQr(group, content, loader);
|
|
2215
|
+
}
|
|
2216
|
+
function applyContent(handle, content) {
|
|
2217
|
+
if (active !== handle) return;
|
|
2218
|
+
const groups = content.manifest.groups.length > 0 ? content.manifest.groups : BASELINE.manifest.groups;
|
|
2219
|
+
handle.update({
|
|
2220
|
+
groups,
|
|
2221
|
+
columns: clampColumns(void 0, groups.length),
|
|
2222
|
+
fallbackUrl: content.manifest.fallbackUrl,
|
|
2223
|
+
resolveQr: (group) => resolveGroupQr(group, content, loader) ?? null
|
|
2224
|
+
});
|
|
2225
|
+
}
|
|
2226
|
+
async function refreshRemote(handle, callOptions) {
|
|
2227
|
+
if (callOptions.groups && callOptions.groups.length > 0) return;
|
|
2228
|
+
const currentLoader = getLoader();
|
|
2229
|
+
if (!currentLoader) return;
|
|
2230
|
+
const content = await currentLoader.load();
|
|
2231
|
+
if (!content || active !== handle) return;
|
|
2232
|
+
await currentLoader.ensureImages(content);
|
|
2233
|
+
if (active !== handle) return;
|
|
2234
|
+
const custom = callOptions.resolveQr ?? options.resolveQr;
|
|
2235
|
+
if (custom) {
|
|
2236
|
+
handle.update({
|
|
2237
|
+
groups: content.manifest.groups,
|
|
2238
|
+
columns: clampColumns(callOptions.columns ?? options.columns, content.manifest.groups.length),
|
|
2239
|
+
fallbackUrl: content.manifest.fallbackUrl,
|
|
2240
|
+
resolveQr: (group) => custom(group) ?? null
|
|
2241
|
+
});
|
|
2242
|
+
return;
|
|
2243
|
+
}
|
|
2244
|
+
applyContent(handle, content);
|
|
2245
|
+
}
|
|
2246
|
+
function openContactModal(callOptions = {}) {
|
|
2247
|
+
if (typeof document === "undefined") return () => {};
|
|
2248
|
+
const previous = sharedModal;
|
|
2249
|
+
sharedModal = null;
|
|
2250
|
+
active = null;
|
|
2251
|
+
if (previous) previous.close(false);
|
|
2252
|
+
const groups = callOptions.groups && callOptions.groups.length > 0 ? callOptions.groups : BASELINE.manifest.groups;
|
|
2253
|
+
const lang = detectLang(callOptions.lang ?? options.lang);
|
|
2254
|
+
const candidate = callOptions.trigger ?? document.activeElement;
|
|
2255
|
+
const trigger = candidate && typeof candidate.focus === "function" ? candidate : null;
|
|
2256
|
+
const cached = getLoader()?.getCached() ?? null;
|
|
2257
|
+
const resolver = buildResolver(callOptions, cached);
|
|
2258
|
+
const handle = mountContactModal({
|
|
2259
|
+
doc: document,
|
|
2260
|
+
lang,
|
|
2261
|
+
groups,
|
|
2262
|
+
columns: clampColumns(callOptions.columns ?? options.columns, groups.length),
|
|
2263
|
+
trigger,
|
|
2264
|
+
fallbackUrl: callOptions.fallbackUrl ?? options.fallbackUrl ?? cached?.manifest.fallbackUrl ?? BASELINE.manifest.fallbackUrl,
|
|
2265
|
+
texts: mergeTexts(options.texts, callOptions.texts),
|
|
2266
|
+
resolveQr: (group) => resolver(group) ?? null,
|
|
2267
|
+
now: callOptions.now
|
|
2268
|
+
});
|
|
2269
|
+
active = handle;
|
|
2270
|
+
sharedModal = handle;
|
|
2271
|
+
handle.dialog.addEventListener("close", () => {
|
|
2272
|
+
if (active === handle) active = null;
|
|
2273
|
+
if (sharedModal === handle) sharedModal = null;
|
|
2274
|
+
});
|
|
2275
|
+
refreshRemote(handle, callOptions);
|
|
2276
|
+
return () => {
|
|
2277
|
+
if (active === handle) active = null;
|
|
2278
|
+
if (sharedModal === handle) sharedModal = null;
|
|
2279
|
+
handle.close();
|
|
2280
|
+
};
|
|
2281
|
+
}
|
|
2282
|
+
const actions = createActions(React, {
|
|
2283
|
+
text: widgetText,
|
|
2284
|
+
openContact: (trigger) => {
|
|
2285
|
+
openContactModal({ trigger });
|
|
2286
|
+
},
|
|
2287
|
+
repoUrl: options.repoUrl,
|
|
2288
|
+
issuesUrl: options.issuesUrl
|
|
2289
|
+
});
|
|
2290
|
+
const cluster = createActionCluster(React, {
|
|
2291
|
+
text: widgetText,
|
|
2292
|
+
openContact: (trigger) => {
|
|
2293
|
+
openContactModal({ trigger });
|
|
2294
|
+
},
|
|
2295
|
+
repoUrl: options.repoUrl,
|
|
2296
|
+
issuesUrl: options.issuesUrl
|
|
2297
|
+
});
|
|
2298
|
+
let hostIconSerial = 0;
|
|
2299
|
+
const clusterIcons = {
|
|
2300
|
+
contact: (size = 16) => contactClusterIcon(React.createElement, size, "host" + (hostIconSerial += 1)),
|
|
2301
|
+
star: (size = 16) => starClusterIcon(React.createElement, size, "host" + (hostIconSerial += 1)),
|
|
2302
|
+
issue: (size = 16) => issueClusterIcon(React.createElement, size, "host" + (hostIconSerial += 1))
|
|
2303
|
+
};
|
|
2304
|
+
function ContactRow(props) {
|
|
2305
|
+
const h = React.createElement;
|
|
2306
|
+
return h("button", {
|
|
2307
|
+
type: "button",
|
|
2308
|
+
className: classes3("dsh-base-contact-row", props.className),
|
|
2309
|
+
onClick: (event) => {
|
|
2310
|
+
openContactModal({ trigger: event.currentTarget });
|
|
2311
|
+
}
|
|
2312
|
+
}, h("span", {
|
|
2313
|
+
className: "dsh-base-contact-row__icon",
|
|
2314
|
+
key: "icon",
|
|
2315
|
+
"aria-hidden": "true"
|
|
2316
|
+
}, contactIcon(h, 16)), h("span", {
|
|
2317
|
+
className: "dsh-base-contact-row__label",
|
|
2318
|
+
key: "label"
|
|
2319
|
+
}, props.label ?? widgetText("contact"), props.hint ? h("span", {
|
|
2320
|
+
className: "dsh-base-contact-row__hint",
|
|
2321
|
+
key: "hint"
|
|
2322
|
+
}, " · " + props.hint) : null), h("span", {
|
|
2323
|
+
className: "dsh-base-contact-row__ext",
|
|
2324
|
+
key: "ext",
|
|
2325
|
+
"aria-hidden": "true"
|
|
2326
|
+
}, externalLinkIcon(h)));
|
|
2327
|
+
}
|
|
2328
|
+
function AuthorPlugins(props) {
|
|
2329
|
+
const explicitPlugins = props.plugins;
|
|
2330
|
+
const [remotePlugins, setRemotePlugins] = React.useState(null);
|
|
2331
|
+
const tip = React.useMemo(() => createTipController(), []);
|
|
2332
|
+
React.useEffect(() => () => tip.dispose(), [tip]);
|
|
2333
|
+
React.useEffect(() => {
|
|
2334
|
+
if (explicitPlugins !== void 0) return void 0;
|
|
2335
|
+
const currentLoader = getLoader();
|
|
2336
|
+
if (!currentLoader) return void 0;
|
|
2337
|
+
let alive = true;
|
|
2338
|
+
(async () => {
|
|
2339
|
+
try {
|
|
2340
|
+
const content = await currentLoader.load();
|
|
2341
|
+
if (!alive || !content) return;
|
|
2342
|
+
const plugins = content.manifest.plugins;
|
|
2343
|
+
if (plugins.length === 0) return;
|
|
2344
|
+
setRemotePlugins(plugins);
|
|
2345
|
+
} catch {}
|
|
2346
|
+
})();
|
|
2347
|
+
return () => {
|
|
2348
|
+
alive = false;
|
|
2349
|
+
};
|
|
2350
|
+
}, [explicitPlugins]);
|
|
2351
|
+
const lang = props.lang ?? detectLang(options.lang);
|
|
2352
|
+
return renderAuthorPlugins({
|
|
2353
|
+
React,
|
|
2354
|
+
lang,
|
|
2355
|
+
plugins: explicitPlugins ?? remotePlugins ?? BASELINE.manifest.plugins,
|
|
2356
|
+
selfId: props.selfId ?? options.selfId,
|
|
2357
|
+
showSelf: props.showSelf ?? options.showSelf,
|
|
2358
|
+
maxRows: props.maxRows ?? options.maxRows,
|
|
2359
|
+
title: props.title ?? resolveText("plugins", lang, options.texts),
|
|
2360
|
+
className: props.className,
|
|
2361
|
+
tip
|
|
2362
|
+
});
|
|
2363
|
+
}
|
|
2364
|
+
async function preloadContent() {
|
|
2365
|
+
const currentLoader = getLoader();
|
|
2366
|
+
if (!currentLoader) return;
|
|
2367
|
+
await currentLoader.preload();
|
|
2368
|
+
if (options.resolveQr) return;
|
|
2369
|
+
const content = currentLoader.getCached();
|
|
2370
|
+
const handle = active;
|
|
2371
|
+
if (!content || !handle) return;
|
|
2372
|
+
if (active !== handle) return;
|
|
2373
|
+
applyContent(handle, content);
|
|
2374
|
+
}
|
|
2375
|
+
return {
|
|
2376
|
+
ContactButton: actions.ContactButton,
|
|
2377
|
+
StarButton: actions.StarButton,
|
|
2378
|
+
IssueButton: actions.IssueButton,
|
|
2379
|
+
ActionButtons: actions.ActionButtons,
|
|
2380
|
+
ActionGroup: actions.ActionGroup,
|
|
2381
|
+
ActionCluster: cluster,
|
|
2382
|
+
clusterIcons,
|
|
2383
|
+
HoverTip: actions.HoverTip,
|
|
2384
|
+
ContactRow,
|
|
2385
|
+
AuthorPlugins,
|
|
2386
|
+
openContactModal,
|
|
2387
|
+
closeContactModal,
|
|
2388
|
+
preloadContent
|
|
2389
|
+
};
|
|
2390
|
+
}
|
|
2391
|
+
//#endregion
|
|
2392
|
+
//#region src/base-ui.ts
|
|
2393
|
+
/** base 包通用件的适配层(本仓唯一接触 dsh-featherhunter-plugin-base/client 的地方)。
|
|
2394
|
+
*
|
|
2395
|
+
* 为什么单独一层:base 的 createBaseUI 要「宿主把 React 交进来」(它自己不 import React,
|
|
2396
|
+
* 保证与宿主同一个 React 实例);本面板产物是手写 createElement 的 browser bundle,
|
|
2397
|
+
* 这里只做两件事——(1) 按 React 身份缓存一个 baseUI 单例;(2) 首次渲染时把 base 的
|
|
2398
|
+
* 全局样式(BASE_STYLE_ID)插进 document(幂等;无 document 的环境跳过)。
|
|
2399
|
+
*
|
|
2400
|
+
* 作者推荐卡(AuthorPlugins)与页头动作簇(ActionCluster:联系/Star/Issue)都从这里出:
|
|
2401
|
+
* 文案、二维码卡、离线兜底(飞书+QQ 内置)、插件清单与图标全部来自 base 包(唯一真源
|
|
2402
|
+
* contact/ → data/manifest.json),本仓不再维护第二份。
|
|
2403
|
+
*/
|
|
2404
|
+
const LANG = "zh";
|
|
2405
|
+
const SELF_ID = "ilife";
|
|
2406
|
+
/** 本仓地址:页头三件套里 Star 的目标、Issue 的派生基准(base 由 repoUrl 拼出 <repo>/issues)。 */
|
|
2407
|
+
const REPO_URL = "https://github.com/FeatherHunter/ilife";
|
|
2408
|
+
let cachedReact = null;
|
|
2409
|
+
let cachedUI = null;
|
|
2410
|
+
let stylesReady = false;
|
|
2411
|
+
/** baseUI 单例:React 身份或语言变了才重建(同一份 react 只造一次,避免弹窗状态跟着组件走丢)。 */
|
|
2412
|
+
function baseUI() {
|
|
2413
|
+
if (cachedUI !== null && cachedReact === react) return cachedUI;
|
|
2414
|
+
try {
|
|
2415
|
+
cachedUI = createBaseUI(react, {
|
|
2416
|
+
lang: LANG,
|
|
2417
|
+
selfId: SELF_ID,
|
|
2418
|
+
repoUrl: REPO_URL
|
|
2419
|
+
});
|
|
2420
|
+
cachedReact = react;
|
|
2421
|
+
} catch {
|
|
2422
|
+
cachedUI = null;
|
|
2423
|
+
cachedReact = null;
|
|
2424
|
+
}
|
|
2425
|
+
return cachedUI;
|
|
2426
|
+
}
|
|
2427
|
+
/** base 的全局样式只插一次;样式注入失败不影响功能(base 组件自带内联兜底,不抛给人看)。 */
|
|
2428
|
+
function ensureStylesOnce() {
|
|
2429
|
+
if (stylesReady || typeof document === "undefined") return;
|
|
2430
|
+
try {
|
|
2431
|
+
ensureBaseStyles(document);
|
|
2432
|
+
stylesReady = true;
|
|
2433
|
+
} catch {}
|
|
2434
|
+
}
|
|
2435
|
+
/** 作者推荐卡:插件清单与文案全部由 base 包渲染(本仓只传 selfId,排除爱生活自己)。 */
|
|
2436
|
+
function AuthorPlugins(props = {}) {
|
|
2437
|
+
const ui = baseUI();
|
|
2438
|
+
if (ui === null) return null;
|
|
2439
|
+
ensureStylesOnce();
|
|
2440
|
+
return react.createElement(ui.AuthorPlugins, { title: props.title });
|
|
2441
|
+
}
|
|
2442
|
+
/** 页头动作簇 v2(票 05):联系/Star/Issue 三枚彩色静默按钮(无外框、间距 4),图标、
|
|
2443
|
+
* 悬停文案、联系弹窗与目标网址全部由 base 渲染;本仓只给 React 身份、尺寸与本仓 repoUrl
|
|
2444
|
+
* (base 由它派生 Star 目标与 <repo>/issues 列表页)。
|
|
2445
|
+
*
|
|
2446
|
+
* 尺寸缺省 16:base 的页头默认档,与面板标题行同一视觉重量(14 紧凑/18 宽松留给别的场景)。 */
|
|
2447
|
+
function ActionCluster(props = {}) {
|
|
2448
|
+
const ui = baseUI();
|
|
2449
|
+
if (ui === null) return null;
|
|
2450
|
+
ensureStylesOnce();
|
|
2451
|
+
return react.createElement(ui.ActionCluster, { size: props.size ?? 16 });
|
|
2452
|
+
}
|
|
150
2453
|
//#endregion
|
|
151
2454
|
//#region src/manual-plan.ts
|
|
152
2455
|
const TAB_WIDTH = 5.9;
|
|
@@ -471,7 +2774,7 @@ window.__ModuleLoader__.load({
|
|
|
471
2774
|
path: "/api/ilife-manager"
|
|
472
2775
|
};
|
|
473
2776
|
//#endregion
|
|
474
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
2777
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/shared/config.js
|
|
475
2778
|
const DEFAULT_PANEL_POLL_MS = 1e3;
|
|
476
2779
|
function assertPrefix(value, role) {
|
|
477
2780
|
if (typeof value !== "string" || value.length === 0) throw new Error("[dsh-plugin-update] " + role + " 非法:须为非空字符串(收到 " + JSON.stringify(value) + ")");
|
|
@@ -493,7 +2796,7 @@ window.__ModuleLoader__.load({
|
|
|
493
2796
|
return buildPhoneNames(prefix).logAppend;
|
|
494
2797
|
}
|
|
495
2798
|
//#endregion
|
|
496
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
2799
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/shared/codes.js
|
|
497
2800
|
const BLOCKED_REASONS = [
|
|
498
2801
|
"unknown-profile",
|
|
499
2802
|
"channel-mismatch",
|
|
@@ -530,7 +2833,7 @@ window.__ModuleLoader__.load({
|
|
|
530
2833
|
return typeof code === "string" && isOneOf(CHECK_SIDE_FAILURE_CODES, code.trim());
|
|
531
2834
|
}
|
|
532
2835
|
//#endregion
|
|
533
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
2836
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/shared/lang.js
|
|
534
2837
|
function normalizeLangTag(tag) {
|
|
535
2838
|
if (typeof tag !== "string") return "zh";
|
|
536
2839
|
const s = tag.trim().toLowerCase().replace(/_/g, "-");
|
|
@@ -672,7 +2975,7 @@ window.__ModuleLoader__.load({
|
|
|
672
2975
|
};
|
|
673
2976
|
}
|
|
674
2977
|
//#endregion
|
|
675
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
2978
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/core/i18n/dictionary.js
|
|
676
2979
|
const BILINGUAL_STRINGS = {
|
|
677
2980
|
"entry.label.idle": {
|
|
678
2981
|
en: "Check for updates",
|
|
@@ -1614,6 +3917,11 @@ window.__ModuleLoader__.load({
|
|
|
1614
3917
|
zh: "凭上方请求/检查编号在 {eFail} 中匹配;基线耗时请查看 {eCall},执行结果请查看 {eExec}。",
|
|
1615
3918
|
draft: true
|
|
1616
3919
|
},
|
|
3920
|
+
"panel.history.failure-settled": {
|
|
3921
|
+
en: "An earlier attempt failed ({code}); target version {version} or newer is running.",
|
|
3922
|
+
zh: "上次尝试失败({code});目标版本 {version} 或更新版本正在运行。",
|
|
3923
|
+
draft: true
|
|
3924
|
+
},
|
|
1617
3925
|
"panel.loghealth.line": {
|
|
1618
3926
|
en: "Log: {text}",
|
|
1619
3927
|
zh: "日志:{text}",
|
|
@@ -2751,7 +5059,7 @@ window.__ModuleLoader__.load({
|
|
|
2751
5059
|
}
|
|
2752
5060
|
};
|
|
2753
5061
|
//#endregion
|
|
2754
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5062
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/core/i18n/text.js
|
|
2755
5063
|
function escapeHtml$4(value) {
|
|
2756
5064
|
return String(value ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
2757
5065
|
}
|
|
@@ -2780,7 +5088,7 @@ window.__ModuleLoader__.load({
|
|
|
2780
5088
|
return "<span class=\"dsh-upd-bi\"><span lang=\"" + l + "\">" + text + "</span></span>";
|
|
2781
5089
|
}
|
|
2782
5090
|
//#endregion
|
|
2783
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5091
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/core/cause.js
|
|
2784
5092
|
const CAUSE_KINDS = ["minimum-release-age"];
|
|
2785
5093
|
const CAUSE_SIGNATURES = [{
|
|
2786
5094
|
kind: "minimum-release-age",
|
|
@@ -2900,7 +5208,7 @@ window.__ModuleLoader__.load({
|
|
|
2900
5208
|
}
|
|
2901
5209
|
}
|
|
2902
5210
|
//#endregion
|
|
2903
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5211
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/shared/redaction.js
|
|
2904
5212
|
const COPY_BUDGET_CHARS = 1500;
|
|
2905
5213
|
const REDACTED_PATH = "<路径>";
|
|
2906
5214
|
const REDACTED_SECRET = "<脱敏>";
|
|
@@ -2980,7 +5288,7 @@ window.__ModuleLoader__.load({
|
|
|
2980
5288
|
return userinfo.masked ? truncateWithMaskNote(scrubbed, COPY_BUDGET_CHARS) : truncateForCopy(scrubbed);
|
|
2981
5289
|
}
|
|
2982
5290
|
//#endregion
|
|
2983
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5291
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/shared/copy.js
|
|
2984
5292
|
const BLOCKED_KEYS = {
|
|
2985
5293
|
"unknown-profile": {
|
|
2986
5294
|
title: "panel.blocked.unknown-profile.title",
|
|
@@ -3398,7 +5706,7 @@ window.__ModuleLoader__.load({
|
|
|
3398
5706
|
return blockLines.join("\n");
|
|
3399
5707
|
}
|
|
3400
5708
|
//#endregion
|
|
3401
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5709
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/panel/theme.js
|
|
3402
5710
|
function normalizePanelTheme(value) {
|
|
3403
5711
|
return value === "archive" ? "archive" : "default";
|
|
3404
5712
|
}
|
|
@@ -3510,7 +5818,7 @@ window.__ModuleLoader__.load({
|
|
|
3510
5818
|
return parts.join(";");
|
|
3511
5819
|
}
|
|
3512
5820
|
//#endregion
|
|
3513
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5821
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/core/judgment.js
|
|
3514
5822
|
function updateError(code) {
|
|
3515
5823
|
return Object.assign(new Error(code), { code });
|
|
3516
5824
|
}
|
|
@@ -3597,7 +5905,7 @@ window.__ModuleLoader__.load({
|
|
|
3597
5905
|
return 0;
|
|
3598
5906
|
}
|
|
3599
5907
|
//#endregion
|
|
3600
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5908
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/shared/hash.js
|
|
3601
5909
|
function hash8(value) {
|
|
3602
5910
|
try {
|
|
3603
5911
|
const text = String(value ?? "");
|
|
@@ -3609,8 +5917,12 @@ window.__ModuleLoader__.load({
|
|
|
3609
5917
|
}
|
|
3610
5918
|
}
|
|
3611
5919
|
[...CORE_ERROR_CODES];
|
|
5920
|
+
function normalizeRunningVersion(value) {
|
|
5921
|
+
const trimmed = typeof value === "string" && value.trim() ? value.trim() : null;
|
|
5922
|
+
return trimmed === "0.0.0" ? null : trimmed;
|
|
5923
|
+
}
|
|
3612
5924
|
//#endregion
|
|
3613
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5925
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/panel/skip-store.js
|
|
3614
5926
|
const PANEL_SKIPPED_MAX = 50;
|
|
3615
5927
|
function panelSkipKey(pluginId) {
|
|
3616
5928
|
return `dsh-upd-skipped/${String(pluginId)}`;
|
|
@@ -3713,7 +6025,33 @@ window.__ModuleLoader__.load({
|
|
|
3713
6025
|
};
|
|
3714
6026
|
}
|
|
3715
6027
|
//#endregion
|
|
3716
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
6028
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/shared/failure-settled.js
|
|
6029
|
+
function failureSettledOf(snapshot) {
|
|
6030
|
+
try {
|
|
6031
|
+
if (!snapshot || typeof snapshot !== "object") return false;
|
|
6032
|
+
const job = snapshot.job;
|
|
6033
|
+
if (!job || typeof job !== "object") return false;
|
|
6034
|
+
if (job.state !== "failed" && job.state !== "interrupted") return false;
|
|
6035
|
+
const target = typeof job.targetVersion === "string" ? job.targetVersion.trim() : "";
|
|
6036
|
+
if (!target || !validReleaseVersion(target)) return false;
|
|
6037
|
+
if (snapshot.installed !== true) return false;
|
|
6038
|
+
if (snapshot.registered !== true) return false;
|
|
6039
|
+
const installed = typeof snapshot.installedVersion === "string" ? snapshot.installedVersion.trim() : "";
|
|
6040
|
+
if (!installed || !validReleaseVersion(installed)) return false;
|
|
6041
|
+
const running = normalizeRunningVersion(snapshot.runningVersion);
|
|
6042
|
+
if (!running || !validReleaseVersion(running)) return false;
|
|
6043
|
+
if (compareReleaseVersions(installed, running) !== 0) return false;
|
|
6044
|
+
return compareReleaseVersions(installed, target) >= 0;
|
|
6045
|
+
} catch {
|
|
6046
|
+
return false;
|
|
6047
|
+
}
|
|
6048
|
+
}
|
|
6049
|
+
function settledClearsLatch(latch) {
|
|
6050
|
+
if (!latch || typeof latch !== "object") return false;
|
|
6051
|
+
return latch.source === "install" || !isCheckSideFailureCode(latch.code);
|
|
6052
|
+
}
|
|
6053
|
+
//#endregion
|
|
6054
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/panel/view-model.js
|
|
3717
6055
|
const SEAL_KEYS = {
|
|
3718
6056
|
loading: {
|
|
3719
6057
|
text: "panel.seal.loading.text",
|
|
@@ -3770,6 +6108,9 @@ window.__ModuleLoader__.load({
|
|
|
3770
6108
|
const at = message.indexOf(":");
|
|
3771
6109
|
return (at < 0 ? message : message.slice(0, at)).trim();
|
|
3772
6110
|
}
|
|
6111
|
+
function jobFailureCodeOf(job) {
|
|
6112
|
+
return job && job.state === "failed" ? messageCodeOf(job.message) || "install-failed" : "install-failed";
|
|
6113
|
+
}
|
|
3773
6114
|
function panelViewModel(input, lang) {
|
|
3774
6115
|
const l = normalizeLangTag(lang ?? input.lang ?? "zh");
|
|
3775
6116
|
const view = panelViewModelCore(input, l);
|
|
@@ -3819,6 +6160,7 @@ window.__ModuleLoader__.load({
|
|
|
3819
6160
|
}
|
|
3820
6161
|
const job = snapshot.job ?? null;
|
|
3821
6162
|
const jobState = job?.state ?? null;
|
|
6163
|
+
const jobFailureSettled = failureSettledOf(snapshot);
|
|
3822
6164
|
const queueNote = queue && queue.busy ? queue.position === 0 ? copyText("panel.queue.busy-self", l) : typeof queue.position === "number" ? copyText("panel.queue.busy-queued", l, { n: queue.position }) : copyText("panel.queue.busy-other", l) : null;
|
|
3823
6165
|
if (skippedLatest && snapshot.latestVersion) return {
|
|
3824
6166
|
banner: {
|
|
@@ -3851,8 +6193,11 @@ window.__ModuleLoader__.load({
|
|
|
3851
6193
|
queueNote
|
|
3852
6194
|
};
|
|
3853
6195
|
}
|
|
3854
|
-
const
|
|
3855
|
-
const
|
|
6196
|
+
const failureJobState = jobState === "failed" || jobState === "interrupted";
|
|
6197
|
+
const freshFailure = typeof errorKind === "string" && errorKind.trim() || lastError;
|
|
6198
|
+
const jobFailureCurrent = failureJobState && !jobFailureSettled && !(snapshot.installed === false && !freshFailure);
|
|
6199
|
+
const jobCode = jobFailureCurrent ? jobFailureCodeOf(job) : "";
|
|
6200
|
+
const failedCode = freshFailure || jobCode || "";
|
|
3856
6201
|
let staleFailure = false;
|
|
3857
6202
|
try {
|
|
3858
6203
|
const target = typeof job?.targetVersion === "string" ? job.targetVersion.trim() : "";
|
|
@@ -3862,9 +6207,8 @@ window.__ModuleLoader__.load({
|
|
|
3862
6207
|
} catch {
|
|
3863
6208
|
staleFailure = false;
|
|
3864
6209
|
}
|
|
3865
|
-
const gated =
|
|
3866
|
-
|
|
3867
|
-
if (!staleFailure && !gated && !historicalJobFailure && (failedCode || jobState === "failed" || jobState === "interrupted")) {
|
|
6210
|
+
const gated = freshFailure ? null : checkPrejudgeOfView(input.checkPrejudge, snapshot);
|
|
6211
|
+
if (!staleFailure && !gated && (failedCode || jobFailureCurrent)) {
|
|
3868
6212
|
const code = failedCode || "install-failed";
|
|
3869
6213
|
const copy = failureCopy(code, l);
|
|
3870
6214
|
const checkDetail = copy?.zh ?? code;
|
|
@@ -4027,7 +6371,7 @@ window.__ModuleLoader__.load({
|
|
|
4027
6371
|
}
|
|
4028
6372
|
}
|
|
4029
6373
|
//#endregion
|
|
4030
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
6374
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/core/changelog/parse.js
|
|
4031
6375
|
const CHANGELOG_MAX_CHARS = 65536;
|
|
4032
6376
|
const CHANGELOG_ALL_CATEGORIES = [
|
|
4033
6377
|
"Added",
|
|
@@ -4627,7 +6971,7 @@ window.__ModuleLoader__.load({
|
|
|
4627
6971
|
return String(text ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
4628
6972
|
}
|
|
4629
6973
|
//#endregion
|
|
4630
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
6974
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/core/changelog/render-model.js
|
|
4631
6975
|
const MD_URL_MAX = 2048;
|
|
4632
6976
|
const MD_MAX_DEPTH = 2;
|
|
4633
6977
|
function isHttpUrl(u) {
|
|
@@ -5148,7 +7492,7 @@ ${note}${blocks.join("\n")}
|
|
|
5148
7492
|
}
|
|
5149
7493
|
}
|
|
5150
7494
|
//#endregion
|
|
5151
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
7495
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/shared/last-resort.js
|
|
5152
7496
|
const STAGES = [
|
|
5153
7497
|
"install",
|
|
5154
7498
|
"check",
|
|
@@ -5248,12 +7592,12 @@ ${note}${blocks.join("\n")}
|
|
|
5248
7592
|
return verdict("unknown");
|
|
5249
7593
|
}
|
|
5250
7594
|
//#endregion
|
|
5251
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
7595
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/shared/log-events.js
|
|
5252
7596
|
const LOG_EVENT_CALL = "host.call";
|
|
5253
7597
|
const LOG_EVENT_CALL_FAIL = "host.call.fail";
|
|
5254
7598
|
const LOG_EVENT_INSTALL_EXEC = "update.install.exec";
|
|
5255
7599
|
//#endregion
|
|
5256
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
7600
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/shared/commands.js
|
|
5257
7601
|
const MANUAL_SUPPRESSING_REASONS = [
|
|
5258
7602
|
"source-install",
|
|
5259
7603
|
"unknown-profile",
|
|
@@ -5263,7 +7607,7 @@ ${note}${blocks.join("\n")}
|
|
|
5263
7607
|
return reason !== null && reason !== void 0 && MANUAL_SUPPRESSING_REASONS.includes(reason);
|
|
5264
7608
|
}
|
|
5265
7609
|
//#endregion
|
|
5266
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
7610
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/shared/manual-absent.js
|
|
5267
7611
|
const REASON_KEYS = {
|
|
5268
7612
|
"unknown-profile": "panel.manual.absent.unknown-profile",
|
|
5269
7613
|
"source-install": "panel.manual.absent.source-install",
|
|
@@ -5299,7 +7643,7 @@ ${note}${blocks.join("\n")}
|
|
|
5299
7643
|
return manualAbsentReasonTextOf(null, lang) + joiner + manualAbsentReasonTextOf(reason, lang);
|
|
5300
7644
|
}
|
|
5301
7645
|
//#endregion
|
|
5302
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
7646
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/panel/archive-theme.js
|
|
5303
7647
|
const UPDATE_PANEL_ARCHIVE_CSS = [
|
|
5304
7648
|
"/* Archive 档案卷可选主题:只换颜色/字体/间距;内核 DOM 顺序一字不动,不断复制诊断。 */",
|
|
5305
7649
|
".dsh-upd[data-theme=\"archive\"]{--dsh-update-bg-soft:#f7f3ea;--dsh-update-bg:#fffdf6;--dsh-update-text:#1a1a1a;--dsh-update-text-muted:#6f675a;",
|
|
@@ -5438,7 +7782,7 @@ ${note}${blocks.join("\n")}
|
|
|
5438
7782
|
"@media (prefers-reduced-motion: reduce){.dsh-upd[data-theme=\"archive\"] *{transition:none !important;animation:none !important}}"
|
|
5439
7783
|
].join("\n");
|
|
5440
7784
|
//#endregion
|
|
5441
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
7785
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/panel/failure-latch.js
|
|
5442
7786
|
function formatLatchTime(atMs, lang) {
|
|
5443
7787
|
if (typeof atMs !== "number" || !Number.isFinite(atMs) || atMs <= 0) return null;
|
|
5444
7788
|
const raw = typeof lang === "string" ? lang.trim().replace(/_/g, "-") : "";
|
|
@@ -5455,7 +7799,7 @@ ${note}${blocks.join("\n")}
|
|
|
5455
7799
|
return null;
|
|
5456
7800
|
}
|
|
5457
7801
|
//#endregion
|
|
5458
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
7802
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/panel/render.js
|
|
5459
7803
|
const UPDATE_PANEL_CSS = [
|
|
5460
7804
|
".dsh-upd{font:var(--dsh-update-panel-font-size,14px)/1.75 system-ui,\"Microsoft YaHei\",sans-serif;color:var(--dsh-update-text,#1f2937);",
|
|
5461
7805
|
"background:var(--dsh-update-bg,#ffffff);border:1px solid var(--dsh-update-border,#e5e7eb);border-radius:8px;padding:12px 14px;max-width:560px;",
|
|
@@ -5472,6 +7816,7 @@ ${note}${blocks.join("\n")}
|
|
|
5472
7816
|
".dsh-upd-banner[data-kind=\"failed\"],.dsh-upd-banner[data-kind=\"blocked\"]{border-color:var(--dsh-update-bad-border);background:var(--dsh-update-bad-bg)}",
|
|
5473
7817
|
".dsh-upd-banner[data-kind=\"update\"]{border-color:var(--dsh-update-ok-border);background:var(--dsh-update-ok-bg)}",
|
|
5474
7818
|
".dsh-upd-banner[data-kind=\"busy\"]{border-color:var(--dsh-update-busy-border);background:var(--dsh-update-busy-bg)}",
|
|
7819
|
+
".dsh-upd-settled{font-size:var(--dsh-update-panel-small-font-size,12px);opacity:.75;margin:0 0 8px;overflow-wrap:anywhere}",
|
|
5475
7820
|
".dsh-upd-lastresort{display:flex;align-items:flex-start;gap:9px;flex-wrap:wrap;border:1px solid var(--dsh-update-bad-border,#dc2626);border-left:4px solid var(--dsh-update-bad-text,#b91c1c);background:var(--dsh-update-bad-bg,#fef2f2);padding:8px 10px;margin:0 0 8px}",
|
|
5476
7821
|
".dsh-upd-lr-ico{flex:none;width:18px;height:18px;color:var(--dsh-update-bad-border,#dc2626);margin-top:2px}",
|
|
5477
7822
|
".dsh-upd-lr-main{flex:1 1 220px;min-width:0}",
|
|
@@ -5806,6 +8151,15 @@ ${note}${blocks.join("\n")}
|
|
|
5806
8151
|
parts.push(`<div>${b.kind === "restart" ? "" : `<span class="dsh-upd-sealmini" aria-hidden="true">${escapeHtml$3(seal.mini)}</span>`}<strong>${escapeHtml$3(b.title)}</strong></div>`);
|
|
5807
8152
|
parts.push("</div>");
|
|
5808
8153
|
if (b.action) parts.push(`<div class="dsh-upd-banner-sub">${escapeHtml$3(b.action)}</div>`);
|
|
8154
|
+
const settledJob = snapshot && failureSettledOf(snapshot) ? snapshot.job : null;
|
|
8155
|
+
if (settledJob && b.kind !== "failed") {
|
|
8156
|
+
const settledCode = jobFailureCodeOf(settledJob);
|
|
8157
|
+
const settledTarget = typeof settledJob.targetVersion === "string" ? settledJob.targetVersion.trim() : "";
|
|
8158
|
+
parts.push(`<div class="dsh-upd-settled" data-settled="1">${escapeHtml$3(copyText("panel.history.failure-settled", l, {
|
|
8159
|
+
code: settledCode,
|
|
8160
|
+
version: settledTarget
|
|
8161
|
+
}))}</div>`);
|
|
8162
|
+
}
|
|
5809
8163
|
parts.push(snapshot ? versionStrip(snapshot, l) : skeletonStrip(view.banner.kind === "loading", l));
|
|
5810
8164
|
const actions = [];
|
|
5811
8165
|
if (showActions) {
|
|
@@ -6312,7 +8666,7 @@ ${body}`;
|
|
|
6312
8666
|
};
|
|
6313
8667
|
}
|
|
6314
8668
|
//#endregion
|
|
6315
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
8669
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/log/panel-client.js
|
|
6316
8670
|
const RENDER_FAIL_DEDUPE_MS = 6e4;
|
|
6317
8671
|
function createPanelClientLogShell(options) {
|
|
6318
8672
|
const option = options.clientLog;
|
|
@@ -6532,10 +8886,10 @@ ${body}`;
|
|
|
6532
8886
|
}
|
|
6533
8887
|
}
|
|
6534
8888
|
//#endregion
|
|
6535
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
8889
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/core/i18n/styles.js
|
|
6536
8890
|
const BILINGUAL_CSS = [".dsh-upd-bi{display:inline;overflow-wrap:anywhere}", ".dsh-upd-bi [lang]{overflow-wrap:anywhere}"].join("\n");
|
|
6537
8891
|
//#endregion
|
|
6538
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
8892
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/panel/entry.js
|
|
6539
8893
|
const UPDATE_ENTRY_CSS = [
|
|
6540
8894
|
".dsh-upd-entry{display:inline-flex;align-items:center;gap:8px;font:13px/1.6 var(--dsh-update-font-sans,system-ui,\"Microsoft YaHei\",sans-serif);font-size:var(--dsh-update-entry-font-size,13px);color:var(--dsh-update-text,#1f2937)}",
|
|
6541
8895
|
".dsh-upd-entry-btn{font:inherit;border:1px solid var(--dsh-update-border,#d1d5db);border-radius:var(--dsh-update-entry-border-radius,6px);",
|
|
@@ -6570,7 +8924,7 @@ ${body}`;
|
|
|
6570
8924
|
".dsh-upd-entry-btn{--dsh-update-button-bg:#1f2937;--dsh-update-border:#374151}}"
|
|
6571
8925
|
].join("\n");
|
|
6572
8926
|
//#endregion
|
|
6573
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
8927
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/panel/batch/helpers.js
|
|
6574
8928
|
const BATCH_PANEL_POLL = {
|
|
6575
8929
|
defaultMs: 1500,
|
|
6576
8930
|
minMs: 250
|
|
@@ -6756,7 +9110,7 @@ ${body}`;
|
|
|
6756
9110
|
};
|
|
6757
9111
|
}
|
|
6758
9112
|
//#endregion
|
|
6759
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
9113
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/panel/batch/ledger.js
|
|
6760
9114
|
function noteRestart(counts, row) {
|
|
6761
9115
|
if (restartUnregistered(row)) counts.restartUnregistered += 1;
|
|
6762
9116
|
else counts.restart += 1;
|
|
@@ -7003,7 +9357,7 @@ ${body}`;
|
|
|
7003
9357
|
return null;
|
|
7004
9358
|
}
|
|
7005
9359
|
//#endregion
|
|
7006
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
9360
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/panel/batch/styles.js
|
|
7007
9361
|
const UPDATE_BATCH_PANEL_CSS = [
|
|
7008
9362
|
"/* 批量面板(#25):类名沿用 dsh-upd-* 前缀;默认(最小)主题,Archive 皮肤见 UPDATE_BATCH_PANEL_ARCHIVE_CSS。 */",
|
|
7009
9363
|
".dsh-upd-overlay .dsh-upd.dsh-upd-batch{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}",
|
|
@@ -7115,7 +9469,7 @@ ${body}`;
|
|
|
7115
9469
|
".dsh-upd[data-theme=\"archive\"] .dsh-upd-banner>.dsh-upd-browline button:not([data-primary=\"1\"]):not([data-busy=\"1\"]){background:transparent}"
|
|
7116
9470
|
].join(String.fromCharCode(10));
|
|
7117
9471
|
//#endregion
|
|
7118
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
9472
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/panel/batch/render.js
|
|
7119
9473
|
function renderBatchPanelHTML(input) {
|
|
7120
9474
|
const rows = Array.isArray(input.rows) ? input.rows : [];
|
|
7121
9475
|
const theme = normalizePanelTheme(input.theme);
|
|
@@ -7571,7 +9925,7 @@ ${body}`;
|
|
|
7571
9925
|
};
|
|
7572
9926
|
}
|
|
7573
9927
|
//#endregion
|
|
7574
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
9928
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/panel/batch/mount.js
|
|
7575
9929
|
function singleInstallPhoneOf(row) {
|
|
7576
9930
|
const phones = isObject$2(row.phoneNames) ? row.phoneNames : null;
|
|
7577
9931
|
if (!phones) return null;
|
|
@@ -8968,7 +11322,7 @@ ${body}`;
|
|
|
8968
11322
|
};
|
|
8969
11323
|
}
|
|
8970
11324
|
//#endregion
|
|
8971
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
11325
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/panel/batch/entry-batch.js
|
|
8972
11326
|
const ENTRY_WATCH_MAX_MS = 6e5;
|
|
8973
11327
|
function isObject$1(value) {
|
|
8974
11328
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
@@ -9383,7 +11737,7 @@ ${body}`;
|
|
|
9383
11737
|
};
|
|
9384
11738
|
}
|
|
9385
11739
|
//#endregion
|
|
9386
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
11740
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/core/install-button/styles.js
|
|
9387
11741
|
const INSTALL_BUTTON_CSS = [
|
|
9388
11742
|
".dsh-upd-ib{display:flex;flex-direction:column;gap:8px;font:inherit}",
|
|
9389
11743
|
".dsh-upd-ib-status{font-weight:600;overflow-wrap:anywhere}",
|
|
@@ -9407,7 +11761,7 @@ ${body}`;
|
|
|
9407
11761
|
".dsh-upd-ib[data-theme=\"archive\"] .dsh-upd-ib-status{font-family:serif}"
|
|
9408
11762
|
].join("\n");
|
|
9409
11763
|
//#endregion
|
|
9410
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
11764
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/core/install-button/widgets.js
|
|
9411
11765
|
function isObject(value) {
|
|
9412
11766
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
9413
11767
|
}
|
|
@@ -9476,7 +11830,7 @@ ${body}`;
|
|
|
9476
11830
|
} catch {}
|
|
9477
11831
|
}
|
|
9478
11832
|
//#endregion
|
|
9479
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
11833
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/core/install-button/view.js
|
|
9480
11834
|
function installButtonFallbackOf(input, bannerKind) {
|
|
9481
11835
|
try {
|
|
9482
11836
|
if (bannerKind !== "failed") return null;
|
|
@@ -9607,7 +11961,7 @@ ${body}`;
|
|
|
9607
11961
|
};
|
|
9608
11962
|
}
|
|
9609
11963
|
//#endregion
|
|
9610
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
11964
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.39/node_modules/dsh-plugin-update/dist/core/install-button/render.js
|
|
9611
11965
|
function renderInstallButtonHTML(view, opts) {
|
|
9612
11966
|
const l = opts.lang;
|
|
9613
11967
|
const manualSource = opts.manualSource === "carried-over" ? "carried-over" : opts.manualSource === null ? null : "frame";
|
|
@@ -9995,8 +12349,12 @@ ${body}`;
|
|
|
9995
12349
|
if (jobState === "installing" || jobState === "verifying") clearLatch();
|
|
9996
12350
|
else if (jobState === "completed" || jobState === "restart-required") clearLatch();
|
|
9997
12351
|
else if ((jobState === "failed" || jobState === "interrupted") && snapshot?.job) {
|
|
9998
|
-
|
|
9999
|
-
|
|
12352
|
+
if (failureSettledOf(snapshot)) {
|
|
12353
|
+
if (settledClearsLatch(latch)) clearLatch();
|
|
12354
|
+
} else {
|
|
12355
|
+
const next = latchFromJob(snapshot.job, snapshot, isObject(reply["diag"]) ? reply["diag"] : null);
|
|
12356
|
+
if (!latch || latch.volatile || latch.code !== next.code || latch.targetVersion !== next.targetVersion || latch.latestVersion !== next.latestVersion) setLatch(next);
|
|
12357
|
+
}
|
|
10000
12358
|
} else if (via === "install") clearLatch();
|
|
10001
12359
|
else if (via === "check" && latch?.source === "check") clearLatch();
|
|
10002
12360
|
else if (latch?.volatile) clearLatch();
|
|
@@ -12469,9 +14827,11 @@ ${body}`;
|
|
|
12469
14827
|
* 按 `{only}` 投影(一次只挂载一个)+ visited 缓存;ledger 无某技能=缺席,
|
|
12470
14828
|
* 显示推荐安装只读文本(不返空冒充)。
|
|
12471
14829
|
* - 组件 React.createElement 手写(禁 JSX),无数据轮询、无 document/window/process。
|
|
12472
|
-
* - 面板外壳两处(票 #679
|
|
12473
|
-
*
|
|
12474
|
-
*
|
|
14830
|
+
* - 面板外壳两处(票 #679;#12 起作者推荐卡改由 base 包通用件渲染,票 05 起页头三件套迁
|
|
14831
|
+
* ActionCluster):标题行右上角的联系/Star/Issue 动作簇由 dsh-featherhunter-plugin-base
|
|
14832
|
+
* 绘制(悬停出说明文字,窄窗口折到标题下方);页签面板之后只剩作者推荐卡,同样由 base 绘制——
|
|
14833
|
+
* 插件清单、二维码卡、离线兜底全部单一真源在 base 的 data/manifest.json,本仓不再维护
|
|
14834
|
+
* 第二份(本文件只画不算)。底部整行联系入口自票 05 起退场,联系入口只留页头动作簇。
|
|
12475
14835
|
*/
|
|
12476
14836
|
const inject = ["slots", "connection"];
|
|
12477
14837
|
/** 包名 → 本家那条客户端通道(票 #735)。取值面是导航表那份镜像,不再从页签槽账本的自定义选项里读:
|
|
@@ -12499,19 +14859,6 @@ ${body}`;
|
|
|
12499
14859
|
marginLeft: "auto",
|
|
12500
14860
|
flex: "0 0 auto"
|
|
12501
14861
|
},
|
|
12502
|
-
iconLink: {
|
|
12503
|
-
display: "inline-flex",
|
|
12504
|
-
alignItems: "center",
|
|
12505
|
-
justifyContent: "center",
|
|
12506
|
-
width: 26,
|
|
12507
|
-
height: 26,
|
|
12508
|
-
borderRadius: 6,
|
|
12509
|
-
border: "1px solid transparent",
|
|
12510
|
-
color: "var(--dsw-alias-label-primary, inherit)",
|
|
12511
|
-
textDecoration: "none",
|
|
12512
|
-
fontSize: 14,
|
|
12513
|
-
lineHeight: 1
|
|
12514
|
-
},
|
|
12515
14862
|
/** 书的舞台层:书壳与铜扣行都铺在这一层上(原型里是 `body` 上并列的 `.scroll` 与 `.deck`)。 */
|
|
12516
14863
|
manualStageLayer: { position: "relative" },
|
|
12517
14864
|
/** 书壳(`proto-manual-4scenes.html` 的 `.scroll`)。红框金边+米纸+零宽脊鎏金线+签。
|
|
@@ -12720,48 +15067,6 @@ ${body}`;
|
|
|
12720
15067
|
display: "block",
|
|
12721
15068
|
marginTop: 8
|
|
12722
15069
|
},
|
|
12723
|
-
moreCard: {
|
|
12724
|
-
marginTop: 16,
|
|
12725
|
-
padding: "10px 12px",
|
|
12726
|
-
borderRadius: 10,
|
|
12727
|
-
border: "1px solid var(--dsw-alias-border-l1, rgba(128,128,128,.35))"
|
|
12728
|
-
},
|
|
12729
|
-
moreTitle: {
|
|
12730
|
-
fontSize: 13,
|
|
12731
|
-
fontWeight: 700,
|
|
12732
|
-
marginBottom: 4,
|
|
12733
|
-
color: "var(--dsw-alias-label-primary, inherit)"
|
|
12734
|
-
},
|
|
12735
|
-
moreRow: {
|
|
12736
|
-
display: "flex",
|
|
12737
|
-
flexWrap: "wrap",
|
|
12738
|
-
alignItems: "center",
|
|
12739
|
-
gap: "2px 8px",
|
|
12740
|
-
padding: "7px 4px",
|
|
12741
|
-
textDecoration: "none",
|
|
12742
|
-
color: "inherit"
|
|
12743
|
-
},
|
|
12744
|
-
morePkg: {
|
|
12745
|
-
flex: "0 1 auto",
|
|
12746
|
-
minWidth: 0,
|
|
12747
|
-
overflowWrap: "anywhere",
|
|
12748
|
-
fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
|
|
12749
|
-
fontSize: 12,
|
|
12750
|
-
fontWeight: 650
|
|
12751
|
-
},
|
|
12752
|
-
moreDesc: {
|
|
12753
|
-
flex: "1 1 180px",
|
|
12754
|
-
minWidth: 0,
|
|
12755
|
-
fontSize: 11.5,
|
|
12756
|
-
lineHeight: 1.6,
|
|
12757
|
-
color: "var(--dsw-alias-label-secondary, #9a9a9a)"
|
|
12758
|
-
},
|
|
12759
|
-
moreIcon: {
|
|
12760
|
-
flex: "0 0 auto",
|
|
12761
|
-
marginLeft: "auto",
|
|
12762
|
-
display: "inline-flex",
|
|
12763
|
-
color: "var(--dsw-alias-label-secondary, #9a9a9a)"
|
|
12764
|
-
},
|
|
12765
15070
|
/** 更新入口挂点:只占位,按钮本体由上游入口件渲染(票 1170);批量弹窗壳亦由上游提供,本包零自家样式。 */
|
|
12766
15071
|
updateEntrySlot: {
|
|
12767
15072
|
display: "inline-flex",
|
|
@@ -12785,37 +15090,7 @@ ${body}`;
|
|
|
12785
15090
|
if (typeof label === "function") return label();
|
|
12786
15091
|
return label ?? "";
|
|
12787
15092
|
}
|
|
12788
|
-
/**
|
|
12789
|
-
function ExternalIcon() {
|
|
12790
|
-
return react.createElement("svg", {
|
|
12791
|
-
viewBox: "0 0 24 24",
|
|
12792
|
-
width: 13,
|
|
12793
|
-
height: 13,
|
|
12794
|
-
fill: "none",
|
|
12795
|
-
stroke: "currentColor",
|
|
12796
|
-
strokeWidth: 1.9,
|
|
12797
|
-
strokeLinecap: "round",
|
|
12798
|
-
strokeLinejoin: "round",
|
|
12799
|
-
"aria-hidden": "true",
|
|
12800
|
-
focusable: "false"
|
|
12801
|
-
}, react.createElement("path", { d: "M13.5 4.5H19.5V10.5" }), react.createElement("path", { d: "M19.5 4.5L11 13" }), react.createElement("path", { d: "M18 14.5V18A2 2 0 0 1 16 20H6A2 2 0 0 1 4 18V8A2 2 0 0 1 6 6H9.5" }));
|
|
12802
|
-
}
|
|
12803
|
-
/** 标题行入口图标(#1174:星星实心填色、气泡描边,与行尾外链图标同线形语言;语义仍在链接的 title/aria-label 上)。 */
|
|
12804
|
-
function PanelLinkIcon(props) {
|
|
12805
|
-
return react.createElement("svg", {
|
|
12806
|
-
viewBox: "0 0 24 24",
|
|
12807
|
-
width: 14,
|
|
12808
|
-
height: 14,
|
|
12809
|
-
fill: props.filled ? "currentColor" : "none",
|
|
12810
|
-
stroke: props.filled ? "none" : "currentColor",
|
|
12811
|
-
strokeWidth: 1.9,
|
|
12812
|
-
strokeLinecap: "round",
|
|
12813
|
-
strokeLinejoin: "round",
|
|
12814
|
-
"aria-hidden": "true",
|
|
12815
|
-
focusable: "false"
|
|
12816
|
-
}, react.createElement("path", { d: props.path }));
|
|
12817
|
-
}
|
|
12818
|
-
/** 缺席标记(#1282):下载箭头="待安装";描边取缺席标记色,与 PanelLinkIcon 同线形语言。
|
|
15093
|
+
/** 缺席标记(#1282):下载箭头="待安装";描边取缺席标记色,与页头三件套的线形图标同语言。
|
|
12819
15094
|
* 注意不用圆点:圆=体检档位,缺席没有健康值,不进那套分级(形状即第二通道)。 */
|
|
12820
15095
|
function AbsentDownloadIcon(props) {
|
|
12821
15096
|
return react.createElement("svg", {
|
|
@@ -13267,31 +15542,6 @@ ${body}`;
|
|
|
13267
15542
|
}
|
|
13268
15543
|
}, tabCardLine(hover.pg, hoverScene), tabCardLine(hoverOtherPage, hoverOtherScene), react.createElement("div", null, "点一下翻到这一页 ›")));
|
|
13269
15544
|
}
|
|
13270
|
-
/** 标题行右上角两件:星(去本仓点 Star)+ 气泡(去本仓开 issue),SVG 图标+悬停说明+按压反馈(#1174)。
|
|
13271
|
-
*
|
|
13272
|
-
* 三件并排里的第三件「检查更新」住隔壁票(#678):本票只留位子——它就接在本组件之前,
|
|
13273
|
-
* 不画一个点了没反应的假按钮。窄窗口靠 headRow 的 flexWrap 折到标题下方,
|
|
13274
|
-
* 标题与两件都是 flex:'0 0 auto',谁也不挤谁。
|
|
13275
|
-
*/
|
|
13276
|
-
function PanelActions() {
|
|
13277
|
-
return react.createElement("div", { style: S.headActions }, PANEL_LINKS.map((link) => react.createElement("a", {
|
|
13278
|
-
key: link.key,
|
|
13279
|
-
href: link.url,
|
|
13280
|
-
target: "_blank",
|
|
13281
|
-
rel: "noreferrer",
|
|
13282
|
-
title: link.tip,
|
|
13283
|
-
"aria-label": link.tip,
|
|
13284
|
-
style: S.iconLink,
|
|
13285
|
-
"data-ilife-press": link.key
|
|
13286
|
-
}, react.createElement(PanelLinkIcon, {
|
|
13287
|
-
filled: link.icon.filled,
|
|
13288
|
-
path: link.icon.path
|
|
13289
|
-
}))));
|
|
13290
|
-
}
|
|
13291
|
-
/** 底部「作者其他插件」引流卡:四行(包名 + 一句说明 + 行尾外链图标),点开新窗口。
|
|
13292
|
-
*
|
|
13293
|
-
* 卡片在页签面板之后,六页签切换它都在(它不属于任何一个页签)。
|
|
13294
|
-
*/
|
|
13295
15545
|
/** 缺席页签的单包安装按钮(#1282):挂载位+挂载一体,连接不到或目标表无此包就不画。
|
|
13296
15546
|
*
|
|
13297
15547
|
* 与标题行批量入口同形(ref 占位+effect 挂载+卸载 unmount),区别只有两处:调的是单包安装
|
|
@@ -13452,19 +15702,8 @@ ${body}`;
|
|
|
13452
15702
|
role: "status"
|
|
13453
15703
|
}, "✓ 已复制") : null);
|
|
13454
15704
|
}
|
|
13455
|
-
function MorePluginsCard() {
|
|
13456
|
-
return react.createElement("div", { style: S.moreCard }, react.createElement("div", { style: S.moreTitle }, "作者其他插件"), MORE_PLUGINS.map((row) => react.createElement("a", {
|
|
13457
|
-
key: row.pkg,
|
|
13458
|
-
href: row.url,
|
|
13459
|
-
target: "_blank",
|
|
13460
|
-
rel: "noreferrer",
|
|
13461
|
-
title: row.pkg + " 的 GitHub 仓库",
|
|
13462
|
-
style: S.moreRow,
|
|
13463
|
-
"data-ilife-press": "more"
|
|
13464
|
-
}, react.createElement("span", { style: S.morePkg }, row.pkg), react.createElement("span", { style: S.moreDesc }, row.desc), react.createElement("span", { style: S.moreIcon }, react.createElement(ExternalIcon, null)))));
|
|
13465
|
-
}
|
|
13466
15705
|
/** 版本胶囊那一行字:只在这里拼一次,屏上与用例读的是同一串。 */
|
|
13467
|
-
const MANAGER_VERSION_TEXT = "dsh-life-pack · 0.3.
|
|
15706
|
+
const MANAGER_VERSION_TEXT = "dsh-life-pack · 0.3.86";
|
|
13468
15707
|
/** 右下角那本书离面板两沿的距离:用户口径「一直处于面板右下角、不随列表滑动消失」
|
|
13469
15708
|
* ⇒ sticky 吸附(面板相对,视口多大都落在面板角上);INSET=右沿,BOTTOM=底沿。 */
|
|
13470
15709
|
const MANUAL_ENTRY_INSET = 16;
|
|
@@ -13705,7 +15944,7 @@ ${body}`;
|
|
|
13705
15944
|
ref: (element) => {
|
|
13706
15945
|
entryRef.current = element;
|
|
13707
15946
|
}
|
|
13708
|
-
}), react.createElement(
|
|
15947
|
+
}), react.createElement(ActionCluster, { size: 16 }))), react.createElement("div", {
|
|
13709
15948
|
role: "tablist",
|
|
13710
15949
|
"aria-label": "爱生活技能页签",
|
|
13711
15950
|
style: {
|
|
@@ -13818,7 +16057,12 @@ ${body}`;
|
|
|
13818
16057
|
getCall: props.getCall
|
|
13819
16058
|
});
|
|
13820
16059
|
})());
|
|
13821
|
-
}), react.createElement(
|
|
16060
|
+
}), react.createElement("div", { style: {
|
|
16061
|
+
marginTop: 16,
|
|
16062
|
+
display: "flex",
|
|
16063
|
+
flexDirection: "column",
|
|
16064
|
+
gap: 8
|
|
16065
|
+
} }, react.createElement(AuthorPlugins, null)), react.createElement("div", {
|
|
13822
16066
|
style: {
|
|
13823
16067
|
position: "sticky",
|
|
13824
16068
|
bottom: MANUAL_ENTRY_BOTTOM,
|