mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
opt aaa
This commit is contained in:
parent
790a0e7376
commit
dc9cce0755
7
frame.js
7
frame.js
@ -254,7 +254,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
|
||||
full: !can.isCmdMode() && "切换全屏",
|
||||
open: !can.isCmdMode() && "打开链接",
|
||||
qrcode: !can.isCmdMode() && "生成链接",
|
||||
chat: can.misc.Search(can, ice.MSG_DEBUG) == ice.TRUE && "发送聊天",
|
||||
// chat: can.misc.Search(can, ice.MSG_DEBUG) == ice.TRUE && "发送聊天",
|
||||
help: can.page.ClassList.has(can, can._fields||can._target, html.PLUGIN) && can.Conf("_help") && can.Conf("_help") != "" && "查看文档",
|
||||
vimer: can.page.ClassList.has(can, can._fields||can._target, html.PLUGIN) && can.Conf("_fileline") && can.misc.Search(can, ice.MSG_DEBUG) == ice.TRUE && "查看源码",
|
||||
}, function(key, value) {
|
||||
@ -363,7 +363,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
|
||||
var name = can.core.Split(item.nick||item.name||"").pop()||""; can.base.isIn(name,
|
||||
tcp.SERVER, tcp.CLIENT, web.STUDIO, web.SERVICE, mdb.SEARCH,
|
||||
) && (name = (item.index||"").split(".").slice(-2).join(".")), (type != html.PLUG) && (name = can.core.Keys(item.space||item._space, name))
|
||||
var title = item.title || (item.help && item.help != name && !can.user.isEnglish(can)? name+"("+can.core.Split(item.help)[0]+")": name)
|
||||
var title = item.title || (can.user.isMobile? item.help: (item.help && item.help != name && !can.user.isEnglish(can)? name+"("+can.core.Split(item.help)[0]+")": name))
|
||||
target = can.base.isFunc(target)? target(): target
|
||||
return can.page.Append(can, target||can._output, [{view: [type, html.FIELDSET], style: item.style, list: [{type: html.LEGEND, list: [item.icon && {icon: item.icon}, {text: title}]}, {view: [html.OPTION, html.FORM]}, html.ACTION, html.OUTPUT, html.STATUS]}])
|
||||
},
|
||||
@ -781,8 +781,7 @@ Volcanos(chat.ONLAYOUT, {_init: function(can, target) { target = target||can._ro
|
||||
return layout
|
||||
},
|
||||
_float: function(can) { var target = can._fields||can._target, sup = can._fields? can.sup: can
|
||||
var height = can.base.Max(html.FLOAT_HEIGHT, can.page.height()-can.getHeaderHeight()-html.ACTION_HEIGHT),
|
||||
width = can.base.Max(html.FLOAT_WIDTH, can.page.width()-can.getRiverWidth())
|
||||
var height = can.base.Max(html.FLOAT_HEIGHT, can.page.height()-can.getHeaderHeight()-html.ACTION_HEIGHT), width = can.base.Max(html.FLOAT_WIDTH, can.page.width()-can.getRiverWidth())
|
||||
sup.onimport.size(sup, height, width, false), can.onappend.style(can, html.FLOAT)
|
||||
can.onmotion.resize(can, target, function(height, width) { sup.onimport.size(sup, height, width, false) }, can.getHeaderHeight(), can.getRiverWidth())
|
||||
var left = can.getRiverWidth()+html.PLUGIN_MARGIN+html.PLUGIN_PADDING+(can.user.mod.isCmd? 0: 120), top = can.page.height()/4; if (can.user.isMobile) { left = 0 }
|
||||
|
@ -529,6 +529,7 @@ div.item.button.refresh>span.icon { font-size:28px; line-height:28px; height:var
|
||||
body.windows div.item.button.refresh>span.icon { font-size:22px; line-height:30px; }
|
||||
div.item.button._space.icons { margin-left:20px; flex-grow:1; }
|
||||
div.item.button._space.icons:hover { background-color:unset; cursor:unset; }
|
||||
fieldset.inner fieldset.story div.item.button._space.icons { margin-left:0; flex-grow:1; }
|
||||
div.tabs>span { font-style:italic; }
|
||||
div.tabs>span.icon { font-size:var(--icon-font-size); font-style:normal; padding-left:var(--input-padding); visibility:hidden; }
|
||||
div.tabs.select>span.icon { visibility:visible; }
|
||||
|
@ -34,8 +34,8 @@ body:not(.width6) fieldset.Header.tabview>div.output>div.Action>div.item.dream {
|
||||
body:not(.width6) fieldset.Header.tabview>div.output>div.Action>div.item.desktop { display:none; }
|
||||
body:not(.width6) fieldset.Header>div.output>div.Action>div.item.portal { display:none; }
|
||||
body:not(.width6) fieldset.Header>div.output>div.item.language { display:none; }
|
||||
body.width2>fieldset.Header>div.output div.item:not(.usernick):not(.avatar) { padding:13.5px 5px; }
|
||||
body.width3>fieldset.Header>div.output div.item:not(.usernick):not(.avatar) { padding:13.5px 5px; }
|
||||
/* body.width2>fieldset.Header>div.output div.item:not(.usernick):not(.avatar) { padding:13.5px 5px; } */
|
||||
/* body.width3>fieldset.Header>div.output div.item:not(.usernick):not(.avatar) { padding:13.5px 5px; } */
|
||||
body.width3>fieldset.Header>div.output>div.item.time { display:none; }
|
||||
body.width3>fieldset.Header>div.output>div.item.avatar { margin-right:var(--plugin-margin); }
|
||||
body.width3>fieldset.Header>div.output div.Action>div.tabs { padding-left:0; }
|
||||
|
@ -134,7 +134,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) {
|
||||
{text: item.nick||item.name||item.zone}], title: item.title, onclick: function(event) {
|
||||
can.onmotion.select(can, target, html.DIV_ITEM, event.currentTarget)
|
||||
cb(event, event.currentTarget, event.currentTarget._list && can.onmotion.toggle(can, event.currentTarget._list))
|
||||
can.user.isMobile && oncontextmenu(event)
|
||||
// can.user.isMobile && oncontextmenu(event)
|
||||
}, oncontextmenu: oncontextmenu,
|
||||
}]); return ui._target
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user