v3 fixes and styling

This commit is contained in:
Andy Dixon
2026-06-16 15:43:25 +01:00
parent 493bfed599
commit 58e916ecf8
32 changed files with 1847 additions and 267 deletions
+9 -9
View File
@@ -281,9 +281,9 @@
try {
if (path === null) {
path = await window.go.api.Service.SFTPPwd(sessionId);
path = await window.NexusTerminal.wailsService.SFTPPwd(sessionId);
}
var files = await window.go.api.Service.SFTPList(sessionId, path);
var files = await window.NexusTerminal.wailsService.SFTPList(sessionId, path);
state.cwd = path;
state.files = this._sortFiles(files || []);
state.loading = false;
@@ -603,7 +603,7 @@
async _download(sessionId, filePath) {
try {
await window.go.api.Service.SFTPDownload(sessionId, filePath);
await window.NexusTerminal.wailsService.SFTPDownload(sessionId, filePath);
this.app.notifications.success("Download started");
} catch (err) {
this.app.notifications.error(
@@ -616,7 +616,7 @@
var state = this.panels.get(sessionId);
if (!state) return;
try {
await window.go.api.Service.SFTPUpload(sessionId, state.cwd);
await window.NexusTerminal.wailsService.SFTPUpload(sessionId, state.cwd);
this.app.notifications.success("Upload complete");
await this._refresh(sessionId);
} catch (err) {
@@ -633,7 +633,7 @@
if (!state) return;
var fullPath = pathJoin(state.cwd, name);
try {
await window.go.api.Service.SFTPMkdir(sessionId, fullPath);
await window.NexusTerminal.wailsService.SFTPMkdir(sessionId, fullPath);
this.app.notifications.success("Directory created");
await this._refresh(sessionId);
} catch (err) {
@@ -646,7 +646,7 @@
if (!state) return;
var newPath = pathJoin(parentPath(oldPath), newName);
try {
await window.go.api.Service.SFTPRename(sessionId, oldPath, newPath);
await window.NexusTerminal.wailsService.SFTPRename(sessionId, oldPath, newPath);
this.app.notifications.success("Renamed");
await this._refresh(sessionId);
} catch (err) {
@@ -656,7 +656,7 @@
async _delete(sessionId, entry) {
try {
await window.go.api.Service.SFTPRemove(sessionId, entry.path);
await window.NexusTerminal.wailsService.SFTPRemove(sessionId, entry.path);
this.app.notifications.success(
(entry.isDir ? "Directory" : "File") + " deleted",
);
@@ -671,7 +671,7 @@
var failed = 0;
for (var i = 0; i < files.length; i++) {
try {
await window.go.api.Service.SFTPDownload(sessionId, files[i].path);
await window.NexusTerminal.wailsService.SFTPDownload(sessionId, files[i].path);
} catch (err) {
failed++;
this.app.notifications.error(
@@ -705,7 +705,7 @@
var failed = 0;
for (var i = 0; i < entries.length; i++) {
try {
await window.go.api.Service.SFTPRemove(sessionId, entries[i].path);
await window.NexusTerminal.wailsService.SFTPRemove(sessionId, entries[i].path);
} catch (err) {
failed++;
this.app.notifications.error(