1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
root 2024-11-04 10:27:16 +08:00
parent 46d4aaf0f4
commit e7c8114430
2 changed files with 7 additions and 3 deletions

View File

@ -471,7 +471,7 @@ body.width1>div.input td { padding:0; }
body.width1 div.input.float table input { width:100% !important; } body.width1 div.input.float table input { width:100% !important; }
/* display */ /* display */
fieldset:not(.Action) { position:relative; } fieldset:not(.Action) { position:relative; }
fieldset>form.option:not(.hide) { float:left; } fieldset>form.option:not(.hide) { float:left; display:contents; }
fieldset>div.action:not(.hide):not(.flex) { display:contents; } .hide, .hidden { display:none; } fieldset>div.action:not(.hide):not(.flex) { display:contents; } .hide, .hidden { display:none; }
body:not(.mobile) fieldset:not(.Action):not(.output):not(.cmd)>div.action:not(.hide):not(.flex) { display:flex; overflow:hidden; } body:not(.mobile) fieldset:not(.Action):not(.output):not(.cmd)>div.action:not(.hide):not(.flex) { display:flex; overflow:hidden; }
fieldset.panel>legend, fieldset.panel>div.status { display:none; } fieldset.panel>legend, fieldset.panel>div.status { display:none; }

View File

@ -45,7 +45,9 @@ Volcanos("user", {
confirm: function(text) { return confirm(JSON.stringify(text)) }, confirm: function(text) { return confirm(JSON.stringify(text)) },
prompt: function(tip, def, cb, silent) { (text = silent? def: prompt(tip, def||"")) != undefined && typeof cb == code.FUNCTION && cb(text); return text }, prompt: function(tip, def, cb, silent) { (text = silent? def: prompt(tip, def||"")) != undefined && typeof cb == code.FUNCTION && cb(text); return text },
reload: function(force) { (force || confirm("重新加载页面?")) && location.reload() }, reload: function(force) { (force || confirm("重新加载页面?")) && location.reload() },
jumps: function(url) { location.href = url }, jumps: function(url) {
location.href = url
},
opens: function(url) { opens: function(url) {
if (window.parent && window.parent.openurl) { return window.parent.openurl(url) } if (window.parent && window.parent.openurl) { return window.parent.openurl(url) }
window.openurl? window.openurl(url): this.open(url) window.openurl? window.openurl(url): this.open(url)
@ -362,7 +364,9 @@ Volcanos("user", {
can.user.trans(can, kit.Dict(value.name, value.help)) can.user.trans(can, kit.Dict(value.name, value.help))
if (value.type == "oauth") { hassso = true } if (value.type == "oauth") { hassso = true }
if (value.type == cli.QRCODE) { if (value.type == cli.QRCODE) {
_list.push(value.name), list[value.name] = function(target) { can.page.Modify(can, target, arg[2]) } _list.push(value.name), list[value.name] = function(target) {
can.user.isWeiXin || can.page.Modify(can, target, arg[2])
}
} else if (value.type == mdb.PLUGIN) { } else if (value.type == mdb.PLUGIN) {
_list.push(value.name), list[value.name] = function(target) { _list.push(value.name), list[value.name] = function(target) {
can.onappend.plugin(can, {space: value.space, index: value.index, args: can.core.Split(value.args), height: html.QRCODE_HEIGHT, width: 420, style: html.OUTPUT}, function(sub) { can.onappend.plugin(can, {space: value.space, index: value.index, args: can.core.Split(value.args), height: html.QRCODE_HEIGHT, width: 420, style: html.OUTPUT}, function(sub) {