From 7a003f5bbf49082dcf24105aa6f7bc8c6650c255 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 17 Jan 2011 07:26:48 +0000 Subject: Use a common stylesheet in all samples. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1059769 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/edit/Makefile.am | 4 +-- sca-cpp/trunk/modules/edit/edit.composite | 8 ++++++ sca-cpp/trunk/modules/edit/htdocs/dash/index.html | 2 ++ sca-cpp/trunk/modules/edit/htdocs/graph/graph.html | 10 ++++--- sca-cpp/trunk/modules/edit/htdocs/graph/graph.js | 9 ++++++ sca-cpp/trunk/modules/edit/htdocs/graph/index.html | 2 ++ sca-cpp/trunk/modules/edit/htdocs/index.html | 1 + sca-cpp/trunk/modules/edit/htdocs/login/index.html | 11 +++++++- .../trunk/modules/edit/htdocs/logout/index.html | 10 ++++++- sca-cpp/trunk/modules/edit/htdocs/page/index.html | 2 ++ sca-cpp/trunk/modules/edit/htdocs/page/page.html | 11 ++++---- sca-cpp/trunk/modules/edit/log.py | 24 ++++++++++++++++ sca-cpp/trunk/modules/edit/start | 2 +- sca-cpp/trunk/modules/http/htdocs/index.html | 13 ++++++++- sca-cpp/trunk/modules/http/htdocs/login/index.html | 12 +++++++- .../trunk/modules/http/htdocs/logout/index.html | 14 ++++++++-- sca-cpp/trunk/modules/js/htdocs/ui.css | 16 +++++++++-- sca-cpp/trunk/modules/js/htdocs/util.js | 9 +++++- sca-cpp/trunk/modules/oauth/htdocs/index.html | 11 +++++++- .../trunk/modules/oauth/htdocs/login/index.html | 15 ++++++++-- .../trunk/modules/oauth/htdocs/login/mixed.html | 14 ++++++++-- .../trunk/modules/oauth/htdocs/logout/index.html | 14 ++++++++-- .../trunk/modules/oauth/htdocs/public/index.html | 10 ++++++- sca-cpp/trunk/modules/openid/htdocs/index.html | 13 ++++++++- .../trunk/modules/openid/htdocs/login/index.html | 15 ++++++++-- .../trunk/modules/openid/htdocs/logout/index.html | 14 ++++++++-- .../trunk/modules/openid/htdocs/public/index.html | 10 ++++++- sca-cpp/trunk/modules/server/htdocs/index.html | 13 ++++++++- sca-cpp/trunk/modules/wsgi/composite.py | 2 ++ sca-cpp/trunk/modules/wsgi/htdocs/index.html | 32 +++++++++++++++++++++- .../trunk/samples/loan-python/htdocs/index.html | 6 +++- sca-cpp/trunk/samples/relay-gae/htdocs/index.html | 5 ++++ .../trunk/samples/relay-python/htdocs/index.html | 4 +++ .../store-cluster/htdocs/domains/jane/index.html | 6 +++- .../htdocs/domains/jane/login/index.html | 15 ++++++++-- .../htdocs/domains/jane/logout/index.html | 14 ++++++++-- .../store-cluster/htdocs/domains/joe/index.html | 6 +++- .../htdocs/domains/joe/login/index.html | 15 ++++++++-- .../htdocs/domains/joe/logout/index.html | 11 +++++++- .../trunk/samples/store-cluster/htdocs/index.html | 5 ++++ .../samples/store-cluster/htdocs/login/index.html | 15 ++++++++-- .../samples/store-cluster/htdocs/logout/index.html | 14 ++++++++-- sca-cpp/trunk/samples/store-cpp/htdocs/index.html | 6 +++- sca-cpp/trunk/samples/store-gae/htdocs/index.html | 4 +++ sca-cpp/trunk/samples/store-java/htdocs/index.html | 6 +++- .../trunk/samples/store-nosql/htdocs/index.html | 6 +++- .../trunk/samples/store-python/htdocs/index.html | 6 +++- .../samples/store-python/htdocs/login/index.html | 12 +++++++- .../samples/store-python/htdocs/logout/index.html | 11 +++++++- .../trunk/samples/store-scheme/htdocs/index.html | 6 +++- sca-cpp/trunk/samples/store-sql/htdocs/index.html | 6 +++- .../store-vhost/htdocs/domains/jane/index.html | 6 +++- .../store-vhost/htdocs/domains/joe/index.html | 6 +++- .../trunk/samples/store-vhost/htdocs/index.html | 5 ++++ 54 files changed, 457 insertions(+), 62 deletions(-) create mode 100644 sca-cpp/trunk/modules/edit/log.py (limited to 'sca-cpp') diff --git a/sca-cpp/trunk/modules/edit/Makefile.am b/sca-cpp/trunk/modules/edit/Makefile.am index f2827ee8c5..5b456ea4ca 100644 --- a/sca-cpp/trunk/modules/edit/Makefile.am +++ b/sca-cpp/trunk/modules/edit/Makefile.am @@ -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 diff --git a/sca-cpp/trunk/modules/edit/edit.composite b/sca-cpp/trunk/modules/edit/edit.composite index 90d53b56b6..c5996e2db1 100644 --- a/sca-cpp/trunk/modules/edit/edit.composite +++ b/sca-cpp/trunk/modules/edit/edit.composite @@ -42,6 +42,7 @@ + @@ -145,4 +146,11 @@ localhost:11211 + + + + + + + diff --git a/sca-cpp/trunk/modules/edit/htdocs/dash/index.html b/sca-cpp/trunk/modules/edit/htdocs/dash/index.html index b9ad29b235..3b3dcc0cd5 100644 --- a/sca-cpp/trunk/modules/edit/htdocs/dash/index.html +++ b/sca-cpp/trunk/modules/edit/htdocs/dash/index.html @@ -28,7 +28,9 @@ +

