mirror of
https://shylinux.com/x/icebergs
synced 2025-05-04 04:17:01 +08:00
opt some
This commit is contained in:
parent
d1dba9db37
commit
8030b26216
@ -2,6 +2,7 @@ package chrome
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"shylinux.com/x/ice"
|
"shylinux.com/x/ice"
|
||||||
|
"shylinux.com/x/icebergs/base/ctx"
|
||||||
"shylinux.com/x/icebergs/base/web"
|
"shylinux.com/x/icebergs/base/web"
|
||||||
kit "shylinux.com/x/toolkits"
|
kit "shylinux.com/x/toolkits"
|
||||||
)
|
)
|
||||||
@ -25,10 +26,12 @@ func (s daemon) Inputs(m *ice.Message, arg ...string) {
|
|||||||
s.send(m.Spawn()).Tables(func(value ice.Maps) {
|
s.send(m.Spawn()).Tables(func(value ice.Maps) {
|
||||||
s.send(m.Spawn(), value[WID]).Tables(func(value ice.Maps) { m.Push(arg[0], kit.ParseURL(value[URL]).Host) })
|
s.send(m.Spawn(), value[WID]).Tables(func(value ice.Maps) { m.Push(arg[0], kit.ParseURL(value[URL]).Host) })
|
||||||
}).Sort(arg[0])
|
}).Sort(arg[0])
|
||||||
|
case ctx.INDEX:
|
||||||
|
ctx.CmdList(m.Message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func (s daemon) List(m *ice.Message, arg ...string) {
|
func (s daemon) List(m *ice.Message, arg ...string) {
|
||||||
if len(arg) < 2 || arg[0] == "" || arg[1] == "" {
|
if len(arg) < 3 || arg[0] == "" || arg[1] == "" {
|
||||||
s.send(m, arg).StatusTimeCount()
|
s.send(m, arg).StatusTimeCount()
|
||||||
} else {
|
} else {
|
||||||
s.send(m, arg[:2], "user.jumps", arg[2])
|
s.send(m, arg[:2], "user.jumps", arg[2])
|
||||||
|
@ -12,7 +12,7 @@ type spide struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s spide) Download(m *ice.Message, arg ...string) {
|
func (s spide) Download(m *ice.Message, arg ...string) {
|
||||||
m.Cmdy(s.cache.Create, arg).ProcessHold()
|
m.Cmdy(s.cache, s.Create, arg).ProcessHold()
|
||||||
}
|
}
|
||||||
func (s spide) List(m *ice.Message, arg ...string) {
|
func (s spide) List(m *ice.Message, arg ...string) {
|
||||||
if len(arg) < 2 || arg[0] == "" || arg[1] == "" {
|
if len(arg) < 2 || arg[0] == "" || arg[1] == "" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user