mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add oauth
This commit is contained in:
parent
078f9fb814
commit
48383f7139
@ -188,8 +188,8 @@ Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, cb, t
|
|||||||
can.set("River", html.HEIGHT, -1), can.set("Action", html.HEIGHT, -1)
|
can.set("River", html.HEIGHT, -1), can.set("Action", html.HEIGHT, -1)
|
||||||
},
|
},
|
||||||
config: function(event, can) {
|
config: function(event, can) {
|
||||||
can.user.input(event, can, [{name: nfs.FILE, value: "etc/local.shy"}], function(ev, button, meta, list, args) {
|
can.user.input(event, can, [{name: "scope", value: "etc/local.shy"}], function(ev, button, meta, list, args) {
|
||||||
can.run(event, [ctx.CONFIG].concat(args), function(msg) { can.user.toast(can, "配置成功") })
|
can.run(event, [ctx.CONFIG].concat(args), function(msg) { can.user.jumps(msg.Result()) })
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
webpack: function(event, can) {
|
webpack: function(event, can) {
|
||||||
|
@ -8,6 +8,8 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, conf,
|
|||||||
if (can.user.confirm(_arg)) { can.run(sub._event, [ctx.ACTION, "confirm"], function() {}, true) }
|
if (can.user.confirm(_arg)) { can.run(sub._event, [ctx.ACTION, "confirm"], function() {}, true) }
|
||||||
},
|
},
|
||||||
_location: function(can, msg) { location.href = msg._arg[0] },
|
_location: function(can, msg) { location.href = msg._arg[0] },
|
||||||
|
_replace: function(can, msg) { location.replace(msg._arg[0]) },
|
||||||
|
_history: function(can, msg) { history.back() },
|
||||||
_rewrite: function(can, msg) {
|
_rewrite: function(can, msg) {
|
||||||
for (var i = 0; i < msg._arg.length; i += 2) {
|
for (var i = 0; i < msg._arg.length; i += 2) {
|
||||||
can.Option(msg._arg[i], msg._arg[i+1])
|
can.Option(msg._arg[i], msg._arg[i+1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user