@ququ-jiaxk/dsh-plugin-center 0.1.42 → 0.1.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.js CHANGED
@@ -24,13 +24,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
24
24
  // src/client.tsx
25
25
  var client_exports = {};
26
26
  __export(client_exports, {
27
+ __testMarkdown: () => __testMarkdown,
27
28
  apply: () => apply,
28
29
  inject: () => inject
29
30
  });
30
31
  module.exports = __toCommonJS(client_exports);
31
32
  var import_react = require("react");
33
+
34
+ // logo.svg
35
+ var logo_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">%0A <defs>%0A <linearGradient id="g" x1="8" y1="4" x2="56" y2="60" gradientUnits="userSpaceOnUse">%0A <stop stop-color="%232E9BFF" />%0A <stop offset="0.55" stop-color="%230071E3" />%0A <stop offset="1" stop-color="%235E5CE6" />%0A </linearGradient>%0A </defs>%0A <rect width="64" height="64" rx="16" fill="url(%23g)" />%0A <g fill="none" stroke="%23fff" stroke-width="4.5" stroke-linecap="round">%0A <path d="M24 17v9M40 17v9" />%0A <path d="M19 28h26v7.5C45 43 39.2 48 32 48s-13-5-13-12.5V28Z" />%0A </g>%0A <circle cx="32" cy="55" r="2.5" fill="%23fff" opacity=".75" />%0A</svg>%0A';
36
+
37
+ // src/client.tsx
32
38
  var import_jsx_runtime = require("react/jsx-runtime");
33
- var PLUGIN_VERSION = true ? "0.1.42" : "0.0.0";
39
+ var PLUGIN_VERSION = true ? "0.1.44" : "0.0.0";
34
40
  var PANEL_ID = "plugin-center";
35
41
  var inject = ["slots", "remote", "remote.pluginManager"];
36
42
  var hostCtx = null;
@@ -145,7 +151,7 @@ function apply(ctx) {
145
151
  name: "sidebar.panellist",
146
152
  id: PANEL_ID,
147
153
  order: 20,
148
- label: () => "\u63D2\u4EF6\u4E2D\u5FC3"
154
+ label: () => "\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3"
149
155
  },
150
156
  PanelIcon
151
157
  )
@@ -155,15 +161,13 @@ function apply(ctx) {
155
161
  });
156
162
  startSelfUpdateWatcher();
157
163
  }
164
+ function BrandMark() {
165
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-logo", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: logo_default, alt: "" }) });
166
+ }
158
167
  function PanelIcon({ size = 16 }) {
159
168
  const { latest } = useSelfUpdateInfo();
160
169
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "pcx-sidebar-icon", children: [
161
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [
162
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "1.75", y: "1.75", width: "5", height: "5", rx: "1.2", stroke: "currentColor", strokeWidth: "1.3" }),
163
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "9.25", y: "1.75", width: "5", height: "5", rx: "1.2", stroke: "currentColor", strokeWidth: "1.3" }),
164
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "1.75", y: "9.25", width: "5", height: "5", rx: "1.2", stroke: "currentColor", strokeWidth: "1.3" }),
165
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M11.75 9.5v4.25M9.63 11.63h4.25", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round" })
166
- ] }),
170
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { className: "pcx-sidebar-logo", src: logo_default, width: size, height: size, alt: "" }),
167
171
  latest ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-sidebar-dot", "aria-hidden": "true" }) : null
168
172
  ] });
169
173
  }
@@ -184,6 +188,158 @@ function isNewer(latest, installed) {
184
188
  if (!a.pre && b.pre) return true;
185
189
  return false;
186
190
  }
