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-09 11:35:37 +08:00
parent e7c8114430
commit ec5d230bd9
4 changed files with 12 additions and 9 deletions

View File

@ -142,7 +142,8 @@ table.content.action td:last-child input.danger:hover { background-color:var(--h
table.content.detail td:first-child { word-break:keep-all; white-space:pre; }
table.content.detail td:first-child { text-align:center; }
table.content.detail td:first-child { position:sticky; left:0; }
table.content.detail tr:not(:hover) td:first-child { background-color:var(--plugin-bg-color); }
table.content.detail tr td:first-child { background-color:var(--plugin-bg-color); }
body:not(.mobile) table.content.detail tr:hover td:first-child { background-color:var(--hover-bg-color); }
table.content.detail td i { display:none; }
table.content.detail td { white-space:break-spaces; }
table.content.detail tr.action { background-color:var(--plugin-bg-color); position:sticky; bottom:0; }

View File

@ -85,7 +85,10 @@ Volcanos("user", {
if (can.base.isFunc(text)) { text = text.name||"" } if (list && can.base.isString(list)) { return list }
var key = can.core.Keys(zone, text)
if (text == can.Conf("index") && can.Conf("help")) { return can.Conf("help") }
return can.core.Value(list, key) || can.core.Value(can._trans, key) || can.Conf(["trans", key]) || can.Conf(["feature._trans", key]) || can.core.Value(can.user._trans, key) || text
return can.core.Value(list, key) || can.core.Value(can._trans, key) ||
can.Conf(["trans", key]) ||
can.Conf(["feature._trans", key]) || can.Conf(["feature._trans", zone, (can.ConfIndex()||"").split(".").pop(), text]) ||
can.core.Value(can.user._trans, key) || text
}, _trans: {"_week_header": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]},
time: function(can, time, fmt) {
var now = can.base.Date(time), list = can.user._trans["_week_header"]

View File

@ -80,6 +80,7 @@ Volcanos(chat.ONIMPORT, {
}, [""])
Volcanos(chat.ONFIGURE, {
png: function(can, item) { return can.onfigure.image(can, item) },
gif: function(can, item) { return can.onfigure.image(can, item) },
jpg: function(can, item) { return can.onfigure.image(can, item) },
jpeg: function(can, item) { return can.onfigure.image(can, item) },
image: function(can, item) { return {img: item._path, title: item.title, onclick: function(event) { item._target.click() }} },

View File

@ -289,7 +289,8 @@ Volcanos(chat.ONIMPORT, {
}
}
sub._stacks_root.onexport.title(sub._stacks_root, current._name, can.ConfHelp(),
can._msg.Option("_share_title")||(can._msg && can._msg.IsDetail()? can._msg.Append(html.TITLE)||can._msg.Append(mdb.NAME)||(can._msg.Append(UID)||"").slice(0, 6): "")||can.user.info.titles
can._msg.Option("_share_title")||(can._msg && can._msg.IsDetail()? can._msg.Append(html.TITLE)||can._msg.Append(mdb.NAME)||(can._msg.Append(UID)||"").slice(0, 6): "")
// ||can.user.info.titles
)
can.user.agent.init(can,
can._msg.Option("_share_content")||(can._msg && can._msg.IsDetail()? can._msg.Append(html.CONTENT)||can._msg.Append(mdb.INFO)||"": "")||current.city_name+" "+current._street,
@ -350,11 +351,8 @@ Volcanos(chat.ONIMPORT, {
}
sub.onimport._field = function(msg) { var sup = sub; can.onmotion.clear(can, sub._output)
msg.Table(function(value) { value.style = html.OUTPUT
can.onappend.plugin(can, value, function(sub) {
can.onimport.myField(can, sub)
sub.onexport.output = function(_sub, msg) {
can.onimport.myOption(sub)
}
can.onappend.plugin(can, value, function(sub) { can.onimport.myField(can, sub)
sub.onexport.output = function(_sub, msg) { can.onimport.myOption(sub) }
var run = sub.run; sub.run = function(event, cmds, cb) {
run(sub.request(event, {
city_name: current[CITY_NAME], street_name: current[STREET_NAME], place_name: current[PLACE_NAME],
@ -380,7 +378,7 @@ Volcanos(chat.ONIMPORT, {
}
sub._select = function() { can.onimport.myOption(sub)
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, "", "返回"), 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) }), can.page.button(can, can.user.trans(can, "reload", "刷新"), function(event) { reload(event) })]
can.page.Appends(can, _action, list), can.page.style(can, _action, html.DISPLAY, html.BLOCK)
can.user.isMobile && sub.onimport.size(sub, window.innerHeight-ACTION_HEIGHT, window.innerWidth, false)
}, sub._select()