mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 01:04:06 +08:00
opt some
This commit is contained in:
parent
763df8c2d3
commit
c62c8e381a
3
frame.js
3
frame.js
@ -209,8 +209,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
|
|||||||
Update: can.Update, Option: can.Option, Action: can.Action, Status: can.Status,
|
Update: can.Update, Option: can.Option, Action: can.Action, Status: can.Status,
|
||||||
}, [display, chat.PLUGIN_TABLE_JS], function(sub) { sub.Conf(can.Conf())
|
}, [display, chat.PLUGIN_TABLE_JS], function(sub) { sub.Conf(can.Conf())
|
||||||
sub.run = function(event, cmds, cb, silent) {
|
sub.run = function(event, cmds, cb, silent) {
|
||||||
can.request(event).RunAction(event, sub, cmds) || can.Update(event, can.Input(cmds, !silent), cb||function(msg) {
|
can.request(event).RunAction(event, sub, cmds) || can.Update(event, can.Input(cmds, !silent), cb, silent)
|
||||||
}, silent)
|
|
||||||
}, can._outputs && can._outputs.push(sub), sub.sup = can
|
}, can._outputs && can._outputs.push(sub), sub.sup = can
|
||||||
|
|
||||||
sub._index = can._index, sub._msg = msg, sub.Conf(sub._args = can.base.ParseURL(display))
|
sub._index = can._index, sub._msg = msg, sub.Conf(sub._args = can.base.ParseURL(display))
|
||||||
|
@ -77,10 +77,10 @@ Volcanos(chat.ONSYNTAX, {
|
|||||||
},
|
},
|
||||||
regexp: {
|
regexp: {
|
||||||
"^u_\\w $": code.DATATYPE,
|
"^u_\\w $": code.DATATYPE,
|
||||||
"^\\w _t$": code.DATATYPE,
|
"^\\w+_t$": code.DATATYPE,
|
||||||
"^\\w _pt$": code.DATATYPE,
|
"^\\w+_pt$": code.DATATYPE,
|
||||||
"^[-]*\\d $": code.CONSTANT,
|
"^[-]*\\d+$": code.CONSTANT,
|
||||||
"^[A-Z0-9_] $": code.CONSTANT,
|
"^[A-Z0-9_]+$": code.CONSTANT,
|
||||||
},
|
},
|
||||||
keyword: {
|
keyword: {
|
||||||
"#include": code.KEYWORD,
|
"#include": code.KEYWORD,
|
||||||
|
@ -19,7 +19,7 @@ fieldset.word ul.story[data-type=endmenu] { clear:both; }
|
|||||||
fieldset.word p.story[data-name=inner] { background-color:#4b6c8a7a; padding:4px 10px; border-left:solid 4px blue; margin:10px 0px; }
|
fieldset.word p.story[data-name=inner] { background-color:#4b6c8a7a; padding:4px 10px; border-left:solid 4px blue; margin:10px 0px; }
|
||||||
fieldset.word p.story[data-name=inner]:hover { background-color:#c10c8a; cursor:copy; }
|
fieldset.word p.story[data-name=inner]:hover { background-color:#c10c8a; cursor:copy; }
|
||||||
fieldset.word table.content { display:block; max-height:400px; }
|
fieldset.word table.content { display:block; max-height:400px; }
|
||||||
fieldset.word fieldset.story { margin:10px; background-color:#58a4d37d; }
|
fieldset.word>div.output>fieldset.story { margin:10px; background-color:#58a4d37d; }
|
||||||
fieldset.word fieldset.story.full { margin:0px; }
|
fieldset.word fieldset.story.full { margin:0px; }
|
||||||
fieldset.word fieldset.story.float { margin:0px; }
|
fieldset.word fieldset.story.float { margin:0px; }
|
||||||
|
|
||||||
|
@ -79,9 +79,11 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can.onmotion.clear(
|
|||||||
},
|
},
|
||||||
field: function(can, meta, target, width) { var item = can.base.Obj(meta.meta)
|
field: function(can, meta, target, width) { var item = can.base.Obj(meta.meta)
|
||||||
can.onappend._init(can, item, [chat.PLUGIN_STATE_JS], function(sub) {
|
can.onappend._init(can, item, [chat.PLUGIN_STATE_JS], function(sub) {
|
||||||
sub.run = function(event, cmds, cb, silent) { var msg = can.request(event)
|
sub.run = function(event, cmds, cb, silent) { var msg = sub.request(event)
|
||||||
if (msg.Option(nfs.PATH) == can.Option(nfs.PATH)) { msg.Option(nfs.PATH, "") }
|
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.runAction(event, chat.STORY, can.misc.concat(can, [meta.type, meta.name, meta.text], cmds), cb||function(msg) {
|
||||||
|
if (msg._can == sub && can.core.CallFunc([sub, chat.ONIMPORT, ice.MSG_PROCESS], {can: sub, msg: msg})) { return }
|
||||||
|
}, true)
|
||||||
}, can._plugins = (can._plugins||[]).concat([sub])
|
}, can._plugins = (can._plugins||[]).concat([sub])
|
||||||
|
|
||||||
sub.ConfHeight(can.base.Min(300, can.ConfHeight()-300)), sub.ConfWidth(item.width = (width||can.ConfWidth())-(can.user.isWindows? 40: 20))
|
sub.ConfHeight(can.base.Min(300, can.ConfHeight()-300)), sub.ConfWidth(item.width = (width||can.ConfWidth())-(can.user.isWindows? 40: 20))
|
||||||
|
@ -70,7 +70,7 @@ Volcanos(chat.ONIMPORT, {_process: function(can, msg) {
|
|||||||
},
|
},
|
||||||
_grow: function(can, msg, _arg) { var sub = can.core.Value(can, chat._OUTPUTS_CURRENT)
|
_grow: function(can, msg, _arg) { var sub = can.core.Value(can, chat._OUTPUTS_CURRENT)
|
||||||
if (sub && sub.onimport && sub.onimport.grow) { return sub.onimport.grow(sub, msg, _arg), true }
|
if (sub && sub.onimport && sub.onimport.grow) { return sub.onimport.grow(sub, msg, _arg), true }
|
||||||
|
_arg = can.page.Color(_arg)
|
||||||
if (can.page.Select(can, can._output, html.DIV_CODE, function(div) {
|
if (can.page.Select(can, can._output, html.DIV_CODE, function(div) {
|
||||||
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) } return true
|
}).length == 0) { can.onappend.board(can, _arg) } return true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user