191
+ function escapeHtml(value) {
192
+ return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
193
+ }
194
+ function safeLinkUrl(url) {
195
+ const value = url.trim();
196
+ return /^(https?:|mailto:)/iu.test(value) ? value : null;
197
+ }
198
+ function safeImageUrl(url) {
199
+ const value = url.trim();
200
+ return /^(https?:\/\/|data:image\/)/iu.test(value) ? value : null;
201
+ }
202
+ function renderInline(raw) {
203
+ let text = escapeHtml(String(raw ?? ""));
204
+ const codes = [];
205
+ text = text.replace(/`([^`]+)`/gu, (_match, code) => {
206
+ codes.push(code);
207
+ return `@@CODE${codes.length - 1}@@`;
208
+ });
209
+ text = text.replace(
210
+ /!\[([^\]]*)\]\(([^)\s]+)(?:\s+&quot;[^&]*?&quot;)?\)/gu,
211
+ (_match, alt, url) => {
212
+ const src = safeImageUrl(url);
213
+ return src ? `<img src="${src}" alt="${alt}" loading="lazy">` : alt;
214
+ }
215
+ );
216
+ text = text.replace(
217
+ /\[([^\]]+)\]\(([^)\s]+)(?:\s+&quot;[^&]*?&quot;)?\)/gu,
218
+ (_match, label, url) => {
219
+ const href = safeLinkUrl(url);
220
+ return href ? `<a href="${href}" target="_blank" rel="noopener noreferrer">${label}</a>` : label;
221
+ }
222
+ );
223
+ text = text.replace(/\*\*([^*]+)\*\*/gu, "<strong>$1</strong>");
224
+ text = text.replace(/__([^_]+)__/gu, "<strong>$1</strong>");
225
+ text = text.replace(/(^|[^*])\*([^*\n]+)\*/gu, "$1<em>$2</em>");
226
+ text = text.replace(/~~([^~]+)~~/gu, "<del>$1</del>");
227
+ text = text.replace(/@@CODE(\d+)@@/gu, (_match, index) => {
228
+ return `<code>${escapeHtml(codes[Number(index)] ?? "")}</code>`;
229
+ });
230
+ return text;
231
+ }
232
+ function renderMarkdown(source) {
233
+ const lines = String(source ?? "").replace(/\r\n?/gu, "\n").split("\n");
234
+ const out = [];
235
+ let index = 0;
236
+ let paragraph = [];
237
+ let list = null;
238
+ const flushParagraph = () => {
239
+ if (paragraph.length === 0) return;
240
+ out.push(`<p>${paragraph.map((line) => renderInline(line)).join("<br>")}</p>`);
241
+ paragraph = [];
242
+ };
243
+ const closeList = () => {
244
+ if (list === null) return;
245
+ out.push(`</${list}>`);
246
+ list = null;
247
+ };
248
+ const flush = () => {
249
+ flushParagraph();
250
+ closeList();
251
+ };
252
+ while (index < lines.length) {
253
+ const line = lines[index];
254
+ const trimmed = line.trim();
255
+ if (trimmed.startsWith("```")) {
256
+ flush();
257
+ const language = trimmed.slice(3).trim();
258
+ const code = [];
259
+ index += 1;
260
+ while (index < lines.length && !lines[index].trim().startsWith("```")) {
261
+ code.push(lines[index]);
262
+ index += 1;
263
+ }
264
+ index += 1;
265
+ out.push(
266
+ `<pre class="pcx-md-pre"><code${language ? ` class="language-${escapeHtml(language)}"` : ""}>${escapeHtml(
267
+ code.join("\n")
268
+ )}</code></pre>`
269
+ );
270
+ continue;
271
+ }
272
+ if (!trimmed) {
273
+ flush();
274
+ index += 1;
275
+ continue;
276
+ }
277
+ const heading = /^(#{1,6})\s+(.*)$/u.exec(trimmed);
278
+ if (heading) {
279
+ flush();
280
+ const level = heading[1].length;
281
+ out.push(`<h${level}>${renderInline(heading[2])}</h${level}>`);
282
+ index += 1;
283
+ continue;
284
+ }
285
+ if (/^(-{3,}|\*{3,}|_{3,})$/u.test(trimmed)) {
286
+ flush();
287
+ out.push("<hr>");
288
+ index += 1;
289
+ continue;
290
+ }
291
+ if (/^>\s?/u.test(trimmed)) {
292
+ flush();
293
+ const quote = [];
294
+ while (index < lines.length && /^>\s?/u.test(lines[index].trim())) {
295
+ quote.push(lines[index].trim().replace(/^>\s?/u, ""));
296
+ index += 1;
297
+ }
298
+ out.push(`<blockquote>${quote.map((item) => renderInline(item)).join("<br>")}</blockquote>`);
299
+ continue;
300
+ }
301
+ if (trimmed.startsWith("|") && index + 1 < lines.length && /^\|?[\s:|-]+\|?$/u.test(lines[index + 1].trim()) && lines[index + 1].includes("-")) {
302
+ flush();
303
+ const cellsOf = (row) => {
304
+ return row.trim().replace(/^\|/u, "").replace(/\|$/u, "").split("|").map((cell) => cell.trim());
305
+ };
306
+ const rows = [cellsOf(trimmed)];
307
+ index += 2;
308
+ while (index < lines.length && lines[index].trim().startsWith("|")) {
309
+ rows.push(cellsOf(lines[index].trim()));
310
+ index += 1;
311
+ }
312
+ const head = rows.shift() ?? [];
313
+ out.push(
314
+ `<table class="pcx-md-table"><thead><tr>${head.map((cell) => `<th>${renderInline(cell)}</th>`).join("")}</tr></thead><tbody>${rows.map((row) => `<tr>${row.map((cell) => `<td>${renderInline(cell)}</td>`).join("")}</tr>`).join("")}</tbody></table>`
315
+ );
316
+ continue;
317
+ }
318
+ const unordered = /^[-*+]\s+(.*)$/u.exec(trimmed);
319
+ const ordered = /^\d+[.)]\s+(.*)$/u.exec(trimmed);
320
+ if (unordered || ordered) {
321
+ flushParagraph();
322
+ const kind = unordered ? "ul" : "ol";
323
+ if (list !== kind) {
324
+ closeList();
325
+ out.push(`<${kind}>`);
326
+ list = kind;
327
+ }
328
+ out.push(`<li>${renderInline((unordered ?? ordered)[1])}</li>`);
329
+ index += 1;
330
+ continue;
331
+ }
332
+ closeList();
333
+ paragraph.push(line);
334
+ index += 1;
335
+ }
336
+ flush();
337
+ return out.join("\n");
338
+ }
339
+ function Markdown({ text }) {
340
+ const html = (0, import_react.useMemo)(() => renderMarkdown(text), [text]);
341
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-md", dangerouslySetInnerHTML: { __html: html } });
342
+ }
187
343
  function Badges({ plugin }) {
188
344
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
189
345
  plugin.visibility === "private" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-badge pcx-badge-private", children: "\u79C1\u6709" }) : null,
@@ -268,7 +424,7 @@ function LocalDetailView({
268
424
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-root", children: [
269
425
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { className: "pcx-back", onClick: onBack, children: "\u2190 \u8FD4\u56DE\u5217\u8868" }),
270
426
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-detail-head", children: [
271
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-icon pcx-icon-lg", children: iconLetter(bundle.displayName ?? bundle.name) }),
427
+ bundle.icon ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { className: "pcx-detail-icon", src: bundle.icon, alt: "" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-icon pcx-icon-lg", children: iconLetter(bundle.displayName ?? bundle.name) }),
272
428
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-detail-titles", children: [
273
429
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-row", children: [
274
430
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "pcx-title", children: bundle.displayName ?? bundle.name }),
@@ -287,12 +443,12 @@ function LocalDetailView({
287
443
  bundle.official ? "\u968F DSH \u5B89\u88C5" : localInstall ? "\u672C\u5730\u5305\u5B89\u88C5" : "registry \u5B89\u88C5",
288
444
  bundle.source ? ` \xB7 ${bundle.source}` : ""
289
445
  ] }),
