mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt web
This commit is contained in:
parent
d3231a6cf6
commit
b5162d85b8
9
frame.js
9
frame.js
@ -48,7 +48,7 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
|
|||||||
remote: function(event, can, msg, pane, cmds, cb) {
|
remote: function(event, can, msg, pane, cmds, cb) {
|
||||||
if (pane.onengine.engine(event, can, msg, pane, cmds, cb)) { return }
|
if (pane.onengine.engine(event, can, msg, pane, cmds, cb)) { return }
|
||||||
can.misc.Run(event, can, {names: pane._name}, cmds, cb)
|
can.misc.Run(event, can, {names: pane._name}, cmds, cb)
|
||||||
pane.run(event, ["search", "Footer.onimport.ncmd"])
|
// pane.run(event, ["search", "Footer.onimport.ncmd"])
|
||||||
}, engine: function(event, can, msg, pane, cmds, cb) { return false },
|
}, engine: function(event, can, msg, pane, cmds, cb) { return false },
|
||||||
|
|
||||||
river: {
|
river: {
|
||||||
@ -144,11 +144,12 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
|
|||||||
]},
|
]},
|
||||||
}},
|
}},
|
||||||
"operate": {name: "运维群", storm: {
|
"operate": {name: "运维群", storm: {
|
||||||
|
"web": {name: "web", index: [
|
||||||
|
"route", "serve", "space", "dream",
|
||||||
|
"spide", "share", "cache", "story",
|
||||||
|
]},
|
||||||
"relay": {name: "relay", index: [
|
"relay": {name: "relay", index: [
|
||||||
"aaa.totp",
|
"aaa.totp",
|
||||||
"web.route",
|
|
||||||
"web.space",
|
|
||||||
"web.dream",
|
|
||||||
"web.code.tmux.session",
|
"web.code.tmux.session",
|
||||||
]},
|
]},
|
||||||
"os": {name: "os", action: [
|
"os": {name: "os", action: [
|
||||||
|
@ -109,7 +109,7 @@ Volcanos("misc", {help: "工具模块", Message: function(event, can) { var msg
|
|||||||
msg[item] && (form[item] = msg[item])
|
msg[item] && (form[item] = msg[item])
|
||||||
})
|
})
|
||||||
|
|
||||||
can.misc.POST(can, msg, can.Conf("iceberg")+dataset.names.toLowerCase()+"?="+(msg._can.sup||msg._can)._name, form, function(msg) {
|
can.misc.POST(can, msg, (can.Conf("iceberg")?can.Conf("iceberg"):"/chat/")+dataset.names.toLowerCase()+"?="+(msg._can.sup||msg._can)._name, form, function(msg) {
|
||||||
typeof cb == "function" && cb(msg)
|
typeof cb == "function" && cb(msg)
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
|
@ -187,13 +187,13 @@ fieldset>div.output div.project div.list {
|
|||||||
fieldset.input {
|
fieldset.input {
|
||||||
background-color:#30a7a93d;
|
background-color:#30a7a93d;
|
||||||
position:fixed;
|
position:fixed;
|
||||||
z-index:100;
|
z-index:50;
|
||||||
}
|
}
|
||||||
fieldset.input.key {
|
fieldset.input.key {
|
||||||
z-index:90;
|
z-index:60;
|
||||||
}
|
}
|
||||||
fieldset.input.date {
|
fieldset.input.date {
|
||||||
z-index:80;
|
z-index:70;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.carte {
|
div.carte {
|
||||||
@ -215,7 +215,7 @@ div.upload {
|
|||||||
background:black; color:yellow;
|
background:black; color:yellow;
|
||||||
position:fixed;
|
position:fixed;
|
||||||
padding:5px;
|
padding:5px;
|
||||||
z-index:100;
|
z-index:50;
|
||||||
}
|
}
|
||||||
div.upload div.item {
|
div.upload div.item {
|
||||||
float:left;
|
float:left;
|
||||||
@ -225,7 +225,7 @@ div.toast {
|
|||||||
background:#0e3369b3; color:yellow;
|
background:#0e3369b3; color:yellow;
|
||||||
position:fixed;
|
position:fixed;
|
||||||
padding:5px;
|
padding:5px;
|
||||||
z-index:100;
|
z-index:20;
|
||||||
}
|
}
|
||||||
div.toast div.title {
|
div.toast div.title {
|
||||||
font-size:14px;
|
font-size:14px;
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<head>
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=0.8,user-scalable=no">
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>volcanos</title>
|
|
||||||
|
|
||||||
<link rel="shortcut icon" type="image/ico" href="favicon.ico">
|
|
||||||
<link rel="stylesheet" type="text/css" href="/page/cache.css">
|
|
||||||
<link rel="stylesheet" type="text/css" href="/page/index.css">
|
|
||||||
<link rel="stylesheet" type="text/css" href="/page/print.css" media="print"/>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<script src="/proto.js"></script>
|
|
||||||
<script src="/page/cache.js"></script>
|
|
||||||
<script src="/page/index.js"></script>
|
|
||||||
</body>
|
|
||||||
|
|
@ -30,6 +30,12 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
|||||||
}
|
}
|
||||||
}, target)
|
}, target)
|
||||||
},
|
},
|
||||||
|
_share: function(can, msg, share, cb) {
|
||||||
|
can.user.title(msg.Option("title"))
|
||||||
|
can.user.topic(can, can.user.Search(can, "topic")||msg.Option("topic")||"white print")
|
||||||
|
can.Conf(RIVER, "_share"), can.Conf(STORM, share)
|
||||||
|
can.onimport._init(can, msg, [], cb, can._output)
|
||||||
|
},
|
||||||
})
|
})
|
||||||
Volcanos("onengine", {help: "解析引擎", list: [],
|
Volcanos("onengine", {help: "解析引擎", list: [],
|
||||||
engine: function(event, can, msg, pane, cmds, cb) {
|
engine: function(event, can, msg, pane, cmds, cb) {
|
||||||
@ -55,10 +61,13 @@ Volcanos("onengine", {help: "解析引擎", list: [],
|
|||||||
Volcanos("onaction", {help: "交互操作", list: [], _init: function(can, msg, list, cb, target) {
|
Volcanos("onaction", {help: "交互操作", list: [], _init: function(can, msg, list, cb, target) {
|
||||||
var share = can.user.Search(can, "share"); if (share) {
|
var share = can.user.Search(can, "share"); if (share) {
|
||||||
can.run({}, ["_share", share], function(msg) {
|
can.run({}, ["_share", share], function(msg) {
|
||||||
can.user.title(msg.Option("title"))
|
if (msg.append && msg[msg.append[0]]) {
|
||||||
can.user.topic(can, can.user.Search(can, "topic")||msg.Option("topic")||"white print")
|
can.onimport._share(can, msg, share, cb)
|
||||||
can.Conf(RIVER, "_share"), can.Conf(STORM, share)
|
return
|
||||||
can.onimport._init(can, msg, [], cb, can._output)
|
}
|
||||||
|
can.onengine.engine({}, can, msg, can, [msg.Option("sess.river"), msg.Option("sess.storm")], function(msg) {
|
||||||
|
can.onimport._share(can, msg, share, cb)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, list, cb, target) {
|
Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, list, cb, target) {
|
||||||
can.require(["/plugin/github.com/Tencent/vConsole/dist/vconsole.min.js"], function(can) {
|
can.require(["/require/github.com/Tencent/vConsole/dist/vconsole.min.js"], function(can) {
|
||||||
var v = new VConsole();
|
var v = new VConsole();
|
||||||
console.log(v);
|
console.log(v);
|
||||||
})
|
})
|
||||||
|
@ -11,7 +11,7 @@ Volcanos("onfigure", {help: "控件详情", list: [],
|
|||||||
china_chart.on('click', function (params) {
|
china_chart.on('click', function (params) {
|
||||||
target.value = params.name;
|
target.value = params.name;
|
||||||
});
|
});
|
||||||
// , ["plugin/github.com/shylinux/echarts/echarts.js","plugin/github.com/shylinux/echarts/china.js"])
|
// , ["require/github.com/shylinux/echarts/echarts.js","require/github.com/shylinux/echarts/china.js"])
|
||||||
}},
|
}},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@ Volcanos("onimport", {help: "导入数据", list: [],
|
|||||||
}
|
}
|
||||||
|
|
||||||
// can.page.Append(can, action, [{type: "script", src: "https://cdn.bootcss.com/echarts/4.2.0-rc.2/echarts.js"}]);
|
// can.page.Append(can, action, [{type: "script", src: "https://cdn.bootcss.com/echarts/4.2.0-rc.2/echarts.js"}]);
|
||||||
can.page.Append(can, output, [{include: ["plugin/github.com/shylinux/echarts/echarts.js", function(event) {
|
can.page.Append(can, output, [{include: ["require/github.com/shylinux/echarts/echarts.js", function(event) {
|
||||||
can.page.Append(can, output, [{include: ["plugin/github.com/shylinux/echarts/china.js", function(event) {
|
can.page.Append(can, output, [{include: ["require/github.com/shylinux/echarts/china.js", function(event) {
|
||||||
var china_chart = echarts.init(can.page.Append(can, output, [{type: "div", style: {width: "600px", height: "400px"}}]).last);
|
var china_chart = echarts.init(can.page.Append(can, output, [{type: "div", style: {width: "600px", height: "400px"}}]).last);
|
||||||
var data = msg.Table()
|
var data = msg.Table()
|
||||||
|
|
||||||
|
@ -44,6 +44,10 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, conf,
|
|||||||
|
|
||||||
can.onappend._init(can, value, ["/plugin/state.js"], function(sub) {
|
can.onappend._init(can, value, ["/plugin/state.js"], function(sub) {
|
||||||
sub.run = function(event, cmds, cb, silent) {
|
sub.run = function(event, cmds, cb, silent) {
|
||||||
|
var res = can.request(event)
|
||||||
|
can.core.Item(can.Option(), function(key, value) {
|
||||||
|
res.Option(key) || res.Option(key, value)
|
||||||
|
})
|
||||||
can.run(event, (msg["_prefix"]||[]).concat(cmds), cb, true)
|
can.run(event, (msg["_prefix"]||[]).concat(cmds), cb, true)
|
||||||
}
|
}
|
||||||
}, can._output)
|
}, can._output)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user