mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-05-10 14:58:27 +00:00
update web interface
This commit is contained in:
parent
6b6708ee29
commit
1f32f77c8c
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "anyproxy",
|
"name": "anyproxy",
|
||||||
"version": "1.3.0",
|
"version": "1.3.1",
|
||||||
"description": "a charles/fiddler like proxy written in NodeJs, which can handle HTTPS requests and CROS perfectly.",
|
"description": "a charles/fiddler like proxy written in NodeJs, which can handle HTTPS requests and CROS perfectly.",
|
||||||
"main": "proxy.js",
|
"main": "proxy.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -54,6 +54,14 @@
|
|||||||
width: 180px;
|
width: 180px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mainTableWrapper .col_mime{
|
||||||
|
width: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainTableWrapper .col_time{
|
||||||
|
width: 160px;
|
||||||
|
}
|
||||||
|
|
||||||
.mainTableWrapper tr.row_odd{
|
.mainTableWrapper tr.row_odd{
|
||||||
background: #f5f5f5;
|
background: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
<th class="col_host">host</th>
|
<th class="col_host">host</th>
|
||||||
<th class="col_path">path</th>
|
<th class="col_path">path</th>
|
||||||
<th class="col_mime">mime type</th>
|
<th class="col_mime">mime type</th>
|
||||||
|
<th class="col_time">time</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="J_tableBody"></tbody>
|
<tbody class="J_tableBody"></tbody>
|
||||||
@ -42,6 +43,7 @@
|
|||||||
<td title="<%= host %>"><%= host %></td>
|
<td title="<%= host %>"><%= host %></td>
|
||||||
<td title="<%= path %>"><%= path %></td>
|
<td title="<%= path %>"><%= path %></td>
|
||||||
<td><%= mime %></td>
|
<td><%= mime %></td>
|
||||||
|
<td><%= startTimeStr %></td>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/template" id="detail_tpl">
|
<script type="text/template" id="detail_tpl">
|
||||||
|
@ -146,9 +146,6 @@ seajs.use(['$','Underscore' ,'Backbone'], function($, _, Backbone) {
|
|||||||
$(document).on("keyup",function(e){
|
$(document).on("keyup",function(e){
|
||||||
if(e.keyCode == 88 && e.ctrlKey){ // ctrl + x
|
if(e.keyCode == 88 && e.ctrlKey){ // ctrl + x
|
||||||
clearLogs();
|
clearLogs();
|
||||||
}else{
|
|
||||||
console.log("key up");
|
|
||||||
console.log(e);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -161,6 +158,10 @@ seajs.use(['$','Underscore' ,'Backbone'], function($, _, Backbone) {
|
|||||||
dataSocket.onmessage = function(event){
|
dataSocket.onmessage = function(event){
|
||||||
var data = JSON.parse(event.data);
|
var data = JSON.parse(event.data);
|
||||||
|
|
||||||
|
var reqDate = new Date(data.startTime);
|
||||||
|
data.startTimeStr = reqDate.toLocaleDateString()+ " " + reqDate.toLocaleTimeString();
|
||||||
|
|
||||||
|
|
||||||
var previous;
|
var previous;
|
||||||
if(previous = recList.get(data.id)){
|
if(previous = recList.get(data.id)){
|
||||||
previous.set(data);
|
previous.set(data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user