1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
icebergs/misc/chrome/page.go
2022-12-14 13:41:49 +08:00

28 lines
515 B
Go

package chrome
import (
"shylinux.com/x/ice"
"shylinux.com/x/icebergs/base/mdb"
)
type page struct {
daemon
style
field
list string `name:"list zone auto" help:"网页" http:"/page"`
}
func (p page) Command(m *ice.Message, arg ...string) {
m.Cmdy(p.style.Command, arg)
m.Cmdy(p.field.Command, arg)
}
func (p page) Run(m *ice.Message, arg ...string) {
m.Cmdy(p.field.Run, arg)
}
func (p page) List(m *ice.Message, arg ...string) {
p.daemon.Inputs(m, mdb.ZONE)
}
func init() { ice.CodeCtxCmd(page{}) }