You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2011/01/17 08:26:50 UTC

svn commit: r1059769 - in /tuscany/sca-cpp/trunk: modules/edit/ modules/edit/htdocs/ modules/edit/htdocs/dash/ modules/edit/htdocs/graph/ modules/edit/htdocs/login/ modules/edit/htdocs/logout/ modules/edit/htdocs/page/ modules/http/htdocs/ modules/http...

Author: jsdelfino
Date: Mon Jan 17 07:26:48 2011
New Revision: 1059769

URL: http://svn.apache.org/viewvc?rev=1059769&view=rev
Log:
Use a common stylesheet in all samples.

Added:
    tuscany/sca-cpp/trunk/modules/edit/log.py
      - copied, changed from r1059710, tuscany/sca-cpp/trunk/modules/edit/Makefile.am
Modified:
    tuscany/sca-cpp/trunk/modules/edit/Makefile.am
    tuscany/sca-cpp/trunk/modules/edit/edit.composite
    tuscany/sca-cpp/trunk/modules/edit/htdocs/dash/index.html
    tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/graph.html
    tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/graph.js
    tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/index.html
    tuscany/sca-cpp/trunk/modules/edit/htdocs/index.html
    tuscany/sca-cpp/trunk/modules/edit/htdocs/login/index.html
    tuscany/sca-cpp/trunk/modules/edit/htdocs/logout/index.html
    tuscany/sca-cpp/trunk/modules/edit/htdocs/page/index.html
    tuscany/sca-cpp/trunk/modules/edit/htdocs/page/page.html
    tuscany/sca-cpp/trunk/modules/edit/start
    tuscany/sca-cpp/trunk/modules/http/htdocs/index.html
    tuscany/sca-cpp/trunk/modules/http/htdocs/login/index.html
    tuscany/sca-cpp/trunk/modules/http/htdocs/logout/index.html
    tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css
    tuscany/sca-cpp/trunk/modules/js/htdocs/util.js
    tuscany/sca-cpp/trunk/modules/oauth/htdocs/index.html
    tuscany/sca-cpp/trunk/modules/oauth/htdocs/login/index.html
    tuscany/sca-cpp/trunk/modules/oauth/htdocs/login/mixed.html
    tuscany/sca-cpp/trunk/modules/oauth/htdocs/logout/index.html
    tuscany/sca-cpp/trunk/modules/oauth/htdocs/public/index.html
    tuscany/sca-cpp/trunk/modules/openid/htdocs/index.html
    tuscany/sca-cpp/trunk/modules/openid/htdocs/login/index.html
    tuscany/sca-cpp/trunk/modules/openid/htdocs/logout/index.html
    tuscany/sca-cpp/trunk/modules/openid/htdocs/public/index.html
    tuscany/sca-cpp/trunk/modules/server/htdocs/index.html
    tuscany/sca-cpp/trunk/modules/wsgi/composite.py
    tuscany/sca-cpp/trunk/modules/wsgi/htdocs/index.html
    tuscany/sca-cpp/trunk/samples/loan-python/htdocs/index.html
    tuscany/sca-cpp/trunk/samples/relay-gae/htdocs/index.html
    tuscany/sca-cpp/trunk/samples/relay-python/htdocs/index.html
    tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/index.html
    tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/login/index.html
    tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/logout/index.html
    tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/index.html
    tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/login/index.html
    tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/logout/index.html
    tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/index.html
    tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/login/index.html
    tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html
    tuscany/sca-cpp/trunk/samples/store-cpp/htdocs/index.html
    tuscany/sca-cpp/trunk/samples/store-gae/htdocs/index.html
    tuscany/sca-cpp/trunk/samples/store-java/htdocs/index.html
    tuscany/sca-cpp/trunk/samples/store-nosql/htdocs/index.html
    tuscany/sca-cpp/trunk/samples/store-python/htdocs/index.html
    tuscany/sca-cpp/trunk/samples/store-python/htdocs/login/index.html
    tuscany/sca-cpp/trunk/samples/store-python/htdocs/logout/index.html
    tuscany/sca-cpp/trunk/samples/store-scheme/htdocs/index.html
    tuscany/sca-cpp/trunk/samples/store-sql/htdocs/index.html
    tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html
    tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html
    tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/index.html

Modified: tuscany/sca-cpp/trunk/modules/edit/Makefile.am
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/Makefile.am?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/Makefile.am (original)
+++ tuscany/sca-cpp/trunk/modules/edit/Makefile.am Mon Jan 17 07:26:48 2011
@@ -17,6 +17,6 @@
 
 
 moddir = $(prefix)/modules/edit
