@max-null/dsh-plugin-center 0.2.5 → 0.2.7
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.js +7 -3
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -50,7 +50,7 @@ var CSS = `
|
|
|
50
50
|
|
|
51
51
|
.pc-card { border: 1px solid var(--dsw-alias-border-l2); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; background: var(--dsw-alias-bg-layer-3); min-width: 0; transition: border-color .16s, background .16s; display: flex; flex-direction: column; }
|
|
52
52
|
.pc-card:hover { border-color: var(--dsw-alias-label-dimmed); }
|
|
53
|
-
.pc-name { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--dsw-alias-label-primary); }
|
|
53
|
+
.pc-name { font-size: 15px; font-weight: 600; line-height: 1.4; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dsw-alias-label-primary); }
|
|
54
54
|
.pc-ver { color: var(--dsw-alias-label-caption); font-size: 12px; }
|
|
55
55
|
.pc-desc { color: var(--dsw-alias-label-tertiary); font-size: 13px; margin-top: 6px; word-break: break-word; overflow-wrap: break-word; }
|
|
56
56
|
.pc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
@@ -815,7 +815,7 @@ function UpdatesView({ updates, refresh, updateOne, busy, doneUpdates, onDoneCli
|
|
|
815
815
|
] });
|
|
816
816
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
817
817
|
updates.map((u) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pc-card", children: [
|
|
818
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pc-row", children: [
|
|
818
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pc-row", style: { flexWrap: "nowrap" }, children: [
|
|
819
819
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pc-name", children: u.name }),
|
|
820
820
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pc-ver", children: u.fromVersion }),
|
|
821
821
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pc-ver", children: "\u2192" }),
|
|
@@ -829,7 +829,7 @@ function UpdatesView({ updates, refresh, updateOne, busy, doneUpdates, onDoneCli
|
|
|
829
829
|
] }),
|
|
830
830
|
u.changelog.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { className: "pc-wn-list", children: u.changelog.slice(0, 5).map((line, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: line }, i)) })
|
|
831
831
|
] }, u.name)),
|
|
832
|
-
doneOnly.map((d) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pc-card", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pc-row", children: [
|
|
832
|
+
doneOnly.map((d) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pc-card", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pc-row", style: { flexWrap: "nowrap" }, children: [
|
|
833
833
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pc-name", children: d.name }),
|
|
834
834
|
d.fromVersion !== "" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
835
835
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pc-ver", children: d.fromVersion }),
|
|
@@ -1014,6 +1014,10 @@ function CenterPanel({ variant = "section" }) {
|
|
|
1014
1014
|
const [restartAsk, setRestartAsk] = (0, import_react.useState)(0);
|
|
1015
1015
|
const runRestartNow = (n) => {
|
|
1016
1016
|
void fetch("/ssid/api/sessionRoot.restart", { method: "POST", headers: { "content-type": "application/json" }, body: "{}" }).then((res) => res.json()).then((body2) => {
|
|
1017
|
+
if (body2.ok !== true) {
|
|
1018
|
+
showToast(t("restartUnavailable"), "error", 8e3);
|
|
1019
|
+
return;
|
|
1020
|
+
}
|
|
1017
1021
|
if (body2.value?.code === "busy") {
|
|
1018
1022
|
showToast(t("updateRestartBusy", { n: body2.value.activeSessions ?? 0 }), "error", 8e3);
|
|
1019
1023
|
}
|
package/package.json
CHANGED