forked from x/volcanos
add some
This commit is contained in:
parent
357f865e9a
commit
23407ebd50
2
const.js
2
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",
|
||||
|
4
frame.js
4
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]}])
|
||||
|
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user