-nobase_dist_mod_DATA = htdocs/*.html htdocs/dash/*.html htdocs/edit/*.html htdocs/edit/*.js htdocs/login/*.html htdocs/logout/*.html
-EXTRA_DIST = htdocs/*.html htdocs/dash/*.html htdocs/edit/*.html htdocs/edit/*.js htdocs/login/*.html htdocs/logout/*.html
+nobase_dist_mod_DATA = htdocs/*.html htdocs/dash/*.html htdocs/graph/*.html htdocs/graph/*.js htdocs/page/*.html htdocs/page/*.js htdocs/login/*.html htdocs/logout/*.html
+EXTRA_DIST = htdocs/*.html htdocs/dash/*.html htdocs/graph/*.html htdocs/graph/*.js htdocs/page/*.html htdocs/page/*.js htdocs/login/*.html htdocs/logout/*.html
 

Modified: tuscany/sca-cpp/trunk/modules/edit/edit.composite
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/edit.composite?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/edit.composite (original)
+++ tuscany/sca-cpp/trunk/modules/edit/edit.composite Mon Jan 17 07:26:48 2011
@@ -42,6 +42,7 @@
         <reference name="palettes" target="Palettes"/>
         <reference name="apps" target="Apps"/>
         <reference name="pages" target="Pages"/>
+        <reference name="log" target="Log"/>
     </component>
     
     <component name="Dashboard">
@@ -145,4 +146,11 @@
         <property name="servers">localhost:11211</property>
     </component>
 
+    <component name="Log">
+        <t:implementation.python script="log.py"/>
+        <service name="Log">
+            <t:binding.http uri="log"/>
+        </service>        
+    </component>
+    
 </composite>

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/dash/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/dash/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/dash/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/dash/index.html Mon Jan 17 07:26:48 2011
@@ -28,7 +28,9 @@
 <body>
 <div id="menu"></div>
 
+<br/>
 <h1>Welcome to your App Dashboard!</h1>
+<br/>
 <div id="dashboard"></div>
 
 <script type="text/javascript">

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/graph.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/graph.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/graph.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/graph.html Mon Jan 17 07:26:48 2011
@@ -30,16 +30,18 @@
 </head>  
 <body>
 
-<div>
-<span style="position: absolute; left: 0px; top: 0px"><h2>Palette</h2></span>
-<span style="position: absolute; left: 350px; top: 0px"><h2>App</h2></span>
-</div>
+<table style="position: absolute; top: 0px; left: 0px;" width="100%">
+<tr><th style="width: 338px;">Palette</th><th>App</th></tr>
+</table>
 
 <script type="text/javascript">
 var editWidget = sca.component("EditWidget");
 var palettes = sca.reference(editWidget, "palettes");
 var apps = sca.reference(editWidget, "apps");
 
+// Setup remote log
+rconsole = sca.defun(sca.reference(editWidget, "log"), "log");
+
 /**
  * Return the current app name.
  */

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/graph.js
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/graph.js?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/graph.js (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/graph.js Mon Jan 17 07:26:48 2011
@@ -378,6 +378,7 @@ if (ui.isIE()) {
         div.style.position = 'absolute';
         div.style.left = pos.xpos();
         div.style.top = pos.ypos();
+        // -webkit-user-select: none;
         document.body.appendChild(div);
 
         var svg = document.createElementNS(graph.svgns, 'svg');
@@ -428,11 +429,19 @@ if (ui.isIE()) {
 
         window.top.onmouseup = window.onmouseup;
         window.ontouchend = window.onmouseup;
+        window.gestureend = window.onmouseup;
+        window.top.gestureend = window.onmouseup;
         window.top.ontouchend = window.onmouseup;
+        window.ontouchcancel = window.onmouseup;
+        window.top.ontouchcancel = window.onmouseup;
 
         window.onmousemove = function(e) {
             if (graph.dragging == null)
                 return false;
+            if (e.preventDefault)
+                e.preventDefault();
+            else
+                e.returnValue = false;
             var pmatrix = graph.dragging.parentNode.getCTM();
             var matrix = graph.dragging.getCTM();
             var curX = pmatrix != null? (Number(matrix.e) - Number(pmatrix.e)): Number(matrix.e);

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/graph/index.html Mon Jan 17 07:26:48 2011
@@ -29,7 +29,9 @@
 <body>
 <div id="menu"></div>
 
+<br/>
 <h1><span id="title"></span></h1>
+</br/>
 
 <div id="graph"></div>
 

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -29,6 +29,7 @@
 <body>
 <div id="menu"></div>
 
+<br/>
 <h1>App Edit Tools</h1>
 <p>This module implements simple tools to help you create Tuscany apps.</p>
 

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/login/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/login/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/login/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/login/index.html Mon Jan 17 07:26:48 2011
@@ -17,7 +17,16 @@
    under the License.
 -->
 
-<html><body><h1>Sign in</h1>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+</head>
+<body>
+<h1>Sign in</h1>
+<br/>
 
 <script type="text/javascript">
 function submitFormSignin() {

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/logout/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/logout/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/logout/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/logout/index.html Mon Jan 17 07:26:48 2011
@@ -17,8 +17,16 @@
    under the License.
 -->
 
-<html><body>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+</head>
+<body>
 <h1>Sign out</h1>
+<br/>
 
 <form name="signout" action="/login" method="GET">
 <script type="text/javascript">

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/page/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/page/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/page/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/page/index.html Mon Jan 17 07:26:48 2011
@@ -29,7 +29,9 @@
 <body>
 <div id="menu"></div>
 
+<br/>
 <h1><span id="title"></span></h1>
+</br>
 
 <div id="page"></div>
 

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/page/page.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/page/page.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/page/page.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/page/page.html Mon Jan 17 07:26:48 2011
@@ -30,15 +30,14 @@
 </head>  
 <body>
 
-<div>
-<span style="position: absolute; left: 0px; top: 0px;"><h2>Palette</h2></span>
-<span style="position: absolute; left: 350px; top: 0px;"><h2>Page</h2></span>
-</div>
+<table style="position: absolute; top: 0px; left: 0px;" width="100%">
+<tr><th style="width: 338px;">Palette</th><th>Page</th></tr>
+</table>
 
 <div id="page" style="position: absolute; top: 60px; left: 0px; width: 5000px; height: 5000px;">
 
-<span id="palette:h1" style="position: absolute; left: 0px; top: 0px;"><h1 style="margin: 0px;">Header1</h1></span>
-<span id="palette:h2" style="position: absolute; left: 0px; top: 40px;"><h2 style="margin: 0px;">Header2</h2></span>
+<span id="palette:h1" style="position: absolute; left: 0px; top: 0px;"><h1>Header1</h1></span>
+<span id="palette:h2" style="position: absolute; left: 0px; top: 40px;"><h2>Header2</h2></span>
 <span id="palette:button" style="position: absolute; left: 0px; top: 80px;"><input type="button" value="button"/></span>
 <span id="palette:entry" style="position: absolute; left: 0px; top: 120px;"><input type="text" value="field" size="5"/></span>
 <span id="palette:password" style="position: absolute; left: 0px; top: 160px;"><input type="password" value="password" size="5"/></span>

Copied: tuscany/sca-cpp/trunk/modules/edit/log.py (from r1059710, tuscany/sca-cpp/trunk/modules/edit/Makefile.am)
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/log.py?p2=tuscany/sca-cpp/trunk/modules/edit/log.py&p1=tuscany/sca-cpp/trunk/modules/edit/Makefile.am&r1=1059710&r2=1059769&rev=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/Makefile.am (original)
+++ tuscany/sca-cpp/trunk/modules/edit/log.py Mon Jan 17 07:26:48 2011
@@ -15,8 +15,10 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
+# User info service component
+from sys import stderr
 
-moddir = $(prefix)/modules/edit
-nobase_dist_mod_DATA = htdocs/*.html htdocs/dash/*.html htdocs/edit/*.html htdocs/edit/*.js htdocs/login/*.html htdocs/logout/*.html
-EXTRA_DIST = htdocs/*.html htdocs/dash/*.html htdocs/edit/*.html htdocs/edit/*.js htdocs/login/*.html htdocs/logout/*.html
+# Log a message
+def log(msg):
+    print >> stderr, msg
 

Modified: tuscany/sca-cpp/trunk/modules/edit/start
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/start?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/start (original)
+++ tuscany/sca-cpp/trunk/modules/edit/start Mon Jan 17 07:26:48 2011
@@ -17,7 +17,7 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
-../http/httpd-conf tmp localhost 8090 htdocs
+../http/httpd-conf tmp 10.1.1.62 8090 htdocs
 ../server/server-conf tmp
 ../python/python-conf tmp
 cat >>tmp/conf/httpd.conf <<EOF

Modified: tuscany/sca-cpp/trunk/modules/http/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/http/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/http/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/http/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -17,5 +17,16 @@
    under the License.
 -->
 
-<html><body><h1>It works!</h1></body></html>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>It works</title>
+</head>
+<body>
+<h1>It works!</h1>
+</body>
+</html>
 

Modified: tuscany/sca-cpp/trunk/modules/http/htdocs/login/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/http/htdocs/login/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/http/htdocs/login/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/http/htdocs/login/index.html Mon Jan 17 07:26:48 2011
@@ -17,7 +17,17 @@
    under the License.
 -->
 
-<html><body><h1>Sign in</h1>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign in</title>
+</head>
+<body>
+<h1>Sign in</h1>
+<br/>
 
 <script type="text/javascript">
 function submitFormSignin() {

Modified: tuscany/sca-cpp/trunk/modules/http/htdocs/logout/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/http/htdocs/logout/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/http/htdocs/logout/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/http/htdocs/logout/index.html Mon Jan 17 07:26:48 2011
@@ -17,8 +17,17 @@
    under the License.
 -->
 
-<html><body>
+<html>
+<body>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign out</title>
+</head>
 <h1>Sign out</h1>
+<br/>
 
 <form name="signout" action="/login" method="GET">
 <script type="text/javascript">
@@ -30,4 +39,5 @@ function submitSignout() {
 </script>
 <input type="button" onclick="submitSignout()" value="Sign out"/>
 </form>
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css (original)
+++ tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css Mon Jan 17 07:26:48 2011
@@ -59,12 +59,24 @@ a:visited {
 color: blue;
 }
 
-.hd1 {
+h1 {
+font-size: 200%; font-weight: bold;
+vertical-align: middle;
+margin: 0px;
+}
+
+h2 {
 font-size: 150%; font-weight: bold;
+vertical-align: middle;
+margin: 0px;
+}
+
+.hd1 {
+font-size: 200%; font-weight: bold;
 }
 
 .hd2 {
-font-weight: bold;
+font-size: 150%; font-weight: bold;
 }
 
 .imgbutton {

Modified: tuscany/sca-cpp/trunk/modules/js/htdocs/util.js
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/js/htdocs/util.js?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/js/htdocs/util.js (original)
+++ tuscany/sca-cpp/trunk/modules/js/htdocs/util.js Mon Jan 17 07:26:48 2011
@@ -147,7 +147,14 @@ function tokens(path) {
 /**
  * Log a value.
  */
+var rconsole;
+
 function log(v) {
+    if (rconsole) {
+        try {
+            rconsole.log(v);
+        } catch (e) {}
+    }
     try {
         console.log(v);
     } catch (e) {}
@@ -161,7 +168,7 @@ function debug(o) {
     try {
         for (f in o) {
             try {
-                console.log(f + '=' + o[f]);
+                log('debug ' + f + '=' + o[f]);
             } catch (e) {}
         }
     } catch (e) {}

Modified: tuscany/sca-cpp/trunk/modules/oauth/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/oauth/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/oauth/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/oauth/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -19,6 +19,11 @@
 
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+
 <script type="text/javascript" src="/component.js"></script>
 <script type="text/javascript">
 var protected = sca.component("Protected");
@@ -32,6 +37,7 @@ var lastname = userInfo.apply("getlastna
 var realm = userInfo.apply("getrealm");
 </script>
 </head>
+
 <body>
 <h1>Protected area - It works!</h1>
 <p>The following info is returned by a JSONRPC service:</p>
@@ -42,6 +48,7 @@ var realm = userInfo.apply("getrealm");
 <div>Firstname: <span id="firstname"></span></div>
 <div>Lastname: <span id="lastname"></span></div>
 <div>Realm: <span id="realm"></span></div>
+
 <script type="text/javascript">
 document.getElementById('user').innerHTML=user;
 document.getElementById('email').innerHTML=email;
@@ -51,8 +58,10 @@ document.getElementById('firstname').inn
 document.getElementById('lastname').innerHTML=lastname;
 document.getElementById('realm').innerHTML=realm;
 </script>
+
 <p><a href="info">User info</a></p>
 <p><a href="login">Sign in</a></p>
 <p><a href="logout">Sign out</a></p>
 <p><a href="public">Public area</a></p>
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/modules/oauth/htdocs/login/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/oauth/htdocs/login/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/oauth/htdocs/login/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/oauth/htdocs/login/index.html Mon Jan 17 07:26:48 2011
@@ -17,7 +17,17 @@
    under the License.
 -->
 
-<html><body><h1>Sign in with an OAuth provider</h1>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign in</title>
+</head>
+<body>
+<h1>Sign in with an OAuth provider</h1>
+<br/>
 
 <script type="text/javascript">
 function queryParams() {
@@ -113,4 +123,5 @@ function withTwitter() {
 <input type="hidden" name="mod_oauth1_step" value="authorize"/>
 </form>
 
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/modules/oauth/htdocs/login/mixed.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/oauth/htdocs/login/mixed.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/oauth/htdocs/login/mixed.html (original)
+++ tuscany/sca-cpp/trunk/modules/oauth/htdocs/login/mixed.html Mon Jan 17 07:26:48 2011
@@ -17,7 +17,16 @@
    under the License.
 -->
 
-<html><body><h1>Sign in with a Form, an OpenID provider or an OAuth provider</h1>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign in</title>
+</head>
+<body>
+<h1>Sign in with a Form, an OpenID provider or an OAuth provider</h1>
 
 <script type="text/javascript">
 function submitFormSignin() {
@@ -208,4 +217,5 @@ function withTwitter() {
 <input type="hidden" name="mod_oauth1_step" value="authorize"/>
 </form>
 
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/modules/oauth/htdocs/logout/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/oauth/htdocs/logout/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/oauth/htdocs/logout/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/oauth/htdocs/logout/index.html Mon Jan 17 07:26:48 2011
@@ -17,8 +17,17 @@
    under the License.
 -->
 
-<html><body>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign out</title>
+</head>
+<body>
 <h1>Sign out</h1>
+<br/>
 
 <form name="signout" action="/login" method="GET">
 <script type="text/javascript">
@@ -30,4 +39,5 @@ function submitSignout() {
 </script>
 <input type="button" onclick="submitSignout()" value="Sign out"/>
 </form>
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/modules/oauth/htdocs/public/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/oauth/htdocs/public/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/oauth/htdocs/public/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/oauth/htdocs/public/index.html Mon Jan 17 07:26:48 2011
@@ -18,10 +18,18 @@
 -->
 
 <html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Unprotected area</title>
+</head>
 <body>
 <h1>Unprotected area - It works!</h1>
 <p><a href="/info">User info</a></p>
 <p><a href="/login">Sign in</a></p>
 <p><a href="/logout">Sign out</a></p>
 <p><a href="/">Protected area</a></p>
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/modules/openid/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/openid/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/openid/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/openid/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -19,7 +19,12 @@
 
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <script type="text/javascript" src="/component.js"></script>
+
 <script type="text/javascript">
 var protected = sca.component("Protected");
 var userInfo = sca.defun(sca.reference(protected, "userInfo"), "getuser", "getemail", "getrealm");
@@ -27,20 +32,26 @@ var user = userInfo.getuser();
 var email = userInfo.getemail();
 var realm = userInfo.getrealm();
 </script>
+
+<title>Protected area</title>
 </head>
+
 <body>
 <h1>Protected area - It works!</h1>
 <p>The following info is returned by a JSONRPC service:</p>
 <div id="user"></div>
 <div id="email"></div>
 <div id="realm"></div>
+
 <script type="text/javascript">
 document.getElementById('user').innerHTML="User: " + user;
 document.getElementById('email').innerHTML="Email: " + email;
 document.getElementById('realm').innerHTML="Realm: " + realm;
 </script>
+
 <p><a href="info">User info</a></p>
 <p><a href="login">Sign in</a></p>
 <p><a href="logout">Sign out</a></p>
 <p><a href="public">Public area</a></p>
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/modules/openid/htdocs/login/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/openid/htdocs/login/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/openid/htdocs/login/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/openid/htdocs/login/index.html Mon Jan 17 07:26:48 2011
@@ -17,7 +17,17 @@
    under the License.
 -->
 
-<html><body><h1>Sign in with an OpenID provider</h1>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign in</title>
+</head>
+<body>
+<h1>Sign in with an OpenID provider</h1>
+<br/>
 
 <script type="text/javascript">
 function queryParams() {
@@ -126,4 +136,5 @@ function withXRDSEndpoint() {
 <input type="button" onclick="submitSignin(withXRDSEndpoint)" value="Sign in"/></p>
 </form>
 
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/modules/openid/htdocs/logout/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/openid/htdocs/logout/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/openid/htdocs/logout/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/openid/htdocs/logout/index.html Mon Jan 17 07:26:48 2011
@@ -17,8 +17,17 @@
    under the License.
 -->
 
-<html><body>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign out</title>
+</head>
+<body>
 <h1>Sign out</h1>
+<br/>
 
 <form name="signout" action="/login" method="GET">
 <script type="text/javascript">
@@ -30,4 +39,5 @@ function submitSignout() {
 </script>
 <input type="button" onclick="submitSignout()" value="Sign out"/>
 </form>
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/modules/openid/htdocs/public/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/openid/htdocs/public/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/openid/htdocs/public/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/openid/htdocs/public/index.html Mon Jan 17 07:26:48 2011
@@ -18,10 +18,18 @@
 -->
 
 <html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Unprotected area</title>
+</head>
 <body>
 <h1>Unprotected area - It works!</h1>
 <p><a href="/info">User info</a></p>
 <p><a href="/login">Sign in</a></p>
 <p><a href="/logout">Sign out</a></p>
 <p><a href="/">Protected area</a></p>
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/modules/server/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/server/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/server/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/server/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -17,5 +17,16 @@
    under the License.
 -->
 
-<html><body><h1>It works!</h1></body></html>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>It works</title>
+</head>
+<body>
+<h1>It works!</h1>
+</body>
+</html>
 

Modified: tuscany/sca-cpp/trunk/modules/wsgi/composite.py
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/wsgi/composite.py?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/wsgi/composite.py (original)
+++ tuscany/sca-cpp/trunk/modules/wsgi/composite.py Mon Jan 17 07:26:48 2011
@@ -143,6 +143,8 @@ def application(e, r):
     if m == "GET":
         if fpath.endswith(".html"):
             return fileresult(e, r, "text/html", fpath)
+        if fpath.endswith(".css"):
+            return fileresult(e, r, "text/css", fpath)
         if fpath.endswith(".js"):
             return fileresult(e, r, "application/x-javascript", fpath)
         if fpath.endswith(".png"):

Modified: tuscany/sca-cpp/trunk/modules/wsgi/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/wsgi/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/wsgi/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/wsgi/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -1 +1,31 @@
-<html><body><h1>It works!</h1></body></html>
\ No newline at end of file
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you under the Apache License, Version 2.0 (the
+    * "License"); you may not use this file except in compliance
+    * with the License.  You may obtain a copy of the License at
+    * 
+    *   http://www.apache.org/licenses/LICENSE-2.0
+    * 
+    * Unless required by applicable law or agreed to in writing,
+    * software distributed under the License is distributed on an
+    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    * KIND, either express or implied.  See the License for the
+    * specific language governing permissions and limitations
+    * under the License.    
+-->
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>It works</title>
+</head>
+<body>
+<h1>It works!</h1>
+</body>
+</html>
+

Modified: tuscany/sca-cpp/trunk/samples/loan-python/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/loan-python/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/loan-python/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/loan-python/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -18,6 +18,10 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 
 <script type="text/javascript" src="/component.js"></script>
@@ -126,11 +130,11 @@ function init() {
     }
 }
 </script>
-
 </head>
 
 <body onload="init()">
 <h1>Store</h1>
+<br/>
 <div id="store">
 <h2>Catalog</h2>
 <form name="catalogForm">

Modified: tuscany/sca-cpp/trunk/samples/relay-gae/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/relay-gae/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/relay-gae/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/relay-gae/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -18,7 +18,12 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Relay</title>
+</head>
 <body>
 
 <p><a href="/html">Sample HTML request</a></p>

Modified: tuscany/sca-cpp/trunk/samples/relay-python/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/relay-python/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/relay-python/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/relay-python/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -18,6 +18,10 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Relay</title>
 <body>
 

Modified: tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/index.html Mon Jan 17 07:26:48 2011
@@ -18,6 +18,10 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 
 <script type="text/javascript" src="/component.js"></script>
@@ -120,11 +124,11 @@ function init() {
     }
 }
 </script>
-
 </head>
 
 <body onload="init()">
 <h1>Jane's Store</h1>
+<br/>
 <div id="store">
 <h2>Catalog</h2>
 <form name="catalogForm">

Modified: tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/login/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/login/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/login/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/login/index.html Mon Jan 17 07:26:48 2011
@@ -17,7 +17,17 @@
    under the License.
 -->
 
-<html><body><h1>Sign in with an OpenID or OAuth provider</h1>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign in</title>
+</head>
+<body>
+<h1>Sign in with an OpenID or OAuth provider</h1>
+<br/>
 
 <script type="text/javascript">
 function queryParams() {
@@ -191,4 +201,5 @@ function withTwitter() {
 <input type="hidden" name="mod_oauth1_step" value="authorize"/>
 </form>
 
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/logout/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/logout/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/logout/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/logout/index.html Mon Jan 17 07:26:48 2011
@@ -17,8 +17,17 @@
    under the License.
 -->
 
-<html><body>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign out</title>
+</head>
+<body>
 <h1>Sign out</h1>
+<br/>
 
 <form name="signout" action="/login" method="GET">
 <script type="text/javascript">
@@ -30,4 +39,5 @@ function submitSignout() {
 </script>
 <input type="button" onclick="submitSignout()" value="Sign out"/>
 </form>
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/index.html Mon Jan 17 07:26:48 2011
@@ -18,6 +18,10 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 
 <script type="text/javascript" src="/component.js"></script>
@@ -120,11 +124,11 @@ function init() {
     }
 }
 </script>
-
 </head>
 
 <body onload="init()">
 <h1>Joe's Store</h1>
+<br/>
 <div id="store">
 <h2>Catalog</h2>
 <form name="catalogForm">

Modified: tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/login/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/login/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/login/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/login/index.html Mon Jan 17 07:26:48 2011
@@ -17,7 +17,17 @@
    under the License.
 -->
 
-<html><body><h1>Sign in with an OpenID or OAuth provider</h1>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign in</title>
+</head>
+<body>
+<h1>Sign in with an OpenID or OAuth provider</h1>
+<br/>
 
 <script type="text/javascript">
 function queryParams() {
@@ -191,4 +201,5 @@ function withTwitter() {
 <input type="hidden" name="mod_oauth1_step" value="authorize"/>
 </form>
 
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/logout/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/logout/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/logout/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/logout/index.html Mon Jan 17 07:26:48 2011
@@ -17,8 +17,17 @@
    under the License.
 -->
 
-<html><body>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign out</title>
+</head>
+<body>
 <h1>Sign out</h1>
+<br/>
 
 <form name="signout" action="/login" method="GET">
 <script type="text/javascript">

Modified: tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -18,11 +18,16 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 </head>
 
 <body>
 <h1>Store</h1>
+<br/>
 <p>For this sample to work, add the sample domain to your /etc/hosts as follows:<br/>
 127.0.0.1 sca-store.com jane.sca-store.com joe.sca-store.com</p>
 

Modified: tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/login/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/login/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/login/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/login/index.html Mon Jan 17 07:26:48 2011
@@ -17,7 +17,17 @@
    under the License.
 -->
 
-<html><body><h1>Sign in with an OpenID or OAuth provider</h1>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign in</title>
+</head>
+<body>
+<h1>Sign in with an OpenID or OAuth provider</h1>
+<br/>
 
 <script type="text/javascript">
 function queryParams() {
@@ -191,4 +201,5 @@ function withTwitter() {
 <input type="hidden" name="mod_oauth1_step" value="authorize"/>
 </form>
 
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-cluster/htdocs/logout/index.html Mon Jan 17 07:26:48 2011
@@ -17,8 +17,17 @@
    under the License.
 -->
 
-<html><body>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign out</title>
+</head>
+<body>
 <h1>Sign out</h1>
+<br/>
 
 <form name="signout" action="/login" method="GET">
 <script type="text/javascript">
@@ -30,4 +39,5 @@ function submitSignout() {
 </script>
 <input type="button" onclick="submitSignout()" value="Sign out"/>
 </form>
-</body></html>
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/samples/store-cpp/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-cpp/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-cpp/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-cpp/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -18,6 +18,10 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 
 <script type="text/javascript" src="/component.js"></script>
@@ -120,11 +124,11 @@ function init() {
     }
 }
 </script>
-
 </head>
 
 <body onload="init()">
 <h1>Store</h1>
+<br/>
 <div id="store">
 <h2>Catalog</h2>
 <form name="catalogForm">

Modified: tuscany/sca-cpp/trunk/samples/store-gae/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-gae/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-gae/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-gae/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -18,6 +18,10 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 
 <script type="text/javascript" src="/component.js"></script>

Modified: tuscany/sca-cpp/trunk/samples/store-java/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-java/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-java/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-java/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -18,6 +18,10 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 
 <script type="text/javascript" src="/component.js"></script>
@@ -120,11 +124,11 @@ function init() {
     }
 }
 </script>
-
 </head>
 
 <body onload="init()">
 <h1>Store</h1>
+<br/>
 <div id="store">
 <h2>Catalog</h2>
 <form name="catalogForm">

Modified: tuscany/sca-cpp/trunk/samples/store-nosql/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-nosql/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-nosql/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-nosql/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -18,6 +18,10 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 
 <script type="text/javascript" src="/component.js"></script>
@@ -120,11 +124,11 @@ function init() {
     }
 }
 </script>
-
 </head>
 
 <body onload="init()">
 <h1>Store</h1>
+<br/>
 <div id="store">
 <h2>Catalog</h2>
 <form name="catalogForm">

Modified: tuscany/sca-cpp/trunk/samples/store-python/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-python/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-python/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-python/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -18,6 +18,10 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 
 <script type="text/javascript" src="/component.js"></script>
@@ -120,11 +124,11 @@ function init() {
     }
 }
 </script>
-
 </head>
 
 <body onload="init()">
 <h1>Store</h1>
+<br/>
 <div id="store">
 <h2>Catalog</h2>
 <form name="catalogForm">

Modified: tuscany/sca-cpp/trunk/samples/store-python/htdocs/login/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-python/htdocs/login/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-python/htdocs/login/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-python/htdocs/login/index.html Mon Jan 17 07:26:48 2011
@@ -17,7 +17,17 @@
    under the License.
 -->
 
-<html><body><h1>Sign in</h1>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign in</title>
+</head>
+<body>
+<h1>Sign in</h1>
+<br/>
 
 <script type="text/javascript">
 function submitFormSignin() {

Modified: tuscany/sca-cpp/trunk/samples/store-python/htdocs/logout/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-python/htdocs/logout/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-python/htdocs/logout/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-python/htdocs/logout/index.html Mon Jan 17 07:26:48 2011
@@ -17,8 +17,17 @@
    under the License.
 -->
 
-<html><body>
+<html>
+<head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<title>Sign out</title>
+</head>
+<body>
 <h1>Sign out</h1>
+<br/>
 
 <form name="signout" action="/login" method="GET">
 <script type="text/javascript">

Modified: tuscany/sca-cpp/trunk/samples/store-scheme/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-scheme/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-scheme/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-scheme/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -18,6 +18,10 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 
 <script type="text/javascript" src="/component.js"></script>
@@ -120,11 +124,11 @@ function init() {
     }
 }
 </script>
-
 </head>
 
 <body onload="init()">
 <h1>Store</h1>
+<br/>
 <div id="store">
 <h2>Catalog</h2>
 <form name="catalogForm">

Modified: tuscany/sca-cpp/trunk/samples/store-sql/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-sql/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-sql/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-sql/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -18,6 +18,10 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 
 <script type="text/javascript" src="/component.js"></script>
@@ -120,11 +124,11 @@ function init() {
     }
 }
 </script>
-
 </head>
 
 <body onload="init()">
 <h1>Store</h1>
+<br/>
 <div id="store">
 <h2>Catalog</h2>
 <form name="catalogForm">

Modified: tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html Mon Jan 17 07:26:48 2011
@@ -18,6 +18,10 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 
 <script type="text/javascript" src="/component.js"></script>
@@ -120,11 +124,11 @@ function init() {
     }
 }
 </script>
-
 </head>
 
 <body onload="init()">
 <h1>Jane's Store</h1>
+<br/>
 <div id="store">
 <h2>Catalog</h2>
 <form name="catalogForm">

Modified: tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html Mon Jan 17 07:26:48 2011
@@ -18,6 +18,10 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 
 <script type="text/javascript" src="/component.js"></script>
@@ -120,11 +124,11 @@ function init() {
     }
 }
 </script>
-
 </head>
 
 <body onload="init()">
 <h1>Joe's Store</h1>
+<br/>
 <div id="store">
 <h2>Catalog</h2>
 <form name="catalogForm">

Modified: tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/index.html?rev=1059769&r1=1059768&r2=1059769&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/samples/store-vhost/htdocs/index.html Mon Jan 17 07:26:48 2011
@@ -18,11 +18,16 @@
 -->
 <html>
 <head>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> 
+<meta name="apple-mobile-web-app-capable" content="yes"/>
+<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
 <title>Store</title>
 </head>
 
 <body>
 <h1>Store</h1>
+<br/>
 <p>For this sample to work, add the sample domain to your /etc/hosts as follows:<br/>
 127.0.0.1 sca-store.com jane.sca-store.com joe.sca-store.com</p>