290
- onOpenCenter ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "pcx-btn", onClick: onOpenCenter, children: "\u5728\u63D2\u4EF6\u4E2D\u5FC3\u67E5\u770B" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-badge", children: "\u672A\u5728\u63D2\u4EF6\u4E2D\u5FC3\u4E0A\u67B6" }),
446
+ onOpenCenter ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "pcx-btn", onClick: onOpenCenter, children: "\u5728\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\u67E5\u770B" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-badge", children: "\u672A\u5728\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\u4E0A\u67B6" }),
291
447
  bundle.removable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "pcx-btn pcx-btn-danger", onClick: onUninstall, children: "\u5378\u8F7D" }) : null
292
448
  ] }),
293
449
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "pcx-section", children: [
294
450
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "pcx-h2", children: "\u63D2\u4EF6\u8BE6\u60C5" }),
295
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "pcx-text", children: markdown || bundle.description || "\u8FD9\u4E2A\u63D2\u4EF6\u6CA1\u6709\u63D0\u4F9B README \u6216 locale \u8BE6\u60C5\u3002" })
451
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Markdown, { text: markdown || bundle.description || "\u8FD9\u4E2A\u63D2\u4EF6\u6CA1\u6709\u63D0\u4F9B README \u6216 locale \u8BE6\u60C5\u3002" })
296
452
  ] }),
297
453
  origin ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "pcx-section", children: [
298
454
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "pcx-h2", children: "\u8BE6\u60C5\u6765\u6E90" }),
@@ -444,7 +600,7 @@ function Panel() {
444
600
  return;
445
601
  }
446
602
  setSelfUpdate({ phase: "idle" });
447
- if (manual) setNotice("\u63D2\u4EF6\u4E2D\u5FC3\u5DF2\u662F\u6700\u65B0\u7248\u672C");
603
+ if (manual) setNotice("\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\u5DF2\u662F\u6700\u65B0\u7248\u672C");
448
604
  }
