mirror of
https://shylinux.com/x/icebergs
synced 2025-04-29 02:29:22 +08:00
add some
This commit is contained in:
parent
30a7ce39b4
commit
d98a322d05
@ -407,7 +407,8 @@ func init() {
|
|||||||
if p := path.Join(ice.SRC_TEMPLATE, m.PrefixKey(), path.Join(arg...)); nfs.Exists(m, p) {
|
if p := path.Join(ice.SRC_TEMPLATE, m.PrefixKey(), path.Join(arg...)); nfs.Exists(m, p) {
|
||||||
return p + kit.Select("", nfs.PS, len(arg) == 0)
|
return p + kit.Select("", nfs.PS, len(arg) == 0)
|
||||||
} else {
|
} else {
|
||||||
return kit.MergeURL2(UserHost(m)+ctx.GetCmdFile(m, m.PrefixKey()), path.Join(arg...))
|
return kit.MergeURL2(SpideOrigin(m, ice.OPS)+m.FileURI(ctx.GetCmdFile(m, m.PrefixKey())), path.Join(arg...))
|
||||||
|
return kit.MergeURL2(UserHost(m)+m.FileURI(ctx.GetCmdFile(m, m.PrefixKey())), path.Join(arg...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
nfs.DocumentPath = func(m *ice.Message, arg ...string) string {
|
nfs.DocumentPath = func(m *ice.Message, arg ...string) string {
|
||||||
|
@ -100,8 +100,8 @@ func init() {
|
|||||||
}},
|
}},
|
||||||
}, mdb.ExportZoneAction(mdb.FIELDS, "time,id,type,name,text,nconn,nreqs")), Hand: func(m *ice.Message, arg ...string) {
|
}, mdb.ExportZoneAction(mdb.FIELDS, "time,id,type,name,text,nconn,nreqs")), Hand: func(m *ice.Message, arg ...string) {
|
||||||
mdb.ZoneSelect(m, arg...)
|
mdb.ZoneSelect(m, arg...)
|
||||||
kit.If(len(arg) == 1, func() { m.Action(cli.START) })
|
|
||||||
m.PushAction(kit.Select(cli.START, mdb.REMOVE, len(arg) == 0))
|
m.PushAction(kit.Select(cli.START, mdb.REMOVE, len(arg) == 0))
|
||||||
|
kit.If(len(arg) == 1, func() { m.Action(mdb.INSERT, cli.START) })
|
||||||
}},
|
}},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user