mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 01:04:06 +08:00
opt some
This commit is contained in:
parent
5178fbf4e9
commit
ada341c213
@ -14,15 +14,15 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
|||||||
can.onmotion.clear(can)
|
can.onmotion.clear(can)
|
||||||
can.onimport._title(can, msg, target)
|
can.onimport._title(can, msg, target)
|
||||||
can.onimport._state(can, msg, target)
|
can.onimport._state(can, msg, target)
|
||||||
can.onimport._search(can, msg, target)
|
|
||||||
can.onimport._background(can, msg, target)
|
can.onimport._background(can, msg, target)
|
||||||
|
can.onimport._search(can, msg, target)
|
||||||
can.onimport._agent(can, msg, target)
|
can.onimport._agent(can, msg, target)
|
||||||
can.onimport._menu(can, msg, target)
|
can.onimport._menu(can, msg, target)
|
||||||
typeof cb == "function" && cb(msg)
|
typeof cb == "function" && cb(msg)
|
||||||
},
|
},
|
||||||
_title: function(can, msg, target) {
|
_title: function(can, msg, target) {
|
||||||
can.user.title(can.user.Search(can, "title")||can.user.Search(can, "pod"))
|
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.page.Append(can, target, [{view: ["title", "div", item], onclick: function(event) {
|
||||||
can.onaction.title(event, can)
|
can.onaction.title(event, can)
|
||||||
}}])
|
}}])
|
||||||
|
@ -121,6 +121,13 @@ Volcanos("onsyntax", {help: "语法高亮", list: ["keyword", "prefix", "line"],
|
|||||||
}
|
}
|
||||||
}); if (cache) { return }
|
}); 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
|
function init(p) { can.max = 0
|
||||||
can.core.List(can.ls = msg.Result().split("\n"), function(item) {
|
can.core.List(can.ls = msg.Result().split("\n"), function(item) {
|
||||||
can.onaction.appendLine(can, item)
|
can.onaction.appendLine(can, item)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user