Skip to content

Commit

Permalink
Porting more Apollo html templates to hawtio
Browse files Browse the repository at this point in the history
  • Loading branch information
chirino committed Jun 14, 2013
1 parent 51b8058 commit d4f73e7
Show file tree
Hide file tree
Showing 11 changed files with 493 additions and 53 deletions.
13 changes: 13 additions & 0 deletions hawtio-web/src/main/webapp/app/apollo/html/configuration.html
@@ -0,0 +1,13 @@
<div class="row-fluid">
<div class="span12" style="padding-bottom:1em">
<select class="nomargin">
<option class="ember-view" value="apollo.xml" selected="selected">apollo.xml</option>
<option class="ember-view" value="black-list.txt">black-list.txt</option>
<option class="ember-view" value="groups.properties">groups.properties</option>
<option class="ember-view" value="keystore">keystore</option>
<option class="ember-view" value="log4j.properties">log4j.properties</option>
<option class="ember-view" value="login.config">login.config</option>
<option class="ember-view" value="users.properties">users.properties</option>
</select>
</div>
</div>
66 changes: 66 additions & 0 deletions hawtio-web/src/main/webapp/app/apollo/html/connectors.html
@@ -0,0 +1,66 @@
<div>
<div class="form-horizontal">
<div class="control-group">
<label class="control-label"><strong style="font-size:170%">Connector:</strong></label>
<div class="controls">
<select><option value="tls">tls</option><option value="61616">61616</option><option value="tcp" selected="selected">tcp</option><option value="ws">ws</option><option value="wss">wss</option></select>

<button class="btn btn-warning"><i class="icon-stop"></i> Stop</button>

</div>
</div>
</div>
<div class="row-fluid">
<div class="span4">
<div class="well" style="padding: 8px 8px">
<div class="well-title">Details</div>
<table class="details table table-bordered table-striped">
<tbody>
<tr><td><strong>Started Since: </strong>6/13/2013 2:27:52 PM</td></tr>
<tr><td><strong>Bound to: </strong>/0:0:0:0:0:0:0:0%0:61613</td></tr>
<tr><td><strong>Protocol: </strong>any</td></tr>
<tr><td><strong>Currently Connected: </strong>1</td></tr>
<tr><td><strong>Connection Counter: </strong>2</td></tr>
<tr><td><strong>Outbound Messages: </strong>0</td></tr>
<tr><td><strong>Inbound Messages: </strong>0</td></tr>
<tr><td><strong>Data Transferred In: </strong>396 bytes</td></tr>
<tr><td><strong>Data Transferred Out: </strong>252 bytes</td></tr>
</tbody>
</table>
</div>
</div>
<div class="span8">
<h3>Connections</h3>

<div class="well">
<div class="form-inline">
Page 1 of 1:


</div>
</div>
<table class="details table table-bordered table-striped" style="">
<tbody>
<tr>
<th><input type="checkbox"></th>
<th>Remote Address</th>
<th>Protocol</th>
<th>User</th>
<th>Data In</th>
<th>Data Out</th>
<th>Msgs In</th>
<th>Msgs out</th>
</tr>

<tr>
<td><input type="checkbox"></td>
<td><i class=" icon-zoom-in"></i>/0:0:0:0:0:0:0:1%0:57122</td><td>stomp</td><td>admin</td><td>198 bytes</td><td>126 bytes</td><td>0</td><td>0</td>
</tr>

</tbody>
</table>


