dsh-workbench-host 0.8.0 → 0.8.1
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/client/client.js +2 -7
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/client/client.js
CHANGED
|
@@ -2663,7 +2663,6 @@ function WorkbenchPage(props) {
|
|
|
2663
2663
|
var m = registry.get(a.id);
|
|
2664
2664
|
var v = m && m.views && m.views[0] || a.views && a.views[0] || null;
|
|
2665
2665
|
var title = a.title || pickTitle(v && v.title, lang) || a.id;
|
|
2666
|
-
var count = m && m.views ? m.views.length : a.views ? a.views.length : 0;
|
|
2667
2666
|
return jsx.jsxs("button", { type: "button", className: "wb-home-card" + (a.error ? " dim" : ""), onClick: function() {
|
|
2668
2667
|
openAddon(a);
|
|
2669
2668
|
}, children: [
|
|
@@ -2672,12 +2671,8 @@ function WorkbenchPage(props) {
|
|
|
2672
2671
|
jsx.jsx("span", { className: "wb-badge", children: "v" + (a.version || "?") })
|
|
2673
2672
|
] }),
|
|
2674
2673
|
jsx.jsx("div", { className: "wb-home-title", children: title }),
|
|
2675
|
-
jsx.jsx("div", { className: "wb-home-desc", children: a.description
|
|
2676
|
-
a.error ? jsx.jsx("div", { className: "wb-err", children: t("addon_error") + ": " + a.error }) : null
|
|
2677
|
-
jsx.jsxs("div", { className: "wb-home-foot", children: [
|
|
2678
|
-
jsx.jsx("span", { children: count ? count + " " + t("views") : "" }),
|
|
2679
|
-
jsx.jsx("b", { children: t("open") + " \u2192" })
|
|
2680
|
-
] })
|
|
2674
|
+
a.description ? jsx.jsx("div", { className: "wb-home-desc", children: a.description }) : null,
|
|
2675
|
+
a.error ? jsx.jsx("div", { className: "wb-err", children: t("addon_error") + ": " + a.error }) : null
|
|
2681
2676
|
] }, a.id);
|
|
2682
2677
|
}
|
|
2683
2678
|
function systemCard(key, icon, title, desc) {
|
package/lib/index.js
CHANGED
|
@@ -23,7 +23,7 @@ export const inject = ["webServer", "tools", "connection"];
|
|
|
23
23
|
const WB_HOME = process.env.WB_HOME ?? join(homedir(), ".dsh", "workbench");
|
|
24
24
|
const CLOUD_DEFAULT = process.env.WB_CLOUD_URL ?? "http://127.0.0.1:8791";
|
|
25
25
|
/** 宿主 API 版本:业务插件用它做兼容判断。 */
|
|
26
|
-
export const SHELL_VERSION = "0.8.
|
|
26
|
+
export const SHELL_VERSION = "0.8.1";
|
|
27
27
|
const DOMAIN_ID_RE = /^[a-z][a-z0-9_-]{2,63}$/;
|
|
28
28
|
const ACTION_RE = /^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*)+$/i;
|
|
29
29
|
function loadCreds() {
|