mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
reconstruct web interface with react.js
This commit is contained in:
27
web/build/detail.js
Normal file
27
web/build/detail.js
Normal 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;
|
||||
});
|
||||
Reference in New Issue
Block a user