Welcome to your App Dashboard!

+
- + + diff --git a/sca-cpp/trunk/modules/js/htdocs/ui.css b/sca-cpp/trunk/modules/js/htdocs/ui.css index 1b74708b79..feac4c6513 100644 --- a/sca-cpp/trunk/modules/js/htdocs/ui.css +++ b/sca-cpp/trunk/modules/js/htdocs/ui.css @@ -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 { diff --git a/sca-cpp/trunk/modules/js/htdocs/util.js b/sca-cpp/trunk/modules/js/htdocs/util.js index b90c96db2d..155836b4e9 100644 --- a/sca-cpp/trunk/modules/js/htdocs/util.js +++ b/sca-cpp/trunk/modules/js/htdocs/util.js @@ -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) {} diff --git a/sca-cpp/trunk/modules/oauth/htdocs/index.html b/sca-cpp/trunk/modules/oauth/htdocs/index.html index 7d26567214..2ce1ce2b09 100644 --- a/sca-cpp/trunk/modules/oauth/htdocs/index.html +++ b/sca-cpp/trunk/modules/oauth/htdocs/index.html @@ -19,6 +19,11 @@ + + + + + +

Protected area - It works!

The following info is returned by a JSONRPC service:

@@ -42,6 +48,7 @@ var realm = userInfo.apply("getrealm");
Firstname:
Lastname:
Realm:
+ +

User info

Sign in

Sign out

Public area

- + + diff --git a/sca-cpp/trunk/modules/oauth/htdocs/login/index.html b/sca-cpp/trunk/modules/oauth/htdocs/login/index.html index c41c334b76..5de29ca9da 100644 --- a/sca-cpp/trunk/modules/oauth/htdocs/login/index.html +++ b/sca-cpp/trunk/modules/oauth/htdocs/login/index.html @@ -17,7 +17,17 @@ under the License. --> -

Sign in with an OAuth provider

+ + + + + + +Sign in + + +

Sign in with an OAuth provider

+
- + + diff --git a/sca-cpp/trunk/modules/oauth/htdocs/public/index.html b/sca-cpp/trunk/modules/oauth/htdocs/public/index.html index af2cd7ca19..af567246f3 100644 --- a/sca-cpp/trunk/modules/oauth/htdocs/public/index.html +++ b/sca-cpp/trunk/modules/oauth/htdocs/public/index.html @@ -18,10 +18,18 @@ --> + + + + + +Unprotected area +

Unprotected area - It works!

User info

Sign in

Sign out

Protected area

- + + diff --git a/sca-cpp/trunk/modules/openid/htdocs/index.html b/sca-cpp/trunk/modules/openid/htdocs/index.html index 98bbac0c57..a6656484a5 100644 --- a/sca-cpp/trunk/modules/openid/htdocs/index.html +++ b/sca-cpp/trunk/modules/openid/htdocs/index.html @@ -19,7 +19,12 @@ + + + + + + +Protected area +

Protected area - It works!

The following info is returned by a JSONRPC service:

+ +

User info

Sign in

Sign out

Public area

- + + diff --git a/sca-cpp/trunk/modules/openid/htdocs/login/index.html b/sca-cpp/trunk/modules/openid/htdocs/login/index.html index 493227addc..32a0dca608 100644 --- a/sca-cpp/trunk/modules/openid/htdocs/login/index.html +++ b/sca-cpp/trunk/modules/openid/htdocs/login/index.html @@ -17,7 +17,17 @@ under the License. --> -

