reconstruct web interface with react.js

This commit is contained in:
OttoMao
2015-05-19 21:19:43 +08:00
parent 157e478abb
commit d765060fff
41 changed files with 1886 additions and 17045 deletions

27
web/build/detail.js Normal file
View File

@@ -0,0 +1,27 @@
define(function(require,exports,module){
var $ = require("$");
// var cbMap = {};
// function render(data,cb){
// var resultEl = $(_.template(tpl, data)),
// id = data._id;
// try{
// //if finished
// var reqRef = "r" + Math.random() + "_" + new Date().getTime();
// if(data.statusCode){
// //fetch body
// ws.reqBody(id,function(content){
// $(".J_responseBody", resultEl).html(he.encode(content.body));
// cb(resultEl);
// });
// }
// }catch(e){
// cb(resultEl);
// };
// }
module.exports = DetailPanel;
});