diff --git a/frontend/src/main.js b/frontend/src/main.js index ea53af4..9dfee25 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -85,6 +85,7 @@ async function loadConnections() { el.addEventListener('dragstart', (e) => { draggedConnId = c.id; e.dataTransfer.effectAllowed = 'move'; + e.dataTransfer.setData('text/plain', c.id); el.style.opacity = '0.5'; }); el.addEventListener('dragend', () => { @@ -94,11 +95,11 @@ async function loadConnections() { el.addEventListener('dragenter', (e) => { e.preventDefault(); if (draggedConnId && draggedConnId !== c.id) { - el.style.borderTop = '2px solid var(--accent)'; + el.style.boxShadow = 'inset 0 2px 0 var(--accent)'; } }); el.addEventListener('dragleave', (e) => { - el.style.borderTop = ''; + el.style.boxShadow = ''; }); el.addEventListener('dragover', (e) => { e.preventDefault(); @@ -106,7 +107,7 @@ async function loadConnections() { }); el.addEventListener('drop', async (e) => { e.preventDefault(); - el.style.borderTop = ''; + el.style.boxShadow = ''; if (!draggedConnId || draggedConnId === c.id) return; const ids = connectionsCache.map(conn => conn.id); diff --git a/frontend/wailsjs/runtime/package.json b/frontend/wailsjs/runtime/package.json old mode 100755 new mode 100644 diff --git a/frontend/wailsjs/runtime/runtime.d.ts b/frontend/wailsjs/runtime/runtime.d.ts old mode 100755 new mode 100644 diff --git a/frontend/wailsjs/runtime/runtime.js b/frontend/wailsjs/runtime/runtime.js old mode 100755 new mode 100644 diff --git a/go.mod b/go.mod index 0cd290c..f685caa 100644 --- a/go.mod +++ b/go.mod @@ -9,12 +9,14 @@ require ( github.com/aws/aws-sdk-go-v2/service/s3 v1.103.3 github.com/google/uuid v1.6.0 github.com/hirochachacha/go-smb2 v1.1.0 + github.com/jlaffaye/ftp v0.2.1 github.com/pkg/sftp v1.13.10 github.com/studio-b12/gowebdav v0.12.0 github.com/vmware/go-nfs-client v0.0.0-20190605212624-d43b92724c1b github.com/wailsapp/wails/v2 v2.12.0 github.com/zalando/go-keyring v0.2.8 golang.org/x/crypto v0.53.0 + golang.org/x/time v0.15.0 gopkg.in/yaml.v3 v3.0.1 ) @@ -41,7 +43,6 @@ require ( github.com/godbus/dbus/v5 v5.2.2 // indirect github.com/gorilla/websocket v1.5.3 // indirect github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e // indirect - github.com/jlaffaye/ftp v0.2.1 // indirect github.com/kr/fs v0.1.0 // indirect github.com/labstack/echo/v4 v4.13.3 // indirect github.com/labstack/gommon v0.4.2 // indirect @@ -64,7 +65,6 @@ require ( golang.org/x/net v0.55.0 // indirect golang.org/x/sys v0.46.0 // indirect golang.org/x/text v0.38.0 // indirect - golang.org/x/time v0.15.0 // indirect ) // replace github.com/wailsapp/wails/v2 v2.12.0 => /home/jamie/go/pkg/mod