449
605
  async function pollSelfUpdate(version) {
450
606
  if (selfUpdatePolling) return;
@@ -493,7 +649,7 @@ function Panel() {
493
649
  setSelfUpdate({
494
650
  phase: "error",
495
651
  to: version,
496
- message: "\u66F4\u65B0\u8D85\u65F6\uFF1A\u8BF7\u5230 DSH \u7684 Plugins \u9875\u9762\u786E\u8BA4\u63D2\u4EF6\u4E2D\u5FC3\u7248\u672C\uFF0C\u6216\u91CD\u542F DSH \u540E\u91CD\u8BD5"
652
+ message: "\u66F4\u65B0\u8D85\u65F6\uFF1A\u8BF7\u5230 DSH \u7684 Plugins \u9875\u9762\u786E\u8BA4\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\u7248\u672C\uFF0C\u6216\u91CD\u542F DSH \u540E\u91CD\u8BD5"
497
653
  });
498
654
  } finally {
499
655
  selfUpdatePolling = false;
@@ -514,7 +670,7 @@ function Panel() {
514
670
  }
515
671
  function confirmSelfUpdate(version) {
516
672
  setDialog({
517
- title: `\u66F4\u65B0\u63D2\u4EF6\u4E2D\u5FC3\u5230 v${version}`,
673
+ title: `\u66F4\u65B0\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\u5230 v${version}`,
518
674
  description: "\u66F4\u65B0\u4F1A\u5148\u5378\u8F7D\u65E7\u7248\u672C\u518D\u5B89\u88C5\u65B0\u7248\u672C\uFF0C\u9762\u677F\u5C06\u65AD\u5F00\u51E0\u79D2\uFF0C\u5B8C\u6210\u540E\u81EA\u52A8\u5237\u65B0\u3002\u5931\u8D25\u65F6 DSH \u4F1A\u81EA\u52A8\u6062\u590D\u65E7\u7248\u672C\u3002",
519
675
  input: false,
520
676
  confirmLabel: "\u5F00\u59CB\u66F4\u65B0",
@@ -548,7 +704,7 @@ function Panel() {
548
704
  if (record.phase === "done" && record.to) {
549
705
  selfUpdateNotified = true;
550
706
  setNotice(
551
- record.restartReason ? `\u5DF2\u5B89\u88C5 v${record.to}\uFF0C\u91CD\u542F DSH \u540E\u751F\u6548` : `\u63D2\u4EF6\u4E2D\u5FC3\u5DF2\u66F4\u65B0\u5230 v${record.to}`
707
+ record.restartReason ? `\u5DF2\u5B89\u88C5 v${record.to}\uFF0C\u91CD\u542F DSH \u540E\u751F\u6548` : `\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\u5DF2\u66F4\u65B0\u5230 v${record.to}`
552
708
  );
553
709
  return;
554
710
  }
@@ -614,7 +770,7 @@ function Panel() {
614
770
  function uninstallLocal(packageName) {
615
771
  setDialog({
616
772
  title: `\u5378\u8F7D\u300C${packageName}\u300D\uFF1F`,
617
- description: "\u53EA\u4ECE\u672C\u673A DSH \u79FB\u9664\uFF0C\u4E0D\u5F71\u54CD\u63D2\u4EF6\u4E2D\u5FC3\u91CC\u7684\u7248\u672C\u3002",
773
+ description: "\u53EA\u4ECE\u672C\u673A DSH \u79FB\u9664\uFF0C\u4E0D\u5F71\u54CD\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\u91CC\u7684\u7248\u672C\u3002",
618
774
  input: false,
619
775
  confirmLabel: "\u5378\u8F7D",
620
776
  danger: true,
@@ -891,7 +1047,7 @@ function Panel() {
891
1047
  onYank: (releaseId) => yankRelease(releaseId),
892
1048
  onUninstall: () => setDialog({
893
1049
  title: `\u5378\u8F7D\u300C${detail.displayName}\u300D\uFF1F`,
894
- description: "\u53EA\u4ECE\u672C\u673A DSH \u79FB\u9664\uFF0C\u4E0D\u5F71\u54CD\u63D2\u4EF6\u4E2D\u5FC3\u91CC\u7684\u7248\u672C\u3002",
1050
+ description: "\u53EA\u4ECE\u672C\u673A DSH \u79FB\u9664\uFF0C\u4E0D\u5F71\u54CD\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\u91CC\u7684\u7248\u672C\u3002",
895
1051
  input: false,
896
1052
  confirmLabel: "\u5378\u8F7D",
897
1053
  danger: true,
@@ -921,16 +1077,16 @@ function Panel() {
921
1077
  children: [
922
1078
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", { className: "pcx-header", children: [
923
1079
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-brand", children: [
924
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-logo", children: "P" }),
1080
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BrandMark, {}),
925
1081
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
926
1082
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("h1", { className: "pcx-title", children: [
927
- "\u63D2\u4EF6\u4E2D\u5FC3",
1083
+ "\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3",
928
1084
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
929
1085
  "button",
930
1086
  {
931
1087
  type: "button",
932
1088
  className: "pcx-version-tag pcx-version-tag-btn",
933
- title: state?.self?.updatable ? "\u70B9\u51FB\u68C0\u67E5\u63D2\u4EF6\u4E2D\u5FC3\u66F4\u65B0" : "\u63D2\u4EF6\u4E2D\u5FC3\u7248\u672C",
1089
+ title: state?.self?.updatable ? "\u70B9\u51FB\u68C0\u67E5\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\u66F4\u65B0" : "\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\u7248\u672C",
934
1090
  onClick: () => void checkSelfUpdate(true),
935
1091
  children: [
936
1092
  "v",
@@ -987,14 +1143,14 @@ function Panel() {
987
1143
  error ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-toast pcx-toast-error", children: error }) : null,
988
1144
  installProgress ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallProgressCard, { progress: installProgress }) : null,
989
1145
  selfUpdate.phase === "running" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-overlay", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-dialog", role: "dialog", "aria-modal": "true", children: [
990
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "pcx-dialog-title", children: "\u6B63\u5728\u66F4\u65B0\u63D2\u4EF6\u4E2D\u5FC3" }),
1146
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "pcx-dialog-title", children: "\u6B63\u5728\u66F4\u65B0\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3" }),
991
1147
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "pcx-sub", children: [
992
1148
  "\u6B63\u5728\u5B89\u88C5 v",
993
1149
  selfUpdate.to,
994
1150
  "\uFF0C\u9762\u677F\u4F1A\u77ED\u6682\u65AD\u5F00\uFF0C\u5B8C\u6210\u540E\u81EA\u52A8\u5237\u65B0\u3002"
995
1151
  ] }),
996
1152
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-progress-track pcx-progress-indeterminate", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-progress-fill" }) }),
997
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "pcx-sub", children: "\u5982\u679C\u957F\u65F6\u95F4\u6CA1\u6709\u53CD\u5E94\uFF0C\u8BF7\u5230 DSH \u7684 Plugins \u9875\u9762\u786E\u8BA4\u63D2\u4EF6\u4E2D\u5FC3\u7248\u672C\u3002" })
1153
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "pcx-sub", children: "\u5982\u679C\u957F\u65F6\u95F4\u6CA1\u6709\u53CD\u5E94\uFF0C\u8BF7\u5230 DSH \u7684 Plugins \u9875\u9762\u786E\u8BA4\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\u7248\u672C\u3002" })
998
1154
  ] }) }) : null,
999
1155
  selfUpdate.phase === "done" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-overlay", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-dialog", role: "dialog", "aria-modal": "true", children: [
1000
1156
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("h3", { className: "pcx-dialog-title", children: [
@@ -1011,7 +1167,7 @@ function Panel() {
1011
1167
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "pcx-sub", children: "\u5F53\u524D profile \u6CA1\u6709\u70ED\u91CD\u8F7D\uFF0C\u91CD\u542F DSH \u540E\u65B0\u7248\u672C\u624D\u4F1A\u751F\u6548\u3002" }),
1012
1168
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-dialog-actions", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "pcx-btn pcx-btn-primary", onClick: () => setSelfUpdate({ phase: "idle" }), children: "\u77E5\u9053\u4E86" }) })
1013
1169
  ] }) }) : null,
