mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add cmd.js
This commit is contained in:
parent
8a079ab424
commit
4a2a7da010
21
page/cmd.html
Normal file
21
page/cmd.html
Normal file
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<link rel="apple-touch-icon-precomposed" href="/page/app.png"/>
|
||||
<link rel="apple-touch-startup-image" href="/page/splash.png"/>
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes"/>
|
||||
|
||||
<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">
|
||||
</head>
|
||||
<body>
|
||||
<script src="/proto.js"></script>
|
||||
<script src="/page/cache.js"></script>
|
||||
<script src="/page/cmd.js"></script>
|
||||
</body>
|
||||
|
||||
|
20
page/cmd.js
Normal file
20
page/cmd.js
Normal file
@ -0,0 +1,20 @@
|
||||
Volcanos({name: "chat", iceberg: "/chat/", volcano: "/frame.js",
|
||||
libs: ["/lib/base.js", "/lib/core.js", "/lib/misc.js", "/lib/page.js", "/lib/user.js"], panels: [
|
||||
{name: "cmd", help: "工作台", pos: "main"},
|
||||
], main: {name: "Header", list: []}, plugin: [
|
||||
"/plugin/state.js",
|
||||
"/plugin/input.js",
|
||||
"/plugin/table.js",
|
||||
"/plugin/input/key.js",
|
||||
"/plugin/input/date.js",
|
||||
"/plugin/story/trend.js",
|
||||
"/plugin/story/spide.js",
|
||||
"/plugin/local/code/inner.js",
|
||||
"/plugin/local/code/vimer.js",
|
||||
"/plugin/local/wiki/draw/path.js",
|
||||
"/plugin/local/wiki/draw.js",
|
||||
"/plugin/local/wiki/word.js",
|
||||
"/plugin/local/team/plan.js",
|
||||
],
|
||||
})
|
||||
|
0
panel/cmd.css
Normal file
0
panel/cmd.css
Normal file
14
panel/cmd.js
Normal file
14
panel/cmd.js
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
Volcanos("onaction", {help: "交互操作", list: [], _init: function(can, msg, list, cb, target) {
|
||||
console.log("what")
|
||||
can.base.isFunc(cb) && cb()
|
||||
},
|
||||
onmain: function(can, msg) {
|
||||
var args = location.pathname.split("/").slice(1)
|
||||
can.onappend.plugin(can, {index: args[2], args: args.slice(3), opts: can.user.Search(), width: window.innerWidth}, function(sub, meta) {
|
||||
sub.run = function(event, cmds, cb) { can.run(event, ["action", "run", args[2]].concat(cmds), cb) }
|
||||
can.onmotion.hidden(can, sub._legend)
|
||||
can.user.title(meta.name)
|
||||
})
|
||||
},
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user