page.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <html>
  2. <head>
  3. <title>ngrok</title>
  4. <link href="/static/highlight.min.css" rel="stylesheet">
  5. <link href="/static/bootstrap.min.css" rel="stylesheet">
  6. <script src="/static/highlight.min.js"></script>
  7. <script src="/static/vkbeautify.js"></script>
  8. <script src="/static/jquery-1.9.1.min.js"></script>
  9. <script src="/static/angular.js"></script>
  10. <script src="/static/base64.js"></script>
  11. <script src="/static/ngrok.js"></script>
  12. <script type="text/javascript">
  13. window.data = JSON.parse({% . %});
  14. </script>
  15. <style type="text/css">
  16. body { margin-top: 50px; }
  17. table.params { font-size: 12px; font-family: Courier, monospace; }
  18. .txn-selector tr { cursor: pointer; }
  19. .txn-selector tr:hover { background-color: #ddd; }
  20. tr.selected, tr.selected:hover {
  21. background-color: #ff9999;
  22. background-color: #000000;
  23. color:white;
  24. }
  25. </style>
  26. </head>
  27. <body ng-app="ngrok">
  28. <div class="container" ng-controller="HttpTxns">
  29. <div class="navbar navbar-inverse navbar-fixed-top">
  30. <div class="navbar-inner">
  31. <div class="container">
  32. <a class="brand" href="#">ngrok</a>
  33. <ul class="nav">
  34. <li class="active"><a href="#">Inbound Requests</a></li>
  35. <!--
  36. <li><a href="#">Outbound Requests</a></li>
  37. <li><a href="#">Configuration</a></li>
  38. -->
  39. </ul>
  40. </div>
  41. </div>
  42. </div>
  43. <div ng-show="txns.length==0" class="row">
  44. <div class="span6 offset3">
  45. <div class="well" style="padding: 20px 50px;">
  46. <h4>No requests to display yet</h4>
  47. <p class="lead">Make a request to <a target="_blank" href="{{ publicUrl }}">{{ publicUrl }}</a> to get started!</p>
  48. </div>
  49. </div>
  50. </div>
  51. <div ng-show="txns.length>0" class="row">
  52. <div class="span6">
  53. <h4>All Requests</h4>
  54. <table class="table txn-selector">
  55. <tr ng-controller="TxnNavItem" ng-class="{'selected':isActive()}" ng-repeat="txn in txns" ng-click="makeActive()">
  56. <td>{{ txn.Req.MethodPath }}</td>
  57. <td>{{ txn.Resp.Status }}</td>
  58. <td><span class="pull-right">{{ txn.Duration }}</span></td>
  59. </tr>
  60. </table>
  61. </div>
  62. <div class="span6">
  63. <div ng-show="!!Req" ng-controller="HttpRequest">
  64. <h3>{{ Req.MethodPath }}</h3>
  65. <div onbtnclick="replay()" btn="Replay" tabs="Summary,Headers,Raw,Binary">
  66. </div>
  67. <div ng-show="isTab('Summary')">
  68. <keyval title="Query Params" tuples="Req.Params"></keyval>
  69. <div body="Req.Body" binary="Req.Binary"></div>
  70. </div>
  71. <div ng-show="isTab('Headers')">
  72. <keyval title="Headers" tuples="Req.Header"></keyval>
  73. </div>
  74. <div ng-show="isTab('Raw')">
  75. <pre><code class="http">{{ Req.RawText }}</code></pre>
  76. </div>
  77. <div ng-show="isTab('Binary')">
  78. <pre><code>{{ Req.RawBytes }}</code></pre>
  79. </div>
  80. </div>
  81. <hr style="margin: 40px 0 20px" />
  82. <div ng-show="!!Resp" ng-controller="HttpResponse">
  83. <h3 ng-class="Resp.statusClass">{{ Resp.Status }}</h3>
  84. <div tabs="Summary,Headers,Raw,Binary"></div>
  85. <div ng-show="isTab('Summary')">
  86. <div body="Resp.Body" binary="Resp.Binary"></div>
  87. </div>
  88. <div ng-show="isTab('Headers')">
  89. <keyval title="Headers" tuples="Resp.Header"></keyval>
  90. </div>
  91. <div ng-show="isTab('Raw')">
  92. <pre><code class="http">{{ Resp.RawText }}</code></pre>
  93. </div>
  94. <div ng-show="isTab('Binary')">
  95. <pre><code>{{ Resp.RawBytes }}</code></pre>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. <!-- UserVoice JavaScript SDK (only needed once on a page) -->
  102. <script>(function(){var uv=document.createElement('script');uv.type='text/javascript';uv.async=true;uv.src='//widget.uservoice.com/4KUmdF6WZd302MfwoayMw.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(uv,s)})()</script>
  103. <!-- A tab to launch the Classic Widget -->
  104. <script>
  105. UserVoice = window.UserVoice || [];
  106. UserVoice.push(['showTab', 'classic_widget', {
  107. mode: 'feedback',
  108. primary_color: '#cc6d00',
  109. link_color: '#007dbf',
  110. forum_id: 211925,
  111. tab_label: 'Feedback',
  112. tab_color: '#cc6d00',
  113. tab_position: 'middle-left',
  114. tab_inverted: false
  115. }]);
  116. </script>
  117. </body>
  118. </html>