@linxin666/dsh-ssh 0.4.10 → 0.4.12

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.
@@ -135,6 +135,27 @@ export declare class SshApi {
135
135
  * @param rows - the view's current height.
136
136
  */
137
137
  attachTerminal(sessionId: string, cols: number, rows: number): TerminalConnection;
138
+ /**
139
+ * End a host session this view is not attached to (closing a background
140
+ * tab). The session has no other handle from the browser: giving it a
141
+ * dedicated HTTP route would widen the host's surface for one frame, so this
142
+ * opens one short-lived attach instead and sends the close frame as soon as
143
+ * the socket is open.
144
+ *
145
+ * The answer is "is this session no longer running", which has three
146
+ * truthful answers and one lie to avoid:
147
+ * - the frame went out on an open socket: the host ends the session;
148
+ * - the host answered with an exit frame: an unknown id is reported as
149
+ * `terminal session expired` and an ended shell also exits, and in both
150
+ * cases nothing is running, so the tab really is closed;
151
+ * - the socket errored, closed before opening, or never settled inside
152
+ * `timeoutMs`: delivery is unproven, so the session may still be alive and
153
+ * the caller must keep the tab instead of claiming it closed.
154
+ * @param sessionId - the session id the host reported on its ready frame.
155
+ * @param timeoutMs - bounded wait for the delivery signal (default 5000).
156
+ * @returns true when the session is known to be gone.
157
+ */
158
+ closeTerminalSession(sessionId: string, timeoutMs?: number): Promise<boolean>;
138
159
  /** One terminal socket over either an alias (open) or a session id (attach). */
139
160
  private terminalSocket;
140
161
  }
@@ -99,6 +99,13 @@ export declare const zh: {
99
99
  readonly 'terminal.auth.cancel': "取消";
100
100
  readonly 'terminal.auth.placeholder': "请输入验证码或口令";
101
101
  readonly 'terminal.auth.hint': "服务器请求进行交互式二次验证(输入仅本次生效,不落盘):";
102
+ readonly 'terminal.tabs': "终端标签";
103
+ readonly 'terminal.newTab': "按当前主机新开标签";
104
+ readonly 'terminal.closeTab': "关闭标签";
105
+ readonly 'terminal.authPending': "待验证";
106
+ readonly 'terminal.tabExited': "已退出";
107
+ readonly 'terminal.tabError': "出错";
108
+ readonly 'terminal.closeFailed': "无法确认该标签已关闭:关闭帧未送达宿主。标签已保留——可重试,或切到该标签前台,用它自己的连接关闭。";
102
109
  readonly 'transfer.selectHost': "选择主机";
103
110
  readonly 'transfer.remotePath': "远程路径";
104
111
  readonly 'transfer.remotePathHint': "如 /tmp/ 或 /home/user/app.tar.gz";
@@ -4,19 +4,24 @@ import { type TerminalFontSource } from './helpers.ts';
4
4
  /** Terminal tab props. */
5
5
  export interface TerminalTabProps {
6
6
  api: SshApi;
7
- /** The panel controller that owns the live host session id across mounts. */
7
+ /** The panel controller that owns the tabs and their host session ids. */
8
8
  controller: PanelController;
9
- /** Host session to reattach to on mount (survives a panel switch). */
10
- sessionId?: string;
11
9
  /** Alias preselected by a "connect" action from the hosts tab. */
12
10
  presetAlias?: string;
13
- /** Monotonic id of the connect request (re-applies presetAlias). */
14
- requestId?: number;
15
11
  /**
16
12
  * Live terminal-font setting source (issue #577). Absent in tests and
17
13
  * legacy mounts: the font then comes from the CSS custom-property chain.
18
14
  */
19
15
  terminalFont?: TerminalFontSource;
20
16
  }
21
- /** The xterm terminal view. */
22
- export declare function TerminalTab({ api, controller, sessionId, presetAlias, requestId, terminalFont }: TerminalTabProps): import("react").JSX.Element;
17
+ /**
18
+ * Whether the visible challenge form may answer on the bound socket: the form
19
+ * and the socket must belong to the same tab. Both are read at submit time, and
20
+ * the window between a tab switch's commit and the effect that rebinds the
21
+ * socket is exactly when they can disagree.
22
+ * @param linkTabId - the tab the bound socket belongs to.
23
+ * @param formTabId - the tab whose challenge form is on screen.
24
+ */
25
+ export declare function challengeBelongsToLink(linkTabId: string | undefined, formTabId: string | undefined): boolean;
26
+ /** The terminal view with its tab strip. */
27
+ export declare function TerminalTab({ api, controller, presetAlias, terminalFont }: TerminalTabProps): import("react").JSX.Element;
@@ -5,31 +5,82 @@
5
5
  * style) so the sidebar row and the React panel share one tiny subscription
