feat: add desktop build using wails

This commit is contained in:
2024-11-16 02:34:07 +07:00
parent f2c0ab0945
commit a07c72974f
69 changed files with 1603 additions and 137 deletions
+3 -3
View File
@@ -2,9 +2,9 @@ package hosts
import (
"gorm.io/gorm"
"rul.sh/vaulterm/db"
"rul.sh/vaulterm/models"
"rul.sh/vaulterm/utils"
"rul.sh/vaulterm/server/db"
"rul.sh/vaulterm/server/models"
"rul.sh/vaulterm/server/utils"
)
type Hosts struct {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"net/http"
"github.com/gofiber/fiber/v2"
"rul.sh/vaulterm/models"
"rul.sh/vaulterm/utils"
"rul.sh/vaulterm/server/models"
"rul.sh/vaulterm/server/utils"
)
func Router(app fiber.Router) {
+4 -7
View File
@@ -2,13 +2,12 @@ package hosts
import (
"fmt"
"log"
"github.com/gofiber/fiber/v2"
"rul.sh/vaulterm/app/keychains"
"rul.sh/vaulterm/lib"
"rul.sh/vaulterm/models"
"rul.sh/vaulterm/utils"
"rul.sh/vaulterm/server/app/keychains"
"rul.sh/vaulterm/server/lib"
"rul.sh/vaulterm/server/models"
"rul.sh/vaulterm/server/utils"
)
func tryConnect(c *fiber.Ctx, host *models.Host) (string, error) {
@@ -46,8 +45,6 @@ func tryConnect(c *fiber.Ctx, host *models.Host) (string, error) {
}
defer c.Close()
log.Println("Test", c.Conn)
os, err := c.GetOS(c)
if err != nil {
return "", err