mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
3282bcede9
commit
2d34d204d8
@ -1,10 +1,10 @@
|
|||||||
Volcanos(chat.ONIMPORT, {
|
Volcanos(chat.ONIMPORT, {
|
||||||
_init: function(can, msg, cb) { can.page.requireModules(can, ["xterm/css/xterm.css", "xterm", "xterm-addon-fit", "xterm-addon-web-links"], function() {
|
_init: function(can, msg, cb) { can.page.requireModules(can, ["xterm/css/xterm.css", "xterm", "xterm-addon-fit", "xterm-addon-web-links"], function() {
|
||||||
if (can.Option(mdb.HASH) || can.Option("args0") || can.ConfIndex() == "can._filter") { var item = can.base.Obj(msg.TableDetail()); item.hash = item.hash||can.Option(mdb.HASH)||can.Option("args0")||"current"
|
if (can.Option(mdb.HASH) || can.Option("args0") || can.ConfIndex() == "can._filter") { var item = can.base.Obj(msg.TableDetail()); item.hash = item.hash||can.Option(mdb.HASH)||can.Option("args0")||"current"
|
||||||
cb && cb(msg), can.onimport._connect(can, item, can._output)
|
can.onimport._connect(can, item, can._output)
|
||||||
} else {
|
} else {
|
||||||
can.ui = can.onappend.layout(can), cb && cb(msg); can.onimport._project(can, msg, can.db.hash)
|
can.ui = can.onappend.layout(can), can.onimport._project(can, msg, can.db.hash)
|
||||||
}
|
} cb && cb(msg)
|
||||||
}) },
|
}) },
|
||||||
_project: function(can, msg, hash) { msg.Table(function(value) {
|
_project: function(can, msg, hash) { msg.Table(function(value) {
|
||||||
value.nick = `${value.hash}(${value.name||value.type||"ish"})`, value._select = value.hash == hash[0]
|
value.nick = `${value.hash}(${value.name||value.type||"ish"})`, value._select = value.hash == hash[0]
|
||||||
@ -14,7 +14,7 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}) },
|
}) },
|
||||||
_connect: function(can, item, target, text) {
|
_connect: function(can, item, target, text) { can.onimport.layout(can)
|
||||||
var term = new Terminal({fontSize: html.CODE_FONT_SIZE, tabStopWidth: 4, cursorBlink: true, theme: can.onimport._theme(can, item)}); term._item = item
|
var term = new Terminal({fontSize: html.CODE_FONT_SIZE, tabStopWidth: 4, cursorBlink: true, theme: can.onimport._theme(can, item)}); term._item = item
|
||||||
term.onTitleChange(function(title) { can.onexport.title(can, term, title) }), can.onexport.title(can, term, item.nick)
|
term.onTitleChange(function(title) { can.onexport.title(can, term, title) }), can.onexport.title(can, term, item.nick)
|
||||||
term.onResize(function(size) { can.onimport._resize(can, term, size) })
|
term.onResize(function(size) { can.onimport._resize(can, term, size) })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user