mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 23:30:26 +08:00
调整集群设置菜单位置
This commit is contained in:
3
go.mod
3
go.mod
@@ -4,8 +4,11 @@ go 1.18
|
|||||||
|
|
||||||
replace github.com/TeaOSLab/EdgeCommon => ../EdgeCommon
|
replace github.com/TeaOSLab/EdgeCommon => ../EdgeCommon
|
||||||
|
|
||||||
|
replace github.com/TeaOSLab/EdgePlus => ../EdgePlus
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/TeaOSLab/EdgeCommon v0.0.0-00010101000000-000000000000
|
github.com/TeaOSLab/EdgeCommon v0.0.0-00010101000000-000000000000
|
||||||
|
github.com/TeaOSLab/EdgePlus v0.0.0-00010101000000-000000000000
|
||||||
github.com/cespare/xxhash v1.1.0
|
github.com/cespare/xxhash v1.1.0
|
||||||
github.com/go-sql-driver/mysql v1.5.0
|
github.com/go-sql-driver/mysql v1.5.0
|
||||||
github.com/iwind/TeaGo v0.0.0-20230304012706-c1f4a4e27470
|
github.com/iwind/TeaGo v0.0.0-20230304012706-c1f4a4e27470
|
||||||
|
|||||||
@@ -139,6 +139,13 @@ func (this *ClusterHelper) createSettingMenu(cluster *pb.NodeCluster, info *pb.F
|
|||||||
"isOn": cluster.DnsDomainId > 0 || len(cluster.DnsName) > 0,
|
"isOn": cluster.DnsDomainId > 0 || len(cluster.DnsName) > 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
items = append(items, maps.Map{
|
||||||
|
"name": "网站设置",
|
||||||
|
"url": "/clusters/cluster/settings/global-server-config?clusterId=" + clusterId,
|
||||||
|
"isActive": selectedItem == "globalServerConfig",
|
||||||
|
"isOn": true,
|
||||||
|
})
|
||||||
|
|
||||||
items = append(items, maps.Map{
|
items = append(items, maps.Map{
|
||||||
"name": "健康检查",
|
"name": "健康检查",
|
||||||
"url": "/clusters/cluster/settings/health?clusterId=" + clusterId,
|
"url": "/clusters/cluster/settings/health?clusterId=" + clusterId,
|
||||||
@@ -153,13 +160,6 @@ func (this *ClusterHelper) createSettingMenu(cluster *pb.NodeCluster, info *pb.F
|
|||||||
"isOn": info != nil && info.HasDDoSProtection,
|
"isOn": info != nil && info.HasDDoSProtection,
|
||||||
})
|
})
|
||||||
|
|
||||||
items = append(items, maps.Map{
|
|
||||||
"name": "网站设置",
|
|
||||||
"url": "/clusters/cluster/settings/global-server-config?clusterId=" + clusterId,
|
|
||||||
"isActive": selectedItem == "globalServerConfig",
|
|
||||||
"isOn": true,
|
|
||||||
})
|
|
||||||
|
|
||||||
items = append(items, maps.Map{
|
items = append(items, maps.Map{
|
||||||
"name": "-",
|
"name": "-",
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user