mirror of
https://shylinux.com/x/community
synced 2025-04-25 09:38:06 +08:00
add some
This commit is contained in:
parent
35a656f53b
commit
009c46dc69
@ -41,7 +41,7 @@ type Table struct {
|
||||
}
|
||||
|
||||
func (s Table) Init(m *ice.Message, arg ...string) {
|
||||
s.Table.Init(m, arg...).GoSleep("30ms", func() {
|
||||
s.Table.Init(m, arg...).GoSleep("3s", func() {
|
||||
kit.If(m.GetCommand().Icon, func() { Portal{}.Show(m) })
|
||||
})
|
||||
}
|
||||
|
@ -144,8 +144,7 @@ func (s Portal) Create(m *ice.Message, arg ...string) {
|
||||
s.Hash.Create(m, args...)
|
||||
}
|
||||
func (s Portal) Show(m *ice.Message, arg ...string) {
|
||||
key := m.PrefixKey()
|
||||
m.GoSleep("300ms", func() { m.Cmd(m.Prefix(web.PORTAL), s.Create, ctx.INDEX, key) })
|
||||
m.Cmd(m.Prefix(web.PORTAL), s.Create, ctx.INDEX, m.PrefixKey())
|
||||
}
|
||||
func (s Portal) Link(m *ice.Message, arg ...string) string {
|
||||
return m.MergePodCmd("", m.Prefix(web.PORTAL)) + "#" + kit.TrimSuffix(kit.Join([]string{arg[0], kit.Select(m.Prefix("apply"), arg, 1), kit.Select("", arg, 2)}, ":"), ":")
|
||||
|
Loading…
x
Reference in New Issue
Block a user