6
6
  * surface. The state lives only for the browser session (no persistence).
7
7
  *
8
- * The active tab, the hosts-tab connect request and the live terminal session
9
- * id live here rather than inside the panel components: the layout mounts a
10
- * keyed page only while its panel is selected, so component-local state would
11
- * reset the tab on every panel switch and lose the id a reattach needs.
8
+ * The active tab, the hosts-tab connect request, the terminal tabs and their
9
+ * host session ids live here rather than inside the panel components: the
10
+ * layout mounts a keyed page only while its panel is selected, so
11
+ * component-local state would reset the tab on every panel switch and lose
12
+ * the ids a reattach needs.
13
+ *
14
+ * Terminal tabs (issue #1950) are records, not sockets. One tab is the tab
15
+ * shown in the single xterm; a tab that is not shown either owns a detached
16
+ * host session (reattached by id, which replays the host scrollback) or no
17
+ * session at all. The controller is also the place where a still-connecting
18
+ * socket is adopted when a view goes away: a connection that has not reported
19
+ * its session id yet cannot be detached, so dropping it would leave the host
20
+ * PTY with no owner (the orphan the reference implementation produced).
12
21
  */
22
+ import type { TerminalConnection } from '../api.ts';
13
23
  /** The panel's tab identifiers. */
14
24
  export type SshTab = 'hosts' | 'terminal' | 'transfer' | 'tunnels' | 'cluster';
15
- /** A "connect" action from the hosts tab, handed to the terminal tab. */
16
- export interface ConnectRequest {
17
- alias: string;
18
- /** Monotonic id so a repeated connect for the same alias still re-applies. */
19
- nonce: number;
20
- }
21
25
  /** Stable id shared by the sidebar panel row and the main-slot page. */
22
26
  export declare const SSH_PANEL_ID = "ssh";
27
+ /** Lifecycle of one terminal tab. */
28
+ export type TerminalTabStatus =
29
+ /** Socket open, the host has not reported a session id yet. */
30
+ 'connecting'
31
+ /** The host reported a session id; the shell is live. */
32
+ | 'connected'
33
+ /** The remote shell ended. The tab keeps its screen; the session id is cleared. */
34
+ | 'exited'
35
+ /** The connection failed. The tab keeps the reason; the session id is cleared. */
36
+ | 'error';
37
+ /** A keyboard-interactive challenge waiting for this tab's answer. */
38
+ export interface TerminalAuthPrompt {
39
+ name: string;
40
+ instructions: string;
41
+ prompts: Array<{
42
+ prompt: string;
43
+ echo: boolean;
44
+ }>;
45
+ }
46
+ /** One terminal tab, independent of the socket that currently serves it. */
47
+ export interface TerminalTabRecord {
48
+ /** Local tab id, stable across panel switches (never the host session id). */
49
+ id: string;
50
+ /** Host alias this tab opened. Several tabs may share one alias. */
51
+ alias: string;
52
+ status: TerminalTabStatus;
53
+ /** Host-side PTY session id, present only while the shell is live. */
54
+ sessionId?: string;
55
+ /** Exit or failure text for the `exited` / `error` states. */
56
+ detail?: string;
57
+ /** Code of a close that never reached the host; the tab is kept. */
58
+ closeError?: string;
59
+ /** Challenge captured for this tab, whoever was on screen when it arrived. */
60
+ authPrompt?: TerminalAuthPrompt;
61
+ /**
62
+ * The answer being typed for {@link TerminalTabRecord.authPrompt}, owned by
63
+ * this tab: one shared draft let a challenge on tab B inherit (and submit)
64
+ * the characters typed for tab A.
65
+ */
66
+ authAnswers?: string[];
67
+ }
68
+ /** The terminal fields a later step may change on one tab. */
69
+ export type TerminalTabPatch = Omit<TerminalTabRecord, 'id' | 'alias'>;
70
+ /** What to do with an adopted connection once the host reports its session. */
71
+ export type TerminalLinkIntent = 'detach' | 'close';
23
72
  /** Immutable controller snapshot for UI subscriptions. */
24
73
  export interface PanelControllerSnapshot {
25
74
  /** Whether the center column shows this panel. */
26
75
  panelOpen: boolean;
27
76
  /** The tab the panel is showing. */
28
77
  activeTab: SshTab;
29
- /** Pending hosts-tab connect request, or null. */
30
- connectRequest: ConnectRequest | null;
31
- /** Host-side terminal session the terminal tab should reattach to, if any. */
32
- terminalSessionId: string | undefined;
78
+ /** Every terminal tab, in strip order. */
79
+ terminalTabs: readonly TerminalTabRecord[];
80
+ /** The tab the single xterm is bound to, or undefined when there is none. */
81
+ activeTerminalTabId: string | undefined;
82
+ /** Host picked in the terminal toolbar; the next tab opens on it. */
83
+ draftAlias: string;
33
84
  }
34
85
  /**
35
86
  * The layout's panel-navigation face: selecting the panel is the layout's
@@ -51,9 +102,23 @@ export declare class PanelController {
51
102
  private readonly deps;
52
103
  private panelOpen;
53
104
  private activeTab;
54
- private connectRequest;
55
- private terminalSessionId;
105
+ private terminalTabs;
106
+ private activeTerminalTabId;
107
+ private draftAlias;
108
+ private nextTerminalTabSeq;
56
109
  private listeners;
110
+ /**
111
+ * Last screen of each tab, kept outside the snapshot: terminal output must
112
+ * not re-render the panel on every chunk, and only the terminal view reads
113
+ * this (when a tab has no session left to replay from).
114
+ */
115
+ private readonly retainedScreens;
116
+ /**
117
+ * Sockets that outlived their view while still connecting. Their session id
118
+ * is unknown, so they cannot be detached yet; keeping them here is what
119
+ * prevents a host PTY with no owner.
120
+ */
121
+ private readonly adoptedLinks;
57
122
  /** Cached so getSnapshot is referentially stable between changes. */
58
123
  private snapshot;
59
124
  constructor(deps?: PanelControllerDeps);
@@ -77,12 +142,111 @@ export declare class PanelController {
77
142
  syncPanelSelection(panelId: string | null): void;
78
143
  /** Switch tabs, keeping every other piece of view state. */
79
144
  setActiveTab(tab: SshTab): void;
80
- /** Hand the terminal tab a host to connect to (hosts-tab "connect" action). */
145
+ /**
146
+ * Hand the terminal tab a host to connect to (the hosts-tab "connect"
147
+ * action): the tab exists before the view does, so a panel switch during the
148
+ * handshake still shows the connecting tab and adopts its socket.
149
+ * @param alias - the configured host alias.
150
+ */
81
151
  requestConnect(alias: string): void;
82
- /** Record the host-side session so a later page mount can reattach. */
83
- setTerminalSession(sessionId: string): void;
84
- /** Forget the session (it exited, or the user disconnected). */
85
- clearTerminalSession(): void;
152
+ /**
153
+ * Add a terminal tab on the alias and make it the shown one. Several tabs
154
+ * may target one alias on purpose: each owns its own host PTY.
155
+ * @param alias - the configured host alias.
156
+ * @returns the new tab id.
157
+ */
158
+ openTerminalTab(alias: string): string;
159
+ /**
160
+ * Show an existing tab and make the toolbar follow its host, so a new tab
161
+ * opens on the host the user is looking at.
162
+ * @param id - the tab id.
163
+ */
164
+ setActiveTerminalTab(id: string): void;
165
+ /**
166
+ * Remove one tab and forget its screen. When the shown tab closes, the
167
+ * neighbours decide what the xterm shows next: the tab that took its place,
168
+ * else the one before it, else nothing.
169
+ * @param id - the tab id.
170
+ */
171
+ closeTerminalTab(id: string): void;
172
+ /** The tab record with this id, or undefined when it no longer exists. */
173
+ terminalTab(id: string): TerminalTabRecord | undefined;
174
+ /**
175
+ * Apply a partial update to one tab; a tab that was closed in the meantime
176
+ * is left alone rather than resurrected.
177
+ * @param id - the tab id.
178
+ * @param patch - the fields to change.
179
+ */
180
+ patchTerminalTab(id: string, patch: Partial<TerminalTabPatch>): void;
181
+ /**
182
+ * Record the host session of a ready tab and clear the challenge it carried.
183
+ * @param id - the tab id.
184
+ * @param sessionId - the id the host reported on its ready frame.
185
+ */
186
+ readyTerminalTab(id: string, sessionId: string): void;
187
+ /**
188
+ * The remote shell ended: the tab keeps its screen and its place, and the
189
+ * dead session id is dropped so nothing tries to reattach to it.
190
+ * @param id - the tab id.
191
+ * @param detail - why it ended, when the transport said.
192
+ */
193
+ exitTerminalTab(id: string, detail?: string): void;
194
+ /**
195
+ * The connection failed. The tab stays with the reason so the user can read
196
+ * it and close the tab themselves.
197
+ * @param id - the tab id.
198
+ * @param detail - the failure text.
199
+ */
200
+ failTerminalTab(id: string, detail: string): void;
201
+ /**
202
+ * A background close never reached the host. The tab keeps its live session
203
+ * id (so a retry can still end it) and says so instead of vanishing.
204
+ * @param id - the tab id.
205
+ * @param reason - the reason code shown by the view.
206
+ */
207
+ markTerminalCloseFailed(id: string, reason: string): void;
208
+ /**
209
+ * Store the keyboard-interactive challenge this tab has to answer, with a
210
+ * blank answer of this challenge's own length. A prompt on another tab never
211
+ * touches this record, which is what keeps two challenges from sharing input.
212
+ * @param id - the tab id.
213
+ * @param prompt - the challenge the host asked for.
214
+ */
215
+ setTerminalAuthPrompt(id: string, prompt: TerminalAuthPrompt): void;
216
+ /**
217
+ * Record one character typed for this tab's challenge.
218
+ * @param id - the tab id.
219
+ * @param index - which prompt of the challenge.
220
+ * @param value - the field's current text.
221
+ */
222
+ setTerminalAuthAnswer(id: string, index: number, value: string): void;
223
+ /** Drop the challenge once it was answered, cancelled, or could not apply. */
224
+ clearTerminalAuthPrompt(id: string): void;
225
+ /** Choose the alias the next terminal tab opens on. */
226
+ setDraftAlias(alias: string): void;
227
+ /** Append one output chunk to the retained screen of a tab. */
228
+ appendTerminalOutput(id: string, chunk: string): void;
229
+ /** The retained screen of a tab, concatenated for a redraw. */
230
+ readTerminalOutput(id: string): string;
231
+ /** Forget the retained screen (a fresh replay from the host replaces it). */
232
+ clearTerminalOutput(id: string): void;
233
+ /**
234
+ * Keep a still-connecting socket alive after its view went away. The socket
235
+ * cannot be detached yet (no session id), so the intent is applied when the
236
+ * host reports it: `detach` leaves the shell for a later reattach, `close`
237
+ * ends the session of a tab the user closed.
238
+ * @param tabId - the tab the socket belongs to.
239
+ * @param connection - the live connection.
240
+ * @param intent - what to do once the session id arrives.
241
+ */
242
+ adoptTerminalLink(tabId: string, connection: TerminalConnection, intent: TerminalLinkIntent): void;
243
+ /**
244
+ * Take an adopted socket back when its tab is shown again, so the host never
245
+ * opens a second PTY for the same tab.
246
+ * @param tabId - the tab id.
247
+ * @returns the connection, or undefined when nothing was adopted.
248
+ */
249
+ reclaimTerminalLink(tabId: string): TerminalConnection | undefined;
86
250
  private commit;
87
251
  /** Ask the layout to select a panel; a shell without the face is a no-op. */
88
252
  private selectPanel;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linxin666/dsh-ssh",
3
3
  "description": "Remote SSH operations for the dsh web GUI: host config store (~/.dsh/dsh-ssh.json, import from ~/.ssh/config), a persistent ssh2 connection pool with jump-host support, exec / PTY web terminal / SFTP transfer / local port-forward tunnels / cluster execution, plus agent tools (ssh_list, ssh_exec, ssh_upload, ssh_download, ssh_tunnel, ssh_cluster). Hot-pluggable — mounted via ~/.dsh/cordis.patch.yml + a profile node_modules symlink, no dsh source changes.",
4
- "version": "0.4.10",
4
+ "version": "0.4.12",
5
5
  "icon": "icon.svg",
6
6
  "type": "module",
7
7
  "engines": {
package/src/client/api.ts CHANGED
@@ -503,6 +503,76 @@ export class SshApi {
503
503
  return this.terminalSocket(query({ session: sessionId, cols, rows }))
504
504
  }
505
505
 
506
+ /**
507
+ * End a host session this view is not attached to (closing a background
508
+ * tab). The session has no other handle from the browser: giving it a
509
+ * dedicated HTTP route would widen the host's surface for one frame, so this
510
+ * opens one short-lived attach instead and sends the close frame as soon as
511
+ * the socket is open.
512
+ *
513
+ * The answer is "is this session no longer running", which has three
514
+ * truthful answers and one lie to avoid:
515
+ * - the frame went out on an open socket: the host ends the session;
516
+ * - the host answered with an exit frame: an unknown id is reported as
517
+ * `terminal session expired` and an ended shell also exits, and in both
518
+ * cases nothing is running, so the tab really is closed;
519
+ * - the socket errored, closed before opening, or never settled inside
520
+ * `timeoutMs`: delivery is unproven, so the session may still be alive and
521
+ * the caller must keep the tab instead of claiming it closed.
522
+ * @param sessionId - the session id the host reported on its ready frame.
523
+ * @param timeoutMs - bounded wait for the delivery signal (default 5000).
524
+ * @returns true when the session is known to be gone.
525
+ */
526
+ closeTerminalSession(sessionId: string, timeoutMs = 5000): Promise<boolean> {
527
+ const target = terminalSocketUrl(
528
+ window.location,
529
+ query({ session: sessionId, cols: 2, rows: 1 }),
530
+ transportStreamBaseUrl(),
531
+ )
532
+ if (target === undefined) return Promise.resolve(false)
533
+ let socket: WebSocket
534
+ try {
535
+ socket = new WebSocket(target)
536
+ } catch {
537
+ return Promise.resolve(false)
538
+ }
539
+ return new Promise<boolean>((resolve) => {
540
+ let settled = false
541
+ let timer: ReturnType<typeof setTimeout> | undefined
542
+ const finish = (gone: boolean): void => {
543
+ if (settled) return
544
+ settled = true
545
+ if (timer !== undefined) clearTimeout(timer)
546
+ try { socket.close() } catch { /* already closed */ }
547
+ resolve(gone)
548
+ }
549
+ timer = setTimeout(() => { finish(false) }, timeoutMs)
550
+ socket.onopen = () => {
551
+ const closeFrame: TerminalClientFrame = { type: 'close' }
552
+ try {
553
+ socket.send(JSON.stringify(closeFrame))
554
+ finish(true)
555
+ } catch {
556
+ // The frame never left, which proves nothing either way: wait for the
557
+ // host's own answer (an exit frame for an id that no longer exists),
558
+ // for the socket to fail, or for the bounded wait to expire.
559
+ }
560
+ }
561
+ socket.onmessage = (event: MessageEvent<string>) => {
562
+ let frame: TerminalServerFrame
563
+ try {
564
+ frame = JSON.parse(event.data) as TerminalServerFrame
565
+ } catch {
566
+ return
567
+ }
568
+ // Exit (expired id or an ended shell) means there is nothing left to end.
569
+ if (frame.type === 'exit') finish(true)
570
+ }
571
+ socket.onerror = () => { finish(false) }
572
+ socket.onclose = () => { finish(false) }
573
+ })
574
+ }
575
+
506
576
  /** One terminal socket over either an alias (open) or a session id (attach). */
507
577
  private terminalSocket(search: string): TerminalConnection {
508
578
  const target = terminalSocketUrl(window.location, search, transportStreamBaseUrl())
@@ -103,6 +103,13 @@ export const zh = {
103
103
  'terminal.auth.cancel': '取消',
104
104
  'terminal.auth.placeholder': '请输入验证码或口令',
105
105
  'terminal.auth.hint': '服务器请求进行交互式二次验证(输入仅本次生效,不落盘):',
106
+ 'terminal.tabs': '终端标签',
107
+ 'terminal.newTab': '按当前主机新开标签',
108
+ 'terminal.closeTab': '关闭标签',
109
+ 'terminal.authPending': '待验证',
110
+ 'terminal.tabExited': '已退出',
111
+ 'terminal.tabError': '出错',
112
+ 'terminal.closeFailed': '无法确认该标签已关闭:关闭帧未送达宿主。标签已保留——可重试,或切到该标签前台,用它自己的连接关闭。',
106
113
  // transfer
107
114
  'transfer.selectHost': '选择主机',
108
115
  'transfer.remotePath': '远程路径',
@@ -268,6 +275,13 @@ export const en: Record<keyof typeof zh, string> = {
268
275
  'terminal.auth.cancel': 'Cancel',
269
276
  'terminal.auth.placeholder': 'Enter code or passphrase',
270
277
  'terminal.auth.hint': 'The server requested interactive 2FA (session only, never saved):',
278
+ 'terminal.tabs': 'Terminal tabs',
279
+ 'terminal.newTab': 'New tab on the current host',
280
+ 'terminal.closeTab': 'Close tab',
281
+ 'terminal.authPending': '2FA pending',
282
+ 'terminal.tabExited': 'exited',
283
+ 'terminal.tabError': 'error',
284
+ 'terminal.closeFailed': 'Could not confirm the tab closed: the close never reached the host, so the tab was kept. Retry, or bring the tab to the front and close it over its own connection.',
271
285
  'transfer.selectHost': 'Select host',
272
286
  'transfer.remotePath': 'Remote path',
273
287
  'transfer.remotePathHint': 'e.g. /tmp/ or /home/user/app.tar.gz',
@@ -2,12 +2,11 @@
2
2
  * The SSH operations panel shell: a header with a close control, a five-tab
3
3
  * bar, and the active tab's content.
4
4
  *
5
- * The active tab, the pending connect request and the live terminal session id
6
- * live in the controller, not in component state: the layout mounts this page
7
- * only while the panel is selected, so local state would reset the tab on
8
- * every panel switch and lose the id the terminal tab needs to reattach its
9
- * host-side session. Inactive tabs unmount, so each tab fetches its own data
10
- * on activation.
5
+ * The active tab and the terminal tabs live in the controller, not in
6
+ * component state: the layout mounts this page only while the panel is
7
+ * selected, so local state would reset the tab on every panel switch and lose
8
+ * the ids the terminal tab needs to reattach its host-side sessions. Inactive
9
+ * tabs unmount, so each tab fetches its own data on activation.
11
10
  */
12
11
  import { useCallback, useSyncExternalStore } from 'react'
13
12
  import type { SshApi } from '../api.ts'
@@ -41,7 +40,7 @@ const TABS: ReadonlyArray<{ id: SshTab; label: () => string }> = [
41
40
 
42
41
  /** The tabbed SSH panel. */
43
42
  export function SshPanel({ controller, api, terminalFont }: SshPanelProps) {
44
- const { panelOpen, activeTab, connectRequest, terminalSessionId } = useSyncExternalStore(
43
+ const { panelOpen, activeTab } = useSyncExternalStore(
45
44
  useCallback(listener => controller.subscribe(listener), [controller]),
46
45
  useCallback(() => controller.getSnapshot(), [controller]),
47
46
  )
@@ -72,14 +71,7 @@ export function SshPanel({ controller, api, terminalFont }: SshPanelProps) {
72
71
  <div className={css.panelContent}>
73
72
  {activeTab === 'hosts' && <HostsTab api={api} onConnect={alias => { controller.requestConnect(alias) }} />}
74
73
  {activeTab === 'terminal' && (
75
- <TerminalTab
76
- api={api}
77
- controller={controller}
78
- presetAlias={connectRequest?.alias}
79
- requestId={connectRequest?.nonce}
80
- sessionId={terminalSessionId}
81
- terminalFont={terminalFont}
82
- />
74
+ <TerminalTab api={api} controller={controller} terminalFont={terminalFont} />
83
75
  )}
84
76
  {activeTab === 'transfer' && <TransferTab api={api} />}
85
77
  {activeTab === 'tunnels' && <TunnelsTab api={api} active={panelOpen} />}