Sign in with an OpenID provider

+ + + + + + +Sign in + + +

Sign in with an OpenID provider

+
- + + diff --git a/sca-cpp/trunk/modules/openid/htdocs/public/index.html b/sca-cpp/trunk/modules/openid/htdocs/public/index.html index af2cd7ca19..af567246f3 100644 --- a/sca-cpp/trunk/modules/openid/htdocs/public/index.html +++ b/sca-cpp/trunk/modules/openid/htdocs/public/index.html @@ -18,10 +18,18 @@ --> + + + + + +Unprotected area +

Unprotected area - It works!

User info

Sign in

Sign out

Protected area

- + + diff --git a/sca-cpp/trunk/modules/server/htdocs/index.html b/sca-cpp/trunk/modules/server/htdocs/index.html index 1bfb3e30c2..da71ab20fa 100644 --- a/sca-cpp/trunk/modules/server/htdocs/index.html +++ b/sca-cpp/trunk/modules/server/htdocs/index.html @@ -17,5 +17,16 @@ under the License. --> -

It works!

+ + + + + + +It works + + +

It works!

+ + diff --git a/sca-cpp/trunk/modules/wsgi/composite.py b/sca-cpp/trunk/modules/wsgi/composite.py index 9dbc2c911a..28a38ad386 100755 --- a/sca-cpp/trunk/modules/wsgi/composite.py +++ b/sca-cpp/trunk/modules/wsgi/composite.py @@ -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"): diff --git a/sca-cpp/trunk/modules/wsgi/htdocs/index.html b/sca-cpp/trunk/modules/wsgi/htdocs/index.html index cd25bf17b3..5449f4ef89 100644 --- a/sca-cpp/trunk/modules/wsgi/htdocs/index.html +++ b/sca-cpp/trunk/modules/wsgi/htdocs/index.html @@ -1 +1,31 @@ -

It works!

\ No newline at end of file + + + + + + + +It works + + +

It works!

+ + + diff --git a/sca-cpp/trunk/samples/loan-python/htdocs/index.html b/sca-cpp/trunk/samples/loan-python/htdocs/index.html index f972af9555..3f607f78f4 100644 --- a/sca-cpp/trunk/samples/loan-python/htdocs/index.html +++ b/sca-cpp/trunk/samples/loan-python/htdocs/index.html @@ -18,6 +18,10 @@ --> + + + + Store @@ -126,11 +130,11 @@ function init() { } } -

Store

+

Catalog

diff --git a/sca-cpp/trunk/samples/relay-gae/htdocs/index.html b/sca-cpp/trunk/samples/relay-gae/htdocs/index.html index 2025a5851d..76fb54c21f 100644 --- a/sca-cpp/trunk/samples/relay-gae/htdocs/index.html +++ b/sca-cpp/trunk/samples/relay-gae/htdocs/index.html @@ -18,7 +18,12 @@ --> + + + + Relay +

Sample HTML request

diff --git a/sca-cpp/trunk/samples/relay-python/htdocs/index.html b/sca-cpp/trunk/samples/relay-python/htdocs/index.html index 2025a5851d..1a02816df9 100644 --- a/sca-cpp/trunk/samples/relay-python/htdocs/index.html +++ b/sca-cpp/trunk/samples/relay-python/htdocs/index.html @@ -18,6 +18,10 @@ --> + + + + Relay diff --git a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/index.html b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/index.html index 238ed701f0..4cd219bc9c 100644 --- a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/index.html +++ b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/index.html @@ -18,6 +18,10 @@ --> + + + + Store @@ -120,11 +124,11 @@ function init() { } } -

Jane's Store

+

Catalog

diff --git a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/login/index.html b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/login/index.html index 2eecc74b92..4e3b5a2f61 100644 --- a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/login/index.html +++ b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/login/index.html @@ -17,7 +17,17 @@ under the License. --> -

Sign in with an OpenID or OAuth provider

+ + + + + + +Sign in + + +

Sign in with an OpenID or OAuth provider

+
- + + diff --git a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/index.html b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/index.html index c1cfc59aa7..c32dcd9d53 100644 --- a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/index.html +++ b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/index.html @@ -18,6 +18,10 @@ --> + + + + Store @@ -120,11 +124,11 @@ function init() { } } -

Joe's Store

+

Catalog

diff --git a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/login/index.html b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/login/index.html index 2eecc74b92..4e3b5a2f61 100644 --- a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/login/index.html +++ b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/login/index.html @@ -17,7 +17,17 @@ under the License. --> -

Sign in with an OpenID or OAuth provider

+ + + + + + +Sign in + + +

Sign in with an OpenID or OAuth provider

