mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
add package
This commit is contained in:
parent
35c87a4d6b
commit
1452695a3b
1
const.js
1
const.js
@ -213,6 +213,7 @@ var nfs = {
|
||||
var cli = {
|
||||
RUNTIME: "runtime", SYSTEM: "system", DAEMON: "daemon",
|
||||
BEGIN: "begin", END: "end", START: "start", RESTART: "restart", STOP: "stop", OPEN: "open", CLOSE: "close",
|
||||
PID: "pid",
|
||||
|
||||
OPENS: "opens", BUILD: "build", ORDER: "order", DELAY: "delay", REBOOT: "reboot",
|
||||
PLAY: "play", STEP: "step", DONE: "done", COST: "cost", FROM: "from", PWD: "pwd",
|
||||
|
7
frame.js
7
frame.js
@ -320,7 +320,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
|
||||
}
|
||||
can.page.ClassList.del(can, sub._fields, html.FORM), delete(can._status._cache), delete(can._status._cache_key)
|
||||
// can.page.style(can, can._output, html.HEIGHT, can._output.offsetHeight)
|
||||
// sub._output.className = html.OUTPUT
|
||||
sub._output.className = html.OUTPUT
|
||||
can.onappend.style(can, sub._args.style, can._output)
|
||||
// can.isCmdMode() && can.onimport.size(can, can.ConfHeight(), can.ConfWidth(), false)
|
||||
can.onexport._output(sub, msg), sub.Mode() != ice.MSG_RESULT && can.onmotion.clear(can, output)
|
||||
@ -527,12 +527,13 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
|
||||
if (msg.append[msg.append.length-1] == ctx.ACTION && (!msg[ctx.ACTION] || msg[ctx.ACTION].length == 0)) { msg.append.pop() }
|
||||
var option = can.core.Item(can.Option())
|
||||
var table = can.page.AppendTable(can, msg, target||can._output, msg.append, cb||function(value, key, index, data, list) { var _value = value
|
||||
if (msg.append.length == 2 && msg.append[0] == mdb.KEY && msg.append[1] == mdb.VALUE) { if (key == mdb.VALUE) { key = data.key } data = {}, can.core.List(list, function(item) { data[item.key] = item.value }) }
|
||||
if (msg.append.length == 2 && msg.append[0] == mdb.KEY && msg.append[1] == mdb.VALUE) {
|
||||
if (key == mdb.VALUE) { key = data.key } data = {}, can.core.List(list, function(item) { data[item.key] = item.value }) }
|
||||
function request(event) { delete(data.action); return can.request(event, data, can.Option()) }
|
||||
function run(event, cmd, arg) { can.misc.Event(event, can, function(msg) { can.run(request(event), [ctx.ACTION, cmd].concat(arg)) }) }
|
||||
function img(p) { return !msg.IsDetail()? can.page.Format(html.IMG, p, 48, 48): can.user.isMobile? can.page.Format(html.IMG, p, null, 320): can.page.Format(html.IMG, p, 320, null) }
|
||||
if (key == mdb.NAME && value) { _value = can.user.trans(can, value, null, html.INPUT) }
|
||||
if (key == mdb.ICON && value) { _value = img(can.misc.Resource(can, data[key])) }
|
||||
if (key == mdb.ICON && value) { _value = img(can.misc.Resource(can, data[key], data[ice.POD]||data[web.SPACE])) }
|
||||
if (key == mdb.ICONS && value) { _value = img(can.misc.Resource(can, data[key])) }
|
||||
if (key == nfs.IMAGE && value) { _value = can.core.List(can.core.Split(data[key]), function(item) { return img(can.misc.ShareCache(can, item, data.space)) }).join("") }
|
||||
if (key == web.SPACE && value) { _value = can.page.Format(html.A, can.misc.MergePodCmd(can, {pod: value}), value) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user