fix26.2: полная UI-полировка peer/dashboard и завершение i18n
This commit is contained in:
+28
-29
@@ -1,13 +1,13 @@
|
||||
package vo
|
||||
|
||||
type DashboardSummaryVo struct {
|
||||
CollectedAt int64 `json:"collectedAt"`
|
||||
System DashboardSystemVo `json:"system"`
|
||||
CollectedAt int64 `json:"collectedAt"`
|
||||
System DashboardSystemVo `json:"system"`
|
||||
Hysteria DashboardHysteriaVo `json:"hysteria"`
|
||||
Peers DashboardPeerVo `json:"peers"`
|
||||
Traffic DashboardTrafficVo `json:"traffic"`
|
||||
Health DashboardHealthVo `json:"health"`
|
||||
SecurityRisks []SecurityRiskVo `json:"securityRisks"`
|
||||
Peers DashboardPeerVo `json:"peers"`
|
||||
Traffic DashboardTrafficVo `json:"traffic"`
|
||||
Health DashboardHealthVo `json:"health"`
|
||||
SecurityRisks []SecurityRiskVo `json:"securityRisks"`
|
||||
}
|
||||
|
||||
type DashboardHealthVo struct {
|
||||
@@ -22,13 +22,13 @@ type DataHealthVo struct {
|
||||
}
|
||||
|
||||
type DashboardSystemVo struct {
|
||||
CpuPercent float64 `json:"cpuPercent"`
|
||||
MemUsedBytes uint64 `json:"memUsedBytes"`
|
||||
MemTotalBytes uint64 `json:"memTotalBytes"`
|
||||
MemPercent float64 `json:"memPercent"`
|
||||
DiskUsedBytes uint64 `json:"diskUsedBytes"`
|
||||
DiskTotalBytes uint64 `json:"diskTotalBytes"`
|
||||
DiskPercent float64 `json:"diskPercent"`
|
||||
CpuPercent float64 `json:"cpuPercent"`
|
||||
MemUsedBytes uint64 `json:"memUsedBytes"`
|
||||
MemTotalBytes uint64 `json:"memTotalBytes"`
|
||||
MemPercent float64 `json:"memPercent"`
|
||||
DiskUsedBytes uint64 `json:"diskUsedBytes"`
|
||||
DiskTotalBytes uint64 `json:"diskTotalBytes"`
|
||||
DiskPercent float64 `json:"diskPercent"`
|
||||
}
|
||||
|
||||
type DashboardHysteriaVo struct {
|
||||
@@ -48,11 +48,11 @@ type DashboardPeerVo struct {
|
||||
}
|
||||
|
||||
type DashboardTrafficVo struct {
|
||||
DownloadBytes int64 `json:"downloadBytes"`
|
||||
UploadBytes int64 `json:"uploadBytes"`
|
||||
TotalBytes int64 `json:"totalBytes"`
|
||||
TodayDownloadBytes int64 `json:"todayDownloadBytes"`
|
||||
TodayUploadBytes int64 `json:"todayUploadBytes"`
|
||||
DownloadBytes int64 `json:"downloadBytes"`
|
||||
UploadBytes int64 `json:"uploadBytes"`
|
||||
TotalBytes int64 `json:"totalBytes"`
|
||||
TodayDownloadBytes int64 `json:"todayDownloadBytes"`
|
||||
TodayUploadBytes int64 `json:"todayUploadBytes"`
|
||||
SinceResetDownloadBytes int64 `json:"sinceResetDownloadBytes"`
|
||||
SinceResetUploadBytes int64 `json:"sinceResetUploadBytes"`
|
||||
}
|
||||
@@ -65,12 +65,12 @@ type SecurityRiskVo struct {
|
||||
}
|
||||
|
||||
type DashboardTopPeerVo struct {
|
||||
PeerId int64 `json:"peerId"`
|
||||
Name string `json:"name"`
|
||||
Remark string `json:"remark"`
|
||||
Download int64 `json:"download"`
|
||||
Upload int64 `json:"upload"`
|
||||
Total int64 `json:"total"`
|
||||
PeerId int64 `json:"peerId"`
|
||||
Name string `json:"name"`
|
||||
Remark string `json:"remark"`
|
||||
Download int64 `json:"download"`
|
||||
Upload int64 `json:"upload"`
|
||||
Total int64 `json:"total"`
|
||||
}
|
||||
|
||||
type DashboardSeriesPointVo struct {
|
||||
@@ -82,9 +82,8 @@ type DashboardSeriesPointVo struct {
|
||||
}
|
||||
|
||||
type DashboardTimeseriesVo struct {
|
||||
Range string `json:"range"`
|
||||
Traffic []DashboardSeriesPointVo `json:"traffic"`
|
||||
System []DashboardSeriesPointVo `json:"system"`
|
||||
CollectedAt int64 `json:"collectedAt"`
|
||||
Range string `json:"range"`
|
||||
Traffic []DashboardSeriesPointVo `json:"traffic"`
|
||||
System []DashboardSeriesPointVo `json:"system"`
|
||||
CollectedAt int64 `json:"collectedAt"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user