前端页面
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
package httpdnsutils
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
"github.com/iwind/TeaGo/maps"
|
||||
)
|
||||
|
||||
func AddLeftMenu(action *actionutils.ParentAction) {
|
||||
tab := action.Data.GetString("mainTab")
|
||||
action.Data["teaMenu"] = "httpdns"
|
||||
action.Data["teaSubMenu"] = tab
|
||||
action.Data["leftMenuItems"] = []maps.Map{
|
||||
{
|
||||
"name": "集群管理",
|
||||
"url": "/httpdns/clusters",
|
||||
"isActive": tab == "cluster",
|
||||
},
|
||||
{
|
||||
"name": "全局配置",
|
||||
"url": "/httpdns/policies",
|
||||
"isActive": tab == "policy",
|
||||
},
|
||||
{
|
||||
"name": "应用管理",
|
||||
"url": "/httpdns/apps",
|
||||
"isActive": tab == "app",
|
||||
},
|
||||
{
|
||||
"name": "SDK接入引导",
|
||||
"url": "/httpdns/guide",
|
||||
"isActive": tab == "guide",
|
||||
},
|
||||
{
|
||||
"name": "解析日志",
|
||||
"url": "/httpdns/resolveLogs",
|
||||
"isActive": tab == "resolveLogs",
|
||||
},
|
||||
{
|
||||
"name": "运行日志",
|
||||
"url": "/httpdns/runtimeLogs",
|
||||
"isActive": tab == "runtimeLogs",
|
||||
},
|
||||
{
|
||||
"name": "解析测试",
|
||||
"url": "/httpdns/sandbox",
|
||||
"isActive": tab == "sandbox",
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user