mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 01:04:06 +08:00
opt some
This commit is contained in:
parent
f99d6d5320
commit
24403b7292
@ -171,6 +171,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb, target) { can.onmotion.cl
|
|||||||
delete(can._cache_data[key]), delete(can.db.tabview[key])
|
delete(can._cache_data[key]), delete(can.db.tabview[key])
|
||||||
}, can.ui.tabs)
|
}, can.ui.tabs)
|
||||||
}
|
}
|
||||||
|
can.db._keylist = []
|
||||||
if (can.db.tabview[key]) { return !can._msg._tab && !can.isSimpleMode()? load(can.db.tabview[key]): show() }
|
if (can.db.tabview[key]) { return !can._msg._tab && !can.isSimpleMode()? load(can.db.tabview[key]): show() }
|
||||||
isIndex()||isSpace()? load(can.request({}, {index: file, line: line})): can.run({}, [path, file], load, true)
|
isIndex()||isSpace()? load(can.request({}, {index: file, line: line})): can.run({}, [path, file], load, true)
|
||||||
},
|
},
|
||||||
|
@ -29,7 +29,7 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
sub.onimport.size(sub, can.base.Max(height, can.page.height())-top-(can.user.isMobile&&!can.user.isLandscape()? 2*html.ACTION_HEIGHT: 0), width, true)
|
sub.onimport.size(sub, can.base.Max(height, can.page.height())-top-(can.user.isMobile&&!can.user.isLandscape()? 2*html.ACTION_HEIGHT: 0), width, true)
|
||||||
})
|
})
|
||||||
}, document.body) }) },
|
}, document.body) }) },
|
||||||
_hold: function(can, msg, arg) { arg && can.user.toast(can, arg) },
|
_hold: function(can, msg, arg) { can.user.toast(can, arg||ice.SUCCESS) },
|
||||||
_back: function(can) { can._history.pop(); for (var index = 0, his = can._history.pop(); his; his = can._history.pop()) { if (his[0] == ctx.ACTION) { continue }
|
_back: function(can) { can._history.pop(); for (var index = 0, his = can._history.pop(); his; his = can._history.pop()) { if (his[0] == ctx.ACTION) { continue }
|
||||||
can.page.SelectArgs(can, can._option, "", function(item) { item.value = his[index++]||""
|
can.page.SelectArgs(can, can._option, "", function(item) { item.value = his[index++]||""
|
||||||
can.page.Select(can, item.parentNode, "span.value", function(target) { target.innerText = target.value||"" })
|
can.page.Select(can, item.parentNode, "span.value", function(target) { target.innerText = target.value||"" })
|
||||||
@ -47,7 +47,7 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
return can.page.style(can, div, html.MAX_HEIGHT, 400), can.page.Append(can, div, [{text: arg}]), div.scrollBy(0, 10000), true
|
return can.page.style(can, div, html.MAX_HEIGHT, 400), can.page.Append(can, div, [{text: arg}]), div.scrollBy(0, 10000), true
|
||||||
}).length == 0) { can.onappend.board(can, arg) }
|
}).length == 0) { can.onappend.board(can, arg) }
|
||||||
},
|
},
|
||||||
_open: function(can, msg, arg) { return can.user.open(arg) },
|
_open: function(can, msg, arg) { return can.Update(), can.user.open(arg) },
|
||||||
size: function(can, height, width, auto, mode) { height -= can.onexport.actionHeight(can)+can.onexport.statusHeight(can)
|
size: function(can, height, width, auto, mode) { height -= can.onexport.actionHeight(can)+can.onexport.statusHeight(can)
|
||||||
auto? can.page.style(can, can._output, html.HEIGHT, "", html.WIDTH, "", html.MAX_HEIGHT, height? can.ConfHeight(height): "", html.MAX_WIDTH, can.ConfWidth(width)):
|
auto? can.page.style(can, can._output, html.HEIGHT, "", html.WIDTH, "", html.MAX_HEIGHT, height? can.ConfHeight(height): "", html.MAX_WIDTH, can.ConfWidth(width)):
|
||||||
can.page.style(can, can._output, html.HEIGHT, can.ConfHeight(height), html.WIDTH, can.ConfWidth(width), html.MAX_HEIGHT, "", html.MAX_WIDTH, "")
|
can.page.style(can, can._output, html.HEIGHT, can.ConfHeight(height), html.WIDTH, can.ConfWidth(width), html.MAX_HEIGHT, "", html.MAX_WIDTH, "")
|
||||||
|
4
proto.js
4
proto.js
@ -355,7 +355,9 @@ var Volcanos = shy({iceberg: "/chat/", volcano: "/frame.js", cache: {}, pack: {}
|
|||||||
return can.require(can._follow? libs.concat(meta.libs, meta.volcano): libs, cb), can
|
return can.require(can._follow? libs.concat(meta.libs, meta.volcano): libs, cb), can
|
||||||
})
|
})
|
||||||
try { if (typeof(window) == lang.OBJECT) { var meta = Volcanos.meta
|
try { if (typeof(window) == lang.OBJECT) { var meta = Volcanos.meta
|
||||||
if (window._verstion && window.outerWidth-window.innerWidth < 100) { meta.version = window._version }
|
if (window._version && window.outerWidth-window.innerWidth < 100) {
|
||||||
|
meta.version = window._version
|
||||||
|
}
|
||||||
meta.target = document.body, meta._height = window.innerHeight, meta._width = window.innerWidth
|
meta.target = document.body, meta._height = window.innerHeight, meta._width = window.innerWidth
|
||||||
meta._load = function(url, cb) {
|
meta._load = function(url, cb) {
|
||||||
var v = meta.version? meta.version+"&_tt="+(new Date()).getTime(): ""
|
var v = meta.version? meta.version+"&_tt="+(new Date()).getTime(): ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user