From 46d4aaf0f45300ed537030affe19abda47eefb3c Mon Sep 17 00:00:00 2001 From: shy Date: Fri, 1 Nov 2024 11:41:37 +0800 Subject: [PATCH] add some --- panel/action.js | 2 +- panel/header.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/panel/action.js b/panel/action.js index 3d2168e5..9367bc02 100644 --- a/panel/action.js +++ b/panel/action.js @@ -10,7 +10,7 @@ Volcanos(chat.ONIMPORT, { can.user.info.nodetype == web.WORKER && item._command == web.VIMER && (list = [river, storm, item._command]) } can.onappend.plugin(can, item, function(sub, meta, skip) { - sub.Conf(ice.AUTO, cli.DELAY) + can.user.isMobile || sub.Conf(ice.AUTO, cli.DELAY) if (msg.detail && can.base.isIn(meta.index, "can._notfound")) { sub.Conf(ctx.INDEX, msg.detail[index+3]) } sub.run = function(event, cmds, cb) { return can.run(can.request(event, {pod: meta.pod||meta.space}), (can.base.beginWith(meta.index, "can.")? [meta.index]: [river, storm, meta.id||meta.index]).concat(cmds), cb) } sub.onexport.output = function() { msg.Length() > 1 && can.onexport.isauto(can) && can.page.style(can, sub._output, html.HEIGHT, "", html.MAX_HEIGHT, ""), can.onaction.layout(can, list[3]) } diff --git a/panel/header.js b/panel/header.js index d90ef352..f598df08 100644 --- a/panel/header.js +++ b/panel/header.js @@ -4,7 +4,10 @@ Volcanos(chat.ONIMPORT, { can.onimport._avatar(can, msg, target), can.onimport._background(can, msg, target) }, _title: function(can, msg, target) { - can.core.List(can.base.getValid(can.Conf(chat.TITLE)||msg.result, [can.user.title()||decodeURIComponent(can.misc.Search(can, ice.POD)||location.host),]), function(item) { + can.core.List(can.base.getValid(can.Conf(chat.TITLE)||msg.result, [ + // can.user.title()|| + decodeURIComponent(can.user.info.titles||can.misc.Search(can, ice.POD)||location.host) + ]), function(item) { can.page.Append(can, target, [{view: [[html.ITEM, chat.TITLE, html.FLEX]], list: [{img: can.misc.ResourceFavicon(can)}, {text: item}], title: "返回主页", onclick: function(event) { can.onaction.title(event, can) }}]) }) },