You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sirona.apache.org by ol...@apache.org on 2014/09/08 04:50:05 UTC

svn commit: r1623257 - in /incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp: index.html js/app/controllers/controllers-jmx.js partials/jmx.html

Author: olamy
Date: Mon Sep  8 02:50:05 2014
New Revision: 1623257

URL: http://svn.apache.org/r1623257
Log:
display attributes and operations

Modified:
    incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/index.html
    incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/js/app/controllers/controllers-jmx.js
    incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/partials/jmx.html

Modified: incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/index.html?rev=1623257&r1=1623256&r2=1623257&view=diff
==============================================================================
--- incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/index.html (original)
+++ incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/index.html Mon Sep  8 02:50:05 2014
@@ -50,12 +50,6 @@
 
       <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
         <div class="navbar-header">
-          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
-            <span class="sr-only">Toggle navigation</span>
-            <span class="icon-bar"></span>
-            <span class="icon-bar"></span>
-            <span class="icon-bar"></span>
-          </button>
           <a class="navbar-brand" href="http://sirona.incubator.apache.org/">Sirona</a>
         </div>
 

Modified: incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/js/app/controllers/controllers-jmx.js
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/js/app/controllers/controllers-jmx.js?rev=1623257&r1=1623256&r2=1623257&view=diff
==============================================================================
--- incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/js/app/controllers/controllers-jmx.js (original)
+++ incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/js/app/controllers/controllers-jmx.js Mon Sep  8 02:50:05 2014
@@ -43,7 +43,11 @@ define(['jquery','angular','bootstrap','
             $scope.mbean=result;
           });
         }
-      }
+      };
+
+      $scope.invoke=function(name){
+        console.log("name:"+name);
+      };
 
   }]);
 

Modified: incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/partials/jmx.html
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/partials/jmx.html?rev=1623257&r1=1623256&r2=1623257&view=diff
==============================================================================
--- incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/partials/jmx.html (original)
+++ incubator/sirona/trunk/server/reporting/reporting-ui/src/main/webapp/partials/jmx.html Mon Sep  8 02:50:05 2014
@@ -20,8 +20,8 @@
     <abn-tree tree-data="treeData" on-select="selectionHandler(branch)"></abn-tree>
   </div>
   <div class="col-lg-9">
-    <h1>{{::mbean.objectName}}</h1>
-    <h2>{{::mbean.classname}}</h2>
+    <h1>{{mbean.objectName}}</h1>
+    <h2>{{mbean.classname}}</h2>
 
     <ul class="nav nav-tabs" role="tablist">
       <li class="active"><a href="#attributes" role="tab" data-toggle="tab">Attributes</a></li>
@@ -30,8 +30,37 @@
 
     <!-- Tab panes -->
     <div class="tab-content">
-      <div class="tab-pane active" id="attributes">attributes</div>
-      <div class="tab-pane" id="operations">operations</div>
+      <div class="tab-pane active" id="attributes">
+        <table class="table table-striped">
+          <thead>
+            <tr>
+              <th>Name</th>
+              <th>Description</th>
+              <th>Value</th>
+              <th>Type</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr ng-repeat="attribute in mbean.attributes">
+              <td>{{attribute.name}}</td>
+              <td>{{attribute.description}}</td>
+              <td>{{attribute.value}}</td>
+              <td>{{attribute.type}}</td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+      <div class="tab-pane" id="operations">
+        <ul>
+          <li ng-repeat="operation in mbean.operations">
+            <form class="form-inline" id="{{operation.name}}">
+              {{operation.name}}
+              <input ng-repeat="param in operation.parameters" type="text" class="input-small" placeholder="{{param.name}}">
+              <button type="submit" class="btn btn-primary" ng-click="invoke(operation.name)">Invoke</button>
+            </form>
+          </li>
+        </ul>
+      </div>
     </div>
 
   </div>