@decentnetwork/beagle 0.1.41 → 0.1.43
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/desktop/app.js +7 -4
- package/package.json +1 -1
package/dist/desktop/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
window.__DK_UI_VERSION="0.1.
|
|
1
|
+
window.__DK_UI_VERSION="0.1.42";
|
|
2
2
|
const ICON_PATHS = {
|
|
3
3
|
// ---- tab bar (the four must feel like one set) ----
|
|
4
4
|
users: '<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/>',
|
|
@@ -3047,9 +3047,10 @@ function DkPublicProfile({ T, userid, fallbackName, onClose, isFriend, isMe }) {
|
|
|
3047
3047
|
},
|
|
3048
3048
|
k,
|
|
3049
3049
|
" \u2197"
|
|
3050
|
-
)))),
|
|
3051
|
-
|
|
3052
|
-
|
|
3050
|
+
)))), (() => {
|
|
3051
|
+
const kvRow = (label, value, head = 8) => /* @__PURE__ */ React.createElement("div", { style: rowS, key: label }, /* @__PURE__ */ React.createElement("span", { style: lbl }, label), /* @__PURE__ */ React.createElement("span", { title: value, style: { flex: 1, minWidth: 0, fontFamily: "var(--mono)", fontSize: 11.5, color: "var(--dim)", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } }, shortKey(value, head, 6)), /* @__PURE__ */ React.createElement(CopyBtn, { value, copiedText: T.copied, copyFailedText: T.copyFailed, copyTitle: T.copy }));
|
|
3052
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, prof.eth && kvRow("ethereum", prof.eth), prof.sol && kvRow("solana", prof.sol), kvRow(T.userId || "user id", userid, 10), prof.address && kvRow(T.addr || "address", prof.address));
|
|
3053
|
+
})(), !isMe && !isFriend && prof.address && /* @__PURE__ */ React.createElement("div", { style: { ...rowS, justifyContent: "flex-end" } }, addState === "sent" ? /* @__PURE__ */ React.createElement(Tag, { tone: "accent" }, T.dirSent || "requested") : addState && addState !== "busy" ? /* @__PURE__ */ React.createElement("span", { title: addState, style: { fontFamily: "var(--ui)", fontSize: 11.5, color: "var(--warn, #f59e0b)" } }, T.addFailed || "failed") : /* @__PURE__ */ React.createElement(
|
|
3053
3054
|
"button",
|
|
3054
3055
|
{
|
|
3055
3056
|
onClick: () => addFriend(prof.address),
|
|
@@ -4415,6 +4416,7 @@ const STR = {
|
|
|
4415
4416
|
linksCard: "Links",
|
|
4416
4417
|
linkPlaceholder: "username or profile URL",
|
|
4417
4418
|
save: "save",
|
|
4419
|
+
addr: "address",
|
|
4418
4420
|
updTitle: "Update available",
|
|
4419
4421
|
updLater: "Later",
|
|
4420
4422
|
updNow: "Update now",
|
|
@@ -4578,6 +4580,7 @@ const STR = {
|
|
|
4578
4580
|
linksCard: "\u793E\u4EA4\u8D26\u53F7",
|
|
4579
4581
|
linkPlaceholder: "\u7528\u6237\u540D\u6216\u4E3B\u9875\u94FE\u63A5",
|
|
4580
4582
|
save: "\u4FDD\u5B58",
|
|
4583
|
+
addr: "\u5730\u5740",
|
|
4581
4584
|
updTitle: "\u53D1\u73B0\u65B0\u7248\u672C",
|
|
4582
4585
|
updLater: "\u7A0D\u540E",
|
|
4583
4586
|
updNow: "\u7ACB\u5373\u66F4\u65B0",
|
package/package.json
CHANGED