1014
- !ready ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-auth-page", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-auth-column", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-empty", children: "\u6B63\u5728\u8FDE\u63A5\u63D2\u4EF6\u4E2D\u5FC3\u2026" }) }) }) : !signedIn ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-auth-page", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-auth-column", children: [
1170
+ !ready ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-auth-page", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-auth-column", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-empty", children: "\u6B63\u5728\u8FDE\u63A5\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\u2026" }) }) }) : !signedIn ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-auth-page", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-auth-column", children: [
1015
1171
  notice ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-alert pcx-alert-success", children: notice }) : null,
1016
1172
  error ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-alert pcx-alert-error", children: error }) : null,
1017
1173
  authView === "reset" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -1027,7 +1183,7 @@ function Panel() {
1027
1183
  ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1028
1184
  AuthBox,
1029
1185
  {
1030
- title: "\u767B\u5F55\u63D2\u4EF6\u4E2D\u5FC3",
1186
+ title: "\u767B\u5F55\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3",
1031
1187
  description: "\u767B\u5F55\u540E\u5373\u53EF\u6D4F\u89C8\u3001\u5B89\u88C5\u548C\u4E0A\u4F20\u63D2\u4EF6\u3002",
1032
1188
  onDone: () => load(scope, category, query),
1033
1189
  onForgot: () => setAuthView("reset")
@@ -1250,7 +1406,7 @@ function UploadView({
1250
1406
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-root", children: [
1251
1407
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", { className: "pcx-header", children: [
1252
1408
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-brand", children: [
1253
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-logo", children: "P" }),
1409
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BrandMark, {}),
1254
1410
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
1255
1411
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "pcx-title", children: "\u4E0A\u4F20\u63D2\u4EF6" }),
1256
1412
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "pcx-sub", children: "\u6B63\u5728\u8BFB\u53D6\u767B\u5F55\u72B6\u6001\u2026" })
@@ -1265,7 +1421,7 @@ function UploadView({
1265
1421
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-root", children: [
1266
1422
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", { className: "pcx-header", children: [
1267
1423
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-brand", children: [
1268
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-logo", children: "P" }),
1424
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BrandMark, {}),
1269
1425
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
1270
1426
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "pcx-title", children: "\u4E0A\u4F20\u63D2\u4EF6" }),
1271
1427
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "pcx-sub", children: "\u767B\u5F55\u540E\u5373\u53EF\u53D1\u5E03\u63D2\u4EF6" })
@@ -1277,7 +1433,7 @@ function UploadView({
1277
1433
  AuthBox,
1278
1434
  {
1279
1435
  title: "\u767B\u5F55\u540E\u4E0A\u4F20\u63D2\u4EF6",
1280
- description: "\u4E0A\u4F20\u9700\u8981\u63D2\u4EF6\u4E2D\u5FC3\u8D26\u53F7\uFF1B\u767B\u5F55\u6210\u529F\u540E\u4F1A\u81EA\u52A8\u8FDB\u5165\u4E0A\u4F20\u8868\u5355\u3002",
1436
+ description: "\u4E0A\u4F20\u9700\u8981\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\u8D26\u53F7\uFF1B\u767B\u5F55\u6210\u529F\u540E\u4F1A\u81EA\u52A8\u8FDB\u5165\u4E0A\u4F20\u8868\u5355\u3002",
1281
1437
  onDone: onLogin
1282
1438
  }
1283
1439
  ) }) })
