mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
15 lines
628 B
JavaScript
15 lines
628 B
JavaScript
|
|
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)
|
|
})
|
|
},
|
|
})
|