bugfix for issue #29

This commit is contained in:
OttoMao 2015-07-31 14:00:34 +08:00
parent 6975138c96
commit 13b0db906a
8 changed files with 16 additions and 12 deletions

View File

@ -1,3 +1,7 @@
31 July: AnyProxy 3.7.2:
* bugfix for issue #29
28 July: AnyProxy 3.7.1: 28 July: AnyProxy 3.7.1:
* fix a bug about deflate compression * fix a bug about deflate compression

View File

@ -98,7 +98,7 @@ function webInterface(config){
ipAddress : ipAddress || "127.0.0.1" ipAddress : ipAddress || "127.0.0.1"
}; };
if(req.url == "/"){ if( url.parse(req.url).pathname == "/"){
res.setHeader("Content-Type", "text/html"); res.setHeader("Content-Type", "text/html");
res.end(juicer(indexTpl, opt)); res.end(juicer(indexTpl, opt));
}else{ }else{

View File

@ -1,6 +1,6 @@
{ {
"name": "anyproxy", "name": "anyproxy",
"version": "3.7.1", "version": "3.7.2",
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.", "description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
"main": "proxy.js", "main": "proxy.js",
"bin": { "bin": {

View File

@ -22,7 +22,7 @@ function init(React){
React.createElement("div", null, React.createElement("div", null,
React.createElement("h4", {className: "subTitle"}, "Log Filter"), React.createElement("h4", {className: "subTitle"}, "Log Filter"),
React.createElement("div", {className: "filterSection"}, React.createElement("div", {className: "filterSection"},
React.createElement("form", {className: "uk-form"}, React.createElement("div", {className: "uk-form"},
React.createElement("input", {className: "uk-form-large", ref: "keywordInput", onChange: self.dealChange, type: "text", placeholder: "keywords or /^regExp$/", width: "300"}) React.createElement("input", {className: "uk-form-large", ref: "keywordInput", onChange: self.dealChange, type: "text", placeholder: "keywords or /^regExp$/", width: "300"})
) )
), ),

View File

@ -40,8 +40,8 @@ function util_merge(left,right){
onOpen : function(){ onOpen : function(){
eventCenter.dispatchEvent("wsOpen"); eventCenter.dispatchEvent("wsOpen");
}, },
onGetUpdate : function(content){ onGetUpdate : function(record){
eventCenter.dispatchEvent("wsGetUpdate",content); eventCenter.dispatchEvent("wsGetUpdate",record);
}, },
onError : function(e){ onError : function(e){
eventCenter.dispatchEvent("wsEnd"); eventCenter.dispatchEvent("wsEnd");

View File

@ -287,7 +287,7 @@ body, html {
margin: 50px auto 0; margin: 50px auto 0;
} }
.filterSection form{ .filterSection .uk-form{
text-align: center; text-align: center;
} }
@ -305,7 +305,7 @@ body, html {
background-size: 100% 100%; background-size: 100% 100%;
} }
.mapWrapper form{ .mapWrapper .form{
margin-top: 20px; margin-top: 20px;
} }

View File

@ -86,8 +86,8 @@
onOpen : function(){ onOpen : function(){
eventCenter.dispatchEvent("wsOpen"); eventCenter.dispatchEvent("wsOpen");
}, },
onGetUpdate : function(content){ onGetUpdate : function(record){
eventCenter.dispatchEvent("wsGetUpdate",content); eventCenter.dispatchEvent("wsGetUpdate",record);
}, },
onError : function(e){ onError : function(e){
eventCenter.dispatchEvent("wsEnd"); eventCenter.dispatchEvent("wsEnd");
@ -20402,7 +20402,7 @@
React.createElement("div", null, React.createElement("div", null,
React.createElement("h4", {className: "subTitle"}, "Log Filter"), React.createElement("h4", {className: "subTitle"}, "Log Filter"),
React.createElement("div", {className: "filterSection"}, React.createElement("div", {className: "filterSection"},
React.createElement("form", {className: "uk-form"}, React.createElement("div", {className: "uk-form"},
React.createElement("input", {className: "uk-form-large", ref: "keywordInput", onChange: self.dealChange, type: "text", placeholder: "keywords or /^regExp$/", width: "300"}) React.createElement("input", {className: "uk-form-large", ref: "keywordInput", onChange: self.dealChange, type: "text", placeholder: "keywords or /^regExp$/", width: "300"})
) )
), ),

View File

@ -22,9 +22,9 @@ function init(React){
<div> <div>
<h4 className="subTitle">Log Filter</h4> <h4 className="subTitle">Log Filter</h4>
<div className="filterSection"> <div className="filterSection">
<form className="uk-form"> <div className="uk-form">
<input className="uk-form-large" ref="keywordInput" onChange={self.dealChange} type="text" placeholder="keywords or /^regExp$/" width="300"/> <input className="uk-form-large" ref="keywordInput" onChange={self.dealChange} type="text" placeholder="keywords or /^regExp$/" width="300"/>
</form> </div>
</div> </div>
<p> <p>
<i className="uk-icon-magic"></i>&nbsp;&nbsp;type <strong>/id=\d{3}/</strong> will give you all the logs containing <strong>id=123</strong> <i className="uk-icon-magic"></i>&nbsp;&nbsp;type <strong>/id=\d{3}/</strong> will give you all the logs containing <strong>id=123</strong>