servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r650489 - in /servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix: dashboard/ exchange/ exchanges/ navigation/
Date Tue, 22 Apr 2008 12:48:33 GMT
Author: gertv
Date: Tue Apr 22 05:48:28 2008
New Revision: 650489

URL: http://svn.apache.org/viewvc?rev=650489&view=rev
Log:
Initial commit of sample Sling console

Added:
    servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchanges/tr.esp
    servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/navigation/
    servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/navigation/div.esp
Modified:
    servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/dashboard/html.esp
    servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchange/html.esp
    servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchange/tr.esp
    servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchanges/html.esp

Modified: servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/dashboard/html.esp
URL: http://svn.apache.org/viewvc/servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/dashboard/html.esp?rev=650489&r1=650488&r2=650489&view=diff
==============================================================================
--- servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/dashboard/html.esp
(original)
+++ servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/dashboard/html.esp
Tue Apr 22 05:48:28 2008
@@ -9,26 +9,25 @@
 
 <div id="content">
  <div id="portlet">
-   <h2>Last 15 Message Exchanges</h2>
-   <table>
+   <h2>Recent exchange archives</h2>
+   <ul>
    <%
-        var iter = request.resourceResolver.findResources("content/smx/exchanges/* order
by @Created descending",
+        var iter = request.resourceResolver.findResources("content/servicemix/exchanges/*
order by @Created descending",
                             Packages.javax.jcr.query.Query.XPATH);
         var i = 0;
-        while (iter.hasNext() && ++i <= 15) {
+        while (iter.hasNext() && ++i <= 10) {
            var resource = iter.next();
+           var name = resource.getPath().substr(resource.getPath().lastIndexOf("/")+1)
            %>
-	   <a href="<%= resource.getPath() + ".html" %>"><%sling.include(resource.getPath()
+ ".tr");%></a>
+	   <li><a href="<%= resource.getPath() + ".html" %>"><%=name%></a></li>
 <%
         }
         %>
-   </table>
+   </ul>
  </div>
 </div>
 
-<div id="sidebar">
-Tasks
-</div>
+<% sling.include("/servicemix/navigation.div"); %>
 
 </div>
 </body>

Modified: servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchange/html.esp
URL: http://svn.apache.org/viewvc/servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchange/html.esp?rev=650489&r1=650488&r2=650489&view=diff
==============================================================================
--- servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchange/html.esp
(original)
+++ servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchange/html.esp
Tue Apr 22 05:48:28 2008
@@ -39,18 +39,8 @@
 <%}%>
 
 <ul>
-<% history = currentNode.getVersionHistory();
-   out.println(history);
-   versions = history.getAllVersions();
-   out.println(versions);
-   var version = versions.nextVersion();
-   out.println("<li>" + version);
-   while (version) {
-     out.println("<li>" + version);
-     version = versions.nextVersion();
-   }
- %>
 </div>
+<% sling.include("/servicemix/navigation.div"); %>
 </div>
 </body>
 </html>

Modified: servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchange/tr.esp
URL: http://svn.apache.org/viewvc/servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchange/tr.esp?rev=650489&r1=650488&r2=650489&view=diff
==============================================================================
--- servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchange/tr.esp
(original)
+++ servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchange/tr.esp
Tue Apr 22 05:48:28 2008
@@ -1,5 +1,5 @@
 <tr>
-  <td><a href="<%=currentNode%>.html">+</a></td>
+  <td><a href="<%=currentNode%>.html">&rarr;</a></td>
   <td><%=currentNode['org.apache.servicemix.datestamp'] %></td>
   <td><%=currentNode.Service == undefined ? "n/a" : currentNode.Service%></td>
   <td><%=currentNode.Endpoint == undefined ? "n/a" : currentNode.Endpoint%></td>

Modified: servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchanges/html.esp
URL: http://svn.apache.org/viewvc/servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchanges/html.esp?rev=650489&r1=650488&r2=650489&view=diff
==============================================================================
--- servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchanges/html.esp
(original)
+++ servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchanges/html.esp
Tue Apr 22 05:48:28 2008
@@ -1,19 +1,23 @@
 <html>
-<h1>Welcome</h1>
-<% for (var exchange in currentNode.getChildren()) { %>
-<a href="<%= currentNode[exchange].getPath() %>"><%=exchange%></a>
-<% } %>
+<head>
+<title>ServiceMix :: Browse the archive</title>
+<link rel="stylesheet" type="text/css" href="/theme/master.css"/>
+</head>
+<body>
+<div id="page">
+<h1>ServiceMix :: Browse the archive</h1>
 
-<hr/>
-<%
-        var iter = request.resourceResolver.findResources("content/exchanges/* order by @Created
descending",
-                            Packages.javax.jcr.query.Query.XPATH);
-        var i = 0;
-        while (iter.hasNext() && ++i <= 15) {
-           var resource = iter.next();
-           %>
-	   <a href="<%= resource.getPath() + ".html" %>"><%=request.resourceResolver.getResource(resource)%></a>
-<%
-        }
-        %>
+<div id="content">
+<h2></h2>
+<table>
+<% var current = 0;
+ for (var exchange in currentNode.getChildren()) {
+   sling.include(currentNode[exchange] + ".tr");
+   if (++current >= 50) break;
+ }
+%>
+</table>
+</div>
+<% sling.include("/content/servicemix/navigation.div"); %>
+</div>
 </html>

Added: servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchanges/tr.esp
URL: http://svn.apache.org/viewvc/servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchanges/tr.esp?rev=650489&view=auto
==============================================================================
--- servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchanges/tr.esp
(added)
+++ servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/exchanges/tr.esp
Tue Apr 22 05:48:28 2008
@@ -0,0 +1,7 @@
+<tr>
+  <td><a href="<%=currentNode%>.html">+</a></td>
+  <td><%=currentNode['org.apache.servicemix.datestamp'] %></td>
+  <td><%=currentNode.Service == undefined ? "n/a" : currentNode.Service%></td>
+  <td><%=currentNode.Endpoint == undefined ? "n/a" : currentNode.Endpoint%></td>
+  <td><%=currentNode.ExchangeStatus%></td>
+</tr>

Added: servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/navigation/div.esp
URL: http://svn.apache.org/viewvc/servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/navigation/div.esp?rev=650489&view=auto
==============================================================================
--- servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/navigation/div.esp
(added)
+++ servicemix/sandbox/gertv/smx-sling/servicemix-sling-console/src/main/resources/initial-content/apps/servicemix/navigation/div.esp
Tue Apr 22 05:48:28 2008
@@ -0,0 +1,4 @@
+<div id="sidebar">
+<h2>Back to...</h2>
+<a href="/servicemix.html">dashboard</a>
+</div>



Mime
View raw message