</div>
</div>
</div>
3 changes: 3 additions & 0 deletions hawtio-web/src/main/webapp/app/apollo/html/layout-apollo.html
Expand Up @@ -18,6 +18,9 @@
</li>
</ul>
<ng-include ng-if='isActive("#/apollo/virtual-hosts")' src="'app/apollo/html/virtual_hosts.html'"></ng-include>
<ng-include ng-if='isActive("#/apollo/connectors")' src="'app/apollo/html/connectors.html'"></ng-include>
<ng-include ng-if='isActive("#/apollo/operating-environment")' src="'app/apollo/html/operating-environment.html'"></ng-include>
<ng-include ng-if='isActive("#/apollo/configuration")' src="'app/apollo/html/configuration.html'"></ng-include>
</div>
</div>
</div>
Expand Down
@@ -0,0 +1,51 @@
<div class="row-fluid">
<div class="span4">
<div class="well" style="padding: 8px 8px">
<div class="well-title">Apache Apollo</div>
<table class="details table table-bordered table-striped">
<tbody>
<tr>
<td><strong>Version: </strong>99-trunk-SNAPSHOT</td>
</tr>
<tr>
<td><strong>Install Directory: </strong></td>
</tr>
<tr>
<td><strong>Instance Directory: </strong>/Users/chirino/opt/apollo-01</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="span4">
<div class="well" style="padding: 8px 8px">
<div class="well-title">Java Virtual Machine</div>
<table class="details table table-bordered table-striped">
<tbody>
<tr><td><strong>Version: </strong>Java HotSpot(TM) 64-Bit Server VM 1.6.0_45 (Apple Inc.)</td></tr>
<tr><td><strong>Up Time: </strong>76720.56 seconds</td></tr>
<tr><td><strong>Heap Memory: </strong>39.70 mb / 180.69 mb</td></tr>
<tr><td><strong>Non-Heap Memory: </strong>54.86 mb / 55.13 mb</td></tr>
<tr><td><strong>Threads: </strong>42</td></tr>
<tr><td><strong>CPU Time: </strong>244.990 seconds</td></tr>
</tbody>
</table>
</div>
</div>
<div class="span4">
<div class="well" style="padding: 8px 8px">
<div class="well-title">Operating System</div>
<table class="details table table-bordered table-striped">
<tbody>
<tr><td><strong>Name: </strong>Mac OS X 10.8.3</td></tr>
<tr><td><strong>Architecture: </strong>x86_64</td></tr>
<tr><td><strong>Processor Cores: </strong>8</td></tr>
<tr><td><strong>Memory Free/Total: </strong>3.29 gb / 16.00 gb</td></tr>
<tr><td><strong>Swap Used/Available: </strong>0 bytes / 3.00 gb </td></tr>
<tr><td><strong>FD Open/Max: </strong>211 / 10240</td></tr>
<tr><td><strong>Load Average</strong>2.5869140625</td></tr>
</tbody>
</table>
</div>
</div>
</div>
200 changes: 200 additions & 0 deletions hawtio-web/src/main/webapp/app/apollo/html/queue.html
@@ -0,0 +1,200 @@
<div class="row-flow" style="margin:0 1em">
<ul class="nav nav-tabs">
<li class="active">
<a data-toggle="tab">
<strong>Queue:</strong> test
<strong><i class="icon-remove-sign"></i></strong>
</a>
</li>
</ul>
<div class="span4">
<div class="well" style="padding: 8px 8px">
<div class="well-title">Details</div>
<table class="details table table-bordered table-striped">
<tbody>
<tr><td><strong>Up Since: </strong>6/14/2013 11:52:58 AM</td></tr>

<tr><td><strong>Queue Size: </strong>10001 messages</td></tr>
<tr><td><strong>Enqueued: </strong>10001 items / 3.76 mb
<a href="#" data-original-title="6/14/2013 11:52:59 AM"><i class="icon-time"></i></a>
</td></tr>
<tr><td><strong>Dequeued: </strong>0 / 0 bytes
<a href="#" data-original-title="6/14/2013 11:52:58 AM"><i class="icon-time"></i></a>
</td></tr>
<tr><td><strong>Nacked: </strong>0 / 0 bytes
<a href="#" data-original-title="6/14/2013 11:52:58 AM"><i class="icon-time"></i></a>
</td></tr>
<tr><td><strong>Expired: </strong>0 / 0 bytes
<a href="#" data-original-title="6/14/2013 11:52:58 AM"><i class="icon-time"></i></a>
</td></tr>
<tr><td><strong>Enqueue Rate Throttle: </strong></td></tr>
<tr><td><strong>Swapped In: </strong>0 msgs 0 bytes</td></tr>
<tr><td><strong>Swapping Out: </strong>0 bytes</td></tr>
<tr><td><strong>Swapping In: </strong>0 bytes</td></tr>
<tr><td><strong>Total Swap Ins: </strong>25 msgs 3.76 mb</td></tr>
<tr><td><strong>Total Swap Outs: </strong>10001 msgs 9.56 kb</td></tr>
</tbody>
</table>
</div>
</div>

