From e54970149079580b45c589f903f22337a6061d55 Mon Sep 17 00:00:00 2001 From: shy Date: Tue, 1 Jul 2025 18:51:07 +0800 Subject: [PATCH] add some --- panel/action.js | 2 +- panel/river.js | 3 ++- plugin/state.js | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/panel/action.js b/panel/action.js index 647aee4d..b605d25c 100644 --- a/panel/action.js +++ b/panel/action.js @@ -23,7 +23,7 @@ Volcanos(chat.ONIMPORT, { can.onmotion.select(can, can._output, html.FIELDSET_PLUGIN, sub._target) can.onmotion.select(can, can._action, html.DIV_ITEM, sub._tabs) can.onmotion.select(can, can._header_tabs, html.DIV_TABS, sub._header_tabs) - can.user.mod.isPod && can.user.title(["后台", sub.ConfHelp(), can.user.info.titles].join(" ")) + // can.user.mod.isPod && can.user.title(["后台", sub.ConfHelp(), can.user.info.titles].join(" ")) // can.onmotion.delay(can, function() { sub._header_tabs.scrollIntoViewIfNeeded() }) var layout = can.onexport.layout(can); layout == FREE || (can._output.scrollTop = sub._target.offsetTop-10) can.isCmdMode() || can.onexport.hash(can, can.Conf(chat.RIVER), can.Conf(chat.STORM), sub.ConfIndex(), layout) diff --git a/panel/river.js b/panel/river.js index 02f67a57..0551aa36 100644 --- a/panel/river.js +++ b/panel/river.js @@ -74,7 +74,8 @@ Volcanos(chat.ONACTION, {list: [mdb.CREATE, web.SHARE, web.REFRESH], }) }, action: function(event, can, river, storm) { - can.user.title([can.user.info.titles, can.ui.river_list[river].title, can.ui.storm_list[river+"."+storm].title].join(" ")) + // can.user.title([can.user.info.titles, can.user.isMobile? "": can.ui.river_list[river].title, can.ui.storm_list[river+"."+storm].title].join(" ")) + can.user.title([can.user.info.titles, can.ui.storm_list[river+"."+storm].title].join(" ")) can._scrollTop = can._output.scrollTop can.page.Select(can, can._output, [html.DIV_LIST, html.DIV_ITEM], function(target) { can.page.ClassList.del(can, target, html.SELECT) }) can.onmotion.toggle(can, can.ui.sublist[river], true) diff --git a/plugin/state.js b/plugin/state.js index 0a9c1055..e7dba370 100644 --- a/plugin/state.js +++ b/plugin/state.js @@ -382,8 +382,10 @@ Volcanos(chat.ONEXPORT, { }, title: function(can, title) { if (!can.isCmdMode()) { return } var list = []; function push(p) { p && list.indexOf(p) == -1 && list.push(p) } + push(can.user.info.titles) + // can.user.isMobile || push(can.user.info.titles) if (!can.user.isMobile) { - if (arguments.length == 2 && !can.base.isIn(can.ConfIndex(), web.PORTAL, code.VIMER, wiki.FEEL)) { push(can.user.trans(can, can.ConfIndex().split(".").pop(), can.ConfHelp())) } + if (arguments.length == 2 && !can.base.isIn(can.ConfIndex(), code.VIMER, wiki.FEEL)) { push(can.user.trans(can, can.ConfIndex().split(".").pop(), can.ConfHelp())) } } can.core.List(arguments, function(title, index) { index > 0 && push(title) }) can.user.isMobile || push(can.user.mod.isPod? can.user.info.titles||can.ConfSpace()||can.misc.Search(can, ice.POD): location.host)