mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 09:14:06 +08:00
opt some
This commit is contained in:
parent
f16f7b7ae1
commit
a8b5196597
25
frame.js
25
frame.js
@ -124,12 +124,14 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
|
|||||||
]},
|
]},
|
||||||
}},
|
}},
|
||||||
"product": {name: "产品群", storm: {
|
"product": {name: "产品群", storm: {
|
||||||
"office": {name: "办公 office", index: [
|
"office": {name: "办公 office", action: [
|
||||||
"web.wiki.feel",
|
{name: "feel", help: "影音", index: "web.wiki.feel"},
|
||||||
"web.wiki.draw",
|
{name: "draw", help: "绘图", index: "web.wiki.draw"},
|
||||||
"web.wiki.data",
|
{name: "data", help: "数据", index: "web.wiki.data"},
|
||||||
"web.team.plan",
|
{name: "plan", help: "计划", index: "web.team.plan"},
|
||||||
"web.wiki.word",
|
{name: "think", help: "智库", index: "web.wiki.word", args: ["usr/learning/"]},
|
||||||
|
{name: "index", help: "索引", index: "web.wiki.word", args: ["usr/learning/index.shy"]},
|
||||||
|
{name: "context", help: "编程", index: "web.wiki.word", args: ["usr/learning/自然/编程/context.shy"]},
|
||||||
]},
|
]},
|
||||||
"english": {name: "英汉 english", action: [
|
"english": {name: "英汉 english", action: [
|
||||||
{name: "english", help: "英汉", index: "web.wiki.alpha.alpha", args: ["word", "hi"]},
|
{name: "english", help: "英汉", index: "web.wiki.alpha.alpha", args: ["word", "hi"]},
|
||||||
@ -195,19 +197,12 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
|
|||||||
"mysql": {name: "数据 mysql", action: [
|
"mysql": {name: "数据 mysql", action: [
|
||||||
{name: "mysql", help: "数据存储", index: "web.wiki.word", args: ["usr/mysql-story/src/main.shy"]},
|
{name: "mysql", help: "数据存储", index: "web.wiki.word", args: ["usr/mysql-story/src/main.shy"]},
|
||||||
]},
|
]},
|
||||||
"context": {name: "环境 context", action: [
|
|
||||||
{name: "think", help: "智库", index: "web.wiki.word", args: ["usr/learning/"]},
|
|
||||||
{name: "index", help: "索引", index: "web.wiki.word", args: ["usr/learning/index.shy"]},
|
|
||||||
{name: "context", help: "编程", index: "web.wiki.word", args: ["usr/learning/自然/编程/context.shy"]},
|
|
||||||
]},
|
|
||||||
}},
|
}},
|
||||||
"profile": {name: "测试群", storm: {
|
"profile": {name: "测试群", storm: {
|
||||||
"pprof": {name: "pprof", index: [
|
"pprof": {name: "pprof", index: [
|
||||||
"web.code.pprof",
|
|
||||||
"web.code.bench",
|
"web.code.bench",
|
||||||
"web.favor",
|
"web.code.pprof",
|
||||||
"web.cache",
|
"web.code.favor",
|
||||||
"web.share",
|
|
||||||
]},
|
]},
|
||||||
}},
|
}},
|
||||||
"operate": {name: "运维群", storm: {
|
"operate": {name: "运维群", storm: {
|
||||||
|
@ -171,6 +171,9 @@ Volcanos("onaction", {help: "控件交互", list: [],
|
|||||||
}, onclick: function(event) {
|
}, onclick: function(event) {
|
||||||
can.onkeymap && can.onkeymap._mode(can, "insert")
|
can.onkeymap && can.onkeymap._mode(can, "insert")
|
||||||
can.onaction.selectLine(can, ui.tr)
|
can.onaction.selectLine(can, ui.tr)
|
||||||
|
can.onkeymap && can.ui.editor.focus()
|
||||||
|
// can.ui.editor.setSelectionRange(0, 0)
|
||||||
|
// can.ui.editor.setSelectionRange(event.offsetX/10, event.offsetX/10)
|
||||||
|
|
||||||
}, ondblclick: function(event) {
|
}, ondblclick: function(event) {
|
||||||
var str = ui.text.innerText
|
var str = ui.text.innerText
|
||||||
|
@ -300,10 +300,6 @@ Volcanos("onkeymap", {help: "键盘交互", list: ["command", "normal", "insert"
|
|||||||
height: item.offsetHeight, width: item.offsetWidth,
|
height: item.offsetHeight, width: item.offsetWidth,
|
||||||
left: item.offsetLeft, top: item.offsetTop + can.ui.profile.offsetHeight-100,
|
left: item.offsetLeft, top: item.offsetTop + can.ui.profile.offsetHeight-100,
|
||||||
}})
|
}})
|
||||||
|
|
||||||
can.ui.editor.focus()
|
|
||||||
// can.ui.editor.setSelectionRange(0, 0)
|
|
||||||
// can.ui.editor.setSelectionRange(event.offsetX/10, event.offsetX/10)
|
|
||||||
},
|
},
|
||||||
insertLine: function(can, value, before) {
|
insertLine: function(can, value, before) {
|
||||||
var line = can.onaction.appendLine(can, value)
|
var line = can.onaction.appendLine(can, value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user