mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
8fbff9a445
commit
a833ce5fc6
2
frame.js
2
frame.js
@ -553,7 +553,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
|
|||||||
append(can.page.Append(can, target, [html.LAYOUT])._target, type==FLOW? FLEX: FLOW, item)
|
append(can.page.Append(can, target, [html.LAYOUT])._target, type==FLOW? FLEX: FLOW, item)
|
||||||
} else if (can.base.isObject(item)) {
|
} else if (can.base.isObject(item)) {
|
||||||
if (item.index) { item._index = count++, ui.size[item._index] = item.height||item.width
|
if (item.index) { item._index = count++, ui.size[item._index] = item.height||item.width
|
||||||
// can.onmotion.hidden(can, target)
|
can.base.isIn(item.index, web.WIKI_PORTAL) && can.onmotion.hidden(can, target)
|
||||||
can.onappend.plugin(can, item, function(sub) { can._plugins = (can._plugins||[]).concat([sub])
|
can.onappend.plugin(can, item, function(sub) { can._plugins = (can._plugins||[]).concat([sub])
|
||||||
item.layout = function(height, width) { sub.onimport.size(sub, height, width) }
|
item.layout = function(height, width) { sub.onimport.size(sub, height, width) }
|
||||||
can.onmotion.select(can, sub._target.parentNode, html.FIELDSET, sub._target)
|
can.onmotion.select(can, sub._target.parentNode, html.FIELDSET, sub._target)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Volcanos(chat.ONIMPORT, {_init: function(can, msg) { var river = can.Conf(chat.RIVER), storm = can.Conf(chat.STORM), list = can.db.list
|
Volcanos(chat.ONIMPORT, {_init: function(can, msg) { var river = can.Conf(chat.RIVER), storm = can.Conf(chat.STORM), list = can.db.list
|
||||||
can.onmotion.clear(can), can.core.Next(msg.Table(), function(item, next, index) { item.type = chat.PLUGIN, item.mode = can.Mode(); if (item.deleted == ice.TRUE) { return next() }
|
can.onmotion.clear(can), can.core.Next(msg.Table(), function(item, next, index) { item.type = chat.PLUGIN, item.mode = can.Mode(); if (item.deleted == ice.TRUE) { return next() }
|
||||||
item.width = can.ConfWidth()-can.Conf(html.MARGIN_X); if (item.style == html.OUTPUT) { item.width = can.ConfWidth()-2*html.PLUGIN_MARGIN-2*html.PLUGIN_PADDING }
|
item.width = can.ConfWidth()-can.Conf(html.MARGIN_X); if (item.style == html.OUTPUT) { item.width = can.ConfWidth()-2*html.PLUGIN_MARGIN-2*html.PLUGIN_PADDING }
|
||||||
if (msg.Length() == 1) { item.height = can.ConfHeight()-can.Conf(html.MARGIN_Y), can.base.isIn(item.index, web.CHAT_MACOS_DESKTOP) && (item.style = html.OUTPUT) }
|
if (msg.Length() == 1) { item.height = can.ConfHeight()-can.Conf(html.MARGIN_Y), can.base.isIn(item.index, web.CHAT_MACOS_DESKTOP, web.WIKI_PORTAL) && (item.style = html.OUTPUT) }
|
||||||
list.length == 0 && item.index == "web.dream" && (list = [river, storm, item.index])
|
list.length == 0 && item.index == "web.dream" && (list = [river, storm, item.index])
|
||||||
can.onappend.plugin(can, item, function(sub, meta, skip) { if (meta.index == "can._notfound" && !can.misc.isDebug(can)) { return skip || next() }
|
can.onappend.plugin(can, item, function(sub, meta, skip) { if (meta.index == "can._notfound" && !can.misc.isDebug(can)) { return skip || next() }
|
||||||
sub.onexport.output = function() { msg.Length() > 1 && can.onexport.isauto(can) && can.page.style(can, sub._output, html.HEIGHT, "", html.MAX_HEIGHT, "") }
|
sub.onexport.output = function() { msg.Length() > 1 && can.onexport.isauto(can) && can.page.style(can, sub._output, html.HEIGHT, "", html.MAX_HEIGHT, "") }
|
||||||
|
@ -222,7 +222,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb) { var paths = can.core.Sp
|
|||||||
process: function(can, msg, target, height, width, cb) { can.onmotion.clear(can, target)
|
process: function(can, msg, target, height, width, cb) { can.onmotion.clear(can, target)
|
||||||
if (msg.Option(ice.MSG_PROCESS) == ice.PROCESS_FIELD) {
|
if (msg.Option(ice.MSG_PROCESS) == ice.PROCESS_FIELD) {
|
||||||
msg.Table(function(item) { item.type = chat.STORY, item.height = height, item.width = width, item.display = msg.Option(ice.MSG_DISPLAY)
|
msg.Table(function(item) { item.type = chat.STORY, item.height = height, item.width = width, item.display = msg.Option(ice.MSG_DISPLAY)
|
||||||
if (can.base.isIn(item.index, web.WIKI_WORD)) { item.style = html.OUTPUT }
|
if (can.base.isIn(item.index, web.CODE_XTERM, web.WIKI_WORD)) { item.style = html.OUTPUT }
|
||||||
can.onimport.plug(can, item, function(sub) {
|
can.onimport.plug(can, item, function(sub) {
|
||||||
sub.onaction.close = function() { can.onmotion.hidden(can, target), can.onimport.layout(can) }
|
sub.onaction.close = function() { can.onmotion.hidden(can, target), can.onimport.layout(can) }
|
||||||
sub.onexport.output = function(_sub, _msg) { can.base.isFunc(cb) && cb(_sub.sup, _msg) }
|
sub.onexport.output = function(_sub, _msg) { can.base.isFunc(cb) && cb(_sub.sup, _msg) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user