mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
opt order
This commit is contained in:
parent
d57330e2a7
commit
184e5d49fb
48
frame.js
48
frame.js
@ -44,38 +44,43 @@ Volcanos("onengine", { _init: function(can, meta, list, cb, target) {
|
|||||||
}); return true },
|
}); return true },
|
||||||
river: {
|
river: {
|
||||||
"main": {name: "main", storm: {
|
"main": {name: "main", storm: {
|
||||||
"dream": {name: "dream", index: [
|
"inner": {name: "inner", index: [
|
||||||
"web.space",
|
|
||||||
"web.dream",
|
|
||||||
"web.code.docker.container",
|
|
||||||
"web.code.tmux.session",
|
|
||||||
]},
|
|
||||||
"main": {name: "main", index: [
|
|
||||||
"web.code.inner",
|
"web.code.inner",
|
||||||
"web.code.git.status",
|
"web.code.git.status",
|
||||||
"web.code.git.total",
|
"web.code.git.total",
|
||||||
]},
|
]},
|
||||||
"task": {name: "task", index: [
|
"pprof": {name: "pprof", index: [
|
||||||
"web.team.plan",
|
|
||||||
"web.wiki.draw.draw",
|
|
||||||
"web.wiki.word",
|
|
||||||
]},
|
|
||||||
"relay": {name: "relay", index: [
|
|
||||||
"aaa.totp.get",
|
|
||||||
"web.route",
|
|
||||||
]},
|
|
||||||
"性能": {name: "性能", index: [
|
|
||||||
"web.code.pprof",
|
"web.code.pprof",
|
||||||
"web.code.bench",
|
"web.code.bench",
|
||||||
"web.favor",
|
"web.favor",
|
||||||
"web.cache",
|
"web.cache",
|
||||||
"web.share",
|
"web.share",
|
||||||
]},
|
]},
|
||||||
|
"relay": {name: "relay", index: [
|
||||||
|
"aaa.totp.get",
|
||||||
|
"web.route",
|
||||||
|
"web.space",
|
||||||
|
"web.dream",
|
||||||
|
"web.code.docker.container",
|
||||||
|
"web.code.tmux.session",
|
||||||
|
]},
|
||||||
|
"office": {name: "office", index: [
|
||||||
|
"web.team.plan",
|
||||||
|
"web.wiki.feel",
|
||||||
|
"web.wiki.data",
|
||||||
|
"web.wiki.word",
|
||||||
|
"web.wiki.draw.draw",
|
||||||
|
]},
|
||||||
"docker": {name: "docker", index: [
|
"docker": {name: "docker", index: [
|
||||||
"web.code.docker.image",
|
"web.code.docker.image",
|
||||||
"web.code.docker.container",
|
"web.code.docker.container",
|
||||||
"web.code.docker.command",
|
"web.code.docker.command",
|
||||||
]},
|
]},
|
||||||
|
"tmux": {name: "tmux", index: [
|
||||||
|
"web.code.tmux.text",
|
||||||
|
"web.code.tmux.buffer",
|
||||||
|
"web.code.tmux.session",
|
||||||
|
]},
|
||||||
}},
|
}},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -565,15 +570,16 @@ Volcanos("onappend", { _init: function(can, meta, list, cb, target, field) { met
|
|||||||
if (action.upload.files.length == 0) {return action.upload.focus()}
|
if (action.upload.files.length == 0) {return action.upload.focus()}
|
||||||
if (value == "关闭") {can._upload.stick = false; return can.page.Remove(can, can._upload.output.parentNode)}
|
if (value == "关闭") {can._upload.stick = false; return can.page.Remove(can, can._upload.output.parentNode)}
|
||||||
|
|
||||||
var msg = can.request(event, can.Option());
|
var msg = can.request(event)
|
||||||
|
can.core.Item(can.Option(), msg.Option)
|
||||||
|
|
||||||
// 上传文件
|
// 上传文件
|
||||||
begin = new Date();
|
begin = new Date()
|
||||||
msg._progress = show
|
msg._progress = show
|
||||||
msg.upload = action.upload.files[0];
|
msg.upload = action.upload.files[0]
|
||||||
can.run(event, ["action", "upload"], function(msg) {
|
can.run(event, ["action", "upload"], function(msg) {
|
||||||
can.onappend.toast(can, "上传成功")
|
can.onappend.toast(can, "上传成功")
|
||||||
}, true);
|
}, true)
|
||||||
})
|
})
|
||||||
action.upload.click()
|
action.upload.click()
|
||||||
},
|
},
|
||||||
|
@ -4,6 +4,9 @@ Volcanos("onimport", {help: "导入数据", list: [],
|
|||||||
})
|
})
|
||||||
Volcanos("onaction", {help: "控件交互", list: [],
|
Volcanos("onaction", {help: "控件交互", list: [],
|
||||||
onchange: function(event, can) {
|
onchange: function(event, can) {
|
||||||
|
if (event.target.tagName == "SELECT") {
|
||||||
|
can.run(event)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onclick: function(event, can) {
|
onclick: function(event, can) {
|
||||||
switch (can.Conf("type")) {
|
switch (can.Conf("type")) {
|
||||||
|
@ -317,7 +317,11 @@ Volcanos("onsyntax", {help: "语法高亮", list: ["keyword", "prefix", "line"],
|
|||||||
line: function(can, line) { return can.page.Format("img", "/share/local/"+line) }
|
line: function(can, line) { return can.page.Format("img", "/share/local/"+line) }
|
||||||
},
|
},
|
||||||
jpg: {
|
jpg: {
|
||||||
line: function(can, line) { return can.page.Format("img", "/share/local/"+line) }
|
show: function(can, line) {
|
||||||
|
can.page.Append(can, can.ui.display, can.core.List(can._msg.result, function(line) {
|
||||||
|
return {img: "/share/local/"+line}
|
||||||
|
}))
|
||||||
|
}
|
||||||
},
|
},
|
||||||
m4v: {
|
m4v: {
|
||||||
line: function(can, line) { var auto = true, loop = true, total = 0
|
line: function(can, line) { var auto = true, loop = true, total = 0
|
||||||
@ -376,6 +380,7 @@ Volcanos("onkeymap", {help: "键盘交互", list: ["command", "normal", "insert"
|
|||||||
|
|
||||||
_remote: function(event, can, key, arg, cb) { can.ui.display.innerHTML = "", can.ui.profile.innerHTML = ""
|
_remote: function(event, can, key, arg, cb) { can.ui.display.innerHTML = "", can.ui.profile.innerHTML = ""
|
||||||
var p = can.onsyntax[can.parse]; can.display = p && p.profile && can.ui.profile || can.ui.display
|
var p = can.onsyntax[can.parse]; can.display = p && p.profile && can.ui.profile || can.ui.display
|
||||||
|
if (p && p.show) { p.show(can); return }
|
||||||
|
|
||||||
can.page.Modify(can, can.display, {innerHTML: "", style: {display: "none"}})
|
can.page.Modify(can, can.display, {innerHTML: "", style: {display: "none"}})
|
||||||
var msg = can.request(event); msg.Option("content", can.onexport.content(can))
|
var msg = can.request(event); msg.Option("content", can.onexport.content(can))
|
||||||
|
@ -9,6 +9,10 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
|||||||
})
|
})
|
||||||
}, ondblclick: function(event) {
|
}, ondblclick: function(event) {
|
||||||
can.page.Modify(can, event.target, {contenteditable: true})
|
can.page.Modify(can, event.target, {contenteditable: true})
|
||||||
|
}, onclick: function(event) {
|
||||||
|
if (key == "path") {
|
||||||
|
can.run(event, [can.Option("path", value)])
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -18,7 +18,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
|||||||
can.last = null
|
can.last = null
|
||||||
|
|
||||||
// 加载绘图
|
// 加载绘图
|
||||||
var code = can.page.AppendBoard(can, can.ui.content, msg.Result()||can.onexport.file(event, can))
|
var code = can.page.AppendBoard(can, can.ui.content, msg.Result()||can.onexport.file(can))
|
||||||
can.page.Select(can, can.ui.content, "svg", function(svg) { can.svg = can.group = svg
|
can.page.Select(can, can.ui.content, "svg", function(svg) { can.svg = can.group = svg
|
||||||
can.onimport.block(can, svg), can.onimport.group(can, svg).click()
|
can.onimport.block(can, svg), can.onimport.group(can, svg).click()
|
||||||
can.page.Select(can, svg, "*", function(item, index) {
|
can.page.Select(can, svg, "*", function(item, index) {
|
||||||
@ -858,7 +858,7 @@ Volcanos("onexport", {help: "导出数据", list: ["group", "target", "zone", "t
|
|||||||
return ['<svg vertion="1.1" xmlns="https://www.w3.org/2000/svg" text-anchor="middle" dominant-baseline="middle"'].concat(
|
return ['<svg vertion="1.1" xmlns="https://www.w3.org/2000/svg" text-anchor="middle" dominant-baseline="middle"'].concat(
|
||||||
svg? can.core.List(["count", "width", "height", "font-size", "stroke-width", "stroke", "fill"], function(item) {
|
svg? can.core.List(["count", "width", "height", "font-size", "stroke-width", "stroke", "fill"], function(item) {
|
||||||
return svg.Value(item)? ' ' + item + '="' + svg.Value(item) + '"': ""
|
return svg.Value(item)? ' ' + item + '="' + svg.Value(item) + '"': ""
|
||||||
}): []).concat(['>', svg? svg.innerHTML: "", "</svg>"]).join("")
|
}): [" width=600 height=200 "]).concat(['>', svg? svg.innerHTML: "", "</svg>"]).join("")
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@ fieldset.feel div.action {
|
|||||||
clear:none;
|
clear:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fieldset.feel div.output {
|
||||||
|
min-height:200px;
|
||||||
|
}
|
||||||
fieldset.feel div.output div.content {
|
fieldset.feel div.output div.content {
|
||||||
max-height:200px;
|
max-height:200px;
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user