feat: add SFTP drag-and-drop file handling and upload functionality

- Implemented drag-and-drop support for file uploads in the terminal.
- Added a modal for users to choose between uploading files or pasting contents.
- Enhanced SFTP browser with a directory picker for selecting upload destinations.
- Introduced methods for handling file uploads and reading file contents from the local system.
- Added a new API endpoint for uploading raw file data to the server.
- Implemented session management improvements to retrieve the current working directory for SSH sessions.
- Updated documentation to include an overview and quick start guide for Nexus Terminal.
This commit is contained in:
Andy Dixon
2026-04-21 13:20:03 +01:00
parent 7146063da2
commit 2ce145ba0f
13 changed files with 1349 additions and 560 deletions
+10
View File
@@ -158,6 +158,16 @@ class SFTPBrowser {
}
}
/**
* Returns the current directory for an open SFTP panel, or an empty string.
* @param {string} sessionId
* @returns {string}
*/
getCwd(sessionId) {
var state = this.panels.get(sessionId);
return state ? state.cwd : '';
}
/* ── Toolbar ──────────────────────────────────────────────────── */
_buildToolbar(sessionId, state) {