mirror of
https://shylinux.com/x/volcanos
synced 2025-07-03 04:51:19 +08:00
add some
This commit is contained in:
parent
68f8c3b873
commit
4a81d5e87b
1
const.js
1
const.js
@ -439,6 +439,7 @@ var html = {
|
||||
|
||||
IMAGE_PNG: "image/png", VIDEO_WEBM: "video/webm",
|
||||
BACKGROUND_JPG: "usr/icons/background.jpg",
|
||||
BACKGROUND_PNG: "usr/icons/background.png",
|
||||
AVATAR_JPG: "usr/icons/avatar.jpg",
|
||||
}
|
||||
var icon = {
|
||||
|
31
frame.js
31
frame.js
@ -752,19 +752,24 @@ Volcanos(chat.ONAPPEND, {
|
||||
var height = can.base.Max(720, can.ConfHeight()); can.page.style(can, target, html.HEIGHT, height, html.WIDTH, can.ConfWidth())
|
||||
}) } else if (text.indexOf("<svg") > 0) { can.page.Select(can, code, html.SVG, function(target) {
|
||||
can.page.style(can, target, html.MIN_HEIGHT, can.ConfHeight(), html.MIN_WIDTH, can.ConfWidth())
|
||||
}) } else { can.page.Select(can, code, html.INPUT_BUTTON, function(target) {
|
||||
target.onclick = function(event) {
|
||||
if (can.page.ClassList.has(can, target, "disable")) { return } can.page.ClassList.add(can, target, "disable")
|
||||
can.Update(can.request(event, can.Option(), {_toast: target.name, _cancel: function(event) {
|
||||
can.page.ClassList.del(can, target, "disable")
|
||||
}}), [ctx.ACTION, target.name], function(msg) {
|
||||
can.page.ClassList.del(can, target, "disable")
|
||||
var sup = can._fields? can.sup: can; if (sup.onimport._process(sup, msg)) { return }
|
||||
})
|
||||
}
|
||||
var style = can.page.buttonStyle(can, target.name)
|
||||
can.onappend.style(can, style, target)
|
||||
}) } return code.scrollBy && code.scrollBy(0, 10000), code
|
||||
}) } else {
|
||||
can.page.Select(can, code, html.INPUT_BUTTON, function(target) {
|
||||
target.onclick = function(event) {
|
||||
if (can.page.ClassList.has(can, target, "disable")) { return } can.page.ClassList.add(can, target, "disable")
|
||||
can.Update(can.request(event, can.Option(), {_toast: target.name, _cancel: function(event) {
|
||||
can.page.ClassList.del(can, target, "disable")
|
||||
}}), [ctx.ACTION, target.name], function(msg) {
|
||||
can.page.ClassList.del(can, target, "disable")
|
||||
var sup = can._fields? can.sup: can; if (sup.onimport._process(sup, msg)) { return }
|
||||
})
|
||||
}
|
||||
var style = can.page.buttonStyle(can, target.name)
|
||||
can.onappend.style(can, style, target)
|
||||
})
|
||||
can.page.Select(can, code, html.A, function(target) {
|
||||
target.target = "_blank"
|
||||
})
|
||||
} return code.scrollBy && code.scrollBy(0, 10000), code
|
||||
},
|
||||
tools: function(can, msg, cb, target) { can.onimport.tool(can, can.base.Obj(msg.Option(ice.MSG_TOOLKIT))||[], cb, target) },
|
||||
style: function(can, style, target) { if (!style) { return }
|
||||
|
@ -433,7 +433,10 @@ body div.input.float tr.icon td:last-child { position:relative; }
|
||||
body div.input.float tr.icon td:last-child img:first-child { height:28px; width:28px; position:absolute; left:12px; top:12px; }
|
||||
body div.input.float tr.icon td:last-child input { padding-left:var(--action-height); }
|
||||
body div.input.float tr.icons td:last-child img { height:28px; width:28px; position:absolute; left:2px; top:2px; }
|
||||
body div.input.float tr.icons td:last-child span:not(.icon) { font-family:var(--code-font-family); position:absolute; left:33px; }
|
||||
body div.input.float tr.icons td:last-child span:not(.icon) {
|
||||
font-family:var(--code-font-family); position:absolute; left:33px;
|
||||
line-height:var(--action-height);
|
||||
}
|
||||
body div.input.float tr.icons td:last-child input { padding-left:var(--action-height); }
|
||||
body div.input.float td span.icon { margin-left:-20px; visibility:hidden; }
|
||||
body div.input.float td span.icons { margin-left:-20px; visibility:hidden; }
|
||||
@ -535,7 +538,8 @@ body:not(.mobile) input[type=button]:hover { background-color:var(--hover-bg-col
|
||||
input[type=button].danger:hover { color:var(--danger-fg-color); }
|
||||
input[type=button].notice:hover { background-color:var(--notice-bg-color); color:var(--notice-fg-color); }
|
||||
// input[type=button].danger { color:var(--danger-bg-color) !important; }
|
||||
input[type=button].notice { border:var(--box-notice); }
|
||||
input[type=button].notice { border:var(--box-notice); color:var(--notice-bg-color); }
|
||||
input[type=button].danger { border:var(--box-danger); color:var(--danger-bg-color); }
|
||||
body:not(.mobile) table.content tr:hover { background-color:var(--tr-hover-bg-color); }
|
||||
table.content tr.select { background-color:var(--tr-hover-bg-color); }
|
||||
// table.content tr.danger { background-color:var(--danger-bg-color); color:var(--danger-fg-color); }
|
||||
|
@ -201,7 +201,6 @@ Volcanos(chat.ONIMPORT, {
|
||||
can.onimport.process(can, msg, can.ui.display, height-border, width, function(sub) { can.ui.display._plugin = _msg._display = sub
|
||||
sub.onaction.close = function() { can.onmotion.hidden(can, can.ui.display), can.onimport.layout(can) }
|
||||
sub.onimport.size(sub, height-border, width, true), can.onimport.layout(can)
|
||||
// can.onmotion.delay(can, function() { can.onimport.layout(can) })
|
||||
})
|
||||
},
|
||||
process: function(can, msg, target, height, width, cb) { can.onmotion.clear(can, target)
|
||||
|
@ -25,7 +25,6 @@ Volcanos(chat.ONFIGURE, {
|
||||
if (can.base.beginWith(p, nfs.USR_LOCAL_WORK) || can.base.isIn(p,
|
||||
nfs.USR_ICONS,
|
||||
"usr/material/",
|
||||
// nfs.USR_PROGRAM,
|
||||
nfs.USR_NODE_MODULES,
|
||||
nfs.USR_WEBSOCKET,
|
||||
nfs.USR_GO_QRCODE,
|
||||
@ -37,17 +36,17 @@ Volcanos(chat.ONFIGURE, {
|
||||
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.svg",
|
||||
"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 }
|
||||
if (path == args[0] && args[1] == value.path) { value.expand = true }
|
||||
return value
|
||||
}); can.onmotion.clear(can, target), zone._total(msg.Length())
|
||||
cache = can.onimport.tree(can, list, function(event, item, target) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user