1
0
mirror of https://shylinux.com/x/icebergs synced 2025-05-02 19:47:02 +08:00
This commit is contained in:
shaoying 2022-12-15 09:14:50 +08:00
parent d1dba9db37
commit 8030b26216
2 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,7 @@ package chrome
import (
"shylinux.com/x/ice"
"shylinux.com/x/icebergs/base/ctx"
"shylinux.com/x/icebergs/base/web"
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(), value[WID]).Tables(func(value ice.Maps) { m.Push(arg[0], kit.ParseURL(value[URL]).Host) })
}).Sort(arg[0])
case ctx.INDEX:
ctx.CmdList(m.Message)
}
}
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()
} else {
s.send(m, arg[:2], "user.jumps", arg[2])

View File

@ -12,7 +12,7 @@ type spide struct {
}
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) {
if len(arg) < 2 || arg[0] == "" || arg[1] == "" {