mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 01:04:06 +08:00
32 lines
1.1 KiB
HTML
32 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>volcanos</title>
|
|
</head>
|
|
<body>
|
|
<script src="/proto.js"></script>
|
|
<script>
|
|
Volcanos({name: "cmd", iceberg: "/chat/", volcano: "/frame.js",
|
|
libs: [
|
|
"http://localhost:9020/lib/base.js",
|
|
"http://localhost:9020/lib/core.js",
|
|
"http://localhost:9020/lib/misc.js",
|
|
"http://localhost:9020/lib/page.js",
|
|
"http://localhost:9020/lib/user.js",
|
|
"http://localhost:9020/page/index.css",
|
|
],
|
|
_init: function(can) {
|
|
can.onappend.plugin(can, {name: "system", help: "命令", inputs: [
|
|
{type: "text", name: "cmd"},
|
|
{type: "button", name: "执行"},
|
|
]}, function(sub, meta) {
|
|
sub.run = function(event, cmds, cb) {
|
|
can.run(event, [ctx.ACTION, "run", "cli.system"].concat(cmds), cb)
|
|
}
|
|
}, document.body)
|
|
},
|
|
})
|
|
</script>
|
|
</body>
|
|
|