@ququ-jiaxk/dsh-plugin-center 0.1.46 → 0.1.48
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 +4 -4
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -36,7 +36,7 @@ var logo_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" v
|
|
|
36
36
|
|
|
37
37
|
// src/client.tsx
|
|
38
38
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
|
-
var PLUGIN_VERSION = true ? "0.1.
|
|
39
|
+
var PLUGIN_VERSION = true ? "0.1.48" : "0.0.0";
|
|
40
40
|
var PANEL_ID = "plugin-center";
|
|
41
41
|
var inject = ["slots", "remote", "remote.pluginManager"];
|
|
42
42
|
var hostCtx = null;
|
|
@@ -387,7 +387,7 @@ function InstalledList({
|
|
|
387
387
|
}) {
|
|
388
388
|
const center = new Map(centerItems.map((item) => [item.packageName, item]));
|
|
389
389
|
const keyword = query.trim().toLowerCase();
|
|
390
|
-
const list = bundles.filter((bundle) =>
|
|
390
|
+
const list = bundles.filter((bundle) => {
|
|
391
391
|
if (filter === "all") return true;
|
|
392
392
|
if (filter === "disabled") return !bundle.enabled;
|
|
393
393
|
return localCategory(bundle) === filter;
|
|
@@ -406,7 +406,7 @@ function InstalledList({
|
|
|
406
406
|
const item = center.get(bundle.name);
|
|
407
407
|
const missing = bundle.availability === "missing";
|
|
408
408
|
const localInstall = !bundle.source || /(?:^|[^a-z0-9])(?:file|link):/iu.test(bundle.source);
|
|
409
|
-
const experimental = bundle.name.includes("experimental")
|
|
409
|
+
const experimental = bundle.name.includes("experimental");
|
|
410
410
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("article", { className: "pcx-card", children: [
|
|
411
411
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
412
412
|
"div",
|
|
@@ -425,7 +425,7 @@ function InstalledList({
|
|
|
425
425
|
experimental ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-badge", children: "\u5B9E\u9A8C\u6027" }) : null,
|
|
426
426
|
bundle.optional ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-badge", children: "\u53EF\u9009" }) : null,
|
|
427
427
|
bundle.error ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-badge pcx-badge-danger", children: "\u8BFB\u53D6\u5F02\u5E38" }) : null,
|
|
428
|
-
item ?
|
|
428
|
+
centerItems.length > 0 && !item ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pcx-badge", children: "\u672A\u4E0A\u67B6" }) : null
|
|
429
429
|
] }),
|
|
430
430
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pcx-pkg", children: bundle.name })
|
|
431
431
|
] })
|