mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
update web interface
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="topHead">
|
||||
<h1>Anyproxy</h1>
|
||||
<a href="#" class="J_clearBtn"><span class="topBtn">Clear Logs(Ctrl+X)</span></a>
|
||||
@@ -36,6 +37,7 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="recordDetailOverlay J_recordDetailOverlay" style="display:none">
|
||||
<div id="dragbar"></div>
|
||||
<span class="escBtn J_escBtn">Close (ESC)</span>
|
||||
@@ -44,9 +46,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="hidden" id="socketPort" value="{{webSocketPort}}" />
|
||||
<input type="hidden" id="baseUrl" value="{{ipAddress}}" />
|
||||
|
||||
|
||||
<script type="text/template" id="main_table_row">
|
||||
<td class="data_id"><%= _id %></td>
|
||||
<td><%= method %></td>
|
||||
@@ -57,48 +61,7 @@
|
||||
<td><%= startTimeStr %></td>
|
||||
</script>
|
||||
|
||||
<script type="text/template" id="detail_tpl">
|
||||
<section class="req">
|
||||
<h4 class="subTitle">request</h4>
|
||||
<div class="detail">
|
||||
<ul class="uk-list">
|
||||
<li><%= method %> <%= host %></li>
|
||||
<li><span title="<%= path %>"><%= path %></span></li>
|
||||
<% _.each(reqHeader, function(v,k) { %> <li><strong><%= k %></strong> : <%= v %></li><% }); %>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="reqBody">
|
||||
<h4 class="subTitle">request body</h4>
|
||||
<div class="detail">
|
||||
<p><%= reqBody %></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<% if(statusCode) { %>
|
||||
<section class="resHeader">
|
||||
<h4 class="subTitle">response header</h4>
|
||||
<div class="detail">
|
||||
<ul class="uk-list">
|
||||
<li>HTTP/1.1 <span class="http_status http_status_<%= statusCode %>"><%= statusCode %></span></li>
|
||||
<% _.each(resHeader, function(v,k) { %> <li><strong><%= k %></strong> : <%= v %></li><% }); %>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="resBody">
|
||||
<h4 class="subTitle">response body</h4>
|
||||
<div class="detail">
|
||||
<form class="uk-form">
|
||||
<textarea class="J_responseBody">loading...</textarea>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
<% } %>
|
||||
</script>
|
||||
|
||||
<script src="/page.js"></script>
|
||||
|
||||
<script src="/list.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user