diff --git a/database/model/model.go b/database/model/model.go index d300c6cf..f38a9acd 100644 --- a/database/model/model.go +++ b/database/model/model.go @@ -149,11 +149,17 @@ type Node struct { LastHeartbeat int64 `json:"lastHeartbeat"` // unix seconds, 0 = never LatencyMs int `json:"latencyMs"` XrayVersion string `json:"xrayVersion"` + PanelVersion string `json:"panelVersion" gorm:"column:panel_version"` CpuPct float64 `json:"cpuPct"` MemPct float64 `json:"memPct"` UptimeSecs uint64 `json:"uptimeSecs"` LastError string `json:"lastError"` + InboundCount int `json:"inboundCount" gorm:"-"` + ClientCount int `json:"clientCount" gorm:"-"` + OnlineCount int `json:"onlineCount" gorm:"-"` + DepletedCount int `json:"depletedCount" gorm:"-"` + CreatedAt int64 `json:"createdAt" gorm:"autoCreateTime"` UpdatedAt int64 `json:"updatedAt" gorm:"autoUpdateTime"` } diff --git a/frontend/src/pages/nodes/NodeList.vue b/frontend/src/pages/nodes/NodeList.vue index 73dc6236..434aa80b 100644 --- a/frontend/src/pages/nodes/NodeList.vue +++ b/frontend/src/pages/nodes/NodeList.vue @@ -184,6 +184,10 @@ function isExpanded(id) { {{ t('pages.nodes.xrayVersion') }} {{ statsNode.xrayVersion || '-' }} +
+ {{ t('pages.nodes.panelVersion') || 'Panel version' }} + {{ statsNode.panelVersion || '-' }} +
{{ t('pages.nodes.uptime') }} {{ formatUptime(statsNode.uptimeSecs) }} @@ -195,6 +199,16 @@ function isExpanded(id) {
+
+ {{ t('clients') }} + {{ statsNode.clientCount || 0 }} + + {{ statsNode.onlineCount }} {{ t('online') }} + + + {{ statsNode.depletedCount }} {{ t('depleted') }} + +
{{ t('pages.nodes.lastHeartbeat') }} {{ relativeTime(statsNode.lastHeartbeat) }} @@ -260,10 +274,30 @@ function isExpanded(id) { + + + + + + + +