mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
70ed2bca57
commit
13b66860da
@ -37,7 +37,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb, target) { can.onmotion.cl
|
|||||||
},
|
},
|
||||||
_tabs: function(can) { if (!can.isCmdMode()) { return can.ui.tabs = can._action }
|
_tabs: function(can) { if (!can.isCmdMode()) { return can.ui.tabs = can._action }
|
||||||
can.page.Append(can, can.ui.tabs, [{view: [[mdb.TIME, html.SELECT]], _init: function(target) {
|
can.page.Append(can, can.ui.tabs, [{view: [[mdb.TIME, html.SELECT]], _init: function(target) {
|
||||||
can.core.Timer({interval: 100}, function() { can.page.Modify(can, target, can.base.Time()) })
|
can.core.Timer({interval: 100}, function() { can.page.Modify(can, target, can.user.time(can, null, "%y-%m-%d %H:%M:%S %w")) })
|
||||||
can.onappend.figure(can, {action: "date", _hold: true}, target, function(sub, value) {})
|
can.onappend.figure(can, {action: "date", _hold: true}, target, function(sub, value) {})
|
||||||
}}])
|
}}])
|
||||||
can.page.Append(can, can.ui.tabs, [{view: [aaa.AVATAR], list: [{img: can.user.info.avatar}]}])
|
can.page.Append(can, can.ui.tabs, [{view: [aaa.AVATAR], list: [{img: can.user.info.avatar}]}])
|
||||||
@ -387,7 +387,7 @@ Volcanos(chat.ONACTION, {
|
|||||||
{type: html.BUTTON, name: nfs.REPLACE}, {type: html.BUTTON, name: cli.CLOSE},
|
{type: html.BUTTON, name: nfs.REPLACE}, {type: html.BUTTON, name: cli.CLOSE},
|
||||||
], ui.action, {_trans: {find: "查找", grep: "搜索", replace: "替换"},
|
], ui.action, {_trans: {find: "查找", grep: "搜索", replace: "替换"},
|
||||||
find: function() { find(last+1, from.value) },
|
find: function() { find(last+1, from.value) },
|
||||||
grep: function() { can.onimport.exts(can, "inner/search.js", function(sub) { sub.select(), meta.close(), sub.runAction(event, nfs.GREP, [from.value, can.Option(nfs.PATH)]) }) },
|
grep: function() { can.onimport.exts(can, "inner/search.js", function(sub) { sub.select(), meta.close(), can.onmotion.delayLong(can, function() { sub.runAction(event, nfs.GREP, [from.value, can.Option(nfs.PATH)]) }) }) },
|
||||||
replace: function() { var text = can.current.text(), line = can.onaction._getLineno(can, can.current.line)
|
replace: function() { var text = can.current.text(), line = can.onaction._getLineno(can, can.current.line)
|
||||||
can.db.undo.push(function() { can.onaction.selectLine(can, line), can.onaction.modifyLine(can, line, text) })
|
can.db.undo.push(function() { can.onaction.selectLine(can, line), can.onaction.modifyLine(can, line, text) })
|
||||||
can.current.text(text.replace(from.value, to.value)), can.current.text().indexOf(from.value) == -1 && meta.find()
|
can.current.text(text.replace(from.value, to.value)), can.current.text().indexOf(from.value) == -1 && meta.find()
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
Volcanos(chat.ONIMPORT, {list: ["main", "filter", "grep:button", "history", "last"], _init: function(can, msg) {
|
Volcanos(chat.ONIMPORT, {list: ["main", "filter", "grep:button", "history", "last"], _init: function(can, msg) {
|
||||||
|
can.misc.Debug("what")
|
||||||
can.onmotion.clear(can), can.onappend.table(can, msg)
|
can.onmotion.clear(can), can.onappend.table(can, msg)
|
||||||
can.onmotion.delay(can, function() {
|
can.onmotion.delay(can, function() {
|
||||||
can.page.Select(can, can._option, "input[name=filter]", function(target) {
|
can.page.Select(can, can._option, "input[name=filter]", function(target) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user