tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsdelf...@apache.org
Subject svn commit: r1094209 [2/2] - in /tuscany/sca-cpp/trunk: ./ modules/edit/ modules/edit/htdocs/ modules/edit/htdocs/app/ modules/edit/htdocs/dash/ modules/edit/htdocs/data/ modules/edit/htdocs/graph/ modules/edit/htdocs/login/ modules/edit/htdocs/logout/...
Date Sun, 17 Apr 2011 22:14:12 GMT
Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/props/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/props/index.html?rev=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/props/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/props/index.html Sun Apr 17 22:14:11 2011
@@ -1,52 +1,67 @@
 <!--
-    * 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.    
+ * 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>
-<title>Settings</title>
+<title>Stats</title>
 <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"/>
 <link rel="apple-touch-icon" href="/public/touchicon.png"/>
 <link rel="stylesheet" type="text/css" href="/ui.css"/>
+<script type="text/javascript" src="/config.js"></script>
 <script type="text/javascript" src="/util.js"></script>
 <script type="text/javascript" src="/ui.js"></script>
 </head>
 <body class="delayed">
 <div id="menu"></div>
 
-<h1><span id="h1"></span> <span id="appNameHeader" style="font-weight:
normal;"></span></h1>
+<h1><span id="h1"></span><span id="appNameHeader"></span></h1>
 <br/>
 
 <div id="props"></div>
 
 <script type="text/javascript">
 
+/**
+ * Return the link to an app.
+ */
+function applink(appname) {
+    var protocol = window.location.protocol;
+    var host = window.location.hostname;
+    var port = ':' + window.location.port;
+    if (port == ':80' || port == ':443' || port == ':')
+        port = '';
+    var link = protocol + '//' + appname + '.' + host + port + '/';
+    return link;
+}
+
 // Get the app name
 var appname = ui.queryParams()['app'];
 
+// Update the window title
+document.title = windowtitle(window.location.hostname) + ' - Stats - ' + appname;
+$('h1').innerHTML = hometitle(window.location.hostname);
+$('appNameHeader').innerHTML = ' - <a href=\"' + applink(appname) + '\" target=\"' + '_blank'
+ '\">' + appname + '</a>';
+
 // Load the menu bar
 ui.loadwidget('menu', '/menu.html?app=' + appname, ui.showbody);
 
-document.title = 'Settings - ' + appname;
-$('h1').innerHTML = domaintitle(window.location.hostname);
-$('appNameHeader').innerHTML = ' - ' + appname;
-
 /**
  * Display the properties editor for an app.
  */

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/props/props.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/props/props.html?rev=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/props/props.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/props/props.html Sun Apr 17 22:14:11 2011
@@ -1,24 +1,25 @@
 <!--
-    * 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.    
+ * 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>  
 <link rel="stylesheet" type="text/css" href="/ui.css">
+<script type="text/javascript" src="/config.js"></script>
 <script type="text/javascript" src="/util.js"></script>
 <script type="text/javascript" src="/elemutil.js"></script>
 <script type="text/javascript" src="/xmlutil.js"></script>
@@ -33,7 +34,7 @@
 
 <table style="width: 100%;">
 <tr>
-<th class="thl thr" style="padding-top: 4px; padding-bottom: 4px;">Settings</th>
+<th class="thl thr" style="padding-top: 4px; padding-bottom: 4px;">Stats</th>
 
 <th class="thl thr" style="padding-top: 0px; padding-bottom: 0px; padding-right: 0px;
text-align: right;">
 <input type="button" id="saveButton" title="Save the app" style="font-weight: bold;" Value="Saved"/>

Added: tuscany/sca-cpp/trunk/modules/edit/htdocs/public/grid72.png
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/public/grid72.png?rev=1094209&view=auto
==============================================================================
Files tuscany/sca-cpp/trunk/modules/edit/htdocs/public/grid72.png (added) and tuscany/sca-cpp/trunk/modules/edit/htdocs/public/grid72.png
Sun Apr 17 22:14:11 2011 differ

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/public/iframe.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/public/iframe.html?rev=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/public/iframe.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/public/iframe.html Sun Apr 17 22:14:11 2011
@@ -1,20 +1,20 @@
 <!--
