diff --git a/panel/Header.js b/panel/Header.js index e064c167..db8db47e 100644 --- a/panel/Header.js +++ b/panel/Header.js @@ -14,15 +14,15 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, can.onmotion.clear(can) can.onimport._title(can, msg, target) can.onimport._state(can, msg, target) - can.onimport._search(can, msg, target) can.onimport._background(can, msg, target) + can.onimport._search(can, msg, target) can.onimport._agent(can, msg, target) can.onimport._menu(can, msg, target) typeof cb == "function" && cb(msg) }, _title: function(can, msg, target) { - can.user.title(can.user.Search(can, "title") || can.user.Search(can, "pod")) - can.user.isMobile || can.core.List(msg.result||["github.com/shylinux/contexts"], function(item) { + can.user.title(can.user.Search(can, "title")||can.user.Search(can, "pod")) + !can.user.isMobile && can.core.List(msg.result||["github.com/shylinux/contexts"], function(item) { can.page.Append(can, target, [{view: ["title", "div", item], onclick: function(event) { can.onaction.title(event, can) }}]) diff --git a/plugin/local/code/inner.js b/plugin/local/code/inner.js index f427c9ed..dde1d5a0 100644 --- a/plugin/local/code/inner.js +++ b/plugin/local/code/inner.js @@ -121,6 +121,13 @@ Volcanos("onsyntax", {help: "语法高亮", list: ["keyword", "prefix", "line"], } }); if (cache) { return } + switch (can.parse) { + case "png": + case "jpg": + can.page.Append(can, can.ui.content, [{img: can.base.Path("/share/local", can.file)+"?"+can.user.Search(can, "pod")}]) + return + } + function init(p) { can.max = 0 can.core.List(can.ls = msg.Result().split("\n"), function(item) { can.onaction.appendLine(can, item)