mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
7e4557cd58
commit
ff697bd057
5
frame.js
5
frame.js
@ -389,9 +389,8 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
field: function(can, type, item, target) { type = type||html.STORY, item = item||{}
|
field: function(can, type, item, target) { type = type||html.STORY, item = item||{}
|
||||||
var name = can.core.Split(item.nick||item.name||"").pop()||""; can.base.isIn(name,
|
var name = can.core.Split(item.nick||item.index||"", " .").pop()||""; can.base.isIn(name,
|
||||||
tcp.SERVER, tcp.CLIENT, web.STUDIO,
|
tcp.SERVER, tcp.CLIENT, web.STUDIO, mdb.SEARCH, web.SERVICE, "instance",
|
||||||
mdb.SEARCH, web.SERVICE, "instance",
|
|
||||||
) && (name = (item.index||"").split(".").slice(-2).join(".")), (type != html.PLUG && !can.base.isIn(can.ConfIndex(),
|
) && (name = (item.index||"").split(".").slice(-2).join(".")), (type != html.PLUG && !can.base.isIn(can.ConfIndex(),
|
||||||
web.DESKTOP, web.MESSAGE, web.VIMER,
|
web.DESKTOP, web.MESSAGE, web.VIMER,
|
||||||
)) && (name = can.core.Keys(item.space||item._space, name))
|
)) && (name = can.core.Keys(item.space||item._space, name))
|
||||||
|
4
proto.js
4
proto.js
@ -68,8 +68,8 @@ var Volcanos = shy({iceberg: "", volcano: "", frame: chat.FRAME_JS, _cache: {},
|
|||||||
runActionCommand: function(event, index, args, cb) { can.request(event)._caller()
|
runActionCommand: function(event, index, args, cb) { can.request(event)._caller()
|
||||||
can.runAction(event, ctx.RUN, [index].concat(args), cb, true)
|
can.runAction(event, ctx.RUN, [index].concat(args), cb, true)
|
||||||
},
|
},
|
||||||
runAction: function(event, action, args, cb, silent) {
|
runAction: function(event, action, args, cb, silent) { var msg = can.request(event, {_handle: ice.TRUE})
|
||||||
can.request(event, {_handle: ice.TRUE}, can.Option())._caller()
|
can.request(can.base.isIn(msg._can, can, can._fields? can.sup: can.sub)? can.Option(): {})._caller()
|
||||||
can.run(event, [ctx.ACTION].concat(action, args||[]), cb, silent)
|
can.run(event, [ctx.ACTION].concat(action, args||[]), cb, silent)
|
||||||
},
|
},
|
||||||
search: function(event, cmds, cb) {
|
search: function(event, cmds, cb) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user