mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt git
This commit is contained in:
parent
6c9d6564c2
commit
d81a08d4ae
@ -47,6 +47,7 @@ div.output div.project div.list { margin-left:10px; }
|
||||
div.output div.project div.switch { transform: rotate(90deg) translate(1px, 0px); width:12px; float:left; }
|
||||
div.output div.project div.switch.open { transform: rotate(180deg) translate(-4px, 4px); }
|
||||
div.output div.project div.zone>div.name { background-color:steelblue; color:white; text-align:center; padding:3px; clear:both; }
|
||||
div.output div.project div.zone>div.list>div.zone>div.name { padding-left:20px; text-align:left; }
|
||||
div.output div.project div.item>div.name { padding-left:20px; }
|
||||
div.output div.project div.zone>div.action>div.item { padding:0; margin:0; float:right; clear:none; }
|
||||
div.output div.project div.zone>div.action>div.item input[type=text] { background-color:#ff000000; padding-left:10px; color:white; }
|
||||
|
@ -413,7 +413,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb, target) {
|
||||
can.onengine.plugin(can, can.onplugin)
|
||||
var paths = can.core.Split(can.Option(nfs.PATH), ice.FS); can.Option(nfs.PATH, paths[0])
|
||||
var files = can.core.Split(can.Option(nfs.FILE), ice.FS); can.Option(nfs.FILE, files[0])
|
||||
can.core.List(paths.concat(msg.modules||[], can.sup.paths||[]), function(p) { if (paths.indexOf(p) == -1) { paths.push(p) } })
|
||||
can.core.List(paths.concat(msg.modules||[], can.sup.paths||[], can.core.Split(msg.Option("repos"))), function(p) { if (paths.indexOf(p) == -1 && p[0] != ice.PS) { paths.push(p) } })
|
||||
can.sup.paths = paths
|
||||
|
||||
can.ui._content = can.ui.content, can.ui._profile_output = can.ui.profile_output
|
||||
|
@ -82,7 +82,12 @@ Volcanos(chat.ONFIGURE, {
|
||||
}, true) }
|
||||
|
||||
if (path.length == 1) { return show(target, path[0]) } can.page.Remove(can, target.previousSibling)
|
||||
can.onimport.zone(can, can.core.List(path, function(path) { return {name: path, _init: function(target) { show(target, path) }} }), target)
|
||||
can.onimport.zone(can, can.core.List(path, function(path) { return {name: path, _delay_show: function(target) {
|
||||
show(target, path)
|
||||
}, _init: function(target, zone) {
|
||||
can.onmotion.hidden(can, zone._action)
|
||||
can.onmotion.hidden(can, zone._target)
|
||||
}} }), target)
|
||||
can.sup.onexport.link = function(can) { var meta = can.Conf(), args = can.Option()
|
||||
args.cmd = meta.index||can.core.Keys(meta.ctx, meta.cmd), args.path = path.join(ice.FS), args.topic = chat.BLACK
|
||||
return can.misc.MergePodCmd(can, args, true)
|
||||
|
@ -79,7 +79,8 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can.onmotion.clear(
|
||||
},
|
||||
field: function(can, meta, target, width) { var item = can.base.Obj(meta.meta)
|
||||
can.onappend._init(can, item, [chat.PLUGIN_STATE_JS], function(sub) {
|
||||
sub.run = function(event, cmds, cb, silent) {
|
||||
sub.run = function(event, cmds, cb, silent) { var msg = can.request(event)
|
||||
if (msg.Option(nfs.PATH) == can.Option(nfs.PATH)) { msg.Option(nfs.PATH, "") }
|
||||
can.runAction(event, chat.STORY, can.misc.concat(can, [meta.type, meta.name, meta.text], cmds), cb, true)
|
||||
}, can._plugins = (can._plugins||[]).concat([sub])
|
||||
|
||||
|
@ -103,6 +103,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb, target) { can.onmotion.cl
|
||||
zone: function(can, list, target) {
|
||||
return can.page.Append(can, target, can.core.List(list, function(zone, index) { can.base.isString(zone) && (zone = {name: zone}); return zone && {view: html.ZONE+ice.SP+zone.name, list: [
|
||||
{view: html.NAME, inner: can.user.trans(can, zone.name), onclick: function() {
|
||||
if (zone._delay_show) { zone._delay_show(zone._target), delete(zone._delay_show) }
|
||||
can.onmotion.toggle(can, zone._action), can.onmotion.toggle(can, zone._target)
|
||||
}, onmouseenter: function(event) {
|
||||
zone._menu? can.user.carteRight(event, can, zone._menu.meta, zone._menu.list||can.core.Item(zone._menu.meta), function(event, button, meta) {
|
||||
|
4
proto.js
4
proto.js
@ -306,8 +306,8 @@ var Volcanos = shy({iceberg: "/chat/", volcano: "/frame.js", cache: {}, pack: {}
|
||||
can.runAction(event, cmds[1], cmds.slice(2), cb, true)
|
||||
},
|
||||
runActionCommand: function(event, index, args, cb) { can.runAction(event, ice.RUN, can.misc.concat(can, [index], args), cb, true) },
|
||||
runAction: function(event, action, args, cb, silent) {
|
||||
can.run(can.request(event, {_handle: ice.TRUE}, can.Option()), can.misc.concat(can, [ctx.ACTION].concat(action), args), cb, silent)
|
||||
runAction: function(event, action, args, cb, silent) { can.request(event, {_handle: ice.TRUE}, can.Option())
|
||||
can.run(event, can.misc.concat(can, [ctx.ACTION].concat(action), args), cb, silent)
|
||||
},
|
||||
|
||||
search: function(event, cmds, cb) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user