From a833ce5fc652f00515d691ad9a0418f8f47305e2 Mon Sep 17 00:00:00 2001 From: shy Date: Sat, 20 Jan 2024 19:21:07 +0800 Subject: [PATCH] add some --- frame.js | 2 +- panel/action.js | 2 +- plugin/local/code/inner.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frame.js b/frame.js index 69d42df7..36682580 100644 --- a/frame.js +++ b/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) } else if (can.base.isObject(item)) { 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]) item.layout = function(height, width) { sub.onimport.size(sub, height, width) } can.onmotion.select(can, sub._target.parentNode, html.FIELDSET, sub._target) diff --git a/panel/action.js b/panel/action.js index 747fb6fc..9f1c70e4 100644 --- a/panel/action.js +++ b/panel/action.js @@ -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 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 } - 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]) 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, "") } diff --git a/plugin/local/code/inner.js b/plugin/local/code/inner.js index f0d8f8e5..de3cfbd8 100644 --- a/plugin/local/code/inner.js +++ b/plugin/local/code/inner.js @@ -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) 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) - 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) { 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) }