-    * 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.    
+ * 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>

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/public/notauth.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/public/notauth.html?rev=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/public/notauth.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/public/notauth.html Sun Apr 17 22:14:11 2011
@@ -1,20 +1,20 @@
 <!--
-    * 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.    
+ * 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>
@@ -23,6 +23,7 @@
 <meta name="apple-mobile-web-app-capable" content="yes"/>
 <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
 <link rel="stylesheet" type="text/css" href="/ui.css"/>
+<script type="text/javascript" src="/config.js"></script>
 <script type="text/javascript" src="/util.js"></script>
 <script type="text/javascript" src="/ui.js"></script>
 </head>
@@ -32,7 +33,7 @@
 <h1 id="h1"></h1>
 <br/>
 
-<div class="hd1">Sorry, you're not authorized to view this page.</div>
+<div class="hd2">Sorry, you're not authorized to view this page.</div>
 
 <form name="signout" action="/public/notauth.html" method="GET">
 </form>
@@ -43,7 +44,7 @@
 if (!issubdomain(window.location.hostname))
     ui.loadwidget('menu', '/menu.html', ui.showbody);
 
-$('h1').innerHTML = domaintitle(window.location.hostname);
+$('h1').innerHTML = hometitle(window.location.hostname);
 
 if (issubdomain(window.location.hostname))
     ui.showbody();

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/public/notfound.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/public/notfound.html?rev=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/public/notfound.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/public/notfound.html Sun Apr 17 22:14:11 2011
@@ -1,20 +1,20 @@
 <!--
-    * 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.    
+ * 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>
@@ -23,6 +23,7 @@
 <meta name="apple-mobile-web-app-capable" content="yes"/>
 <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
 <link rel="stylesheet" type="text/css" href="/ui.css"/>
+<script type="text/javascript" src="/config.js"></script>
 <script type="text/javascript" src="/util.js"></script>
 <script type="text/javascript" src="/ui.js"></script>
 </head>
@@ -32,7 +33,7 @@
 <h1 id="h1"></h1>
 <br/>
 
-<div class="hd1">Sorry, that page was not found.</div>
+<div class="hd2">Sorry, that page was not found.</div>
 <div>You may have clicked an expired link or mistyped the address.</div>
 
 <script type="text/javascript">
@@ -41,7 +42,7 @@
 if (!issubdomain(window.location.hostname))
     ui.loadwidget('menu', '/menu.html', ui.showbody);
 
-$('h1').innerHTML = domaintitle(window.location.hostname);
+$('h1').innerHTML = hometitle(window.location.hostname);
 
 if (issubdomain(window.location.hostname))
     ui.showbody();

Added: tuscany/sca-cpp/trunk/modules/edit/htdocs/public/notyet.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/public/notyet.html?rev=1094209&view=auto
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/public/notyet.html (added)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/public/notyet.html Sun Apr 17 22:14:11 2011
@@ -0,0 +1,52 @@
+<!--
+ * 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>
+<title>Page not found</title>
+<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"/>
+<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<script type="text/javascript" src="/config.js"></script>
+<script type="text/javascript" src="/util.js"></script>
+<script type="text/javascript" src="/ui.js"></script>
+</head>
+<body class="delayed">
+<div id="menu"></div>
+
+<h1 id="h1"></h1>
+<br/>
+
+<div class="hd2">Sorry, that page is still under construction.</div>
+<div>Please check back later.</div>
+
+<script type="text/javascript">
+
+// Load the menu bar
+if (!issubdomain(window.location.hostname))
+    ui.loadwidget('menu', '/menu.html', ui.showbody);
+
+$('h1').innerHTML = hometitle(window.location.hostname);
+
+if (issubdomain(window.location.hostname))
+    ui.showbody();
+</script>
+
+</body>
+</html>

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/public/oops.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/public/oops.html?rev=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/public/oops.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/public/oops.html Sun Apr 17 22:14:11 2011
@@ -1,20 +1,20 @@
 <!--
-    * 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.    
+ * 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>
@@ -23,6 +23,7 @@
 <meta name="apple-mobile-web-app-capable" content="yes"/>
 <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
 <link rel="stylesheet" type="text/css" href="/ui.css"/>
+<script type="text/javascript" src="/config.js"></script>
 <script type="text/javascript" src="/util.js"></script>
 <script type="text/javascript" src="/ui.js"></script>
 </head>
