mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
6032d02915
commit
5f202a293e
3
frame.js
3
frame.js
@ -33,7 +33,8 @@ Volcanos(chat.ONENGINE, {
|
|||||||
names = can.base.MergeURL(names, ice.MSG_INDEX, sub.ConfIndex()), can.page.exportValue(sub, msg)
|
names = can.base.MergeURL(names, ice.MSG_INDEX, sub.ConfIndex()), can.page.exportValue(sub, msg)
|
||||||
can.onengine.signal(panel, chat.ONREMOTE, can.request({}, {_follow: panel._follow, _msg: msg, _cmds: cmds, names: names}))
|
can.onengine.signal(panel, chat.ONREMOTE, can.request({}, {_follow: panel._follow, _msg: msg, _cmds: cmds, names: names}))
|
||||||
can.misc.Run(event, can, {names: names}, cmds, function(msg) {
|
can.misc.Run(event, can, {names: names}, cmds, function(msg) {
|
||||||
toast && can.user.toastSuccess(msg._can, msg.Option(ctx.ACTION)+lex.SP+ice.SUCCESS), toast && toast.close && toast.close(), toast = true
|
// toast && can.user.toastSuccess(msg._can, msg.Option(ctx.ACTION)+lex.SP+ice.SUCCESS)
|
||||||
|
toast && toast.close && toast.close(), toast = true
|
||||||
can.base.isFunc(cb) && cb(msg), Volcanos.meta.pack[can.core.Keys(panel._name, cmds.join(mdb.FS))] = msg
|
can.base.isFunc(cb) && cb(msg), Volcanos.meta.pack[can.core.Keys(panel._name, cmds.join(mdb.FS))] = msg
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -95,7 +95,7 @@ Volcanos("base", {
|
|||||||
for (var i = 0; i < list.length; i++) {
|
for (var i = 0; i < list.length; i++) {
|
||||||
var yestoday = this.Time(new Date(now - (i+1)*24*60*60*1000), "%y-%m-%d ")
|
var yestoday = this.Time(new Date(now - (i+1)*24*60*60*1000), "%y-%m-%d ")
|
||||||
if (value.indexOf(yestoday) == 0) {
|
if (value.indexOf(yestoday) == 0) {
|
||||||
prefix = (list[i] || ["周日", "周一", "周二", "周三", "周四", "周五", "周六", "周日"][new Date(value).getDay()])+" ", pre = yestoday; break
|
prefix = (list[i] || ["周日", "周一", "周二", "周三", "周四", "周五", "周六", "周日"][new Date(value.replaceAll("-", "/")).getDay()])+" ", pre = yestoday; break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,10 +14,9 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
can.onappend.table(can, msg, null, target), can.onappend.board(can, msg, target), can.onmotion.story.auto(can, target)
|
can.onappend.table(can, msg, null, target), can.onappend.board(can, msg, target), can.onmotion.story.auto(can, target)
|
||||||
} cb && cb(msg)
|
} cb && cb(msg)
|
||||||
},
|
},
|
||||||
|
textView: function(can, value, key, type) { return value[key] && {text: [can.user.transValue(can, value, key), "", [type, value[key], can.Conf("_trans.value."+key+".style."+value[key])||""]]} },
|
||||||
itemcards: function(can, msg, cb) {
|
itemcards: function(can, msg, cb) {
|
||||||
if (msg.IsDetail()) { var value = msg.TableDetail()
|
if (msg.IsDetail()) { var value = msg.TableDetail(); msg.Show(can)
|
||||||
msg.Show(can)
|
|
||||||
// can.page.Append(can, can._output, [can.onimport.itemcard(can, value, cb(value))])
|
|
||||||
can.page.Select(can, can._output, html.TR, function(target) {
|
can.page.Select(can, can._output, html.TR, function(target) {
|
||||||
if (target.className.indexOf("_uid") > -1) {
|
if (target.className.indexOf("_uid") > -1) {
|
||||||
can.page.ClassList.add(can, target, "hide")
|
can.page.ClassList.add(can, target, "hide")
|
||||||
@ -26,8 +25,7 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
} else {
|
} else {
|
||||||
can.page.Append(can, can._output, msg.Table(function(value) {
|
can.page.Append(can, can._output, msg.Table(function(value) {
|
||||||
return can.onimport.itemcard(can, value, cb(value))
|
return can.onimport.itemcard(can, value, cb(value))
|
||||||
}))
|
})), msg.Result() && can.onappend.board(can, msg)
|
||||||
msg.Result() && can.onappend.board(can, msg)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
itemcard: function(can, value, list, cb) {
|
itemcard: function(can, value, list, cb) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user