mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
be00b86826
commit
28603fedec
@ -6,6 +6,7 @@ fieldset.Footer>div.output div.state { font-family:var(--status-font-family); fl
|
|||||||
fieldset.Footer>div.output div.state label { font-size:var(--status-font-size); }
|
fieldset.Footer>div.output div.state label { font-size:var(--status-font-size); }
|
||||||
fieldset.Footer>div.output div.toast { font-family:var(--status-font-family); float:right; line-height:18px; }
|
fieldset.Footer>div.output div.toast { font-family:var(--status-font-family); float:right; line-height:18px; }
|
||||||
fieldset.Footer>div.output div.cmd { padding:0; margin-left:20px; }
|
fieldset.Footer>div.output div.cmd { padding:0; margin-left:20px; }
|
||||||
|
fieldset.Footer>div.output input[type=button] { background-color:transparent; }
|
||||||
fieldset.Footer>div.output div.cmd>input[name=cmd] { padding-left:30px; }
|
fieldset.Footer>div.output div.cmd>input[name=cmd] { padding-left:30px; }
|
||||||
fieldset.Footer>div.output div.menu>div.River { display:flex; justify-content:space-around; }
|
fieldset.Footer>div.output div.menu>div.River { display:flex; justify-content:space-around; }
|
||||||
fieldset.Footer>div.output div.menu>div.River>div.item { height:var(--footer-height); display:flex; flex-direction:column; text-align:center; flex-grow:1; }
|
fieldset.Footer>div.output div.menu>div.River>div.item { height:var(--footer-height); display:flex; flex-direction:column; text-align:center; flex-grow:1; }
|
||||||
|
@ -31,7 +31,10 @@ Volcanos(chat.ONFIGURE, {
|
|||||||
web.REFRESH, function(event) { show(target, zone, path) },
|
web.REFRESH, function(event) { show(target, zone, path) },
|
||||||
mdb.CREATE, function(event, button) { can.onaction.module(event, can, nfs.MODULE) },
|
mdb.CREATE, function(event, button) { can.onaction.module(event, can, nfs.MODULE) },
|
||||||
)), zone._total(msg.Length()), can.onmotion.clear(can, target)
|
)), zone._total(msg.Length()), can.onmotion.clear(can, target)
|
||||||
var cache, list = can.core.List(msg.Table(), function(item) { if (path == args[0] && args[1].indexOf(item.path) == 0) { item.expand = true }
|
var cache, list = can.core.List(msg.Table(), function(item) {
|
||||||
|
if (path == "src/" && can.base.isIn(item.path, "main.ico", "main.svg", "version.go", "binpack.go", "binpack_usr.go")) { return }
|
||||||
|
if (path == "usr/release/" && can.base.isIn(item.path, "conf.go", "binpack.go")) { return }
|
||||||
|
if (path == args[0] && args[1].indexOf(item.path) == 0) { item.expand = true }
|
||||||
item._init = function(target) { item._remove = function() { can.page.Remove(can, target.parentNode), delete(cache[item.path]) }
|
item._init = function(target) { item._remove = function() { can.page.Remove(can, target.parentNode), delete(cache[item.path]) }
|
||||||
if (msg.result && msg.result.indexOf(item.path) > -1) { can.onmotion.delay(can, function() { can.onappend.style(can, mdb.MODIFY, target.parentNode)
|
if (msg.result && msg.result.indexOf(item.path) > -1) { can.onmotion.delay(can, function() { can.onappend.style(can, mdb.MODIFY, target.parentNode)
|
||||||
for (var _target = target.parentNode; _target != zone._target; _target = _target.parentNode) { _target.previousSibling && can.onappend.style(can, mdb.MODIFY, _target.previousSibling) }
|
for (var _target = target.parentNode; _target != zone._target; _target = _target.parentNode) { _target.previousSibling && can.onappend.style(can, mdb.MODIFY, _target.previousSibling) }
|
||||||
@ -44,10 +47,7 @@ Volcanos(chat.ONFIGURE, {
|
|||||||
can.onmotion.orderShow(can, target)
|
can.onmotion.orderShow(can, target)
|
||||||
}, true) } if (path.length == 1) { return show(target, zone, path[0]) } can.page.Remove(can, zone._action)
|
}, true) } if (path.length == 1) { return show(target, zone, path[0]) } can.page.Remove(can, zone._action)
|
||||||
can.onimport.zone(can, can.core.List(path, function(path) { return kit.Dict(mdb.NAME, path, path == args[0]? chat._INIT: chat._DELAY_INIT, function(target, zone) {
|
can.onimport.zone(can, can.core.List(path, function(path) { return kit.Dict(mdb.NAME, path, path == args[0]? chat._INIT: chat._DELAY_INIT, function(target, zone) {
|
||||||
show(target, zone, path), zone._toggle = function() {
|
show(target, zone, path), zone._toggle = function() { }
|
||||||
// can.ui.zone.source && can.ui.zone.source._layout()
|
|
||||||
// zone._layout()
|
|
||||||
}
|
|
||||||
}) }), target), can.onmotion.orderShow(can, target, html.DIV_ZONE)
|
}) }), target), can.onmotion.orderShow(can, target, html.DIV_ZONE)
|
||||||
},
|
},
|
||||||
space: function(can, target, zone) { can.onimport._zone(can, zone, web.DREAM, function(sub, msg) {
|
space: function(can, target, zone) { can.onimport._zone(can, zone, web.DREAM, function(sub, msg) {
|
||||||
|
@ -191,7 +191,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) {
|
|||||||
}}
|
}}
|
||||||
}))._target },
|
}))._target },
|
||||||
tool: function(can, list, cb, target, status) { target = target||can._output, status = status||can._status
|
tool: function(can, list, cb, target, status) { target = target||can._output, status = status||can._status
|
||||||
var height = can.base.Max(html.PLUG_HEIGHT, can.ConfHeight()-2*html.ACTION_HEIGHT, 240), width = can.base.Max(html.PLUG_WIDTH, can.ConfWidth()-(can.user.isMobile? 0: html.PROJECT_WIDTH))
|
var height = can.base.Max(html.PLUG_HEIGHT, can.ConfHeight()-3*html.ACTION_HEIGHT, 240), width = can.base.Max(html.PLUG_WIDTH, can.ConfWidth()-(can.user.isMobile? 0: html.PROJECT_WIDTH))
|
||||||
can.core.Next(list.reverse(), function(meta, next) { can.base.isString(meta) && (meta = {index: meta}), meta.mode = html.FLOAT
|
can.core.Next(list.reverse(), function(meta, next) { can.base.isString(meta) && (meta = {index: meta}), meta.mode = html.FLOAT
|
||||||
can.onimport.plug(can, meta, function(sub) {
|
can.onimport.plug(can, meta, function(sub) {
|
||||||
sub.onexport.output = function() {
|
sub.onexport.output = function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user