From a6a2b120720e02381b62277d0fe97942a847dbb2 Mon Sep 17 00:00:00 2001 From: shy Date: Mon, 6 Jan 2025 21:38:50 +0800 Subject: [PATCH] add some --- frame.js | 2 +- plugin/local/code/inner.js | 4 +++- plugin/local/code/vimer.js | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frame.js b/frame.js index b2a9a240..02fe23ca 100644 --- a/frame.js +++ b/frame.js @@ -348,7 +348,7 @@ Volcanos(chat.ONAPPEND, { Volcanos(display, {_root: can._root, _follow: can.core.Keys(can._follow, display), _fields: can._target, _target: output, _path: display||chat.PLUGIN_TABLE_JS, _legend: can._legend, _option: can._option, _action: action||can._action, _output: output, _status: status||can._status, Update: can.Update, Option: can.Option, Action: can.Action, Status: can.Status, db: {hash: [""], value: {}}, ui: {layout: function() {}}, - }, [display, msg.Option(ice.MSG_DISPLAY_CSS)||undefined, chat.PLUGIN_TABLE_JS], function(sub) { sub.Conf(can.Conf()) + }, [display, msg.Option(ice.MSG_DISPLAY_CSS)||can.Conf("display_css")||undefined, chat.PLUGIN_TABLE_JS], function(sub) { sub.Conf(can.Conf()) sub.db.hash = can.base.getValid(can.isCmdMode()? can.misc.SearchHash(can): [], can.onexport.storage(can, "hash"))||[] var last = can.sub; last && can.core.CallFunc([last, "onaction.hidden"], {can: last}) sub.run = function(event, cmds, cb, silent) { var msg = sub.request(event)._caller() diff --git a/plugin/local/code/inner.js b/plugin/local/code/inner.js index 0f21546a..b26e3acc 100644 --- a/plugin/local/code/inner.js +++ b/plugin/local/code/inner.js @@ -204,7 +204,9 @@ Volcanos(chat.ONIMPORT, { }, 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) + msg.Table(function(item) { item.type = chat.STORY, item.height = height, item.width = width + item.display = msg.Option(ice.MSG_DISPLAY) + item.display_css = msg.Option(ice.MSG_DISPLAY_CSS) if (can.base.isIn(item.index, 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) } diff --git a/plugin/local/code/vimer.js b/plugin/local/code/vimer.js index 059af30f..c9486eb3 100644 --- a/plugin/local/code/vimer.js +++ b/plugin/local/code/vimer.js @@ -26,6 +26,7 @@ Volcanos(chat.ONFIGURE, { // nfs.USR_LEARNING, nfs.USR_INTSHELL, nfs.USR_ICONS, nfs.USR_GEOAREA, nfs.USR_NODE_MODULES, // nfs.USR_PROGRAM, + "usr/material/", nfs.USR_WEBSOCKET, nfs.USR_GO_QRCODE, nfs.USR_GO_GIT )) { return } if (p && paths.indexOf(p) == -1 && p[0] != nfs.PS) { paths.push(p) }