mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +08:00
Reuse SSH for WebCRT SFTP and fix folder navigation UX.
Open SFTP on the live session transport after SSH connect, pass the target path on every list refresh, and use folder/file icons in the browser panel. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
d87bdf4be1
commit
499b4cc2a1
10 changed files with 525 additions and 131 deletions
|
|
@ -298,6 +298,7 @@ async def websocket_session(websocket: WebSocket, session_id: str) -> None:
|
|||
"device_type": sess.device_type,
|
||||
"vendor": sess.vendor,
|
||||
"cli_hop": bool(sess.cli_hop_guard),
|
||||
"sftp_ready": bool(sess.sftp_ready),
|
||||
}
|
||||
)
|
||||
|
||||
|
|
@ -372,6 +373,7 @@ async def websocket_session(websocket: WebSocket, session_id: str) -> None:
|
|||
"device_type": sess.device_type,
|
||||
"vendor": sess.vendor,
|
||||
"cli_hop": bool(sess.cli_hop_guard),
|
||||
"sftp_ready": bool(sess.sftp_ready),
|
||||
"connect_ms": (
|
||||
int((sess.connect_finished_at - sess.connect_started_at) * 1000)
|
||||
if sess.connect_finished_at
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue