mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
9e6fe0a8c9
commit
4ba05b3b3a
5
frame.js
5
frame.js
@ -1,6 +1,5 @@
|
||||
// volcanos: 前端 火山架 我看不行
|
||||
// FMS: a fieldset manager system
|
||||
|
||||
Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta, list, cb, target) {
|
||||
can.core.Next(meta.panes, function(item, next) {
|
||||
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)
|
||||
Volcanos.meta.pack[pane._name+","+cmds.join(",")] = msg
|
||||
typeof cb == "function" && cb(msg)
|
||||
delete(msg.sessid)
|
||||
})
|
||||
},
|
||||
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"]},
|
||||
]},
|
||||
"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"]},
|
||||
]},
|
||||
"nginx": {name: "nginx", action: [
|
||||
@ -329,7 +330,7 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta,
|
||||
break
|
||||
case "返回":
|
||||
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] || ""
|
||||
})
|
||||
}
|
||||
|
@ -10,7 +10,6 @@
|
||||
<body>
|
||||
<script src="proto.js"></script>
|
||||
<script src="cache.js"></script>
|
||||
<script src="cache_data.js"></script>
|
||||
<script src="index.js"></script>
|
||||
</body>
|
||||
|
||||
|
1
index.js
1
index.js
@ -1,3 +1,4 @@
|
||||
_can_name = ""
|
||||
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: [
|
||||
{name: "Header", help: "标题栏", pos: "head", state: ["time", "username"]},
|
||||
|
@ -142,3 +142,4 @@ var core = Volcanos("core", {help: "核心模块",
|
||||
return obj === other
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -33,6 +33,7 @@ Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, msg,
|
||||
delete(msg._event), delete(msg._can)
|
||||
})
|
||||
var toast = can.user.toast(can, "打包中...", "webpack", 1000000)
|
||||
msg.Option("name", "demo")
|
||||
msg.Option("content", JSON.stringify(Volcanos.meta.pack))
|
||||
can.run(event, ["pack"], function(msg) {
|
||||
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]
|
||||
},
|
||||
})
|
||||
|
||||
|
@ -119,4 +119,3 @@ Volcanos("onexport", {help: "导出数据", list: ["count", "index", "value"], _
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
|
@ -65,3 +65,4 @@ Volcanos("onaction", {help: "控件交互", list: [],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
|
@ -79,3 +79,4 @@ Volcanos("onfigure", {help: "控件详情", list: [], _merge: function(can, sub)
|
||||
}; set(show(now));
|
||||
}},
|
||||
}, ["/plugin/input/date.css"])
|
||||
|
||||
|
@ -22,3 +22,4 @@ Volcanos("onfigure", {help: "控件详情", list: [],
|
||||
run()
|
||||
}},
|
||||
})
|
||||
|
||||
|
@ -11,8 +11,7 @@ Volcanos("onfigure", {help: "控件详情", list: [],
|
||||
china_chart.on('click', function (params) {
|
||||
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",
|
||||
])
|
||||
})
|
||||
|
||||
|
@ -36,3 +36,4 @@ Volcanos("onfigure", {help: "控件详情", list: [],
|
||||
})
|
||||
}},
|
||||
})
|
||||
|
||||
|
@ -242,3 +242,4 @@ Volcanos("onkeymap", {help: "键盘交互", list: ["command", "normal", "insert"
|
||||
return target
|
||||
},
|
||||
})
|
||||
|
||||
|
@ -95,3 +95,4 @@ Volcanos("onexport", {help: "导出数据", list: ["total", "begin", "limit", "p
|
||||
return parseInt((index+1)*100/total)+"%"+" = "+(parseInt(index)+1)+"/"+parseInt(total)
|
||||
},
|
||||
})
|
||||
|
||||
|
@ -147,9 +147,4 @@ Volcanos("onimport", {help: "导入数据", list: [],
|
||||
})
|
||||
},
|
||||
})
|
||||
Volcanos("onaction", {help: "组件交互", list: []})
|
||||
Volcanos("onchoice", {help: "组件菜单", list: []})
|
||||
Volcanos("ondetail", {help: "组件详情", list: []})
|
||||
Volcanos("onexport", {help: "导出数据", list: []})
|
||||
|
||||
|
||||
|
@ -273,3 +273,4 @@ Volcanos("onaction", {help: "控件交互", list: ["演示"],
|
||||
})}, ] }])
|
||||
},
|
||||
})
|
||||
|
||||
|
@ -20,4 +20,3 @@ Volcanos("ondetail", {help: "控件交互", list: ["编辑", "删除"],
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
|
@ -3,3 +3,4 @@ Volcanos("onimport", {help: "导入数据", list: [],
|
||||
|
||||
},
|
||||
})
|
||||
|
||||
|
@ -188,6 +188,5 @@ Volcanos("onaction", {help: "组件菜单", list: ["编辑", "清空", ["view",
|
||||
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"]})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user