29 lines
595 B
Go
29 lines
595 B
Go
package apps
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeUser/internal/web/actions/actionutils"
|
|
"github.com/TeaOSLab/EdgeUser/internal/web/actions/default/httpdns/httpdnsutils"
|
|
)
|
|
|
|
type IndexAction struct {
|
|
actionutils.ParentAction
|
|
}
|
|
|
|
func (this *IndexAction) Init() {
|
|
this.Nav("httpdns", "app", "")
|
|
}
|
|
|
|
func (this *IndexAction) RunGet(params struct {
|
|
Keyword string
|
|
}) {
|
|
httpdnsutils.AddLeftMenu(this.Parent())
|
|
this.Data["keyword"] = params.Keyword
|
|
apps, err := listAppMaps(this.Parent(), params.Keyword)
|
|
if err != nil {
|
|
this.ErrorPage(err)
|
|
return
|
|
}
|
|
this.Data["apps"] = apps
|
|
this.Show()
|
|
}
|