mirror of
https://shylinux.com/x/volcanos
synced 2025-07-02 04:21:19 +08:00
add some
This commit is contained in:
parent
cb0d850d86
commit
760fd56d05
1
frame.js
1
frame.js
@ -154,6 +154,7 @@ Volcanos(chat.ONAPPEND, {
|
|||||||
var action = can.page.SelectOne(can, field, html.DIV_ACTION)
|
var action = can.page.SelectOne(can, field, html.DIV_ACTION)
|
||||||
var output = can.page.SelectOne(can, field, html.DIV_OUTPUT)
|
var output = can.page.SelectOne(can, field, html.DIV_OUTPUT)
|
||||||
var status = can.page.SelectOne(can, field, html.DIV_STATUS)
|
var status = can.page.SelectOne(can, field, html.DIV_STATUS)
|
||||||
|
if (meta.index == "web.chat.wx.agent") { can.onmotion.hidden(can, field) }
|
||||||
can.isCmdMode() && meta.index && meta.index.indexOf("can.") != 0 && can.page.style(can, field, "visibility", "hidden")
|
can.isCmdMode() && meta.index && meta.index.indexOf("can.") != 0 && can.page.style(can, field, "visibility", "hidden")
|
||||||
can.isCmdMode() && meta.index && meta.index.indexOf("can.") != 0 && can.page.style(can, output, "visibility", "hidden")
|
can.isCmdMode() && meta.index && meta.index.indexOf("can.") != 0 && can.page.style(can, output, "visibility", "hidden")
|
||||||
can.isCmdMode() && meta.style != "float" && (can.base.isIn(meta.index, web.WIKI_PORTAL)) && can.onappend.style(can, html.OUTPUT, field)
|
can.isCmdMode() && meta.style != "float" && (can.base.isIn(meta.index, web.WIKI_PORTAL)) && can.onappend.style(can, html.OUTPUT, field)
|
||||||
|
@ -878,7 +878,7 @@ body.mobile fieldset.Search>div.action>div.item.filter { width:100%; position:re
|
|||||||
body.mobile fieldset.River { position:fixed; top:var(--header-height); z-index:11; }
|
body.mobile fieldset.River { position:fixed; top:var(--header-height); z-index:11; }
|
||||||
body.mobile fieldset.River>div.output { font-size:1.4rem; min-width:var(--project-width); }
|
body.mobile fieldset.River>div.output { font-size:1.4rem; min-width:var(--project-width); }
|
||||||
html:not(.login) body.mobile:not(.cmd) fieldset.Action { margin-top:var(--header-height); }
|
html:not(.login) body.mobile:not(.cmd) fieldset.Action { margin-top:var(--header-height); }
|
||||||
body.mobile fieldset.Action.cmd { margin-top:0; }
|
body.mobile fieldset.Action.cmd { margin-top:0; width:100%; }
|
||||||
body.mobile fieldset.Action { overflow:hidden; }
|
body.mobile fieldset.Action { overflow:hidden; }
|
||||||
body.mobile fieldset.Action>div.output { overflow-x:hidden; }
|
body.mobile fieldset.Action>div.output { overflow-x:hidden; }
|
||||||
body.mobile fieldset.word>div.output { overflow-x:hidden; }
|
body.mobile fieldset.word>div.output { overflow-x:hidden; }
|
||||||
|
@ -46,13 +46,16 @@ Volcanos("user", {
|
|||||||
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) {
|
jumps: function(url) {
|
||||||
|
debugger
|
||||||
location.href = url
|
location.href = url
|
||||||
},
|
},
|
||||||
opens: function(url) {
|
opens: function(url) {
|
||||||
|
debugger
|
||||||
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)
|
||||||
},
|
},
|
||||||
open: function(url) { if (!url) { return }
|
open: function(url) { if (!url) { return }
|
||||||
|
debugger
|
||||||
if (location.search.indexOf("debug=true") > 0 && url.indexOf("debug=true") == -1) {
|
if (location.search.indexOf("debug=true") > 0 && url.indexOf("debug=true") == -1) {
|
||||||
var ls = url.split("#"); ls[0] += (ls[0].indexOf("?") > 0? "&": "?") + "debug=true", url = ls.join("#")
|
var ls = url.split("#"); ls[0] += (ls[0].indexOf("?") > 0? "&": "?") + "debug=true", url = ls.join("#")
|
||||||
}
|
}
|
||||||
|
@ -405,10 +405,19 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
msg.IsDetail() || can.onappend.filter(can, _action, sub._output)
|
msg.IsDetail() || can.onappend.filter(can, _action, sub._output)
|
||||||
if (can.base.endWith(sub.ConfIndex(), ".portal")) { return }
|
if (can.base.endWith(sub.ConfIndex(), ".portal")) { return }
|
||||||
msg.Option(ice.MSG_ACTION) && can.onappend._action(sub, msg.Option(ice.MSG_ACTION), _action, null, true)
|
msg.Option(ice.MSG_ACTION) && can.onappend._action(sub, msg.Option(ice.MSG_ACTION), _action, null, true)
|
||||||
|
can.user.isMobile || can.page.Append(can, _action, [{view: html.ITM, list: [
|
||||||
|
{text: can._msg.Option("user_name")},
|
||||||
|
]}])
|
||||||
}
|
}
|
||||||
sub._select = function() { can.onimport.myOption(sub)
|
sub._select = function() { can.onimport.myOption(sub)
|
||||||
can.page.SelectChild(can, _output, "*", function(target) { can.onmotion.toggle(can, target, target == sub._target) })
|
can.page.SelectChild(can, _output, "*", function(target) { can.onmotion.toggle(can, target, target == sub._target) })
|
||||||
var list = [can.page.button(can, can.user.trans(can, "goback", "返回"), function(event) { goback(event) }), can.page.button(can, can.user.trans(can, "reload", "刷新"), function(event) { reload(event) })]
|
var list = [
|
||||||
|
can.user.isMobile || can._msg.IsTech() && can.page.button(can, can.user.trans(can, sub.ConfIndex(), sub.ConfHelp()), function(event) {
|
||||||
|
sub._legend.onclick(event)
|
||||||
|
}),
|
||||||
|
can.page.button(can, can.user.trans(can, "goback", "返回"), function(event) { goback(event) }),
|
||||||
|
can.page.button(can, can.user.trans(can, "reload", "刷新"), function(event) { reload(event) }),
|
||||||
|
]
|
||||||
// var list = [can.page.button(can, can.user.trans(can, "goback", "返回"), function(event) { goback(event) })]
|
// var list = [can.page.button(can, can.user.trans(can, "goback", "返回"), function(event) { goback(event) })]
|
||||||
can.page.Appends(can, _action, list)
|
can.page.Appends(can, _action, list)
|
||||||
can.page.style(can, _action, html.DISPLAY, html.FLEX)
|
can.page.style(can, _action, html.DISPLAY, html.FLEX)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user