1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shylinux 2020-08-11 12:49:03 +08:00
parent 9e6fe0a8c9
commit 4ba05b3b3a
18 changed files with 19 additions and 16 deletions

View File

@ -1,6 +1,5 @@
// volcanos: 前端 火山架 我看不行 // volcanos: 前端 火山架 我看不行
// FMS: a fieldset manager system // FMS: a fieldset manager system
Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta, list, cb, target) { Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta, list, cb, target) {
can.core.Next(meta.panes, function(item, next) { can.core.Next(meta.panes, function(item, next) {
can.onappend._init(can, item, meta.libs.concat(item.list), function(pane) { pane.Conf(item) can.onappend._init(can, item, meta.libs.concat(item.list), function(pane) { pane.Conf(item)
@ -75,6 +74,7 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
delete(msg._event), delete(msg._can) delete(msg._event), delete(msg._can)
Volcanos.meta.pack[pane._name+","+cmds.join(",")] = msg Volcanos.meta.pack[pane._name+","+cmds.join(",")] = msg
typeof cb == "function" && cb(msg) typeof cb == "function" && cb(msg)
delete(msg.sessid)
}) })
}, },
engine: function(event, can, msg, pane, cmds, cb) { if (!can.onengine) { return false } engine: function(event, can, msg, pane, cmds, cb) { if (!can.onengine) { return false }
@ -194,6 +194,7 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
{name: "HTML5", help: "浏览器", index: "web.wiki.word", args: ["usr/icebergs/misc/chrome/chrome.shy"]}, {name: "HTML5", help: "浏览器", index: "web.wiki.word", args: ["usr/icebergs/misc/chrome/chrome.shy"]},
]}, ]},
"linux": {name: "linux", action: [ "linux": {name: "linux", action: [
{name: "ES", help: "搜索", index: "web.wiki.word", args: ["usr/learning/自然/编程/es.shy"]},
{name: "linux", help: "系统", index: "web.wiki.word", args: ["usr/linux-story/src/main.shy"]}, {name: "linux", help: "系统", index: "web.wiki.word", args: ["usr/linux-story/src/main.shy"]},
]}, ]},
"nginx": {name: "nginx", action: [ "nginx": {name: "nginx", action: [
@ -329,7 +330,7 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta,
break break
case "返回": case "返回":
can._history.pop(); var his = can._history.pop(); if (his) { can._history.pop(); var his = can._history.pop(); if (his) {
can.page.Select(can, option, "input.args", function(item, index) { can.page.Select(can, can._option, "input.args", function(item, index) {
item.value = his[index] || "" item.value = his[index] || ""
}) })
} }

View File

@ -10,7 +10,6 @@
<body> <body>
<script src="proto.js"></script> <script src="proto.js"></script>
<script src="cache.js"></script> <script src="cache.js"></script>
<script src="cache_data.js"></script>
<script src="index.js"></script> <script src="index.js"></script>
</body> </body>

View File

@ -1,3 +1,4 @@
_can_name = ""
Volcanos({name: "chat", volcano: "/frame.js", iceberg: "/chat/", intshell: "plug.sh", Volcanos({name: "chat", volcano: "/frame.js", iceberg: "/chat/", intshell: "plug.sh",
libs: ["/lib/base.js", "/lib/core.js", "/lib/misc.js", "/lib/page.js", "/lib/user.js"], panes: [ libs: ["/lib/base.js", "/lib/core.js", "/lib/misc.js", "/lib/page.js", "/lib/user.js"], panes: [
{name: "Header", help: "标题栏", pos: "head", state: ["time", "username"]}, {name: "Header", help: "标题栏", pos: "head", state: ["time", "username"]},

View File

@ -142,3 +142,4 @@ var core = Volcanos("core", {help: "核心模块",
return obj === other return obj === other
} }
}) })

View File

@ -33,6 +33,7 @@ Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, msg,
delete(msg._event), delete(msg._can) delete(msg._event), delete(msg._can)
}) })
var toast = can.user.toast(can, "打包中...", "webpack", 1000000) var toast = can.user.toast(can, "打包中...", "webpack", 1000000)
msg.Option("name", "demo")
msg.Option("content", JSON.stringify(Volcanos.meta.pack)) msg.Option("content", JSON.stringify(Volcanos.meta.pack))
can.run(event, ["pack"], function(msg) { can.run(event, ["pack"], function(msg) {
toast.Close(), can.user.toast(can, "打包成功", "webpack") toast.Close(), can.user.toast(can, "打包成功", "webpack")
@ -121,3 +122,4 @@ Volcanos("onexport", {help: "导出数据", list: [], _init: function(can, msg,
target.innerHTML = list[(new Date()).getDay()]+" "+can.base.Time().split(" ")[1] target.innerHTML = list[(new Date()).getDay()]+" "+can.base.Time().split(" ")[1]
}, },
}) })

View File

@ -119,4 +119,3 @@ Volcanos("onexport", {help: "导出数据", list: ["count", "index", "value"], _
}, },
}) })