@@ -1343,7 +1499,7 @@ function UploadView({
1343
1499
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-root", children: [
1344
1500
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", { className: "pcx-header", children: [
1345
1501
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-brand", children: [
1346
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-logo", children: "P" }),
1502
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BrandMark, {}),
1347
1503
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
1348
1504
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "pcx-title", children: "\u4E0A\u4F20\u63D2\u4EF6" }),
1349
1505
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "pcx-sub", children: "\u5FC5\u586B\uFF1A\u5305\u540D\u3001\u540D\u79F0\u3001\u63CF\u8FF0\u3001\u4F7F\u7528\u65B9\u6CD5\u3001\u5305\u6587\u4EF6\u3001\u7248\u672C\u53F7" })
@@ -1805,11 +1961,11 @@ function DetailView({
1805
1961
  notice ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-alert pcx-alert-success", children: notice }) : null,
1806
1962
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "pcx-section", children: [
1807
1963
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "pcx-h2", children: "\u63D2\u4EF6\u63CF\u8FF0" }),
1808
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "pcx-text", children: detail.descriptionMd || "\u6682\u65E0\u63CF\u8FF0" })
1964
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Markdown, { text: detail.descriptionMd || "\u6682\u65E0\u63CF\u8FF0" })
1809
1965
  ] }),
1810
1966
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "pcx-section", children: [
1811
1967
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "pcx-h2", children: "\u4F7F\u7528\u65B9\u6CD5" }),
1812
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", { className: "pcx-pre", children: detail.usageMd || "\u6682\u65E0" })
1968
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Markdown, { text: detail.usageMd || "\u6682\u65E0" })
1813
1969
  ] }),
1814
1970
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "pcx-section", children: [
1815
1971
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("h2", { className: "pcx-h2", children: [
@@ -2468,7 +2624,7 @@ function AdminView({
2468
2624
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { className: "pcx-back", onClick: onBack, children: "\u2190 \u8FD4\u56DE\u5217\u8868" }),
2469
2625
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", { className: "pcx-header", children: [
2470
2626
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-brand", children: [
2471
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-logo", children: "P" }),
2627
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BrandMark, {}),
2472
2628
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
2473
2629
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "pcx-title", children: "\u6CBB\u7406" }),
2474
2630
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "pcx-sub", children: "\u4E0B\u67B6\u53EF\u6062\u590D\uFF1B\u5C01\u7981\u9700\u5BA1\u6838\uFF1B\u7BA1\u7406\u5458\u4E0D\u80FD\u5220\u9664\u63D2\u4EF6" })
@@ -2543,7 +2699,7 @@ function BindOps({ onDone, onCancel }) {
2543
2699
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-auth", children: [
2544
2700
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-auth-head", children: [
2545
2701
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "pcx-auth-title", children: "\u7ED1\u5B9A\u8FD0\u8425\u52A9\u624B\u8D26\u53F7" }),
2546
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "pcx-sub", children: "\u7ED1\u5B9A\u540E\u53EF\u4EE5\u7528\u8FD0\u8425\u52A9\u624B\u8D26\u53F7\u767B\u5F55\u63D2\u4EF6\u4E2D\u5FC3\uFF1B\u9700\u8981\u8BE5\u624B\u673A\u53F7\u5728\u8FD0\u8425\u52A9\u624B\u91CC\u5DF2\u6CE8\u518C\u3002" })
2702
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "pcx-sub", children: "\u7ED1\u5B9A\u540E\u53EF\u4EE5\u7528\u8FD0\u8425\u52A9\u624B\u8D26\u53F7\u767B\u5F55\u5C0F\u8DA3\u63D2\u4EF6\u4E2D\u5FC3\uFF1B\u9700\u8981\u8BE5\u624B\u673A\u53F7\u5728\u8FD0\u8425\u52A9\u624B\u91CC\u5DF2\u6CE8\u518C\u3002" })
2547
2703
  ] }),
