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/31 04:57:57 UTC
svn commit: r1065479 - in /tuscany/sca-cpp/trunk/modules: edit/ edit/htdocs/
edit/htdocs/app/ edit/htdocs/dash/ js/htdocs/
Author: jsdelfino
Date: Mon Jan 31 03:57:57 2011
New Revision: 1065479
URL: http://svn.apache.org/viewvc?rev=1065479&view=rev
Log:
Minor stylesheet changes.
Added:
tuscany/sca-cpp/trunk/modules/edit/htdocs/main.html
- copied, changed from r1065409, tuscany/sca-cpp/trunk/modules/edit/htdocs/index.html
tuscany/sca-cpp/trunk/modules/js/htdocs/uiblue.css
- copied, changed from r1065409, tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css
tuscany/sca-cpp/trunk/modules/js/htdocs/uicyan.css
- copied, changed from r1065409, tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css
Modified:
tuscany/sca-cpp/trunk/modules/edit/htdocs/app/index.html
tuscany/sca-cpp/trunk/modules/edit/htdocs/dash/dashboard.html
tuscany/sca-cpp/trunk/modules/edit/htdocs/dash/index.html
tuscany/sca-cpp/trunk/modules/edit/htdocs/index.html
tuscany/sca-cpp/trunk/modules/edit/start
tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css
tuscany/sca-cpp/trunk/modules/js/htdocs/ui.js
Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/app/index.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/app/index.html?rev=1065479&r1=1065478&r2=1065479&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/app/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/app/index.html Mon Jan 31 03:57:57 2011
@@ -51,10 +51,7 @@ function editapp(name) {
if (isNil(name))
return;
$('title').innerHTML = 'Editing: ' + name;
- $('app').innerHTML =
- '<iframe id="appFrame" style="height: 100%; width: 100%; border: 0px;" scrolling="no" frameborder="0" src="app.html?' +
- 'app=' + name +
- '"></iframe>';
+ ui.loadiframe('app', 'app.html?app=' + name);
}
// Display the editor for the current app
Modified: tuscany/sca-cpp/trunk/modules/edit/htdocs/dash/dashboard.html
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/dash/dashboard.html?rev=1065479&r1=1065478&r2=1065479&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/dash/dashboard.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/dash/dashboard.html Mon Jan 31 03:57:57 2011
@@ -58,9 +58,6 @@
</div>
<script type="text/javascript">
-// Install the widget
-ui.installwidget();
-
// Init service references
var editWidget = sca.component("EditWidget");
var dashboard = sca.reference(editWidget, "dashboard");
@@ -86,7 +83,7 @@ function getapps(sync) {
apps += '<tr>';
//apps += '<td><input name="apps" type="checkbox" value="' + name + '">' + '<a href=\"' + '/app/?app=' + name + '\">' + name + '</a></td>';
- apps += '<td><a href=\"' + '/app/?app=' + name + '\">' + name + '</a></td>';
+ apps += '<td><a href=\"' + '/app/?app=' + name + '\" target=\"_parent\">' + name + '</a></td>';
apps += '<td class="tdw">' + title + '</td>';
apps += '</tr>';
}
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=1065479&r1=1065478&r2=1065479&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 31 03:57:57 2011
@@ -23,6 +23,7 @@
<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="/util.js"></script>
<script type="text/javascript" src="/ui.js"></script>
</head>
<body>
@@ -38,7 +39,7 @@
ui.loadwidget('menu', '/menu.html');
// Load the dashboard
-ui.loadwidget('dashboard', 'dashboard.html');
+ui.loadiframe('dashboard', 'dashboard.html');
</script>
</body>
</html>
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=1065479&r1=1065478&r2=1065479&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/index.html Mon Jan 31 03:57:57 2011
@@ -31,22 +31,11 @@
<br/>
<h1>App Edit Tools</h1>
-<p>This module implements simple tools to help you create Tuscany apps.</p>
-
-<h2>App Dashboard</h2>
-<p>Try the <a href="dash">App Dashboard</a> to manage your collection of apps.</p>
-
-<h2>App Editor</h2>
-<p>Try the <a href="app/?app=store">App Editor</a> to edit an app.</p>
-
-<h2>Composition Editor</h2>
-<p>Try the <a href="graph/?app=store">Composition Editor</a> to compose an app.</p>
-
-<h2>Page Editor</h2>
-<p>Try the <a href="page/?app=store">Page Editor</a> to draw an app page.</p>
+<div id="main"></div>
<script type="text/javascript">
ui.loadwidget('menu', '/menu.html');
+ui.loadiframe('main', 'main.html');
</script>
</body>
</html>
Copied: tuscany/sca-cpp/trunk/modules/edit/htdocs/main.html (from r1065409, tuscany/sca-cpp/trunk/modules/edit/htdocs/index.html)
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/htdocs/main.html?p2=tuscany/sca-cpp/trunk/modules/edit/htdocs/main.html&p1=tuscany/sca-cpp/trunk/modules/edit/htdocs/index.html&r1=1065409&r2=1065479&rev=1065479&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/htdocs/index.html (original)
+++ tuscany/sca-cpp/trunk/modules/edit/htdocs/main.html Mon Jan 31 03:57:57 2011
@@ -17,37 +17,26 @@
* under the License.
-->
<html>
-<head>
-<title>App Edit Tools</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-translucent"/>
-<link rel="stylesheet" type="text/css" href="/ui.css"/>
+<head>
+<link rel="stylesheet" type="text/css" href="/ui.css">
<script type="text/javascript" src="/util.js"></script>
<script type="text/javascript" src="/ui.js"></script>
-</head>
+</head>
<body>
-<div id="menu"></div>
-<br/>
-<h1>App Edit Tools</h1>
<p>This module implements simple tools to help you create Tuscany apps.</p>
<h2>App Dashboard</h2>
-<p>Try the <a href="dash">App Dashboard</a> to manage your collection of apps.</p>
+<p>Try the <a href="dash" target="_parent">App Dashboard</a> to manage your collection of apps.</p>
<h2>App Editor</h2>
-<p>Try the <a href="app/?app=store">App Editor</a> to edit an app.</p>
+<p>Try the <a href="app/?app=store" target="_parent">App Editor</a> to edit an app.</p>
<h2>Composition Editor</h2>
-<p>Try the <a href="graph/?app=store">Composition Editor</a> to compose an app.</p>
+<p>Try the <a href="graph/?app=store" target="_parent">Composition Editor</a> to compose an app.</p>
<h2>Page Editor</h2>
-<p>Try the <a href="page/?app=store">Page Editor</a> to draw an app page.</p>
+<p>Try the <a href="page/?app=store" target="_parent">Page Editor</a> to draw an app page.</p>
-<script type="text/javascript">
-ui.loadwidget('menu', '/menu.html');
-</script>
</body>
</html>
-
Modified: tuscany/sca-cpp/trunk/modules/edit/start
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/edit/start?rev=1065479&r1=1065478&r2=1065479&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/edit/start (original)
+++ tuscany/sca-cpp/trunk/modules/edit/start Mon Jan 31 03:57:57 2011
@@ -17,7 +17,15 @@
# specific language governing permissions and limitations
# under the License.
+here=`readlink -f $0`; here=`dirname $here`
+jsprefix=`readlink -f $here/../js`
+
../http/httpd-conf tmp localhost 8090 htdocs
+cat >>tmp/conf/httpd.conf <<EOF
+# Override CSS
+Alias /ui.css $jsprefix/htdocs/uiblue.css
+
+EOF
../server/server-conf tmp
../python/python-conf tmp
cat >>tmp/conf/httpd.conf <<EOF
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=1065479&r1=1065478&r2=1065479&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css (original)
+++ tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css Mon Jan 31 03:57:57 2011
@@ -28,10 +28,10 @@ font-family: arial,sans-serif; font-styl
}
th {
-font-weight: bold; background-color: #96d333; color: #000000;
+font-weight: bold; background-color: #e5ecf9; color: #598edd;
text-align: left; padding-left: 2px; padding-right: 8px; padding-top: 2px; padding-bottom: 4px; vertical-align: text-top;
border-top: 1px; border-bottom: 1px; border-left: 0px; border-right: 0px;
-border-style: solid; border-top-color: #96d333; border-bottom-color: #96d333;
+border-style: solid; border-top-color: #a2bae7; border-bottom-color: #d1d3d4;
}
td {
@@ -46,17 +46,33 @@ padding-left: 2px; padding-top: 2px; pad
visibility: hidden; width: 0px; height: 0px; border: 0px;
}
+.loadedframe {
+width: 100%; height: 100%; border: 0px;
+margin: 0px; padding: 0px;
+}
+
input {
vertical-align: middle;
-webkit-text-size-adjust: 140%;
}
a:link {
-color: #96d333;
+color: blue;
}
a:visited {
-color: #96d333;
+color: blue;
+}
+
+.amenu {
+color: blue;
+text-decoration: underline
+}
+
+.smenu {
+font-weight: bold;
+color: blue;
+text-decoration: underline
}
h1 {
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=1065479&r1=1065478&r2=1065479&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/js/htdocs/ui.js (original)
+++ tuscany/sca-cpp/trunk/modules/js/htdocs/ui.js Mon Jan 31 03:57:57 2011
@@ -54,8 +54,8 @@ ui.menu = function(name, href) {
}
if (complete(this.href) != complete(window.top.location.pathname))
- return '<a href="' + this.href + '" target="_parent">' + this.name + '</a>';
- return '<span><b>' + this.name + '</b></span>';
+ return '<a href="' + this.href + '" target="_parent"><span class=amenu>' + this.name + '</span></a>';
+ return '<a href="' + this.href + '" target="_parent"><span class=smenu>' + this.name + '</span></a>';
};
}
return new Menu(name, href);
@@ -264,6 +264,16 @@ ui.installwidget = function() {
};
/**
+ * Load an iframe into an element.
+ */
+ui.loadiframe = function(el, doc) {
+ var f = el + 'Frame';
+ $(el).innerHTML =
+ '<iframe id="' + f + '" class="loadedframe" scrolling="no" frameborder="0" src="' + doc + '"></iframe>';
+ return f;
+};
+
+/**
* Convert a CSS position to a numeric position.
*/
ui.csspos = function(p) {
Copied: tuscany/sca-cpp/trunk/modules/js/htdocs/uiblue.css (from r1065409, tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css)
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/js/htdocs/uiblue.css?p2=tuscany/sca-cpp/trunk/modules/js/htdocs/uiblue.css&p1=tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css&r1=1065409&r2=1065479&rev=1065479&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css (original)
+++ tuscany/sca-cpp/trunk/modules/js/htdocs/uiblue.css Mon Jan 31 03:57:57 2011
@@ -28,10 +28,10 @@ font-family: arial,sans-serif; font-styl
}
th {
-font-weight: bold; background-color: #96d333; color: #000000;
+font-weight: bold; background-color: #3b5998; color: #ffffff;
text-align: left; padding-left: 2px; padding-right: 8px; padding-top: 2px; padding-bottom: 4px; vertical-align: text-top;
border-top: 1px; border-bottom: 1px; border-left: 0px; border-right: 0px;
-border-style: solid; border-top-color: #96d333; border-bottom-color: #96d333;
+border-style: solid; border-top-color: #000000; border-bottom-color: #000000;
}
td {
@@ -46,17 +46,32 @@ padding-left: 2px; padding-top: 2px; pad
visibility: hidden; width: 0px; height: 0px; border: 0px;
}
+.loadedframe {
+width: 100%; height: 100%; border: 0px;
+margin: 0px; padding: 0px;
+}
+
input {
vertical-align: middle;
-webkit-text-size-adjust: 140%;
}
a:link {
-color: #96d333;
+color: #3b5998;
}
a:visited {
-color: #96d333;
+color: #3b5998;
+}
+
+.amenu {
+font-weight: bold;
+color: #ffffff;
+}
+
+.smenu {
+font-weight: bold;
+color: #ffffff;
}
h1 {
@@ -85,13 +100,14 @@ cursor: pointer; cursor: hand;
}
.tbar {
+font-weight: bold; background-color: #3b5998; color: #ffffff;
margin: 0px;
-padding-top: 0px; padding-left: 0px; padding-right: 0px; padding-bottom: 3px;
-border-bottom: 1px solid #a2bae7;
+padding-top: 4px; padding-left: 2px; padding-right: 8px; padding-bottom: 8px; vertical-align: text-top;
+border-bottom: 1px solid #000000;
}
.ltbar {
-padding-left: 0px; padding-top: 0px; padding-right: 8px; white-space: nowrap; vertical-align: top;
+padding-left: 0px; padding-top: 0px; padding-right: 16px; white-space: nowrap; vertical-align: top;
}
.rtbar {
Copied: tuscany/sca-cpp/trunk/modules/js/htdocs/uicyan.css (from r1065409, tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css)
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/js/htdocs/uicyan.css?p2=tuscany/sca-cpp/trunk/modules/js/htdocs/uicyan.css&p1=tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css&r1=1065409&r2=1065479&rev=1065479&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/js/htdocs/ui.css (original)
+++ tuscany/sca-cpp/trunk/modules/js/htdocs/uicyan.css Mon Jan 31 03:57:57 2011
@@ -28,10 +28,10 @@ font-family: arial,sans-serif; font-styl
}
th {
-font-weight: bold; background-color: #96d333; color: #000000;
+font-weight: bold; background-color: #e5ecf9; color: #598edd;
text-align: left; padding-left: 2px; padding-right: 8px; padding-top: 2px; padding-bottom: 4px; vertical-align: text-top;
border-top: 1px; border-bottom: 1px; border-left: 0px; border-right: 0px;
-border-style: solid; border-top-color: #96d333; border-bottom-color: #96d333;
+border-style: solid; border-top-color: #a2bae7; border-bottom-color: #d1d3d4;
}
td {
@@ -46,17 +46,33 @@ padding-left: 2px; padding-top: 2px; pad
visibility: hidden; width: 0px; height: 0px; border: 0px;
}
+.loadedframe {
+width: 100%; height: 100%; border: 0px;
+margin: 0px; padding: 0px;
+}
+
input {
vertical-align: middle;
-webkit-text-size-adjust: 140%;
}
a:link {
-color: #96d333;
+color: blue;
}
a:visited {
-color: #96d333;
+color: blue;
+}
+
+.amenu {
+color: blue;
+text-decoration: underline
+}
+
+.smenu {
+font-weight: bold;
+color: blue;
+text-decoration: underline
}
h1 {