@@ -32,7 +33,7 @@
 <h1 id="h1"></h1>
 <br/>
 
-<div class="hd1">Oops, something went wrong...</div>
+<div class="hd2">Oops, something went wrong...</div>
 
 <script type="text/javascript">
 
@@ -40,7 +41,7 @@
 if (!issubdomain(window.location.hostname))
     ui.loadwidget('menu', '/menu.html', ui.showbody);
 
-$('h1').innerHTML = domaintitle(window.location.hostname);
+$('h1').innerHTML = hometitle(window.location.hostname);
 
 if (issubdomain(window.location.hostname))
    ui.showbody();

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/store/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/store/index.html?rev=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/store/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/store/index.html Sun Apr 17 22:14:11 2011
@@ -1,31 +1,35 @@
 <!--
-    * 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.    
+ * 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>
-<title>App Store</title>
+<title>Store</title>
 <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"/>
 <link rel="apple-touch-icon" href="/public/touchicon.png"/>
 <link rel="stylesheet" type="text/css" href="/ui.css"/>
+<script type="text/javascript" src="/config.js"></script>
 <script type="text/javascript" src="/util.js"></script>
 <script type="text/javascript" src="/ui.js"></script>
+<script type="text/javascript">
+document.title = windowtitle(window.location.hostname) + ' - Store';
+</script>
 </head>
 <body class="delayed">
 <div id="menu"></div>
@@ -40,12 +44,12 @@
 // Load the menu bar
 ui.loadwidget('menu', '/menu.html', ui.showbody);
 
-$('h1').innerHTML = domaintitle(window.location.hostname);
+$('h1').innerHTML = hometitle(window.location.hostname);
 
 // Get the store category
 var category = ui.queryParams()['category'];
 if (isNil(category))
-    category = 'new';
+    category = 'myapps';
 
 // Load the store
 $('store').innerHTML =

Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/store/store.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/store/store.html?rev=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/store/store.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/store/store.html Sun Apr 17 22:14:11 2011
@@ -1,24 +1,25 @@
 <!--
-    * 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.    
+ * 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>  
 <link rel="stylesheet" type="text/css" href="/ui.css">
+<script type="text/javascript" src="/config.js"></script>
 <script type="text/javascript" src="/util.js"></script>
 <script type="text/javascript" src="/elemutil.js"></script>
 <script type="text/javascript" src="/xmlutil.js"></script>
@@ -44,24 +45,24 @@ if (ui.isIE()) $('bodydiv').style.right 
  */
 var category = ui.queryParams()['category'];
 if (isNil(category))
-    category = 'new';
+    category = 'myapps';
+log('category', category);
 
 /**
  * Build store menu bar
  */
 function catmenu() {
     function catmenuitem(name, cat) {
-        var c = cat == category? "smenu" : "amenu";
+        var c = cat == category? 'smenu' : 'amenu';
         return '<th class="thl thr" style="width: 30px; padding-top: 4px; padding-bottom:
4px; padding-right: 10px;">'
-                + '<a href="/store/?category=' + cat + '" target="_parent"><span
class="' + c + '">' + name + '</span></a></th>';
+                + ui.ahref('/store/?category=' + cat, '_parent', '<span class="' + c +
'">' + name + '</span>') + '</th>';
     }
 
     var m = '<table style="width: 100%;"><tr>';
+    m += catmenuitem('My Apps', 'myapps');
     m += catmenuitem('New Apps', 'new');
     m += catmenuitem('Top Charts', 'top');
     m += catmenuitem('Featured', 'featured');
-    m += catmenuitem('Services', 'services');
-    m += catmenuitem('Tests', 'tests');
     m += '<th class="thl thr" style="width: 100%;"></th></tr></table>';
     return m;
 }
@@ -74,6 +75,7 @@ $('catmenu').innerHTML = catmenu();
  */
 var editWidget = sca.component("EditWidget");
 var store = sca.reference(editWidget, "store");
