diff --git a/internal/configloaders/user_ui_config.go b/internal/configloaders/user_ui_config.go index e85f4207..73fcf71b 100644 --- a/internal/configloaders/user_ui_config.go +++ b/internal/configloaders/user_ui_config.go @@ -84,10 +84,13 @@ func loadUserUIConfig() (*systemconfigs.UserUIConfig, error) { func defaultUserUIConfig() *systemconfigs.UserUIConfig { return &systemconfigs.UserUIConfig{ - ProductName: "GoEdge", - UserSystemName: "GoEdge用户系统", - ShowOpenSourceInfo: true, - ShowVersion: true, - ShowFinance: true, + ProductName: "GoEdge", + UserSystemName: "GoEdge用户系统", + ShowOpenSourceInfo: true, + ShowVersion: true, + ShowFinance: true, + BandwidthUnit: systemconfigs.BandwidthUnitBit, + ShowBandwidthCharts: true, + ShowTrafficCharts: true, } } diff --git a/internal/web/actions/default/settings/user-ui/index.go b/internal/web/actions/default/settings/user-ui/index.go index 6ae2a9b3..a988f29e 100644 --- a/internal/web/actions/default/settings/user-ui/index.go +++ b/internal/web/actions/default/settings/user-ui/index.go @@ -48,6 +48,10 @@ func (this *IndexAction) RunPost(params struct { LogoFile *actions.File TimeZone string + ShowTrafficCharts bool + ShowBandwidthCharts bool + BandwidthUnit string + Must *actions.Must CSRF *actionutils.CSRF }) { @@ -68,6 +72,9 @@ func (this *IndexAction) RunPost(params struct { config.ShowVersion = params.ShowVersion config.Version = params.Version config.ShowFinance = params.ShowFinance + config.ShowTrafficCharts = params.ShowTrafficCharts + config.ShowBandwidthCharts = params.ShowBandwidthCharts + config.BandwidthUnit = params.BandwidthUnit config.TimeZone = params.TimeZone // 上传Favicon文件 diff --git a/web/views/@default/settings/user-nodes/index.html b/web/views/@default/settings/user-nodes/index.html index 04bd00c5..56bbaffd 100644 --- a/web/views/@default/settings/user-nodes/index.html +++ b/web/views/@default/settings/user-nodes/index.html @@ -2,6 +2,7 @@ [添加节点] + [界面设置]

暂时还没有节点。

diff --git a/web/views/@default/settings/user-ui/index.html b/web/views/@default/settings/user-ui/index.html index e793cce8..f7616901 100644 --- a/web/views/@default/settings/user-ui/index.html +++ b/web/views/@default/settings/user-ui/index.html @@ -79,6 +79,27 @@ +

数据看板

+ + + + + + + + + + + + + +
显示流量相关数据和图表
显示带宽相关数据和图表
带宽单位 + +
+

其他