增加一部分操作日志

This commit is contained in:
刘祥超
2020-11-10 21:37:48 +08:00
parent 2e51574ee7
commit fdb7757507
61 changed files with 273 additions and 22 deletions

View File

@@ -1,7 +1,6 @@
package dns
import (
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
"github.com/iwind/TeaGo/actions"
"net/http"
)
@@ -15,10 +14,4 @@ func (this *Helper) BeforeAction(action *actions.ActionObject) {
}
action.Data["teaMenu"] = "dns"
selectedTabbar, _ := action.Data["mainTab"]
tabbar := actionutils.NewTabbar()
tabbar.Add("DNS", "", "/dns", "", selectedTabbar == "dns")
actionutils.SetTabbar(action, tabbar)
}

View File

@@ -1,6 +1,7 @@
package dns
import (
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/dns/providers"
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
"github.com/iwind/TeaGo"
)
@@ -13,6 +14,11 @@ func init() {
Prefix("/dns").
Get("", new(IndexAction)).
Prefix("/dns/providers").
Data("teaSubMenu", "provider").
Get("", new(providers.IndexAction)).
EndData().
EndAll()
})
}

View File

@@ -0,0 +1,15 @@
package providers
import "github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
type IndexAction struct {
actionutils.ParentAction
}
func (this *IndexAction) Init() {
this.Nav("", "", "")
}
func (this *IndexAction) RunGet(params struct{}) {
this.Show()
}