dsh-multi-chat 0.6.8 → 1.0.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/README.md +88 -30
- package/README.zh.md +54 -30
- package/bin/dsh-multi-chat.mjs +5 -9
- package/lib/client.js +778 -0
- package/lib/client.js.map +1 -0
- package/{plugin/dsh-client-ui-multi-wall/lib → lib}/index.js +58 -70
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/types/client/WallToggle.d.ts.map +1 -0
- package/lib/types/client/WallToggle.js +36 -0
- package/lib/types/client/WallToggle.js.map +1 -0
- package/lib/types/client/WallView.d.ts.map +1 -0
- package/lib/types/client/WallView.js +218 -0
- package/lib/types/client/WallView.js.map +1 -0
- package/lib/types/client/index.d.ts.map +1 -0
- package/lib/types/client/index.js +59 -0
- package/lib/types/client/index.js.map +1 -0
- package/lib/types/client/locales.d.ts.map +1 -0
- package/lib/types/client/locales.js +96 -0
- package/lib/types/client/locales.js.map +1 -0
- package/lib/types/client/store.d.ts.map +1 -0
- package/lib/types/client/store.js +27 -0
- package/lib/types/client/store.js.map +1 -0
- package/lib/types/client/wall-injected.d.ts.map +1 -0
- package/lib/types/client/wall-injected.js +76 -0
- package/lib/types/client/wall-injected.js.map +1 -0
- package/lib/types/gateway.d.ts +57 -0
- package/lib/types/gateway.d.ts.map +1 -0
- package/lib/types/gateway.js +566 -0
- package/lib/types/gateway.js.map +1 -0
- package/{plugin/dsh-client-ui-multi-wall/lib → lib}/types/index.d.ts +80 -80
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +550 -0
- package/lib/types/index.js.map +1 -0
- package/{plugin/dsh-client-ui-multi-wall/lib → lib}/types/invariant.d.ts +3 -4
- package/lib/types/invariant.d.ts.map +1 -0
- package/lib/types/invariant.js +25 -0
- package/lib/types/invariant.js.map +1 -0
- package/package.json +49 -17
- package/patches/multi-wall.yml +1 -1
- package/scripts/install-plugin.ps1 +6 -9
- package/scripts/start-multi.ps1 +1 -1
- package/scripts/sync-vitest-paths.mjs +63 -0
- package/src/client/WallToggle.module.css +26 -0
- package/src/client/WallToggle.tsx +52 -0
- package/src/client/WallView.module.css +190 -0
- package/src/client/WallView.tsx +406 -0
- package/src/client/index.ts +103 -0
- package/src/client/locales.ts +100 -0
- package/src/client/store.ts +40 -0
- package/src/client/wall-injected.ts +123 -0
- package/src/css-modules.d.ts +5 -0
- package/src/gateway.ts +627 -0
- package/src/index.ts +618 -0
- package/src/invariant.ts +33 -0
- package/plugin/dsh-client-ui-multi-wall/README.md +0 -26
- package/plugin/dsh-client-ui-multi-wall/README.zh.md +0 -26
- package/plugin/dsh-client-ui-multi-wall/cordis.patch.yml +0 -7
- package/plugin/dsh-client-ui-multi-wall/lib/client.js +0 -781
- package/plugin/dsh-client-ui-multi-wall/lib/invariant.js +0 -27
- package/plugin/dsh-client-ui-multi-wall/package.json +0 -88
- /package/{plugin/dsh-client-ui-multi-wall/lib → lib}/types/client/WallToggle.d.ts +0 -0
- /package/{plugin/dsh-client-ui-multi-wall/lib → lib}/types/client/WallView.d.ts +0 -0
- /package/{plugin/dsh-client-ui-multi-wall/lib → lib}/types/client/index.d.ts +0 -0
- /package/{plugin/dsh-client-ui-multi-wall/lib → lib}/types/client/locales.d.ts +0 -0
- /package/{plugin/dsh-client-ui-multi-wall/lib → lib}/types/client/store.d.ts +0 -0
- /package/{plugin/dsh-client-ui-multi-wall/lib → lib}/types/client/wall-injected.d.ts +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* WallToggle: the sidebar-foot shortcut. Clicking it opens the wall view —
|
|
4
|
+
* the `conversation.view` ring switches to the 'multi-wall' entry, which the
|
|
5
|
+
* header renders as the "多窗口" tab. The click is a plain user-equivalent
|
|
6
|
+
* activation: it finds the header's view-ring tab for this plugin's label and
|
|
7
|
+
* clicks it, so the official view-ring state machine (the chat store's active
|
|
8
|
+
* view field) performs the switch. No store is declared: the ring decides
|
|
9
|
+
* what renders, so this row owns no state.
|
|
10
|
+
*
|
|
11
|
+
* Session-scoped by design: the view ring (and its header tabs) only renders
|
|
12
|
+
* with an active session, so the shortcut is inert on the empty-hero screen —
|
|
13
|
+
* the user first opens or creates a session (the official flow), after which
|
|
14
|
+
* the tab is present and the click lands.
|
|
15
|
+
*/
|
|
16
|
+
import { IconFullscreenOutline16 } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
17
|
+
import css from './WallToggle.module.css';
|
|
18
|
+
/**
|
|
19
|
+
* Render the wall shortcut row (icon; label only in the wide column).
|
|
20
|
+
* @param props - composed slot props.
|
|
21
|
+
* @returns the shortcut row.
|
|
22
|
+
*/
|
|
23
|
+
export function WallToggle({ wide, t }) {
|
|
24
|
+
return (_jsxs("button", { type: "button", className: css.row, "aria-label": t('toggle.aria'), title: t('toggle'), onClick: () => {
|
|
25
|
+
// The official view ring renders the active entry through
|
|
26
|
+
// `only: <active id>`; the only sanctioned way to move it is the
|
|
27
|
+
// header tab's click handler (actions.setView). Trigger that same
|
|
28
|
+
// element instead of reaching into the chat store from the root
|
|
29
|
+
// scope. No tab (no active session) is a no-op.
|
|
30
|
+
const label = t('view.multiWall');
|
|
31
|
+
const tab = Array.from(document.querySelectorAll('[role="tab"]'))
|
|
32
|
+
.find(el => el.textContent?.trim() === label);
|
|
33
|
+
tab?.click();
|
|
34
|
+
}, children: [_jsx(IconFullscreenOutline16, { size: wide ? 16 : 18 }), wide && _jsx("span", { className: css.label, children: t('toggle') })] }));
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=WallToggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WallToggle.js","sourceRoot":"","sources":["../../../src/client/WallToggle.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAA;AAE/E,OAAO,GAAG,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O,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGtD,0FAA0F;AAC1F,MAAM,MAAM,aAAa,GACrB,aAAa,GACb,UAAU,CAAC,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAC,GAC5C,YAAY,GACZ,WAAW,CAAC,WAAW,CAAC,CAAA;AA2F5B;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,aAAa,+BAgRpG"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* WallView: the multi-window wall as a `conversation.view` ring entry. When
|
|
4
|
+
* the header's "多窗口" tab is selected, the right panel swaps from the
|
|
5
|
+
* chat to this view — a toolbar plus a grid of iframes, one pane per running
|
|
6
|
+
* DSH instance (127.0.0.1:<port>). Pure additive UI; no existing slot is
|
|
7
|
+
* replaced.
|
|
8
|
+
*
|
|
9
|
+
* Recursion guard: panes embed `?multi-wall=embed` (the embedded page
|
|
10
|
+
* registers no wall UI). The serving instance is itself a pane, so the user
|
|
11
|
+
* can watch — or stop — the very instance they are in.
|
|
12
|
+
*
|
|
13
|
+
* Live data channels: the store owns ports/columns; discovery writes
|
|
14
|
+
* `setPorts` from /multi/api/ports (same-origin, served by the node half);
|
|
15
|
+
* per-pane liveness arrives from /multi/api/status polls. Components never
|
|
16
|
+
* see ctx — the fetch helpers are injected through the registration.
|
|
17
|
+
*/
|
|
18
|
+
import { useEffect, useRef, useState } from 'react';
|
|
19
|
+
import clsx from 'clsx';
|
|
20
|
+
import { IconCloseOutline16, IconFullscreenOutline16, IconGlobeOutline14, IconPlusOutline16, IconRefreshOutline14, IconRefreshOutline16, IconRightUpOutline16, IconStopFill16, Button, Input, Menu, StateDot, } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
21
|
+
import css from './WallView.module.css';
|
|
22
|
+
/** Grid column presets, driven by the toolbar menu. 'auto' fills the row. */
|
|
23
|
+
const COLUMN_PRESETS = ['auto', '1', '2', '3', '4', '6'];
|
|
24
|
+
/** Embed flag appended to every pane URL; such pages register no wall UI. */
|
|
25
|
+
const EMBED_FLAG = 'multi-wall=embed';
|
|
26
|
+
/**
|
|
27
|
+
* Whether this wall is being viewed through the phone gateway (a non-loopback
|
|
28
|
+
* host) rather than on the machine running DSH. When remote, pane iframes must
|
|
29
|
+
* load through the gateway's `/gw/<port>` route — a phone's `127.0.0.1` points
|
|
30
|
+
* at the phone itself, not the host.
|
|
31
|
+
*/
|
|
32
|
+
function isRemoteViewer() {
|
|
33
|
+
const host = typeof window !== 'undefined' ? window.location.hostname : '';
|
|
34
|
+
return host !== 'localhost' && host !== '127.0.0.1' && host !== '::1';
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The iframe URL for a pane. Local viewers embed the loopback instance
|
|
38
|
+
* directly; remote (phone) viewers route through the gateway that is already
|
|
39
|
+
* serving this page, appending the port so the gateway proxies to it.
|
|
40
|
+
* @param port - target DSH instance port.
|
|
41
|
+
* @returns the pane URL.
|
|
42
|
+
*/
|
|
43
|
+
function paneUrl(port) {
|
|
44
|
+
if (isRemoteViewer()) {
|
|
45
|
+
return `${window.location.origin}/gw/${port}/?${EMBED_FLAG}`;
|
|
46
|
+
}
|
|
47
|
+
return `http://127.0.0.1:${port}/?${EMBED_FLAG}`;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* One pane: header (port, liveness dot, zoom/refresh/open/stop/remove) plus
|
|
51
|
+
* the embedded original DSH UI.
|
|
52
|
+
*/
|
|
53
|
+
function WallPane(props) {
|
|
54
|
+
const { port, alive, zoomed, stopping, onZoom, onStop, onRemove, t } = props;
|
|
55
|
+
return (_jsxs("section", { className: clsx(css.pane, zoomed && css.zoomed), "data-port": port, children: [_jsxs("div", { className: css.paneHead, children: [_jsx(StateDot, { state: alive ? 'done' : 'warning', size: 8, className: css.dot }), _jsxs("span", { className: css.paneTitle, children: ["127.0.0.1:", port] }), _jsxs("div", { className: css.paneActions, children: [_jsx("button", { type: "button", className: css.action, title: t('zoom'), onClick: onZoom, children: _jsx(IconFullscreenOutline16, { size: 14 }) }), _jsx("button", { type: "button", className: css.action, title: t('reload'), onClick: (e) => {
|
|
56
|
+
e.currentTarget.closest('section')?.querySelector('iframe')?.contentWindow?.location.reload();
|
|
57
|
+
}, children: _jsx(IconRefreshOutline16, { size: 14 }) }), _jsx("button", { type: "button", className: css.action, title: t('openTab'), onClick: () => {
|
|
58
|
+
window.open(paneUrl(port), '_blank');
|
|
59
|
+
}, children: _jsx(IconRightUpOutline16, { size: 14 }) }), _jsx("button", { type: "button", className: clsx(css.action, css.danger, stopping && css.confirm), title: t('stop'), onClick: onStop, children: stopping ? t('stop.confirm') : _jsx(IconStopFill16, { size: 14 }) }), _jsx("button", { type: "button", className: css.action, title: t('remove'), onClick: onRemove, children: _jsx(IconCloseOutline16, { size: 14 }) })] })] }), _jsx("div", { className: css.paneBody, children: _jsx("iframe", { title: `DSH :${port}`, src: paneUrl(port), loading: "lazy" }) })] }));
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Render the wall: toolbar plus the horizontally-filled pane grid. Discovery
|
|
63
|
+
* runs on mount and liveness polls every 5s; the store's persisted ports
|
|
64
|
+
* survive view switches and reloads.
|
|
65
|
+
* @param props - composed slot props.
|
|
66
|
+
* @returns the wall surface.
|
|
67
|
+
*/
|
|
68
|
+
export function WallView({ useStore, actions, discover, probe, stop, create, link, t }) {
|
|
69
|
+
const ports = useStore(s => s.ports);
|
|
70
|
+
const columns = useStore(s => s.columns);
|
|
71
|
+
const [alive, setAlive] = useState({});
|
|
72
|
+
const [zoomedPort, setZoomedPort] = useState(null);
|
|
73
|
+
const [confirmingStop, setConfirmingStop] = useState(null);
|
|
74
|
+
const [scanFrom, setScanFrom] = useState(3070);
|
|
75
|
+
const [scanTo, setScanTo] = useState(3110);
|
|
76
|
+
const [colsMenuOpen, setColsMenuOpen] = useState(false);
|
|
77
|
+
const [creating, setCreating] = useState(false);
|
|
78
|
+
const [linkOpen, setLinkOpen] = useState(false);
|
|
79
|
+
const [linkInfo, setLinkInfo] = useState(null);
|
|
80
|
+
const [linkCopied, setLinkCopied] = useState(false);
|
|
81
|
+
const [status, setStatus] = useState('');
|
|
82
|
+
const aliveRef = useRef({});
|
|
83
|
+
aliveRef.current = alive;
|
|
84
|
+
// Discover on mount (the view renders only while selected), then poll
|
|
85
|
+
// liveness while the view stays mounted.
|
|
86
|
+
useEffect(() => {
|
|
87
|
+
void discover().then(found => {
|
|
88
|
+
if (found.length > 0)
|
|
89
|
+
actions.setPorts(found);
|
|
90
|
+
setStatus(found.length > 0 ? t('status.found').replace('{count}', String(found.length)).replace('{ports}', found.join(', ')) : '');
|
|
91
|
+
});
|
|
92
|
+
const timer = setInterval(() => {
|
|
93
|
+
if (ports.length === 0)
|
|
94
|
+
return;
|
|
95
|
+
void probe(ports).then(rows => {
|
|
96
|
+
const next = {};
|
|
97
|
+
for (const row of rows)
|
|
98
|
+
next[row.port] = row.alive;
|
|
99
|
+
setAlive(next);
|
|
100
|
+
});
|
|
101
|
+
}, 5000);
|
|
102
|
+
return () => { clearInterval(timer); };
|
|
103
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
104
|
+
}, []);
|
|
105
|
+
// Stop is destructive: the first click arms a per-pane confirm, the second
|
|
106
|
+
// executes it. Any other interaction clears the arm. The serving instance
|
|
107
|
+
// itself may be stopped too (the user may want to take this port down).
|
|
108
|
+
const handleStop = async (port) => {
|
|
109
|
+
if (confirmingStop !== port) {
|
|
110
|
+
setConfirmingStop(port);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
setConfirmingStop(null);
|
|
114
|
+
const result = await stop(port);
|
|
115
|
+
if (result.ok) {
|
|
116
|
+
actions.removePort(port);
|
|
117
|
+
setAlive(current => ({ ...current, [port]: false }));
|
|
118
|
+
setStatus(t('stop.done').replace('{port}', String(port)));
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
setStatus(t('stop.failed').replace('{port}', String(port)).replace('{error}', result.error ?? ''));
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
const runDiscovery = async () => {
|
|
125
|
+
setStatus(t('status.scanning').replace('{from}', String(scanFrom)).replace('{to}', String(scanTo)));
|
|
126
|
+
const found = await discover();
|
|
127
|
+
if (found.length === 0) {
|
|
128
|
+
setStatus(t('status.none').replace('{from}', String(scanFrom)).replace('{to}', String(scanTo)));
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
actions.setPorts(found);
|
|
132
|
+
setStatus(t('status.found').replace('{count}', String(found.length)).replace('{ports}', found.join(', ')));
|
|
133
|
+
};
|
|
134
|
+
// Start a brand-new DSH instance and add it to the wall. Failures always
|
|
135
|
+
// surface a concrete reason: the injected face reports HTTP status / body
|
|
136
|
+
// problems, and a thrown fetch surfaces its message — never a silent stall.
|
|
137
|
+
const handleCreate = async () => {
|
|
138
|
+
setCreating(true);
|
|
139
|
+
setStatus('');
|
|
140
|
+
try {
|
|
141
|
+
const result = await create();
|
|
142
|
+
if (result.ok && result.port !== undefined) {
|
|
143
|
+
actions.addPort(result.port);
|
|
144
|
+
setAlive(current => ({ ...current, [result.port]: true }));
|
|
145
|
+
setStatus(t('create.done').replace('{port}', String(result.port)));
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
setStatus(t('create.failed').replace('{error}', result.error ?? t('create.unknown')));
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
catch (error) {
|
|
152
|
+
setStatus(t('create.failed').replace('{error}', error instanceof Error ? error.message : String(error)));
|
|
153
|
+
}
|
|
154
|
+
finally {
|
|
155
|
+
setCreating(false);
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
// Leave the wall: switch the view ring back to the default chat view. The
|
|
159
|
+
// ring's active view lives in the chat store and only the header tab's
|
|
160
|
+
// click handler mutates it, so exit reuses that sanctioned path — the chat
|
|
161
|
+
// entry is always the first tab (order 0), which makes the click
|
|
162
|
+
// locale-independent. No tab (blank session) is a no-op.
|
|
163
|
+
const exitWall = () => {
|
|
164
|
+
const tab = document.querySelector('[role="tablist"] [role="tab"]');
|
|
165
|
+
tab?.click();
|
|
166
|
+
};
|
|
167
|
+
// Fetch the phone-reachable link(s) for this instance and open the sheet.
|
|
168
|
+
const handleLink = async () => {
|
|
169
|
+
if (linkInfo === null) {
|
|
170
|
+
setStatus(t('link.fetching'));
|
|
171
|
+
const info = await link();
|
|
172
|
+
setLinkInfo(info);
|
|
173
|
+
}
|
|
174
|
+
setLinkOpen(true);
|
|
175
|
+
setLinkCopied(false);
|
|
176
|
+
setStatus('');
|
|
177
|
+
};
|
|
178
|
+
// Copy the first phone-reachable link to the clipboard. When the gateway
|
|
179
|
+
// issued a token it is appended as `?token=` so the phone bypasses the login
|
|
180
|
+
// form entirely (the gateway accepts a matching `?token=` query); the URL is
|
|
181
|
+
// otherwise the bare link. The standalone token line is still shown above so
|
|
182
|
+
// users who prefer typing it can.
|
|
183
|
+
const copyFirstLink = async () => {
|
|
184
|
+
if (linkInfo === null || linkInfo.lan.length === 0)
|
|
185
|
+
return;
|
|
186
|
+
try {
|
|
187
|
+
const base = linkInfo.lan[0] ?? '';
|
|
188
|
+
const token = linkInfo.token ?? '';
|
|
189
|
+
const url = token !== '' ? `${base}?token=${encodeURIComponent(token)}` : base;
|
|
190
|
+
await navigator.clipboard.writeText(url);
|
|
191
|
+
setLinkCopied(true);
|
|
192
|
+
}
|
|
193
|
+
catch {
|
|
194
|
+
setLinkCopied(false);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
// Every discovered port renders, including the one serving this wall: the
|
|
198
|
+
// user may want to watch (or stop) the instance they are in. Recursion is
|
|
199
|
+
// prevented by the embed flag, not by hiding the self pane.
|
|
200
|
+
const shown = ports;
|
|
201
|
+
return (_jsxs("div", { className: css.wall, role: "region", "aria-label": t('overlay.title'), "data-wall-view": "", children: [_jsxs("div", { className: css.toolbar, children: [_jsx("span", { className: css.title, children: t('overlay.title') }), _jsx("span", { className: css.status, children: status }), _jsxs("div", { className: css.controls, children: [_jsxs("label", { className: css.field, children: [t('scan.from'), _jsx(Input, { type: "number", value: scanFrom, onChange: e => setScanFrom(Number(e.target.value)) })] }), _jsxs("label", { className: css.field, children: [t('scan.to'), _jsx(Input, { type: "number", value: scanTo, onChange: e => setScanTo(Number(e.target.value)) })] }), _jsx(Button, { variant: "toolbar", size: "sm", onClick: () => { void runDiscovery(); }, children: t('scan') }), _jsx(Button, { variant: "toolbar", size: "sm", icon: _jsx(IconPlusOutline16, { size: 14 }), disabled: creating, onClick: () => { void handleCreate(); }, children: creating ? t('create.pending') : t('create') }), _jsx(Menu, { open: colsMenuOpen, anchor: _jsx(Button, { variant: "toolbar", size: "sm", icon: _jsx(IconRightUpOutline16, { size: 14 }), onClick: () => { setColsMenuOpen(true); }, children: columns === 'auto' ? t('columns.auto') : columns }), items: COLUMN_PRESETS.map(c => ({
|
|
202
|
+
id: c,
|
|
203
|
+
label: c === 'auto' ? t('columns.auto') : c,
|
|
204
|
+
})), selectedId: columns, onSelect: (id) => {
|
|
205
|
+
actions.setColumns(id);
|
|
206
|
+
setColsMenuOpen(false);
|
|
207
|
+
}, onClose: () => { setColsMenuOpen(false); }, compact: true }), _jsx(Button, { variant: "toolbar", size: "sm", icon: _jsx(IconRefreshOutline14, { size: 14 }), onClick: () => {
|
|
208
|
+
document.querySelectorAll(`.${css.paneBody} iframe`).forEach(f => {
|
|
209
|
+
f.contentWindow?.location.reload();
|
|
210
|
+
});
|
|
211
|
+
setStatus(t('status.refreshed'));
|
|
212
|
+
}, children: t('refresh') }), _jsx(Button, { variant: "toolbar", size: "sm", icon: _jsx(IconGlobeOutline14, { size: 14 }), "aria-label": t('link.aria'), onClick: () => { void handleLink(); }, children: t('link') }), _jsx(Button, { variant: "toolbar", size: "sm", icon: _jsx(IconCloseOutline16, { size: 14 }), "aria-label": t('exit.aria'), title: t('exit'), onClick: () => { exitWall(); }, children: t('exit') })] })] }), linkOpen && linkInfo !== null && (_jsxs("div", { className: css.linkBar, children: [linkInfo.reachable
|
|
213
|
+
? (_jsxs(_Fragment, { children: [_jsxs("span", { className: css.linkText, children: [t('link.reachable').replace('{urls}', linkInfo.lan.join(' ')), linkInfo.token !== undefined && linkInfo.token !== ''
|
|
214
|
+
? ` ${t('link.token').replace('{token}', linkInfo.token)}`
|
|
215
|
+
: ''] }), linkInfo.lan.length > 0 && (_jsx(Button, { variant: "outline", size: "sm", onClick: () => { void copyFirstLink(); }, children: linkCopied ? t('link.copied') : t('link.copy') }))] }))
|
|
216
|
+
: (_jsx("span", { className: css.linkText, children: t('link.unreachable').replace('{hint}', linkInfo.hint ?? '') })), _jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(IconCloseOutline16, { size: 14 }), onClick: () => { setLinkOpen(false); }, children: t('overlay.close') })] })), _jsxs("div", { className: css.grid, "data-cols": columns, children: [shown.map(port => (_jsx(WallPane, { port: port, alive: aliveRef.current[port] ?? true, zoomed: zoomedPort === port, stopping: confirmingStop === port, onZoom: () => setZoomedPort(zoomedPort === port ? null : port), onStop: () => { void handleStop(port); }, onRemove: () => { setConfirmingStop(null); actions.removePort(port); }, t: t }, port))), shown.length === 0 && (_jsxs("div", { className: css.empty, children: [_jsx("p", { children: t('empty') }), _jsx("p", { className: css.hint, children: t('empty.hint') })] }))] })] }));
|
|
217
|
+
}
|
|
218
|
+
//# sourceMappingURL=WallView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WallView.js","sourceRoot":"","sources":["../../../src/client/WallView.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACnD,OA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wBAAgB,KAAK,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAiC9C"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { en, zh } from "./locales.js";
|
|
2
|
+
import { createWallStore } from "./store.js";
|
|
3
|
+
import { createWallInjected } from "./wall-injected.js";
|
|
4
|
+
import { WallView } from "./WallView.js";
|
|
5
|
+
import { WallToggle } from "./WallToggle.js";
|
|
6
|
+
export { WallView } from "./WallView.js";
|
|
7
|
+
export { WallToggle } from "./WallToggle.js";
|
|
8
|
+
export { createWallStore } from "./store.js";
|
|
9
|
+
/** Dictionary namespace owned by this plugin. */
|
|
10
|
+
const NS = 'multiWall';
|
|
11
|
+
/** Required services: slots for both registrations, locale for copy. */
|
|
12
|
+
export const inject = ['slots', 'locale'];
|
|
13
|
+
/**
|
|
14
|
+
* Whether this page is an embedded wall pane. Panes load
|
|
15
|
+
* `?multi-wall=embed`; such pages register no wall UI at all, which stops a
|
|
16
|
+
* wall inside a wall (the pane would otherwise recursively embed the
|
|
17
|
+
* serving instance).
|
|
18
|
+
* @returns true when the query flag is present.
|
|
19
|
+
*/
|
|
20
|
+
function isEmbeddedPane() {
|
|
21
|
+
return new URLSearchParams(window.location.search).has('multi-wall');
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Client plugin body: register the dictionaries, the view-ring entry (the
|
|
25
|
+
* wall), and the sidebar footer shortcut. Embedded panes register nothing.
|
|
26
|
+
* @param ctx - client root context.
|
|
27
|
+
*/
|
|
28
|
+
export function apply(ctx) {
|
|
29
|
+
if (isEmbeddedPane())
|
|
30
|
+
return;
|
|
31
|
+
ctx.effect(() => ctx.locale.register(NS, { zh, en }), 'ui-multi-wall: dictionaries');
|
|
32
|
+
// Registration-time text (the view tab label) reads through the bound
|
|
33
|
+
// translate as a thunk, so it follows the active locale without
|
|
34
|
+
// re-registration.
|
|
35
|
+
const t = ctx.locale.bind(NS);
|
|
36
|
+
// One wall store handle rides both registrations (ports, columns).
|
|
37
|
+
const wallStore = createWallStore();
|
|
38
|
+
// The wall itself: a 'conversation.view' ring entry. The header projects
|
|
39
|
+
// the tab from the registration options; selecting it swaps the right
|
|
40
|
+
// panel from the chat to the wall (official view-ring behavior).
|
|
41
|
+
ctx.slots.inject('conversation.view', () => ctx.slots.register({
|
|
42
|
+
name: 'conversation.view',
|
|
43
|
+
id: 'multi-wall',
|
|
44
|
+
order: 20,
|
|
45
|
+
label: () => t('view.multiWall'),
|
|
46
|
+
locale: NS,
|
|
47
|
+
store: wallStore,
|
|
48
|
+
inject: () => createWallInjected(),
|
|
49
|
+
}, WallView));
|
|
50
|
+
// The sidebar footer shortcut: jumps to the wall view. It owns no state —
|
|
51
|
+
// the view ring decides what renders — so it is a plain action row.
|
|
52
|
+
ctx.slots.inject('sidebar.footer.action', () => ctx.slots.register({
|
|
53
|
+
name: 'sidebar.footer.action',
|
|
54
|
+
id: 'multi-wall',
|
|
55
|
+
order: 10,
|
|
56
|
+
locale: NS,
|
|
57
|
+
}, WallToggle));
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,EAAE,EAAE,EAAE,EAAqB,MAAM,cAAc,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAgB,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAkB,CAAA;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAgB,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAkB,CAAA;AAG7C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAW5C,iDAAiD;AACjD,MAAM,EAAE,GAAG,W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AAC,QAAQ,CAAC;QACjE,IAAI,EAAE,uBAAuB;QAC7B,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;KACX,EAAE,UAAU,CAAC,CAAC,CAAA;AACjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../src/client/locales.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAE1C,mEAAmE;AACnE,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CmB,CAAA;AAElC,0CAA0C;AAC1C,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,EAAE,CAAA;AAE1C,mEAAmE;AACnE,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CyB,CAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/** `multiWall` namespace dictionaries. */
|
|
2
|
+
/** Simplified Chinese dictionary (the key-set source of truth). */
|
|
3
|
+
export const zh = {
|
|
4
|
+
'toggle': '多窗口',
|
|
5
|
+
'toggle.aria': '打开或关闭多窗口',
|
|
6
|
+
'view.multiWall': '多窗口',
|
|
7
|
+
'overlay.title': '多窗口',
|
|
8
|
+
'overlay.close': '关闭',
|
|
9
|
+
'scan': '发现实例',
|
|
10
|
+
'scan.from': '起始端口',
|
|
11
|
+
'scan.to': '结束端口',
|
|
12
|
+
'create': '新建窗口',
|
|
13
|
+
'create.pending': '启动中…',
|
|
14
|
+
'create.done': '已创建窗口 :{port}',
|
|
15
|
+
'create.failed': '创建失败:{error}',
|
|
16
|
+
'create.unknown': '未知原因',
|
|
17
|
+
'exit': '退出',
|
|
18
|
+
'exit.aria': '退出多窗口,返回对话',
|
|
19
|
+
'link': '手机访问',
|
|
20
|
+
'link.aria': '获取手机访问链接',
|
|
21
|
+
'link.fetching': '正在获取链接…',
|
|
22
|
+
'link.none': '未检测到局域网地址',
|
|
23
|
+
'link.copy': '复制链接',
|
|
24
|
+
'link.copied': '已复制',
|
|
25
|
+
'link.hint': '提示:{hint}',
|
|
26
|
+
'link.reachable': '手机在同一网络时可用:{urls}',
|
|
27
|
+
'link.unreachable': '当前实例仅绑定本机,手机无法访问。{hint}',
|
|
28
|
+
'link.token': '口令:{token}',
|
|
29
|
+
'columns': '列数',
|
|
30
|
+
'columns.auto': '自动',
|
|
31
|
+
'refresh': '全部刷新',
|
|
32
|
+
'openTab': '新标签页打开',
|
|
33
|
+
'reload': '重新加载',
|
|
34
|
+
'remove': '从视图移除',
|
|
35
|
+
'stop': '关闭实例',
|
|
36
|
+
'stop.confirm': '确定关闭?',
|
|
37
|
+
'stop.self': '即将关闭当前实例(本页面将断开)',
|
|
38
|
+
'stop.done': '已关闭 :{port}',
|
|
39
|
+
'stop.failed': '关闭 :{port} 失败:{error}',
|
|
40
|
+
'zoom': '放大',
|
|
41
|
+
'loading': '加载中',
|
|
42
|
+
'empty': '没有检测到 DSH 实例',
|
|
43
|
+
'empty.hint': '先启动若干 dsh web --port <n> 实例,再点击「发现实例」或手动添加端口。',
|
|
44
|
+
'status.scanning': '扫描 {from}–{to} …',
|
|
45
|
+
'status.found': '发现 {count} 个实例:{ports}',
|
|
46
|
+
'status.none': '区间 {from}–{to} 未发现 DSH 实例',
|
|
47
|
+
'status.refreshed': '已刷新全部窗口',
|
|
48
|
+
};
|
|
49
|
+
/** English dictionary, checked complete against the zh key set. */
|
|
50
|
+
export const en = {
|
|
51
|
+
'toggle': 'Multi-Window',
|
|
52
|
+
'toggle.aria': 'Toggle multi-window',
|
|
53
|
+
'view.multiWall': 'Multi-Window',
|
|
54
|
+
'overlay.title': 'Multi-Window',
|
|
55
|
+
'overlay.close': 'Close',
|
|
56
|
+
'scan': 'Discover',
|
|
57
|
+
'scan.from': 'Start port',
|
|
58
|
+
'scan.to': 'End port',
|
|
59
|
+
'create': 'New window',
|
|
60
|
+
'create.pending': 'Starting…',
|
|
61
|
+
'create.done': 'Created window :{port}',
|
|
62
|
+
'create.failed': 'Create failed: {error}',
|
|
63
|
+
'create.unknown': 'unknown reason',
|
|
64
|
+
'exit': 'Exit',
|
|
65
|
+
'exit.aria': 'Exit multi-window and return to chat',
|
|
66
|
+
'link': 'Phone access',
|
|
67
|
+
'link.aria': 'Get phone access link',
|
|
68
|
+
'link.fetching': 'Fetching link…',
|
|
69
|
+
'link.none': 'No LAN address detected',
|
|
70
|
+
'link.copy': 'Copy link',
|
|
71
|
+
'link.copied': 'Copied',
|
|
72
|
+
'link.hint': 'Hint: {hint}',
|
|
73
|
+
'link.reachable': 'Reachable on the same network: {urls}',
|
|
74
|
+
'link.unreachable': 'This instance binds loopback only; phones cannot reach it. {hint}',
|
|
75
|
+
'link.token': 'Token: {token}',
|
|
76
|
+
'columns': 'Columns',
|
|
77
|
+
'columns.auto': 'Auto',
|
|
78
|
+
'refresh': 'Refresh all',
|
|
79
|
+
'openTab': 'Open in new tab',
|
|
80
|
+
'reload': 'Reload',
|
|
81
|
+
'remove': 'Remove from view',
|
|
82
|
+
'stop': 'Stop instance',
|
|
83
|
+
'stop.confirm': 'Confirm stop?',
|
|
84
|
+
'stop.self': 'Stopping the current instance (this page will disconnect)',
|
|
85
|
+
'stop.done': 'Stopped :{port}',
|
|
86
|
+
'stop.failed': 'Failed to stop :{port}: {error}',
|
|
87
|
+
'zoom': 'Zoom',
|
|
88
|
+
'loading': 'Loading',
|
|
89
|
+
'empty': 'No DSH instances found',
|
|
90
|
+
'empty.hint': 'Start a few `dsh web --port <n>` instances first, then click "Discover" or add a port manually.',
|
|
91
|
+
'status.scanning': 'Scanning {from}–{to} …',
|
|
92
|
+
'status.found': 'Found {count} instance(s): {ports}',
|
|
93
|
+
'status.none': 'No DSH instances in {from}–{to}',
|
|
94
|
+
'status.refreshed': 'Refreshed all windows',
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=locales.js.map
|
|
@@ -0,0 +1 @@
|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AA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/client/store.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAE5F,4DAA4D;AAC5D,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,2CAA2C;AAC3C,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACrD,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,UAAU,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpD,UAAU,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACxD,CAAA;AAED;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,iBAAiB,CAAC,SAAS,EAAE,WAAW,CAAC,CAW3E"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wall store: which instances are shown and the grid columns. The ports list
|
|
3
|
+
* is the wall's whole business state — discovery writes it, removal filters
|
|
4
|
+
* it, and the grid renders from it. Open/closed is NOT stored here: the wall
|
|
5
|
+
* is a `conversation.view` ring entry, so the active view (chat store's
|
|
6
|
+
* `view` field) decides whether it renders.
|
|
7
|
+
*/
|
|
8
|
+
import { defineStore } from '@deepseek-ai/dsh-client-runtime/client';
|
|
9
|
+
/**
|
|
10
|
+
* Create the wall store handle. Persisted under `dsh.multi-wall` so the port
|
|
11
|
+
* set and column choice survive view switches and reloads.
|
|
12
|
+
* @returns the store handle (spec + type + identity + factory in one).
|
|
13
|
+
*/
|
|
14
|
+
export function createWallStore() {
|
|
15
|
+
return defineStore({
|
|
16
|
+
init: () => ({ ports: [], columns: 'auto' }),
|
|
17
|
+
persist: 'dsh.multi-wall',
|
|
18
|
+
actions: {
|
|
19
|
+
setPorts: (d, ports) => { d.ports = ports; },
|
|
20
|
+
addPort: (d, port) => { if (!d.ports.includes(port))
|
|
21
|
+
d.ports = [...d.ports, port]; },
|
|
22
|
+
removePort: (d, port) => { d.ports = d.ports.filter(p => p !== port); },
|
|
23
|
+
setColumns: (d, columns) => { d.columns = columns; },
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/client/store.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,WAAW,EAA0B,MAAM,wCAAwC,CAAA;AAgB5F;;;;GAIG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO,WAAW,CAAC;QACjB,IAAI,EAAE,GAAc,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QACvD,OAAO,EAAE,gBAAgB;QACzB,OAAO,EAAE;YACP,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAe,EAAE,EAAE,GAAG,CAAC,CAAC,KAAK,GAAG,KAAK,CAAA,CAAC,CAAC;YACrD,OAAO,EAAE,CAAC,CAAC,EAAE,IAAY,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;gBAAE,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA,CAAC,CAAC;YAC3F,UAAU,EAAE,CAAC,CAAC,EAAE,IAAY,EAAE,EAAE,GAAG,CAAC,CAAC,KAAK,GAAG,CAA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AAE,CAAC,CAAA;IACjC,wEAAwE;IACxE,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;IAC/C,4EAA4E;IAC5E,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IACxC,oFAAoF;IACpF,MAAM,EAAE,MAAM,OAAO,CAAC,SAAS,CAAC,CAAA;IAChC,gFAAgF;IAChF,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,SAAK,GAAG,YAAY,CA6D3D"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Injected probe face for the wall view: same-origin fetches to the node
|
|
3
|
+
* half's /multi/api routes. Callbacks only — components never see ctx.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Build the probe face bound to this origin's /multi/api routes.
|
|
7
|
+
* @param mount - the API base path ('' at the root, '/multi' when mounted).
|
|
8
|
+
* @returns the injected callbacks.
|
|
9
|
+
*/
|
|
10
|
+
export function createWallInjected(mount = '') {
|
|
11
|
+
const base = mount.replace(/\/+$/, '');
|
|
12
|
+
return {
|
|
13
|
+
discover: async () => {
|
|
14
|
+
const res = await fetch(`${base}/multi/api/ports`);
|
|
15
|
+
if (!res.ok)
|
|
16
|
+
return [];
|
|
17
|
+
const data = (await res.json());
|
|
18
|
+
return (data.ports ?? []).filter(p => p.alive).map(p => p.port);
|
|
19
|
+
},
|
|
20
|
+
probe: async (ports) => {
|
|
21
|
+
const res = await fetch(`${base}/multi/api/status?ports=${ports.join(',')}`);
|
|
22
|
+
if (!res.ok)
|
|
23
|
+
return [];
|
|
24
|
+
const data = (await res.json());
|
|
25
|
+
return data.ports ?? [];
|
|
26
|
+
},
|
|
27
|
+
stop: async (port) => {
|
|
28
|
+
const res = await fetch(`${base}/multi/api/stop?port=${port}`, { method: 'POST' });
|
|
29
|
+
if (!res.ok)
|
|
30
|
+
return { port, ok: false, error: `HTTP ${res.status}` };
|
|
31
|
+
const data = (await res.json());
|
|
32
|
+
return data.ports?.[0] ?? { port, ok: false, error: 'no result' };
|
|
33
|
+
},
|
|
34
|
+
create: async () => {
|
|
35
|
+
// Harden the failure surface: a non-2xx answer, an HTML fallback page
|
|
36
|
+
// (route missing) or a truncated body must never degrade into the bare
|
|
37
|
+
// "unknown" the UI shows for a missing error field.
|
|
38
|
+
const res = await fetch(`${base}/multi/api/create`, { method: 'POST' });
|
|
39
|
+
if (!res.ok) {
|
|
40
|
+
return { ok: false, error: `HTTP ${res.status}` };
|
|
41
|
+
}
|
|
42
|
+
const text = await res.text();
|
|
43
|
+
let data;
|
|
44
|
+
try {
|
|
45
|
+
data = JSON.parse(text);
|
|
46
|
+
}
|
|
47
|
+
catch {
|
|
48
|
+
const snippet = text.trim().slice(0, 120);
|
|
49
|
+
return { ok: false, error: `invalid response: ${snippet === '' ? '<empty body>' : snippet}` };
|
|
50
|
+
}
|
|
51
|
+
if (data.ok === true) {
|
|
52
|
+
return data.port !== undefined
|
|
53
|
+
? { ok: true, port: data.port }
|
|
54
|
+
: { ok: false, error: 'no port in response' };
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
ok: false,
|
|
58
|
+
...(typeof data.error === 'string' ? { error: data.error } : { error: 'server returned no reason' }),
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
link: async () => {
|
|
62
|
+
const res = await fetch(`${base}/multi/api/link`);
|
|
63
|
+
const data = (await res.json().catch(() => ({})));
|
|
64
|
+
return {
|
|
65
|
+
port: data.port ?? 0,
|
|
66
|
+
host: data.host ?? 'unknown',
|
|
67
|
+
lan: data.lan ?? [],
|
|
68
|
+
reachable: data.reachable === true,
|
|
69
|
+
...(typeof data.gatewayPort === 'number' ? { gatewayPort: data.gatewayPort } : {}),
|
|
70
|
+
...(typeof data.token === 'string' ? { token: data.token } : {}),
|
|
71
|
+
...(typeof data.hint === 'string' ? { hint: data.hint } : {}),
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=wall-injected.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wall-injected.js","sourceRoot":"","sources":["../../../src/client/wall-injected.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqDH;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAK,GAAG,EAAE;IAC3C,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;IACtC,OAAO;QACL,QAAQ,EAAE,KAAK,IAAI,EAAE;YACnB,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,IAAI,kBAAkB,CAAC,CAAA;YAClD,IAAI,CAAC,GAAG,CAAC,EAAE;gBAAE,OAAO,EAAE,CAAA;YACtB,MAAM,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAmD,CAAA;YACjF,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;QACjE,CAAC;QACD,KAAK,EAAE,KAAK,EAAE,KAAe,EAAE,EAAE;YAC/B,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,IAAI,2BAA2B,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;YAC5E,IAAI,CAAC,GAAG,CAAC,EAAE;gBAAE,OAAO,EAAE,CAAA;YACtB,MAAM,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAA2B,CAAA;YACzD,OAAO,IAAI,CAAC,KAAK,IAAI,EAAE,CAA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