1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-26 01:04:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-01-19 18:34:47 +08:00
parent 410c25fca9
commit 0217e10c5f
5 changed files with 16 additions and 10 deletions

View File

@ -123,6 +123,7 @@ var aaa = {
PROVINCE: "province", COUNTRY: "country", CITY: "city", PROVINCE: "province", COUNTRY: "country", CITY: "city",
LONGITUDE: "longitude", LATITUDE: "latitude", LONGITUDE: "longitude", LATITUDE: "latitude",
EMAIL: "email", SECRET: "secret", EMAIL: "email", SECRET: "secret",
IP: "ip", UA: "ua",
OFFER: "offer", OFFER: "offer",
MOBILE: "mobile", MOBILE: "mobile",

View File

@ -460,8 +460,11 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
}) })
}, title: can.user.trans(can, can.Option(key) == undefined? key: "click to detail", null, html.INPUT), _init: function(target) { }, title: can.user.trans(can, can.Option(key) == undefined? key: "click to detail", null, html.INPUT), _init: function(target) {
key == ctx.ACTION && can.onappend.mores(can, target, data, msg.IsDetail()? 10: html.TABLE_BUTTON) key == ctx.ACTION && can.onappend.mores(can, target, data, msg.IsDetail()? 10: html.TABLE_BUTTON)
var list = can.page.Select(can, target, html.INPUT, function(target) { var _icon = can.Conf("_icons."+target.name)||icon[target.name]; if (_icon && typeof _icon == code.STRING) { return target } }) var list = can.page.Select(can, target, html.INPUT, function(target) {
var _icon = can.Conf("_icons."+target.name)||icon[target.name]; if (_icon && typeof _icon == code.STRING || target.name == mdb.DELETE) { return target }
})
can.core.List(list, function(target) { can.onappend.style(can, "icons", target); var _icon = can.Conf("_icons."+target.name)||icon[target.name] can.core.List(list, function(target) { can.onappend.style(can, "icons", target); var _icon = can.Conf("_icons."+target.name)||icon[target.name]
if (target.name == mdb.DELETE) { _icon = icon.trash }
can.page.insertBefore(can, [{icon: _icon, title: can.user.trans(can, target.name), onclick: target.onclick||function(event) { can.page.insertBefore(can, [{icon: _icon, title: can.user.trans(can, target.name), onclick: target.onclick||function(event) {
can.Update(can.request(event, data, {_toast: ice.PROCESS}), [ctx.ACTION, target.name]), can.onkeymap.prevent(event) can.Update(can.request(event, data, {_toast: ice.PROCESS}), [ctx.ACTION, target.name]), can.onkeymap.prevent(event)
}}], target.nextSibling, target.parentNode) }}], target.nextSibling, target.parentNode)
@ -472,7 +475,8 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
}); table && can.onappend.style(can, chat.CONTENT, table), table && msg.IsDetail() && can.onappend.style(can, mdb.DETAIL, table) }); table && can.onappend.style(can, chat.CONTENT, table), table && msg.IsDetail() && can.onappend.style(can, mdb.DETAIL, table)
msg.append && msg.append[msg.append.length-1] == ctx.ACTION && can.onappend.style(can, ctx.ACTION, table) msg.append && msg.append[msg.append.length-1] == ctx.ACTION && can.onappend.style(can, ctx.ACTION, table)
if (msg.Option(ice.TABLE_CHECKBOX) == ice.TRUE && !msg.IsDetail()) { can.onappend.checkbox(can, table, msg), can.onappend.style(can, html.CHECKBOX, table) } if (msg.Option(ice.TABLE_CHECKBOX) == ice.TRUE && !msg.IsDetail()) { can.onappend.checkbox(can, table, msg), can.onappend.style(can, html.CHECKBOX, table) }
(can.isCmdMode() || table.offsetWidth > can.ConfWidth() / 2) && can.onappend.style(can, "full", table) // (can.isCmdMode() || table.offsetWidth > can.ConfWidth() / 2) &&
can.onappend.style(can, "full", table)
return keys && can.page.RangeTable(can, table, can.core.List(keys, function(key) { return can.page.Select(can, table, html.TH, function(th, index) { if (th.innerHTML == key) { return index } })[0] })), table return keys && can.page.RangeTable(can, table, can.core.List(keys, function(key) { return can.page.Select(can, table, html.TH, function(th, index) { if (th.innerHTML == key) { return index } })[0] })), table
}, },
board: function(can, text, target) { text && text.Result && (text = text.Result()); if (!text) { return } board: function(can, text, target) { text && text.Result && (text = text.Result()); if (!text) { return }

View File

@ -459,7 +459,7 @@ table.content td:hover { background-color:var(--td-hover-bg-color); }
table.content td.select { background-color:var(--td-hover-bg-color); } table.content td.select { background-color:var(--td-hover-bg-color); }
table.content.action tr:hover td:last-child { background-color:var(--th-bg-color); box-shadow:var(--box-shadow); } table.content.action tr:hover td:last-child { background-color:var(--th-bg-color); box-shadow:var(--box-shadow); }
table.content.detail td:first-child { text-align:center; min-width:80px; padding:var(--table-padding) 0; } table.content.detail td:first-child { text-align:center; min-width:80px; padding:var(--table-padding) 0; }
table.content.detail td { text-align:center; min-width:80px; padding:var(--table-padding) 0; } table.content.detail td { min-width:80px; padding:var(--table-padding) 0; }
table.content input { box-shadow:var(--box-shadow); } table.content input { box-shadow:var(--box-shadow); }
body.mobile table.content input { border:var(--box-border); box-shadow:var(--box-shadow); } body.mobile table.content input { border:var(--box-border); box-shadow:var(--box-shadow); }
h1:hover { background-color:var(--hover-bg-color); color:var(--hover-fg-color); } h1:hover { background-color:var(--hover-bg-color); color:var(--hover-fg-color); }
@ -581,8 +581,6 @@ fieldset.vimer>div.output>div.project div.item.modify { background-color:#008000
fieldset.vimer>div.output>div.project>div.zone.space div.item.stop { color:var(--disable-fg-color); } fieldset.vimer>div.output>div.project>div.zone.space div.item.stop { color:var(--disable-fg-color); }
fieldset.vimer>div.output>div.project>div.zone.space fieldset>div.output>div.item { height:42px; } fieldset.vimer>div.output>div.project>div.zone.space fieldset>div.output>div.item { height:42px; }
fieldset.xterm>div.action>div.tabs:only-child { display:none; } fieldset.xterm>div.action>div.tabs:only-child { display:none; }
fieldset.xterm.story>form.option>div.item.hash input { width:320px; }
body.width2 fieldset.xterm.story>form.option>div.item.hash input { width:var(--input-width); }
fieldset.cmd>div.output>fieldset.xterm.story>form.option>div.item.hash input { width:var(--plug-width); } fieldset.cmd>div.output>fieldset.xterm.story>form.option>div.item.hash input { width:var(--plug-width); }
fieldset.cmd>div.output>fieldset.iframe.story>form.option>div.item.hash input { width:var(--plug-width); } fieldset.cmd>div.output>fieldset.iframe.story>form.option>div.item.hash input { width:var(--plug-width); }
fieldset.xterm>div.layout { clear:both; } fieldset.xterm>div.layout { clear:both; }
@ -592,8 +590,6 @@ fieldset.dream>div.output.card>div.item.begin>div.title { color:var(--disable-fg
fieldset.dream>div.output.card>div.item.login { border:var(--danger-bg-color) solid 3px; } fieldset.dream>div.output.card>div.item.login { border:var(--danger-bg-color) solid 3px; }
fieldset.dream>div.output.card>div.item.server { border:var(--notice-bg-color) solid 3px; } fieldset.dream>div.output.card>div.item.server { border:var(--notice-bg-color) solid 3px; }
fieldset.dream>div.output.card>div.item.master { border:var(--danger-bg-color) solid 3px; } fieldset.dream>div.output.card>div.item.master { border:var(--danger-bg-color) solid 3px; }
fieldset.trans>form.option>div.item.text>input { width:var(--project-width); }
body.width2 fieldset.trans>form.option>div.item.text>input { width:var(--input-width); }
fieldset.trans>div.output>fieldset { margin:var(--button-margin); } fieldset.trans>div.output>fieldset { margin:var(--button-margin); }
fieldset.config form.option input[name=key] { width:var(--project-width); } fieldset.config form.option input[name=key] { width:var(--project-width); }
fieldset.qrcode>div.output div.code { padding:0; } fieldset.qrcode>div.output div.code { padding:0; }
@ -641,7 +637,12 @@ fieldset.web.chat.location>div.output .amap-toolbar { z-index:unset; }
fieldset.web.chat.location>div.output .amap-controls { z-index:unset; } fieldset.web.chat.location>div.output .amap-controls { z-index:unset; }
fieldset.web.chat.location>div.output .amap-maptypecontrol { z-index:unset; } fieldset.web.chat.location>div.output .amap-maptypecontrol { z-index:unset; }
fieldset.web.chat.location>div.output>div.layout>div.layout>div.profile { background-color:var(--plugin-bg-color); position:absolute; right:0; width:360px; z-index:9; border-left:none; } fieldset.web.chat.location>div.output>div.layout>div.layout>div.profile { background-color:var(--plugin-bg-color); position:absolute; right:0; width:360px; z-index:9; border-left:none; }
fieldset.web.chat.iframe>form.option input[name=hash] { width:var(--river-width); } body.width6 fieldset.trans>form.option>div.item.text>input { width:var(--project-width); }
body.width6 fieldset.word>form.option>div.item.text>input { width:var(--project-width); }
body.width6 fieldset.xterm.story>form.option>div.item.hash input { width:var(--form-width); }
body.width6 fieldset.iframe>form.option input[name=hash] { width:var(--form-width); }
body.width6 fieldset.desktop>div.output>div.desktop>fieldset.web.chat.iframe>form.option>div.item.hash>input { width:var(--river-width); }
body.width2 fieldset.desktop>div.output>div.desktop>fieldset>form.option>div.item:last-child { margin-right:0; }
fieldset.can.data>div.output { font-family:var(--code-font-family); font-size:var(--code-font-size); white-space:pre; } fieldset.can.data>div.output { font-family:var(--code-font-family); font-size:var(--code-font-size); white-space:pre; }
fieldset.can.data>div.output div.item:not(.hide) { display:flex; gap:5px; } fieldset.can.data>div.output div.item:not(.hide) { display:flex; gap:5px; }
fieldset.can.data>div.output div.view div.item:not(.hide) { display:block; } fieldset.can.data>div.output div.view div.item:not(.hide) { display:block; }

View File

@ -1,7 +1,7 @@
fieldset.Footer { width:100%; } fieldset.Footer { width:100%; }
fieldset.Footer>div.output { font-style:italic; height:var(--footer-height); overflow:hidden; } fieldset.Footer>div.output { font-style:italic; height:var(--footer-height); overflow:hidden; }
fieldset.Footer>div.output div.item { padding:7px; height:var(--footer-height); float:left; } fieldset.Footer>div.output div.item { padding:7px; height:var(--footer-height); float:left; }
fieldset.Footer>div.output div.title:first-child { font-weight:bold; text-align:center; width:var(--river-width); } fieldset.Footer:not(.tabview)>div.output div.title:first-child { font-weight:bold; text-align:center; width:var(--river-width); }
fieldset.Footer>div.output div.state { font-family:var(--status-font-family); float:right; line-height:18px; } fieldset.Footer>div.output div.state { font-family:var(--status-font-family); float:right; line-height:18px; }
fieldset.Footer>div.output div.state label { font-size:var(--status-font-size); } fieldset.Footer>div.output div.state label { font-size:var(--status-font-size); }
fieldset.Footer>div.output div.toast { font-family:var(--status-font-family); float:right; line-height:18px; } fieldset.Footer>div.output div.toast { font-family:var(--status-font-family); float:right; line-height:18px; }

View File

@ -70,7 +70,7 @@ Volcanos(chat.ONIMPORT, {
can.page.Append(can, div, [{text: arg}]), can._output.scrollTop = div.offsetTop, div.scrollBy(0, 10000), true can.page.Append(can, div, [{text: arg}]), can._output.scrollTop = div.offsetTop, div.scrollBy(0, 10000), true
})) { can.onappend.board(can, arg) } })) { can.onappend.board(can, arg) }
}, },
_open: function(can, msg, arg) { can.user.open(arg); if (can.ConfIndex() == "web.dream") { can.Update() } }, _open: function(can, msg, arg) { can.user.open(arg); if (can.ConfIndex() == web.DREAM) { can.Update() } },
_close: function(can, msg) { can.user.close() || history.back() }, _close: function(can, msg) { can.user.close() || history.back() },
change: function(event, can, name, value, cb, data) { return can.page.SelectArgs(can, can._option, "", function(input) { if (input.name != name || value == input.value) { return } change: function(event, can, name, value, cb, data) { return can.page.SelectArgs(can, can._option, "", function(input) { if (input.name != name || value == input.value) { return }
can.page.Select(can, input.parentNode, "span.value", function(target) { target.innerText = value }) can.page.Select(can, input.parentNode, "span.value", function(target) { target.innerText = value })