View File

@ -65,3 +65,4 @@ Volcanos("onaction", {help: "控件交互", list: [],
} }
}, },
}) })

View File

@ -79,3 +79,4 @@ Volcanos("onfigure", {help: "控件详情", list: [], _merge: function(can, sub)
}; set(show(now)); }; set(show(now));
}}, }},
}, ["/plugin/input/date.css"]) }, ["/plugin/input/date.css"])

View File

@ -22,3 +22,4 @@ Volcanos("onfigure", {help: "控件详情", list: [],
run() run()
}}, }},
}) })

View File

@ -11,8 +11,7 @@ Volcanos("onfigure", {help: "控件详情", list: [],
china_chart.on('click', function (params) { china_chart.on('click', function (params) {
target.value = params.name; target.value = params.name;
}); });
// , ["plugin/github.com/shylinux/echarts/echarts.js","plugin/github.com/shylinux/echarts/china.js"])
}}, }},
}, [ })
// "plugin/github.com/shylinux/echarts/echarts.js",
// "plugin/github.com/shylinux/echarts/china.js",
])

View File

@ -36,3 +36,4 @@ Volcanos("onfigure", {help: "控件详情", list: [],
}) })
}}, }},
}) })

View File

@ -242,3 +242,4 @@ Volcanos("onkeymap", {help: "键盘交互", list: ["command", "normal", "insert"
return target return target
}, },
}) })

View File

@ -95,3 +95,4 @@ Volcanos("onexport", {help: "导出数据", list: ["total", "begin", "limit", "p
return parseInt((index+1)*100/total)+"%"+" = "+(parseInt(index)+1)+"/"+parseInt(total) return parseInt((index+1)*100/total)+"%"+" = "+(parseInt(index)+1)+"/"+parseInt(total)
}, },
}) })

View File

@ -147,9 +147,4 @@ Volcanos("onimport", {help: "导入数据", list: [],
}) })
}, },
}) })
Volcanos("onaction", {help: "组件交互", list: []})
Volcanos("onchoice", {help: "组件菜单", list: []})
Volcanos("ondetail", {help: "组件详情", list: []})
Volcanos("onexport", {help: "导出数据", list: []})

View File

@ -273,3 +273,4 @@ Volcanos("onaction", {help: "控件交互", list: ["演示"],
})}, ] }]) })}, ] }])
}, },
}) })

View File

@ -20,4 +20,3 @@ Volcanos("ondetail", {help: "控件交互", list: ["编辑", "删除"],
}, },
}) })

View File

@ -3,3 +3,4 @@ Volcanos("onimport", {help: "导入数据", list: [],
}, },
}) })

View File

@ -188,6 +188,5 @@ Volcanos("onaction", {help: "组件菜单", list: ["编辑", "清空", ["view",
can.onappend.table(can, can.ui.display, "table", can._msg) can.onappend.table(can, can.ui.display, "table", can._msg)
}, },
}) })
Volcanos("onchoice", {help: "组件交互", list: []})
Volcanos("ondetail", {help: "组件详情", list: []})
Volcanos("onexport", {help: "导出数据", list: ["from", "commit", "total", "date", "begin", "add", "del", "close", "note"]}) Volcanos("onexport", {help: "导出数据", list: ["from", "commit", "total", "date", "begin", "add", "del", "close", "note"]})