feat: add cloud router access and polish UI

This commit is contained in:
benya
2026-07-21 19:55:32 +03:00
parent 6e9b5a99c2
commit 5e4e659cae
18 changed files with 752 additions and 99 deletions

View File

@@ -118,20 +118,21 @@ type Alert struct {
}
type RemoteSession struct {
ID string `json:"id"`
DeviceID string `json:"device_id"`
Target string `json:"target"`
Status string `json:"status"`
ServerHost string `json:"server_host,omitempty"`
ServerPort int `json:"server_port,omitempty"`
RemotePort int `json:"remote_port,omitempty"`
LuCIPort int `json:"luci_port,omitempty"`
LuCIScheme string `json:"luci_scheme,omitempty"`
LocalHost string `json:"local_host,omitempty"`
LocalPort int `json:"local_port,omitempty"`
CommandID string `json:"command_id,omitempty"`
CreatedAt time.Time `json:"created_at"`
ExpiresAt time.Time `json:"expires_at"`
StartedAt *time.Time `json:"started_at,omitempty"`
ClosedAt *time.Time `json:"closed_at,omitempty"`
ID string `json:"id"`
DeviceID string `json:"device_id"`
Target string `json:"target"`
Status string `json:"status"`
ServerHost string `json:"server_host,omitempty"`
ServerPort int `json:"server_port,omitempty"`
RemotePort int `json:"remote_port,omitempty"`
LuCIPort int `json:"luci_port,omitempty"`
LuCIScheme string `json:"luci_scheme,omitempty"`
LocalHost string `json:"local_host,omitempty"`
LocalPort int `json:"local_port,omitempty"`
CommandID string `json:"command_id,omitempty"`
CreatedAt time.Time `json:"created_at"`
ExpiresAt time.Time `json:"expires_at"`
StartedAt *time.Time `json:"started_at,omitempty"`
ClosedAt *time.Time `json:"closed_at,omitempty"`
AccessState string `json:"access_state,omitempty"`
}