<div class="span7">
<ul class="nav nav-tabs">
<li class="active"><a href="#TAB_Messages" data-toggle="tab">Messages (0)</a></li>
<li><a href="#TAB_Producers" data-toggle="tab">Producers (0)</a></li>
<li><a href="#TAB_Consumers" data-toggle="tab">Consumers (0)</a></li>
</ul>
<div class="tabbable">
<div class="tab-content">
<div class="tab-pane active" id="TAB_Messages">

<!--
<div class="well form-horizontal">
<label class="control-label"><strong>Message: </strong></label>
<div class="controls">
<input class="input-xlarge" placeholder="body" type="text"></input>
<a class="btn" href="#">Send</a>
</div>
</div>
-->

<div class="well">
<div class="form-inline">
<span style="padding-right:1em;">
Browse From:
<input class="input-number" type="text" value="1">
</span>
<span style="padding-right:1em;">
Max:
<input class="input-number" type="text" value="25">
</span>
<span style="padding-right:3em;">
<button class="btn"><i class="icon-repeat"></i> Go</button>
</span>

<button class="btn">Prev</button>
<button class="btn">Next</button>
</div>
</div>

<table class="details table table-bordered" style="">
<tbody>
<tr>
<th>&nbsp;</th>
<th>Sequence</th>
<th>Codec</th>
<th>Persistent</th>
<th>Expires</th>
<th>Prefetched</th>
<th>Acquirer</th>
<th width="100%">Size</th>
</tr>

<tr>
<td>
<a>

<i class="icon-caret-right"></i>

</a>
</td>
<td>1</td>
<td>stomp</td>
<td>true</td>
<td>no</td>
<td>false</td>
<td> </td>
<td>391 bytes</td>
</tr>


<tr>
<td>
<a>

<i class="icon-caret-right"></i>

</a>
</td>
<td>2</td>
<td>stomp</td>
<td>true</td>
<td>no</td>
<td>false</td>
<td> </td>
<td>391 bytes</td>
</tr>


<tr>
<td>
<a>

<i class="icon-caret-right"></i>

</a>
</td>
<td>3</td>
<td>stomp</td>
<td>true</td>
<td>no</td>
<td>false</td>
<td> </td>
<td>391 bytes</td>
</tr>


<tr>
<td>
<a>

<i class="icon-caret-right"></i>

</a>
</td>
<td>4</td>
<td>stomp</td>
<td>true</td>
<td>no</td>
<td>false</td>
<td> </td>
<td>391 bytes</td>
</tr>


<tr>
<td>
<a>

<i class="icon-caret-right"></i>

</a>
</td>
<td>5</td>
<td>stomp</td>
<td>true</td>
<td>no</td>
<td>false</td>
<td> </td>
<td>391 bytes</td>
</tr>


</tbody>
</table>

</div>
<div class="tab-pane" id="TAB_Producers">

<div style="padding-left:2em;">No producers are attached.</div>

</div>
<div class="tab-pane" id="TAB_Consumers">

<div style="padding-left:2em;">No consumers are attached.</div>

</div>
</div>
</div>
</div>
</div>
45 changes: 45 additions & 0 deletions hawtio-web/src/main/webapp/app/apollo/html/queues.html
@@ -0,0 +1,45 @@
<div>

<div class="well center">
<form action="" class="nomargin form-inline">
<strong>Name: </strong>
<input placeholder="name" type="text" value="">
<input type="submit" value="Create" class="btn btn-primary">
</form>
</div>


<div class="well">
<div class="form-inline">
Page 1 of 1:
</div>
</div>

<table class="details table table-bordered table-striped" style="">
<tbody>
<tr>
<th><input type="checkbox"></th>
<th>Name</th>
<th>Messages</th>
<th>Size</th>
<th>Producers</th>
<th>Consumers</th>
</tr>

<tr>
<td><input type="checkbox"></td>
<td><a href="#"><i class=" icon-zoom-in"></i> foo</a></td>
<td>0</td><td>0 bytes</td><td>0</td><td>0</td>
</tr>

<tr>
<td><input type="checkbox"></td>
<td><a href="#"><i class=" icon-zoom-in"></i> test</a></td>
<td>0</td><td>0 bytes</td><td>0</td><td>0</td>
</tr>

</tbody>
</table>


</div>

0 comments on commit d4f73e7

Please sign in to comment.