@agimon-ai/po-remote 0.0.0-alpha.180 → 0.0.0-alpha.181
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/extensions/web.mjs +20 -0
- package/dist/extensions/web.mjs.map +1 -1
- package/dist/index.cjs +155 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +121 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +155 -10
- package/dist/index.mjs.map +1 -1
- package/dist/po-runtime-identity.json +1 -1
- package/package.json +8 -8
package/dist/extensions/web.mjs
CHANGED
|
@@ -1541,6 +1541,22 @@ function ConnectionStatus({ status }) {
|
|
|
1541
1541
|
children: statusLabel[status]
|
|
1542
1542
|
});
|
|
1543
1543
|
}
|
|
1544
|
+
/** A time limit is the owner's own setting doing its job, so it reads as a quiet note, never as a failure. */
|
|
1545
|
+
function ClosedAtLimit({ at }) {
|
|
1546
|
+
if (!at) return null;
|
|
1547
|
+
const time = new Date(at).toLocaleTimeString([], {
|
|
1548
|
+
hour: "numeric",
|
|
1549
|
+
minute: "2-digit"
|
|
1550
|
+
});
|
|
1551
|
+
return /* @__PURE__ */ jsxs("p", {
|
|
1552
|
+
className: "text-sm text-po-dim",
|
|
1553
|
+
children: [
|
|
1554
|
+
"Turned off at its time limit at ",
|
|
1555
|
+
time,
|
|
1556
|
+
"."
|
|
1557
|
+
]
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1544
1560
|
function RemoteConnectionsDialog(props) {
|
|
1545
1561
|
const { address, relayStatus, tunnelStatus, approvalUrl, approvalCode, linked, busy, relayError, tunnelError } = props;
|
|
1546
1562
|
const relayOn = relayStatus === "on";
|
|
@@ -1624,6 +1640,7 @@ function RemoteConnectionsDialog(props) {
|
|
|
1624
1640
|
", then return here to check it."
|
|
1625
1641
|
]
|
|
1626
1642
|
}) : null,
|
|
1643
|
+
/* @__PURE__ */ jsx(ClosedAtLimit, { at: props.relayClosedAt }),
|
|
1627
1644
|
relayError ? /* @__PURE__ */ jsx("p", {
|
|
1628
1645
|
role: "alert",
|
|
1629
1646
|
className: "text-sm text-po-red",
|
|
@@ -1661,6 +1678,7 @@ function RemoteConnectionsDialog(props) {
|
|
|
1661
1678
|
" on this computer."
|
|
1662
1679
|
]
|
|
1663
1680
|
}),
|
|
1681
|
+
/* @__PURE__ */ jsx(ClosedAtLimit, { at: props.tunnelClosedAt }),
|
|
1664
1682
|
tunnelError ? /* @__PURE__ */ jsx("p", {
|
|
1665
1683
|
role: "alert",
|
|
1666
1684
|
className: "text-sm text-po-red",
|
|
@@ -1728,6 +1746,8 @@ function RemoteAccessDialog() {
|
|
|
1728
1746
|
busy: state.busy || !view || !relayView,
|
|
1729
1747
|
relayError: connectionError?.relay ?? relayView?.error,
|
|
1730
1748
|
tunnelError: connectionError?.tunnel ?? view?.error,
|
|
1749
|
+
relayClosedAt: relayView?.closedAtLimit,
|
|
1750
|
+
tunnelClosedAt: view?.closedAtLimit,
|
|
1731
1751
|
onAddressChange: editRelayAddress,
|
|
1732
1752
|
onRelayAdvance: () => void advanceRelaySetup(),
|
|
1733
1753
|
onRelayStop: () => void changeRemoteConnection("relay", false),
|