1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
harveyshao 2021-04-20 21:59:02 +08:00
parent 5178fbf4e9
commit ada341c213
2 changed files with 10 additions and 3 deletions

View File

@ -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.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)
}}])

View File

@ -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)