+
- + + diff --git a/sca-cpp/trunk/samples/store-cpp/htdocs/index.html b/sca-cpp/trunk/samples/store-cpp/htdocs/index.html index 3945e45bb7..79996c6853 100644 --- a/sca-cpp/trunk/samples/store-cpp/htdocs/index.html +++ b/sca-cpp/trunk/samples/store-cpp/htdocs/index.html @@ -18,6 +18,10 @@ --> + + + + Store @@ -120,11 +124,11 @@ function init() { } } -

Store

+

Catalog

diff --git a/sca-cpp/trunk/samples/store-gae/htdocs/index.html b/sca-cpp/trunk/samples/store-gae/htdocs/index.html index a38a8a0e4f..d4884cf4d5 100644 --- a/sca-cpp/trunk/samples/store-gae/htdocs/index.html +++ b/sca-cpp/trunk/samples/store-gae/htdocs/index.html @@ -18,6 +18,10 @@ --> + + + + Store diff --git a/sca-cpp/trunk/samples/store-java/htdocs/index.html b/sca-cpp/trunk/samples/store-java/htdocs/index.html index 3945e45bb7..79996c6853 100644 --- a/sca-cpp/trunk/samples/store-java/htdocs/index.html +++ b/sca-cpp/trunk/samples/store-java/htdocs/index.html @@ -18,6 +18,10 @@ --> + + + + Store @@ -120,11 +124,11 @@ function init() { } } -

Store

+

Catalog

diff --git a/sca-cpp/trunk/samples/store-nosql/htdocs/index.html b/sca-cpp/trunk/samples/store-nosql/htdocs/index.html index 3945e45bb7..79996c6853 100644 --- a/sca-cpp/trunk/samples/store-nosql/htdocs/index.html +++ b/sca-cpp/trunk/samples/store-nosql/htdocs/index.html @@ -18,6 +18,10 @@ --> + + + + Store @@ -120,11 +124,11 @@ function init() { } } -

Store

+

Catalog

diff --git a/sca-cpp/trunk/samples/store-python/htdocs/index.html b/sca-cpp/trunk/samples/store-python/htdocs/index.html index 3945e45bb7..79996c6853 100644 --- a/sca-cpp/trunk/samples/store-python/htdocs/index.html +++ b/sca-cpp/trunk/samples/store-python/htdocs/index.html @@ -18,6 +18,10 @@ --> + + + + Store @@ -120,11 +124,11 @@ function init() { } } -

Store

+

Catalog

diff --git a/sca-cpp/trunk/samples/store-python/htdocs/login/index.html b/sca-cpp/trunk/samples/store-python/htdocs/login/index.html index 3f312e4ca4..f4bdcd7f42 100644 --- a/sca-cpp/trunk/samples/store-python/htdocs/login/index.html +++ b/sca-cpp/trunk/samples/store-python/htdocs/login/index.html @@ -17,7 +17,17 @@ under the License. --> -

Sign in

+ + + + + + +Sign in + + +

Sign in

+
@@ -120,11 +124,11 @@ function init() { } } -

Store

+

Catalog

diff --git a/sca-cpp/trunk/samples/store-sql/htdocs/index.html b/sca-cpp/trunk/samples/store-sql/htdocs/index.html index 3945e45bb7..79996c6853 100644 --- a/sca-cpp/trunk/samples/store-sql/htdocs/index.html +++ b/sca-cpp/trunk/samples/store-sql/htdocs/index.html @@ -18,6 +18,10 @@ --> + + + + Store @@ -120,11 +124,11 @@ function init() { } } -

Store

+

Catalog

diff --git a/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html b/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html index 238ed701f0..4cd219bc9c 100644 --- a/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html +++ b/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html @@ -18,6 +18,10 @@ --> + + + + Store @@ -120,11 +124,11 @@ function init() { } } -

Jane's Store

+

Catalog

diff --git a/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html b/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html index c1cfc59aa7..c32dcd9d53 100644 --- a/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html +++ b/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html @@ -18,6 +18,10 @@ --> + + + + Store @@ -120,11 +124,11 @@ function init() { } } -

Joe's Store

+

Catalog

diff --git a/sca-cpp/trunk/samples/store-vhost/htdocs/index.html b/sca-cpp/trunk/samples/store-vhost/htdocs/index.html index e0239392ff..3e70b69214 100644 --- a/sca-cpp/trunk/samples/store-vhost/htdocs/index.html +++ b/sca-cpp/trunk/samples/store-vhost/htdocs/index.html @@ -18,11 +18,16 @@ --> + + + + Store

Store

+

For this sample to work, add the sample domain to your /etc/hosts as follows:
127.0.0.1 sca-store.com jane.sca-store.com joe.sca-store.com

-- cgit v1.2.3