feat: Sprint 4 — SFTP dual-pane with per-type icons, breadcrumb, drop-zone, create/delete, toast

This commit is contained in:
swanadiva
2026-07-07 13:35:01 +07:00
parent c5ac07e27f
commit 941a67b6ea
8 changed files with 364 additions and 10 deletions
+22
View File
@@ -0,0 +1,22 @@
package model
type Transfer struct {
ID string `json:"id"`
FileName string `json:"fileName"`
Source string `json:"source"`
Destination string `json:"destination"`
Progress int `json:"progress"`
Speed string `json:"speed"`
Type string `json:"type"` // upload | download
Status string `json:"status"` // queued | transferring | completed | error
}
type TransferStore struct {
Transfers []Transfer
}
func NewTransferStore() *TransferStore {
return &TransferStore{}
}
func (s *TransferStore) All() []Transfer { return s.Transfers }