@linxin666/dsh-ssh 0.1.16 → 0.1.18
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/lib/client.js +6 -4
- package/lib/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client/mount.tsx +5 -3
- package/src/client/panel/panel.module.css +2 -1
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.1.
|
|
4
|
+
"version": "0.1.18",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": "^22.19.0 || >=24.0.0"
|
package/src/client/mount.tsx
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The `conversation` slot is single-occupant (ui-conversation) and external
|
|
5
5
|
* plugins cannot declare slots, so the panel takes over the center column at
|
|
6
|
-
* the DOM level: a container is appended inside the
|
|
7
|
-
*
|
|
6
|
+
* the DOM level: a container is appended inside the center column
|
|
7
|
+
* (`[class*="centerCol"]`, the 0.1.0-rc.6+ AppFrame layout; previously
|
|
8
|
+
* `[data-pane="conversation"]` on older shells — the mount selector keeps
|
|
9
|
+
* both, issue #243) as an extra trailing child React never manages, and a stylesheet
|
|
8
10
|
* rule hides the conversation content while the panel is active. Toggling is
|
|
9
11
|
* a data attribute on <html> — no React involvement, so the conversation
|
|
10
12
|
* subtree underneath stays mounted and stateful.
|
|
@@ -18,7 +20,7 @@ import css from './panel/panel.module.css'
|
|
|
18
20
|
/** The injected panel container (kept in the DOM, hidden when inactive). */
|
|
19
21
|
export const PANEL_VIEW_SELECTOR = '[data-dsh-ssh-view]'
|
|
20
22
|
|
|
21
|
-
const CONVERSATION_COLUMN_SELECTOR = '[data-pane="conversation"]'
|
|
23
|
+
const CONVERSATION_COLUMN_SELECTOR = '[data-pane="conversation"], [class*="centerCol"]'
|
|
22
24
|
const ACTIVE_ATTR = 'data-dsh-ssh-active'
|
|
23
25
|
/** The sibling panel's activation attribute (task board), removed when this panel opens. */
|
|
24
26
|
const OTHER_ACTIVE_ATTR = 'data-dsh-taskboard-active'
|