1
0
forked from x/volcanos
This commit is contained in:
shaoying 2020-08-16 19:23:51 +08:00
parent 7079f85189
commit 62a842c1c8
2 changed files with 6 additions and 6 deletions

View File

@ -169,9 +169,6 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
{name: "wubi", help: "五笔", index: "web.code.input.find", args: ["wqvb"]}, {name: "wubi", help: "五笔", index: "web.code.input.find", args: ["wqvb"]},
{name: "wubi", help: "五笔", index: "web.code.input.find", args: ["你好", "line"]}, {name: "wubi", help: "五笔", index: "web.code.input.find", args: ["你好", "line"]},
]}, ]},
"context": {name: "context", action: [
{name: "context", help: "编程", index: "web.wiki.word", args: ["usr/learning/社会/管理/context.shy"]},
]},
"learning": {name: "learning", action: [ "learning": {name: "learning", action: [
{name: "golang", help: "编程", index: "web.wiki.word", args: ["usr/golang-story/src/main.shy"]}, {name: "golang", help: "编程", index: "web.wiki.word", args: ["usr/golang-story/src/main.shy"]},
{name: "tmux", help: "粘贴", index: "web.code.tmux.text"}, {name: "tmux", help: "粘贴", index: "web.code.tmux.text"},
@ -185,14 +182,17 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
{name: "cached", help: "爬虫缓存", index: "web.code.chrome.cached", args: []}, {name: "cached", help: "爬虫缓存", index: "web.code.chrome.cached", args: []},
{name: "spided", help: "网页爬虫", index: "web.code.chrome.spided", args: location && location.protocol && location.protocol=="chrome-extension:"? ["1", "", "spide"]: ["1"]}, {name: "spided", help: "网页爬虫", index: "web.code.chrome.spided", args: location && location.protocol && location.protocol=="chrome-extension:"? ["1", "", "spide"]: ["1"]},
]}, ]},
"context": {name: "context", action: [
{name: "context", help: "编程", index: "web.wiki.word", args: ["usr/learning/社会/管理/context.shy"]},
]},
}}, }},
"project": {name: "研发群", storm: { "project": {name: "研发群", storm: {
"studio": {name: "studio", action: [ "studio": {name: "studio", action: [
{name: "vimer", help: "编辑器", index: "web.code.vimer", args: ["src/", "main.go"]}, {name: "vimer", help: "编辑器", index: "web.code.vimer", args: ["src/", "main.go"]},
{name: "paste", help: "粘贴板", index: "web.code.tmux.text"},
{name: "contexts", help: "上下文", index: "web.wiki.word", args: ["src/main.shy"]},
{name: "status", help: "代码状态", index: "web.code.git.status"}, {name: "status", help: "代码状态", index: "web.code.git.status"},
{name: "total", help: "代码统计", index: "web.code.git.total"}, {name: "total", help: "代码统计", index: "web.code.git.total"},
{name: "paste", help: "粘贴板", index: "web.code.tmux.text"},
{name: "contexts", help: "上下文", index: "web.wiki.word", args: ["src/main.shy"]},
]}, ]},
"cli": {name: "cli", action: [ "cli": {name: "cli", action: [
{name: "vim", help: "编辑器", index: "web.wiki.word", args: ["usr/icebergs/misc/vim/vim.shy"]}, {name: "vim", help: "编辑器", index: "web.wiki.word", args: ["usr/icebergs/misc/vim/vim.shy"]},

View File

@ -92,7 +92,7 @@ Volcanos("onexport", {help: "导出数据", list: [], _init: function(can, msg,
}, }], }]).input) }, }], }]).input)
var height = document.body.offsetHeight var height = document.body.offsetHeight
var ui = can.page.Append(can, can._output, can.core.List(can.user.isMobile || can.user.isExtension? ["River"]: [], function(item) { var ui = can.page.Append(can, can._output, can.core.List(can.user.isMobile || can.user.isExtension? ["River"]: ["pack"], function(item) {
return {view: "item", list: [{type: "input", data: {name: item, type: "button", value: item.toLowerCase()}, return {view: "item", list: [{type: "input", data: {name: item, type: "button", value: item.toLowerCase()},
onclick: function(event) { onclick: function(event) {
var cb = can.onaction[item]; if (typeof cb == "function") { var cb = can.onaction[item]; if (typeof cb == "function") {