From 23407ebd504927c93d2107216698ff502cea211d Mon Sep 17 00:00:00 2001 From: shy Date: Thu, 12 Oct 2023 11:53:35 +0800 Subject: [PATCH] add some --- const.js | 2 +- frame.js | 4 +++- index.css | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/const.js b/const.js index 8a0bc678..26d61388 100644 --- a/const.js +++ b/const.js @@ -68,7 +68,7 @@ var mdb = {FOREACH: "*", RANDOMS: "%", QS: ice.QS, AT: ice.AT, EQ: ice.EQ, FS: ice.FS, } -var web = {CHAT: "chat", PORTAL: "portal", STUDIO: "studio", +var web = {CHAT: "chat", PORTAL: "portal", STUDIO: "studio", SERVICE: "service", SPIDE: "spide", SPACE: "space", ROUTE: "route", DREAM: "dream", SHARE: "share", COUNT: "count", WORKER: "worker", SERVER: "server", GATEWAY: "gateway", diff --git a/frame.js b/frame.js index 90a52c58..032c1d15 100644 --- a/frame.js +++ b/frame.js @@ -264,7 +264,9 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) { }, field: function(can, type, item, target) { type = type||html.STORY, item = item||{} - var name = can.core.Split(item.nick||item.name||"").pop()||""; can.base.isIn(name, tcp.SERVER, tcp.CLIENT, web.STUDIO, mdb.SEARCH) && (name = (item.index||"").split(".").slice(-2).join(".")), name = can.core.Keys(item.space, name) + 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(".")), name = can.core.Keys(item.space, name) var title = 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], list: [{type: html.LEGEND, list: [item.icon && {icon: item.icon}, {text: title}]}, {view: [html.OPTION, html.FORM]}, html.ACTION, html.OUTPUT, html.STATUS]}]) diff --git a/index.css b/index.css index f0852b4d..a9a19099 100644 --- a/index.css +++ b/index.css @@ -523,7 +523,8 @@ fieldset.studio>div.output>fieldset>form.option div.icon:nth-child(2) { margin-l fieldset.studio>div.output>fieldset>div.output>table.content { width:100%; } fieldset.studio>div.output>fieldset:not(.select) { display:none; } body>div.input.vimer.plug td:first-child { display:none; } -body.web.wiki.portal { background-color:rgb(22 31 49); } +body.cmd.web.wiki.portal { background-color:rgb(22 31 49); } +body.cmd.web.chat.macos.desktop { background-color:#8dbaea; } body.zh fieldset.inner>div.output>div.project>div.zone>div.item { letter-spacing:10px; border-top:var(--box-border); } body.white fieldset.inner.cmd>div.output>div.layout>div.tabs div:not(.select):not(:hover) { background-color:transparent; } body.webview fieldset.word>form.option>div.item>input[name=path] { width:160px; }