mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-24 08:41:31 +00:00
update web ui
This commit is contained in:
parent
c80acde287
commit
8b138ffe64
36
CHANGELOG
36
CHANGELOG
@ -1,73 +1,73 @@
|
||||
1 July: anyproxy 3.6.0:
|
||||
1 July: AnyProxy 3.6.0:
|
||||
|
||||
* add a filter on web ui
|
||||
|
||||
1 July: anyproxy 3.5.2:
|
||||
1 July: AnyProxy 3.5.2:
|
||||
|
||||
* optimize the row height on web ui
|
||||
|
||||
18 June: anyproxy 3.5.1:
|
||||
18 June: AnyProxy 3.5.1:
|
||||
|
||||
* print a hint when using SNI features in node <0.12
|
||||
* Ref : https://github.com/alibaba/anyproxy/issues/25
|
||||
|
||||
18 June: anyproxy 3.5.0:
|
||||
18 June: AnyProxy 3.5.0:
|
||||
|
||||
* it's a formal release of 3.4.0@beta.
|
||||
|
||||
27 Apr: anyproxy 3.4.0@beta:
|
||||
27 Apr: AnyProxy 3.4.0@beta:
|
||||
|
||||
* optimize web server and web socket interface
|
||||
|
||||
20 Apr 2015: anyproxy 3.3.1:
|
||||
20 Apr 2015: AnyProxy 3.3.1:
|
||||
|
||||
* now you can assign your own port for web gui
|
||||
|
||||
31 Mar 2015: anyproxy 3.3.0:
|
||||
31 Mar 2015: AnyProxy 3.3.0:
|
||||
|
||||
* optimize https features in windows
|
||||
* add switch to mute the console
|
||||
|
||||
20 Mar 2015: anyproxy 3.2.5:
|
||||
20 Mar 2015: AnyProxy 3.2.5:
|
||||
|
||||
* bugfix for internal https server
|
||||
|
||||
19 Mar 2015: anyproxy 3.2.4:
|
||||
19 Mar 2015: AnyProxy 3.2.4:
|
||||
|
||||
* bugfix for absolute rule path
|
||||
|
||||
23 Feb 2015: anyproxy 3.2.2:
|
||||
23 Feb 2015: AnyProxy 3.2.2:
|
||||
|
||||
* [bugfix for relative rule path](https://github.com/alibaba/anyproxy/pull/18)
|
||||
|
||||
10 Feb 2015: anyproxy 3.2.1:
|
||||
10 Feb 2015: AnyProxy 3.2.1:
|
||||
|
||||
* bugfix for 3.2.0
|
||||
|
||||
10 Feb 2015: anyproxy 3.2.0:
|
||||
10 Feb 2015: AnyProxy 3.2.0:
|
||||
|
||||
* using SNI when intercepting https requests
|
||||
|
||||
28 Jan 2015: anyproxy 3.1.2:
|
||||
28 Jan 2015: AnyProxy 3.1.2:
|
||||
|
||||
* thanks to iconv-lite, almost webpage with any charset can be correctly decoded in web interface.
|
||||
|
||||
28 Jan 2015: anyproxy 3.1.1:
|
||||
28 Jan 2015: AnyProxy 3.1.1:
|
||||
|
||||
* convert GBK to UTF8 in web interface
|
||||
|
||||
22 Jan 2015: anyproxy 3.1.0:
|
||||
22 Jan 2015: AnyProxy 3.1.0:
|
||||
|
||||
* will NOT intercept https request by default. Use ``anyproxy --intercept`` to turn on this feature.
|
||||
|
||||
12 Jan 2015: anyproxy 3.0.4:
|
||||
12 Jan 2015: AnyProxy 3.0.4:
|
||||
|
||||
* show anyproxy version by --version
|
||||
|
||||
12 Jan 2015: anyproxy 3.0.3:
|
||||
12 Jan 2015: AnyProxy 3.0.3:
|
||||
|
||||
* Bugfix: https throttle
|
||||
|
||||
9 Jan 2015: anyproxy 3.0.2:
|
||||
9 Jan 2015: AnyProxy 3.0.2:
|
||||
|
||||
* UI improvement: add link and qr code to root CA file.
|
@ -10,7 +10,7 @@ var mapConfig = [];
|
||||
|
||||
module.exports = {
|
||||
summary:function(){
|
||||
var tip = "the default rule for anyproxy which supports CORS. ";
|
||||
var tip = "the default rule for AnyProxy which supports CORS. ";
|
||||
if(!isRootCAFileExists){
|
||||
tip += "\nRoot CA does not exist, will not intercept any https requests.";
|
||||
}
|
||||
@ -40,13 +40,13 @@ module.exports = {
|
||||
if(req.method == "OPTIONS"){
|
||||
callback(200,mergeCORSHeader(req.headers),"");
|
||||
}else if(req.anyproxy_map_local){
|
||||
try{
|
||||
var fileContent = fs.readFile(req.anyproxy_map_local,function(err,buffer){
|
||||
fs.readFile(req.anyproxy_map_local,function(err,buffer){
|
||||
if(err){
|
||||
callback(200, {}, "[AnyProxy failed to load local file] " + err);
|
||||
}else{
|
||||
callback(200, {}, buffer);
|
||||
});
|
||||
}catch(e){
|
||||
callback(200, {}, "failed to load local file :" + req.anyproxy_map_local);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "anyproxy",
|
||||
"version": "3.7.0Beta3",
|
||||
"version": "3.7.0Beta4",
|
||||
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
|
||||
"main": "proxy.js",
|
||||
"bin": {
|
||||
|
@ -9,7 +9,7 @@ module.exports = {
|
||||
致中文用户:中文注释都是只摘要,必要时请参阅英文文档。欢迎提出修改建议。
|
||||
*/
|
||||
summary:function(){
|
||||
return "this is a blank rule for anyproxy";
|
||||
return "this is a blank rule for AnyProxy";
|
||||
},
|
||||
|
||||
|
||||
|
@ -300,12 +300,12 @@ body, html {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.mapWrapper ul{
|
||||
.mapWrapper .mapRuleList ul{
|
||||
list-style: none;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.mapWrapper li{
|
||||
.mapWrapper .mapRuleList li{
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
|
@ -29,8 +29,8 @@
|
||||
</div>
|
||||
|
||||
<div class="ctrlWrapper">
|
||||
<span class="J_filterSection" style="display:none">
|
||||
<a href="#"><span class="topBtn J_showFilter"><i class="uk-icon-filter"></i>Filter</span></a>
|
||||
<span class="J_filterSection" style="display:none">
|
||||
<a href="#"><span class="topBtn J_showMapPanel"><i class="uk-icon-shield"></i>Map Local</span></a>
|
||||
|
||||
<span class="sep">|</span>
|
||||
|
@ -39,14 +39,19 @@ function init(React){
|
||||
var self = this,
|
||||
result = {};
|
||||
|
||||
var filePath = React.findDOMNode(self.refs.localFilePath).value,
|
||||
keyword = React.findDOMNode(self.refs.keywordInput).value;
|
||||
var filePathInput = React.findDOMNode(self.refs.localFilePath),
|
||||
filePath = filePathInput.value,
|
||||
keywordInput = React.findDOMNode(self.refs.keywordInput),
|
||||
keyword = keywordInput.value;
|
||||
|
||||
if(filePath && keyword){
|
||||
self.props.onSubmit.call(null,{
|
||||
keyword : keyword,
|
||||
local : filePath
|
||||
});
|
||||
|
||||
filePathInput.value = "";
|
||||
keywordInput.value = "";
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user