fix26.2: полная UI-полировка peer/dashboard и завершение i18n
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package entity
|
||||
|
||||
type Account struct {
|
||||
type LegacyAccount struct {
|
||||
Username *string `gorm:"column:username;default:''" json:"username"`
|
||||
Pass *string `gorm:"column:pass;default:''" json:"pass"`
|
||||
ConPass *string `gorm:"column:con_pass;default:''" json:"conPass"`
|
||||
@@ -19,3 +19,7 @@ type Account struct {
|
||||
Remark *string `gorm:"column:remark;default:''" json:"remark"`
|
||||
ForcePasswordChange *int64 `gorm:"column:force_password_change;default:0" json:"forcePasswordChange"`
|
||||
}
|
||||
|
||||
func (LegacyAccount) TableName() string {
|
||||
return "account"
|
||||
}
|
||||
|
||||
@@ -14,4 +14,3 @@ type AdminUser struct {
|
||||
func (AdminUser) TableName() string {
|
||||
return "admin_user"
|
||||
}
|
||||
|
||||
|
||||
@@ -2,22 +2,21 @@ package entity
|
||||
|
||||
type MetricSample struct {
|
||||
BaseEntity
|
||||
SampledAt *int64 `gorm:"column:sampled_at"`
|
||||
CpuPercent *float64 `gorm:"column:cpu_percent"`
|
||||
Load1 *float64 `gorm:"column:load1"`
|
||||
MemUsedBytes *int64 `gorm:"column:mem_used_bytes"`
|
||||
MemTotalBytes *int64 `gorm:"column:mem_total_bytes"`
|
||||
MemPercent *float64 `gorm:"column:mem_percent"`
|
||||
DiskPath *string `gorm:"column:disk_path"`
|
||||
DiskUsedBytes *int64 `gorm:"column:disk_used_bytes"`
|
||||
DiskTotalBytes *int64 `gorm:"column:disk_total_bytes"`
|
||||
DiskPercent *float64 `gorm:"column:disk_percent"`
|
||||
HysteriaRunning *int64 `gorm:"column:hysteria_running"`
|
||||
OnlinePeers *int64 `gorm:"column:online_peers"`
|
||||
OnlineDevices *int64 `gorm:"column:online_devices"`
|
||||
SampledAt *int64 `gorm:"column:sampled_at"`
|
||||
CpuPercent *float64 `gorm:"column:cpu_percent"`
|
||||
Load1 *float64 `gorm:"column:load1"`
|
||||
MemUsedBytes *int64 `gorm:"column:mem_used_bytes"`
|
||||
MemTotalBytes *int64 `gorm:"column:mem_total_bytes"`
|
||||
MemPercent *float64 `gorm:"column:mem_percent"`
|
||||
DiskPath *string `gorm:"column:disk_path"`
|
||||
DiskUsedBytes *int64 `gorm:"column:disk_used_bytes"`
|
||||
DiskTotalBytes *int64 `gorm:"column:disk_total_bytes"`
|
||||
DiskPercent *float64 `gorm:"column:disk_percent"`
|
||||
HysteriaRunning *int64 `gorm:"column:hysteria_running"`
|
||||
OnlinePeers *int64 `gorm:"column:online_peers"`
|
||||
OnlineDevices *int64 `gorm:"column:online_devices"`
|
||||
}
|
||||
|
||||
func (MetricSample) TableName() string {
|
||||
return "metric_sample"
|
||||
}
|
||||
|
||||
|
||||
@@ -20,4 +20,3 @@ type Peer struct {
|
||||
func (Peer) TableName() string {
|
||||
return "peer"
|
||||
}
|
||||
|
||||
|
||||
@@ -11,4 +11,3 @@ type TrafficAggregateDaily struct {
|
||||
func (TrafficAggregateDaily) TableName() string {
|
||||
return "traffic_aggregate_daily"
|
||||
}
|
||||
|
||||
|
||||
@@ -11,4 +11,3 @@ type TrafficAggregateHourly struct {
|
||||
func (TrafficAggregateHourly) TableName() string {
|
||||
return "traffic_aggregate_hourly"
|
||||
}
|
||||
|
||||
|
||||
@@ -12,4 +12,3 @@ type TrafficSample struct {
|
||||
func (TrafficSample) TableName() string {
|
||||
return "traffic_sample"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user