1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00

add oauth

This commit is contained in:
harveyshao 2022-04-30 15:12:59 +08:00
parent 078f9fb814
commit 48383f7139
2 changed files with 4 additions and 2 deletions

View File

@ -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)
},
config: function(event, can) {
can.user.input(event, can, [{name: nfs.FILE, value: "etc/local.shy"}], function(ev, button, meta, list, args) {
can.run(event, [ctx.CONFIG].concat(args), function(msg) { can.user.toast(can, "配置成功") })
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.jumps(msg.Result()) })
})
},
webpack: function(event, can) {

View File

@ -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) }
},
_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) {
for (var i = 0; i < msg._arg.length; i += 2) {
can.Option(msg._arg[i], msg._arg[i+1])