+var dashboard = sca.reference(editWidget, "dashboard");
 
 /**
  * Return the link to an app.
@@ -89,31 +91,49 @@ function applink(appname) {
 }
 
 /**
+ * Edit an app.
+ */
+function editApp(appname) {
+    return window.open('/page?app=' + appname, '_parent');
+}
+
+/**
+ * Clone an app.
+ */
+function cloneApp(appname) {
+    return window.open('/public/notyet.html', '_parent');
+}
+
+/**
  * Get and display list of apps.
  */
-function getapps(category, sync) {
+function getapps(category) {
     function display(doc) {
         var apps = '<div>';
         var feed = car(elementsToValues(atom.readATOMFeed(mklist(doc))));
         var entries = cadr(assoc("'entry", cdr(feed)));
         for (var i = 0; i < length(entries); i++) {
             var entry = entries[i];
-            title = cadr(assoc("'title", entry))
-            name = cadr(assoc("'id", entry))
-            author = 'joe@localhost';
-            hreflink = '<a href=\"' + applink(name) + '\" target=\"' + '_blank' + '\">';
+            var title = cadr(assoc("'title", entry))
+            var name = cadr(assoc("'id", entry))
+            var author = 'joe@localhost';
+            var clone = isNil(config.clone)? 'Clone' : config.clone;
 
             apps += '<div class="box" style="width: 250px; display: inline-block; border:
1px; border-style: solid; border-color: #dcdcdc; border-collapse: collapse; margin: 5px; padding:
10px; vertical-align: top;">'
             apps += '<table><tr>';
             apps += '<td>';
-            apps += '<div>' + hreflink + '<img src="/public/app.png" width="50"
height="50" style="height: 50px; width: 50px; vertical-align: top; margin-right: 10px; margin-bottom:
5px;"></img>' + '</a></div>';
-            apps += '<div><input type="button" id="cloneApp" value="Clone" title="Clone
this app"></div>';
+            apps += '<div>' + ui.ahref(applink(name), '_blank', '<img src="/public/app.png"
width="50" height="50" style="height: 50px; width: 50px; vertical-align: top; margin-right:
10px; margin-bottom: 5px;"></img>') + '</div>';
+            apps += '<div><input type="button" id="cloneApp" value="' + clone +
'" title="' + clone + ' this app" onclick="cloneApp(\'' + name + '\');"></div>';
+            if (category == 'myapps')
+                apps += '<div><input type="button" id="editApp" value="Edit" title="Edit
this app" onclick="editApp(\'' + name + '\');"></div>';
             apps += '</td>';
             apps += '<td class="tdw">';
-            apps += '<div style="font-weight: bold">' + hreflink + name + '</a></div>';
+            apps += '<div style="font-weight: bold">' + ui.ahref(applink(name), '_blank',
name) + '</div>';
             apps += '<div>' + 'by&nbsp;' + '<span style="font-weight: bold;">'
+ author + '</span></div>';
+            apps += '<div>Feb 4, 2011</div>';
             apps += '<br/>';
             apps += '<div>' + title + '</div>';
+            apps += '<br/>';
             apps += '</td>';
             apps += '</tr></table>';
             apps += '</div>';
@@ -125,17 +145,20 @@ function getapps(category, sync) {
         ui.showbody();
     }
 
-    if (sync) {
-        display(store.get(category));
-    } else {
-        store.get(category, function(doc) {
+    if (category == 'myapps') {
+        dashboard.get('', function(doc) {
             display(doc);
         });
+        return true;
     }
+    store.get(category, function(doc) {
+        display(doc);
+    });
+    return true;
 }
 
 // Get and display the list of apps
-getapps(category, true);
+getapps(category);
 
 </script>
 </body>

Modified: tuscany/sca-cpp/trunk/modules/edit/mkapplinks
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/mkapplinks?rev=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/mkapplinks (original)
+++ tuscany/sca-cpp/trunk/modules/edit/mkapplinks Sun Apr 17 22:14:11 2011
@@ -33,6 +33,7 @@ done
 for n in `ls apps | awk '{ printf "apps/%s/htdocs\n", $1 }'`; do
     if [ ! -e "$n" ]; then
         mkdir "$n"
+        ln -s ../../../htdocs/cache-manifest.cmf "$n/cache-manifest.cmf"
         ln -s ../../../htdocs/login "$n/login"
         ln -s ../../../htdocs/logout "$n/logout"
         ln -s ../../../htdocs/public "$n/public"

Modified: tuscany/sca-cpp/trunk/modules/http/conf/mime.types
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/http/conf/mime.types?rev=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/http/conf/mime.types (original)
+++ tuscany/sca-cpp/trunk/modules/http/conf/mime.types Sun Apr 17 22:14:11 2011
@@ -539,6 +539,7 @@ multipart/related
 multipart/report
 multipart/signed
 multipart/voice-message
+text/cache-manifest		cmf
 text/calendar			ics ifb
 text/css			css
 text/directory

Modified: tuscany/sca-cpp/trunk/modules/js/htdocs/scdl.js
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/js/htdocs/scdl.js?rev=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/js/htdocs/scdl.js (original)
+++ tuscany/sca-cpp/trunk/modules/js/htdocs/scdl.js Sun Apr 17 22:14:11 2011
@@ -90,6 +90,13 @@ scdl.title = function(l) {
 };
 
 /**
+ * Returns the display style of a component, componentType, reference or property.
+ */
+scdl.style = function(l) {
+    return namedAttributeValue("'t:style", l);
+};
+
+/**
  * Returns the color of a component or componentType.
  */
 scdl.color = function(l) {

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=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css (original)
+++ tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css Sun Apr 17 22:14:11 2011
@@ -53,6 +53,11 @@ border-style: solid; border-top-color: #
 overflow: hidden;
 }
 
+.text {
+padding-top: 3px; padding-bottom: 4px; vertical-align: text-top;
+vertical-align: text-top;
+}
+
 .thl {
 border-left: 0px;
 }
@@ -81,6 +86,10 @@ border-left: 1px; border-style: solid; b
 padding-left: 2px; padding-top: 2px; padding-right: 8px; white-space: normal; vertical-align:
text-top;
 }
 
+.datatd {
+border-top: 1px; border-bottom: 1px; border-style: solid; border-color: #dcdcdc; width: 10px;
vertical-align: top;
+}
+
 .datatdl {
 border-right: 1px; border-top: 1px; border-bottom: 1px; border-style: solid; border-color:
#dcdcdc; width: 10px; vertical-align: top;
 }
@@ -100,6 +109,10 @@ opacity: .6;  
 filter: alpha(opacity=60);
 }
 
+.guide {
+border: 1px; border-style: solid; border-color: #c0c0c0;
+}
+
 iframe {
 border: 0px; margin: 0px; padding: 0px;
 }
@@ -177,17 +190,22 @@ cursor: pointer; cursor: hand;
 }
 
 .tbar {
-margin: 0px;
+margin: 0px; width: 100%;
 padding-top: 0px; padding-left: 0px; padding-right: 0px; padding-bottom: 3px;
 border-bottom: 1px solid #a2bae7; border-collapse: separate;
 }
 
 .ltbar {
-padding-left: 0px; padding-top: 0px; padding-right: 8px; white-space: nowrap; vertical-align:
top;
+padding-left: 0px; padding-top: 0px; padding-right: 6px; white-space: nowrap; vertical-align:
top;
+}
+
+.dtbar {
+padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: nowrap; vertical-align:
top;
+text-align: right;
 }
 
 .rtbar {
-padding-left: 8px; padding-right: 0px; padding-top: 0px; white-space: nowrap; vertical-align:
top;
+padding-left: 6px; padding-right: 0px; padding-top: 0px; white-space: nowrap; vertical-align:
top;
 text-align: right;
 }
 

Modified: tuscany/sca-cpp/trunk/modules/js/htdocs/ui.js
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/js/htdocs/ui.js?rev=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/js/htdocs/ui.js (original)
+++ tuscany/sca-cpp/trunk/modules/js/htdocs/ui.js Sun Apr 17 22:14:11 2011
@@ -34,6 +34,20 @@ ui.isIE = function() {
 };
 
 /**
+ * Build a portable href attribute.
+ */
+ui.href = function(loc, target) {
+    return 'javascript:window.open(\'' + loc + '\', \'' + target + '\');';
+};
+
+/**
+ * Build a portable <a href> tag.
+ */
+ui.ahref = function(loc, target, html) {
+    return '<a href="' + ui.href(loc, target) + '">' + html + '</a>';
+};
+
+/**
  * Build a menu bar.
  */ 
 ui.menu = function(name, href, target) {
@@ -55,23 +69,23 @@ ui.menu = function(name, href, target) {
             }
 
             if (complete(this.href) != complete(window.top.location.pathname))
-                return '<a href="' + this.href + '" target="' + this.target + '"><span
class=amenu>' + this.name + '</span></a>';
-            return '<a href="' + this.href + '" target="' + this.target + '"><span
class=smenu>' + this.name + '</span></a>';
+                return ui.ahref(this.href, this.target, '<span class="amenu">' + this.name
+ '</span>');
+            return ui.ahref(this.href, this.target, '<span class="smenu">' + this.name
+ '</span>');
         };
     }
     return new Menu(name, href, target);
 };
 
 ui.menubar = function(left, right) {
-    var bar = '<table cellpadding="0" cellspacing="0" width="100%" class=tbar><tr>'
+
-    '<td class=ltbar><table border="0" cellspacing="0" cellpadding="0"><tr>';
+    var bar = '<table cellpadding="0" cellspacing="0" width="100%" class="tbar"><tr>'
+
+    '<td class="dtbar"><table border="0" cellspacing="0" cellpadding="0"><tr>';
     for (i in left)
-        bar = bar + '<td class=ltbar>' + left[i].content() + '</td>'
+        bar = bar + '<td class="ltbar">' + left[i].content() + '</td>'
 
     bar = bar + '</tr></table></td>' +
-    '<td class=rtbar><table border="0" cellpadding="0" cellspacing="0" align="right"><tr>';
+    '<td class="dtbar"><table border="0" cellpadding="0" cellspacing="0" align="right"><tr>';
     for (i in right)
-        bar = bar + '<td class=rtbar>' + right[i].content() + '</td>'
+        bar = bar + '<td class="' + (i == 0? 'dtbar' : 'rtbar') + '">' + right[i].content()
+ '</td>'
 
     bar = bar + '</tr></table></td></tr></table>';
     return bar;
@@ -135,7 +149,7 @@ ui.suggest = function(input, suggestFunc
             if (values[i].indexOf(this.value) == -1)
                 continue;
             if (items.length == 0)
-                items += '<table class=suggestTable>';
+                items += '<table class="suggestTable">';
             items += '<tr><td class="suggestItem" ' +
             'onmouseover="ui.hilightSuggestion(this, true)" onmouseout="ui.hilightSuggestion(this,
false)" ' +
             'onmousedown="ui.selectSuggestion(this, \'' + values[i] + '\')">' + values[i]
+ '</td></tr>';
@@ -321,7 +335,7 @@ ui.datatable = function(l) {
             var v = elementValue(e);
             if (!isList(v)) {
                 return '<tr><td class="datatdl">' + indent(i) + elementName(e).slice(1)
+ '</td>' +
-                    '<td class="datatdr tdw">' + v + '</td></tr>' +
+                    '<td class="datatdr tdw">' + (v != null? v : '') + '</td></tr>'
+
                     rows(cdr(l), i);
             }
 
@@ -338,3 +352,39 @@ ui.datatable = function(l) {
     return '<table class="datatable ' + (window.name == 'dataFrame'? ' databg' : '') +
'" style="width: 100%;">' + rows(l, 0) + '</table>';
 }
 
+/**
+ * Convert a list of elements to an HTML single column table.
+ */
+ui.datalist = function(l) {
+
+    function rows(l, i) {
+        if (isNil(l))
+            return '';
+        var e = car(l);
+
+        // Convert a list of simple values into a list of name value pairs
+        if (!isList(e))
+            return rows(expandElementValues("'value", l), i);
+
+        // Convert a list of complex values into a list of name value pairs
+        if (isList(car(e)))
+            return rows(expandElementValues("'value", l), i);
+
+        // Generate table row for a simple element value
+        if (elementHasValue(e)) {
+            var v = elementValue(e);
+            if (!isList(v)) {
+                return '<tr><td class="datatd tdw">' + (v != null? v : '') +
'</td></tr>' +
+                    rows(cdr(l), i);
+            }
+
+            return rows(expandElementValues(elementName(e), v), i) + rows(cdr(l), i);
+        }
+
+        // Generate rows for an element's children
+        return rows(elementChildren(e), i + 1) + rows(cdr(l), i);
+    }
+
+    return '<table class="datatable ' + (window.name == 'dataFrame'? ' databg' : '') +
'" style="width: 100%;">' + rows(l, 0) + '</table>';
+}
+

Modified: tuscany/sca-cpp/trunk/modules/js/htdocs/uicyan.css
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/js/htdocs/uicyan.css?rev=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/js/htdocs/uicyan.css (original)
+++ tuscany/sca-cpp/trunk/modules/js/htdocs/uicyan.css Sun Apr 17 22:14:11 2011
@@ -53,6 +53,11 @@ border-style: solid; border-top-color: #
 overflow: hidden;
 }
 
+.text {
+padding-top: 3px; padding-bottom: 4px; vertical-align: text-top;
+vertical-align: text-top;
+}
+
 .thl {
 border-left: 0px;
 }
@@ -81,6 +86,10 @@ border-left: 1px; border-style: solid; b
 padding-left: 2px; padding-top: 2px; padding-right: 8px; white-space: normal; vertical-align:
text-top;
 }
 
+.datatd {
+border-top: 1px; border-bottom: 1px; border-style: solid; border-color: #dcdcdc; width: 10px;
vertical-align: top;
+}
+
 .datatdl {
 border-right: 1px; border-top: 1px; border-bottom: 1px; border-style: solid; border-color:
#dcdcdc; width: 10px; vertical-align: top;
 }
@@ -100,6 +109,10 @@ opacity: .6;  
 filter: alpha(opacity=60);
 }
 
+.guide {
+border: 1px; border-style: solid; border-color: #c0c0c0;
+}
+
 iframe {
 border: 0px; margin: 0px; padding: 0px;
 }
@@ -177,17 +190,22 @@ cursor: pointer; cursor: hand;
 }
 
 .tbar {
-margin: 0px;
+margin: 0px; width: 100%;
 padding-top: 0px; padding-left: 0px; padding-right: 0px; padding-bottom: 3px;
 border-bottom: 1px solid #a2bae7; border-collapse: separate;
 }
 
 .ltbar {
-padding-left: 0px; padding-top: 0px; padding-right: 8px; white-space: nowrap; vertical-align:
top;
+padding-left: 0px; padding-top: 0px; padding-right: 6px; white-space: nowrap; vertical-align:
top;
+}
+
+.dtbar {
+padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: nowrap; vertical-align:
top;
+text-align: right;
 }
 
 .rtbar {
-padding-left: 8px; padding-right: 0px; padding-top: 0px; white-space: nowrap; vertical-align:
top;
+padding-left: 6px; padding-right: 0px; padding-top: 0px; white-space: nowrap; vertical-align:
top;
 text-align: right;
 }
 
@@ -218,8 +236,10 @@ padding-left: 2px; padding-top: 0px; pad
 background-color: #598edd; color: #e5ecf9;
 }
 
