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