fix: reordering connections

This commit is contained in:
2026-06-09 16:01:02 +01:00
parent 2566f356b2
commit 91d28b844d
5 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -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);
View File
Vendored Executable → Regular
View File
View File
+2 -2
View File
@@ -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