1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-05-27 12:19:47 +08:00
parent ff498bbd8d
commit b7582ee7d4
3 changed files with 10 additions and 2 deletions

View File

@ -78,6 +78,12 @@ func init() {
RIGHT: {Hand: func(m *ice.Message, arg ...string) {
kit.If(_role_right(m, arg[0], kit.Split(_role_keys(arg[1:]...), ice.PT)...), func() { m.Echo(ice.OK) })
}},
"whiteblack": {Hand: func(m *ice.Message, arg ...string) {
kit.For(arg, func(cmd string) {
m.Cmd(ROLE, WHITE, VOID, cmd)
m.Cmd(ROLE, BLACK, VOID, cmd, ice.ACTION)
})
}},
}, mdb.HashAction(mdb.SHORT, mdb.NAME)), Hand: func(m *ice.Message, arg ...string) {
_role_list(m, kit.Select("", arg, 0)).PushAction(mdb.DELETE)
}},

View File

@ -150,7 +150,7 @@ func _space_send(m *ice.Message, name string, arg ...string) (h string) {
}) {
wait()
} else {
m.Warn(kit.IndexOf([]string{ice.OPS, ice.DEV}, target[0]) == -1, ice.ErrNotFound, name)
m.Warn(kit.IndexOf([]string{ice.OPS, ice.DEV}, target[0]) == -1, ice.ErrNotFound, SPACE, name)
}
return
}

View File

@ -68,7 +68,9 @@ func _webpack_cache(m *ice.Message, dir string, write bool) {
})
}
for _, k := range []string{ice.FRAME_JS} {
_webpack_js(m, js, _volcanos(m, k))
m.Option(nfs.DIR_ROOT, _volcanos(m))
_webpack_js(m, js, k)
m.Option(nfs.DIR_ROOT, "")
}
_webpack_css(m, css, js, "src/template/web.chat.header/dark.css")
_webpack_css(m, css, js, "src/template/web.chat.header/light.css")