diff --git a/page/share.css b/page/share.css new file mode 100644 index 00000000..112b0aa5 --- /dev/null +++ b/page/share.css @@ -0,0 +1,17 @@ +body { + background:black; + padding:0; + margin:0; +} +fieldset { + color:cyan; + padding:2px; +} +legend { + margin-left:10px; +} +div.hidden { + display:none; +} + + diff --git a/page/share.html b/page/share.html new file mode 100644 index 00000000..291c2339 --- /dev/null +++ b/page/share.html @@ -0,0 +1,15 @@ + + + + + volcanos + + + + + + + + + + diff --git a/page/share.js b/page/share.js new file mode 100644 index 00000000..1c958835 --- /dev/null +++ b/page/share.js @@ -0,0 +1,26 @@ +var Config = {name: "demo", volcano: "/frame.js", iceberg: "/chat/", intshell: "plug.sh", + libs: ["/lib/base", "/lib/core", "/lib/misc", "/lib/page", "/lib/user"], panes: [ + {type: "pane", name: "Action", help: "工作台", pos: "middle", list: ["/pane/Action.js", "/pane/Action.css"]}, + ], main: {name: "Action", engine: "remote", list: []}, + list: ["/plugin/state.js", "/plugin/input.js", "/plugin/table.js", + "/plugin/input/key", + "/plugin/input/date", + "/plugin/input/upload", + "/plugin/input/province", + ], +} + +var Preload = Config.libs; Config.panes.forEach(function(pane) { + Preload = Preload.concat(pane.list); +}); Preload = Preload.concat(Config.list) + +Volcanos(Config.name, { _target: document.body, _follow: "demo", + _head: document.head, _body: document.body, + _width: window.innerWidth, _height: window.innerHeight, +}, Preload.concat(Config.volcano), function(can) { // 程序入口 + can.onaction._init(can, can.Conf(Config), [], function(msg) { + console.log(can._root, can._name, "start", can, msg); + }, can._target) +}) + +