feat: Sprint 5 — xterm.js terminal with WebSocket mock shell, Alpine tab management

This commit is contained in:
swanadiva
2026-07-07 13:39:35 +07:00
parent 941a67b6ea
commit 04d9cfb096
10 changed files with 571 additions and 12 deletions
+7
View File
@@ -3,6 +3,7 @@ package main
import (
"log"
"github.com/gofiber/contrib/websocket"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/compress"
"github.com/gofiber/fiber/v2/middleware/logger"
@@ -52,6 +53,12 @@ func main() {
app.Get("/settings", handler.Settings)
app.Post("/settings", handler.UpdateConfig)
app.Get("/brief", handler.Brief)
app.Get("/terminal", handler.Terminal)
app.Get("/terminal/ws/:host", websocket.New(func(c *websocket.Conn) {
handler.TerminalWS(c)
}, websocket.Config{
Origins: []string{"*"},
}))
app.Get("/sftp", handler.SFTP)
app.Get("/sftp/pane", handler.SFTPPane)
app.Post("/sftp/mkdir", handler.CreateFolder)