2548
2704
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", { className: "pcx-auth-form pcx-auth-form-bind", onSubmit: submit, children: [
2549
2705
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pcx-field", children: [
@@ -2805,11 +2961,30 @@ var CSS = `
2805
2961
  }
2806
2962
  .pcx-logo {
2807
2963
  width: 28px; height: 28px; border-radius: 8px; flex: none;
2808
- display: grid; place-items: center;
2964
+ display: grid; place-items: center; overflow: hidden;
2809
2965
  background: var(--dsw-alias-button-primary-fill, #0f1115);
2810
- color: var(--dsw-alias-label-primary-foreground, #fff);
2811
- font-size: 13px; font-weight: 700;
2812
2966
  }
2967
+ .pcx-logo img { width: 100%; height: 100%; display: block; }
2968
+ .pcx-sidebar-logo { display: block; border-radius: 5px; object-fit: cover; }
2969
+ .pcx-detail-icon { width: 44px; height: 44px; border-radius: 12px; flex: none; object-fit: cover; }
2970
+ .pcx-md { font-size: 12.5px; line-height: 1.65; color: var(--dsw-alias-label-primary, #1a1a1a); word-break: break-word; }
2971
+ .pcx-md > :first-child { margin-top: 0; }
2972
+ .pcx-md > :last-child { margin-bottom: 0; }
2973
+ .pcx-md h1, .pcx-md h2, .pcx-md h3, .pcx-md h4, .pcx-md h5, .pcx-md h6 { margin: 14px 0 6px; font-size: 13.5px; font-weight: 600; }
2974
+ .pcx-md h1 { font-size: 15px; }
2975
+ .pcx-md p { margin: 6px 0; }
2976
+ .pcx-md ul, .pcx-md ol { margin: 6px 0; padding-left: 20px; }
2977
+ .pcx-md li { margin: 2px 0; }
2978
+ .pcx-md code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; padding: 1px 4px; border-radius: 4px; background: var(--dsw-alias-interactive-bg-hover, rgba(0,0,0,.06)); }
2979
+ .pcx-md pre { margin: 8px 0; padding: 10px 12px; border-radius: 8px; overflow: auto; background: var(--dsw-alias-interactive-bg-hover, rgba(0,0,0,.06)); }
2980
+ .pcx-md pre code { padding: 0; background: none; }
2981
+ .pcx-md blockquote { margin: 8px 0; padding: 2px 10px; border-left: 3px solid var(--dsw-alias-border-l3, rgba(0,0,0,.15)); color: var(--dsw-alias-label-secondary, #61666b); }
2982
+ .pcx-md img { max-width: 100%; border-radius: 6px; }
2983
+ .pcx-md table { border-collapse: collapse; margin: 8px 0; font-size: 12px; }
2984
+ .pcx-md th, .pcx-md td { border: 1px solid var(--dsw-alias-border-l2, rgba(0,0,0,.1)); padding: 5px 8px; text-align: left; }
2985
+ .pcx-md a { color: var(--dsw-alias-state-business-primary, #1f6feb); text-decoration: none; }
2986
+ .pcx-md a:hover { text-decoration: underline; }
2987
+ .pcx-md hr { border: 0; border-top: 1px solid var(--dsw-alias-border-l2, rgba(0,0,0,.1)); margin: 12px 0; }
2813
2988
  .pcx-title { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
2814
2989
  .pcx-version-tag {
2815
2990
  display: inline-flex; align-items: center; height: 18px; margin-left: 7px; padding: 0 6px;
@@ -3149,6 +3324,7 @@ var CSS = `
3149
3324
  .pcx-trace { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.04); font-size: 11px; }
3150
3325
  .pcx-trace pre { margin: 6px 0 0; white-space: pre-wrap; font-family: ui-monospace, monospace; }
