forked from x/volcanos
opt some
This commit is contained in:
parent
d442e0c168
commit
b70e92c19d
@ -23,17 +23,29 @@ Volcanos(chat.ONFIGURE, {
|
||||
can.run({}, [ctx.ACTION, nfs.REPOS], function(msg) { var paths = can.db.paths
|
||||
can.core.List(paths.concat(msg.Table(function(value) { return value.path })), function(p) {
|
||||
if (can.base.beginWith(p, nfs.USR_LOCAL_WORK) || can.base.isIn(p,
|
||||
// nfs.USR_LEARNING, nfs.USR_INTSHELL,
|
||||
nfs.USR_ICONS, nfs.USR_GEOAREA, nfs.USR_NODE_MODULES,
|
||||
// nfs.USR_PROGRAM,
|
||||
nfs.USR_ICONS,
|
||||
"usr/material/",
|
||||
nfs.USR_WEBSOCKET, nfs.USR_GO_QRCODE, nfs.USR_GO_GIT
|
||||
// nfs.USR_PROGRAM,
|
||||
nfs.USR_NODE_MODULES,
|
||||
nfs.USR_WEBSOCKET,
|
||||
nfs.USR_GO_QRCODE,
|
||||
nfs.USR_GO_GIT,
|
||||
nfs.USR_GEOAREA,
|
||||
)) { return }
|
||||
if (p && paths.indexOf(p) == -1 && p[0] != nfs.PS) { paths.push(p) }
|
||||
})
|
||||
function show(target, zone, path) { can.run(can.request({}, {dir_root: path, dir_deep: true}), [nfs.PWD], function(msg) {
|
||||
var cache, list = can.core.List(msg.Table(), function(value) {
|
||||
if (path == nfs.SRC && can.base.isIn(value.path, "main.ico", "main.png", "main.jpg", "main.svg", "version.go", "binpack.go", "binpack_usr.go")) { return }
|
||||
if (path == nfs.SRC && can.base.isIn(value.path,
|
||||
"main.ico",
|
||||
"main.png",
|
||||
"main.jpg",
|
||||
"main.svg",
|
||||
"qrcode.jpg",
|
||||
"version.go",
|
||||
"binpack.go",
|
||||
"binpack_usr.go",
|
||||
)) { return }
|
||||
if (path == nfs.USR_RELEASE && can.base.isIn(value.path, "conf.go", "binpack.go")) { return }
|
||||
if (path == args[0] && args[1].indexOf(value.path) == 0) { value.expand = true }
|
||||
return value
|
||||
|
@ -2,12 +2,8 @@ fieldset.word>div.output { padding:var(--plugin-padding); }
|
||||
fieldset.word>div.output p { margin:var(--title-margin) auto; }
|
||||
fieldset.word>div.output h3 { margin-top:var(--title-margin); }
|
||||
fieldset.word>div.output h2.story[data-type=spark][data-name=title] { text-align:center; }
|
||||
fieldset.word>div.output code {
|
||||
font-style: italic;
|
||||
}
|
||||
fieldset.word>div.output ul {
|
||||
margin:20px; font-family:var(--code-font-family);
|
||||
}
|
||||
fieldset.word>div.output code { font-style: italic; }
|
||||
fieldset.word>div.output ul { margin:20px; font-family:var(--code-font-family); word-break:break-all; }
|
||||
fieldset.word>div.output ul>li:hover { background-color:var(--hover-bg-color); color:var(--hover-fg-color); cursor:pointer; }
|
||||
fieldset.word>div.output img { display:block; margin:auto; max-height:100%; max-width:100%; }
|
||||
fieldset.word>div.output div.project img { margin:unset; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user