+/*
 v\: * {
 behavior:url(#default#VML);
 display:inline-block; 
 }
+*/
 

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=1094209&r1=1094208&r2=1094209&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/js/htdocs/util.js (original)
+++ tuscany/sca-cpp/trunk/modules/js/htdocs/util.js Sun Apr 17 22:14:11 2011
@@ -208,6 +208,13 @@ function debug(o) {
 }
 
 /**
+ * External build configuration.
+ */
+var config;
+if (isNil(config))
+    config = {}
+
+/**
  * Simple assert function.
  */
 function AssertException() {
@@ -301,9 +308,22 @@ function issubdomain(host) {
 }
 
 /**
- * Convert a host name to a domain name title.
+ * Convert a host name to a home page title.
+ */
+function hometitle(host) {
+    if (!isNil(config.hometitle))
+        return config.hometitle;
+    var h = reverse(host.split('.'));
+    var d = isNil(cdr(h))? car(h) : cadr(h);
+    return d.substr(0, 1).toUpperCase() + d.substr(1);
+}
+
+/**
+ * Convert a host name to a window title.
  */
-function domaintitle(host) {
+function windowtitle(host) {
+    if (!isNil(config.windowtitle))
+        return config.windowtitle;
     var h = reverse(host.split('.'));
     var d = isNil(cdr(h))? car(h) : cadr(h);
     return d.substr(0, 1).toUpperCase() + d.substr(1);



Mime
View raw message