mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt base
This commit is contained in:
parent
ac0cc20e3a
commit
2b3dda7525
@ -279,6 +279,6 @@ Volcanos("misc", {help: "通信协议", Message: function(event, can) { var msg
|
||||
if (minute < 10) { minute = "0"+minute }
|
||||
var second = now.getSeconds()
|
||||
if (second < 10) { second = "0"+second }
|
||||
return hour+":"+minute+":"+second
|
||||
return hour+":"+minute+":"+second+"."+now.getMilliseconds()
|
||||
},
|
||||
})
|
||||
|
@ -141,7 +141,7 @@ Volcanos("user", {help: "用户操作", info: {}, agent: {
|
||||
}, function() { action.close() }), _target: ui._target, ui: ui,
|
||||
}); can.onmotion.story.auto(can, ui._target)
|
||||
|
||||
can.onengine.signal(can, chat.ONTOAST, can.request({}, {time: can.base.Time(), title: meta.title, content: meta.content, fileline: can.misc.FileLine(2, 2)}))
|
||||
can.onengine.signal(can, chat.ONTOAST, can.request({}, {time: can.misc._time(), title: meta.title, content: meta.content, fileline: can.misc.FileLine(2, 2)}))
|
||||
return !meta.action && can.onmotion.float.add(can, chat.TOAST, action), action
|
||||
},
|
||||
share: function(can, msg, cmd) {
|
||||
|
@ -37,7 +37,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar
|
||||
toast: function(can, msg, title, content, fileline, time) { can._tips = can._tips||can.request()
|
||||
can._tips.Push({time: time, fileline: fileline, title: title, content: content})
|
||||
can.onimport.count(can, "ntip")
|
||||
can.page.Modify(can, can.toast, [time.split(ice.SP).pop(), title, content].join(ice.SP))
|
||||
can.page.Modify(can, can.toast, [time, title, content].join(ice.SP))
|
||||
},
|
||||
count: function(can, name) {
|
||||
can.page.Select(can, can._output, can.core.Keys(html.SPAN, name), function(item) {
|
||||
|
@ -73,7 +73,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar
|
||||
},
|
||||
topic: function(can, topic) { topic && (can._topic = topic)
|
||||
topic = can._topic || can.misc.Search(can, chat.TOPIC) || Volcanos.meta.args.topic || (can.base.isNight()? chat.BLACK: chat.WHITE)
|
||||
can.require(["/chat/topic/"+topic+".css"])
|
||||
// can.require(["/chat/topic/"+topic+".css"])
|
||||
can.user.topic(can, topic)
|
||||
},
|
||||
background: function(event, can, background) { if (can.user.isExtension || can.user.isLocalFile) { return }
|
||||
@ -147,6 +147,7 @@ Volcanos(chat.ONACTION, {help: "交互数据", _init: function(can, cb, target)
|
||||
"logout": "退出登录",
|
||||
},
|
||||
onmain: function(can, msg) {
|
||||
debugger
|
||||
can.run({}, [], function(msg) {
|
||||
if (!can.Conf(aaa.USERNICK, msg.Option(aaa.USERNICK)||msg.Option(ice.MSG_USERNAME))) {
|
||||
msg.Option(chat.SSO)? can.user.jumps(msg.Option(chat.SSO)): can.user.login(can, function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user