3151
3326
  `;
3327
+ var __testMarkdown = renderMarkdown;
3152
3328
 
3153
3329
  return module.exports;
3154
3330
  }
package/lib/index.js CHANGED
@@ -143,7 +143,7 @@ function selfUpdateBlockedInfo(own) {
143
143
  if (local) {
144
144
  return {
145
145
  reason: 'local',
146
- hint: `当前插件中心是按本地包安装的(${source ?? 'file:'}),DSH 无法原地升级。执行一次迁移后即可自动更新:${reinstall},然后重启 DSH。`,
146
+ hint: `当前小趣插件中心是按本地包安装的(${source ?? 'file:'}),DSH 无法原地升级。执行一次迁移后即可自动更新:${reinstall},然后重启 DSH。`,
147
147
  }
148
148
  }
149
149
 
@@ -256,7 +256,7 @@ async function centerFetch(config, path, init = {}) {
256
256
  }
257
257
 
258
258
  if (!response.ok) {
259
- const error = new Error(data.error ?? `插件中心返回 ${response.status}`)
259
+ const error = new Error(data.error ?? `小趣插件中心返回 ${response.status}`)
260
260
  error.status = response.status
261
261
  throw error
262
262
  }
@@ -825,7 +825,7 @@ export function apply(ctx) {
825
825
  const version = url.searchParams.get('version')
826
826
  const contentType = req.headers['content-type'] ?? ''
827
827
 
828
- // 面板直传:文件不经过插件中心,先换预签名地址,再由本机 PUT 到 OSS。
828
+ // 面板直传:文件不经过小趣插件中心,先换预签名地址,再由本机 PUT 到 OSS。
829
829
  if (version && !contentType.includes('multipart')) {
830
830
  let presign
831
831
  try {
@@ -944,6 +944,7 @@ export function apply(ctx) {
944
944
  name: bundle.name,
945
945
  displayName: typeof meta.name === 'string' ? meta.name : bundle.name,
946
946
  summary: typeof meta.summary === 'string' ? meta.summary : (bundle.description ?? ''),
947
+ icon: typeof meta.icon === 'string' ? meta.icon : null,
947
948
  description: bundle.description ?? null,
948
949
  version: bundle.version ?? null,
949
950
  enabled: bundle.enabled,
@@ -1128,9 +1129,9 @@ export function apply(ctx) {
1128
1129
  const isNetwork = raw === 'fetch failed' || error.name === 'TypeError'
1129
1130
  if (installTarget) failInstallProgress(installTarget)
1130
1131
  const message = isNetwork
1131
- ? `无法连接插件中心(${config.baseUrl}),请确认服务已启动`
1132
+ ? `无法连接小趣插件中心(${config.baseUrl}),请确认服务已启动`
1132
1133
  : error.name === 'AbortError' || raw.includes('timeout')
1133
- ? '连接插件中心超时,请稍后重试'
1134
+ ? '连接小趣插件中心超时,请稍后重试'
1134
1135
  : raw
1135
1136
  return send(res, status, {
1136
1137
  error: message,
package/logo.svg ADDED
@@ -0,0 +1,15 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
2
+ <defs>
3
+ <linearGradient id="g" x1="8" y1="4" x2="56" y2="60" gradientUnits="userSpaceOnUse">
4
+ <stop stop-color="#2E9BFF" />
5
+ <stop offset="0.55" stop-color="#0071E3" />
6
+ <stop offset="1" stop-color="#5E5CE6" />
7
+ </linearGradient>
8
+ </defs>
9
+ <rect width="64" height="64" rx="16" fill="url(#g)" />
10
+ <g fill="none" stroke="#fff" stroke-width="4.5" stroke-linecap="round">
11
+ <path d="M24 17v9M40 17v9" />
12
+ <path d="M19 28h26v7.5C45 43 39.2 48 32 48s-13-5-13-12.5V28Z" />
13
+ </g>
14
+ <circle cx="32" cy="55" r="2.5" fill="#fff" opacity=".75" />
15
+ </svg>
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@ququ-jiaxk/dsh-plugin-center",
3
- "version": "0.1.42",
4
- "description": "DSH 插件中心面板:浏览、安装、更新和发布远端插件中心的插件",
3
+ "version": "0.1.44",
4
+ "description": "小趣插件中心:浏览、安装、更新和发布远端插件中心的插件",
5
+ "icon": "logo.svg",
5
6
  "type": "module",
6
7
  "main": "lib/index.js",
7
8
  "exports": {
@@ -11,7 +12,8 @@
11
12
  },
12
13
  "files": [
13
14
  "lib",
14
- "cordis.patch.yml"
15
+ "cordis.patch.yml",
16
+ "logo.svg"
15
17
  ],
16
18
  "dsh": {
17
19
  "bundle": {