1
0
mirror of https://shylinux.com/x/icebergs synced 2025-05-03 12:07:00 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-03-09 16:27:28 +08:00
parent b91f83adb5
commit ca4e7aeb53
2 changed files with 12 additions and 8 deletions

View File

@ -30,7 +30,7 @@ Volcanos(chat.ONIMPORT, {
{img: can.misc.Resource(can, item.icons, can.core.Keys(item.domain, item.name)), onclick: cb(web.DESKTOP)}, {view: wiki.TITLE, list: [
{text: item.name||item.domain||location.host, onclick: cb(web.OPEN)},
item.status != cli.STOP && can.onappend.label(can, item, {version: icon.version, time: icon.compile, access: "bi bi-file-lock"}),
{text: [item.text, "", "status"]},
{text: [item.text, "", mdb.STATUS]},
can.onappend.buttons(can, item),
]},
], _init: function(target) {
@ -47,13 +47,15 @@ Volcanos(chat.ONACTION, {
can.page.ClassList.add(can, can._output, "process")
can.core.Next(can.db.server, function(server, next, index) {
can.core.Next(can.core.Item(can.db.list, function(key, value) { return value }), function(list, next, i) {
var item = list[server]; if (!item) { return next() }
if (!item.name || item.status != cli.START) { return next() }
var item = list[server]; if (!item) { return next() } if (!item.name || item.status != cli.START) { return next() }
can.page.ClassList.add(can, item._target, "process")
can.Update(can.request({}, item, {_handle: ice.TRUE}), [ctx.ACTION, code.UPGRADE], function(msg) {
next()
})
can.Update(can.request({}, item, {_handle: ice.TRUE}), [ctx.ACTION, code.UPGRADE], function(msg) { next() })
}, next)
}, function() { can.Update() })
}, function() {
can.core.Next(can.db.server, function(server, next, index) {
var item = can.db.list[""][server]; can.page.ClassList.add(can, item._target, "process")
can.Update(can.request({}, item, {_handle: ice.TRUE}), [ctx.ACTION, code.UPGRADE], function(msg) { next() })
}, function() { can.onmotion.delay(can, function() {can.Update() }, 3000) })
})
},
})

View File

@ -70,7 +70,9 @@ func init() {
web.StreamPushRefreshConfirm(m, m.Trans("refresh for new message ", "刷新列表,查看最新消息 "))
}},
web.DREAM_CREATE: {Hand: func(m *ice.Message, arg ...string) {
PlanInsertPlan(m, web.DREAM, "", m.Option(mdb.NAME), web.CHAT_IFRAME, web.S(m.Option(mdb.NAME)))
if ice.Info.Important {
PlanInsertPlan(m, web.DREAM, "", m.Option(mdb.NAME), web.CHAT_IFRAME, web.S(m.Option(mdb.NAME)))
}
}},
web.DREAM_REMOVE: {Hand: func(m *ice.Message, arg ...string) {
PlanInsertPlan(m, web.DREAM, "", "", web.CHAT_IFRAME, web.S(m.Option(mdb.NAME)))