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
+13
View File
@@ -18,6 +18,15 @@ func main() {
engine.AddFunc("svg", func(name string) string {
return ""
})
engine.AddFunc("dict", func(values ...interface{}) map[string]interface{} {
m := make(map[string]interface{})
for i := 0; i < len(values)-1; i += 2 {
if key, ok := values[i].(string); ok {
m[key] = values[i+1]
}
}
return m
})
app := fiber.New(fiber.Config{
Views: engine,
@@ -43,6 +52,10 @@ func main() {
app.Get("/settings", handler.Settings)
app.Post("/settings", handler.UpdateConfig)
app.Get("/brief", handler.Brief)
app.Get("/sftp", handler.SFTP)
app.Get("/sftp/pane", handler.SFTPPane)
app.Post("/sftp/mkdir", handler.CreateFolder)
app.Delete("/sftp/rm", handler.DeleteFile)
app.Get("/api/health", handler.Health)
log.Fatal(app.Listen(":1947"))