From 34f92700da268b74b52aa3f2b6c9e1e2da6ad591 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Thu, 31 Jul 2008 08:04:20 +0000 Subject: Improved the Domain Manager widgets to use HTML divs for presentation and iframes for script isolation. This provides better control and performance of the layout while preserving isolation between the scripts of the individual widgets. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@681295 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/resources/cloud-gadget.html | 133 ++++++++++----------- .../domain-manager/src/main/resources/cloud.html | 24 +++- .../src/main/resources/composite-gadget.html | 102 ++++++++-------- .../src/main/resources/composite.html | 24 +++- .../src/main/resources/files-gadget.html | 76 ++++++------ .../domain-manager/src/main/resources/files.html | 24 +++- .../src/main/resources/home-gadget.html | 16 +-- .../domain-manager/src/main/resources/home.html | 26 +++- .../domain-manager/src/main/resources/manager.css | 4 +- .../src/main/resources/toolbar-gadget.html | 33 +++-- .../domain-manager/src/main/resources/utils.js | 30 +++++ .../src/main/resources/workspace-gadget.html | 114 +++++++++--------- .../src/main/resources/workspace.html | 24 +++- 13 files changed, 363 insertions(+), 267 deletions(-) (limited to 'java/sca/modules/domain-manager/src') diff --git a/java/sca/modules/domain-manager/src/main/resources/cloud-gadget.html b/java/sca/modules/domain-manager/src/main/resources/cloud-gadget.html index ba73f154bb..7052a68f40 100644 --- a/java/sca/modules/domain-manager/src/main/resources/cloud-gadget.html +++ b/java/sca/modules/domain-manager/src/main/resources/cloud-gadget.html @@ -23,7 +23,44 @@ - - - - - - -
- - Here is the list of SCA nodes configured in your SCA domain cloud. -

- -
-
-
- - -    - -
- -

- -
- - - -
Add a Node
Add a node to the cloud. The node will run the SCA components declared in the specified composite.
-
- - - - - - -
Node name:e.g. YourNode
Node URI:e.g. http://yourhost:8080
Composite namespace:e.g. http://your/namespace
Composite name:e.g. yourcomposite
Contribution URI:e.g. yourcontrib, http://yourcontrib
- -
- -
- - diff --git a/java/sca/modules/domain-manager/src/main/resources/cloud.html b/java/sca/modules/domain-manager/src/main/resources/cloud.html index df37431ef2..08a24cad26 100644 --- a/java/sca/modules/domain-manager/src/main/resources/cloud.html +++ b/java/sca/modules/domain-manager/src/main/resources/cloud.html @@ -20,19 +20,37 @@ SCA Domain - Cloud + + - -

+
+
SCA Domain

Cloud 

+ Here is the list of SCA nodes configured in your SCA domain cloud. +

+ +
- + + + + diff --git a/java/sca/modules/domain-manager/src/main/resources/composite-gadget.html b/java/sca/modules/domain-manager/src/main/resources/composite-gadget.html index 7eb23a95cb..062af53667 100644 --- a/java/sca/modules/domain-manager/src/main/resources/composite-gadget.html +++ b/java/sca/modules/domain-manager/src/main/resources/composite-gadget.html @@ -23,7 +23,39 @@ - - - - - - -
- - Here is the list of SCA composites currently included as top-level composites in your SCA domain. -

- -
-
-
- -
- -

- -
- - - -
Add Composite
Add an SCA composite describing your SCA service components.
-
- - - - -
Composite namespace:e.g. http://your/namespace
Composite name:e.g. yourcomposite
Contribution URI:e.g. yourcontrib, http://yourcontrib
- -
- -
- diff --git a/java/sca/modules/domain-manager/src/main/resources/composite.html b/java/sca/modules/domain-manager/src/main/resources/composite.html index fa6668c693..33f4535499 100644 --- a/java/sca/modules/domain-manager/src/main/resources/composite.html +++ b/java/sca/modules/domain-manager/src/main/resources/composite.html @@ -20,19 +20,37 @@ SCA Domain - Domain Composite + + - -

+
+
SCA Domain

Domain Composite 

+ Here is the list of SCA composites currently included as top-level composites in your SCA domain. +

+ +
- + + + + diff --git a/java/sca/modules/domain-manager/src/main/resources/files-gadget.html b/java/sca/modules/domain-manager/src/main/resources/files-gadget.html index 04a6e6ee03..b5f36782b7 100644 --- a/java/sca/modules/domain-manager/src/main/resources/files-gadget.html +++ b/java/sca/modules/domain-manager/src/main/resources/files-gadget.html @@ -23,7 +23,38 @@ - - - - - - -
- - This is a simple ATOM-based file server useful to share files if you don't have an FTP, SVN or Maven repository. -

- -
-
-
- -
- -

- -
- - - -
Upload File
Upload a file to the server.
-
- - -
File:
-
- -
- -
- diff --git a/java/sca/modules/domain-manager/src/main/resources/files.html b/java/sca/modules/domain-manager/src/main/resources/files.html index 87f6a0469e..defcaae9be 100644 --- a/java/sca/modules/domain-manager/src/main/resources/files.html +++ b/java/sca/modules/domain-manager/src/main/resources/files.html @@ -20,19 +20,37 @@ SCA Domain - Contribution File Server + + - -

+
+
SCA Domain

File Server 

+ This is a simple ATOM-based file server useful to share files if you don't have an FTP, SVN or Maven repository. +

+ +
- + + + + diff --git a/java/sca/modules/domain-manager/src/main/resources/home-gadget.html b/java/sca/modules/domain-manager/src/main/resources/home-gadget.html index 32a5e15a93..05e262e4df 100644 --- a/java/sca/modules/domain-manager/src/main/resources/home-gadget.html +++ b/java/sca/modules/domain-manager/src/main/resources/home-gadget.html @@ -23,17 +23,10 @@ - - - +
@@ -42,10 +35,11 @@
- -






-
This page is under construction, searching the domain is not implemented yet.
+ + diff --git a/java/sca/modules/domain-manager/src/main/resources/home.html b/java/sca/modules/domain-manager/src/main/resources/home.html index 2984ba2afc..0274799de4 100644 --- a/java/sca/modules/domain-manager/src/main/resources/home.html +++ b/java/sca/modules/domain-manager/src/main/resources/home.html @@ -20,20 +20,38 @@ SCA Domain - Home - + - -

+
+
SCA Domain





- +
+ +






+
This page is under construction, searching the domain is not implemented yet.
+ + + + + + diff --git a/java/sca/modules/domain-manager/src/main/resources/manager.css b/java/sca/modules/domain-manager/src/main/resources/manager.css index 7eb10ee318..e080ff1d87 100644 --- a/java/sca/modules/domain-manager/src/main/resources/manager.css +++ b/java/sca/modules/domain-manager/src/main/resources/manager.css @@ -18,7 +18,7 @@ */ body { - white-space: nowrap; overflow: hidden; + white-space: nowrap; margin: 2px; } table { @@ -37,7 +37,7 @@ td { } iframe { - border: 0px; margin: 0px; padding: 0px; position: absolute; overflow: hidden; + visibility: hidden; } input { diff --git a/java/sca/modules/domain-manager/src/main/resources/toolbar-gadget.html b/java/sca/modules/domain-manager/src/main/resources/toolbar-gadget.html index 1ea1e1f8fd..2cc555473c 100644 --- a/java/sca/modules/domain-manager/src/main/resources/toolbar-gadget.html +++ b/java/sca/modules/domain-manager/src/main/resources/toolbar-gadget.html @@ -22,26 +22,25 @@ - - - +
+ + diff --git a/java/sca/modules/domain-manager/src/main/resources/utils.js b/java/sca/modules/domain-manager/src/main/resources/utils.js index c382ab9e5a..611aaceadc 100644 --- a/java/sca/modules/domain-manager/src/main/resources/utils.js +++ b/java/sca/modules/domain-manager/src/main/resources/utils.js @@ -184,3 +184,33 @@ function array(obj) { return a; } } + +/** + * Utility function thats dumps a Javascript object to the console + */ +function dump(o) { + for (f in o) { + try { + console.log(f + '=' + o[f]); + } catch (e) {} + } +} + +function content(win) { + if (win.document != 'undefined' && win.document != null) { + return win.document; + } else if (win.contentDocument != 'undefined' && win.contentDocument != null) { + return win.contentDocument; + } else { + return null; + } +} + +function gadget(win, doc) { + if (win.parent.ongadget != null && win.parent.ongadget != 'undefined') { + return win.parent.ongadget(win, doc); + } else { + return doc; + } +} + \ No newline at end of file diff --git a/java/sca/modules/domain-manager/src/main/resources/workspace-gadget.html b/java/sca/modules/domain-manager/src/main/resources/workspace-gadget.html index 944d63f1c9..9e4c6c014d 100644 --- a/java/sca/modules/domain-manager/src/main/resources/workspace-gadget.html +++ b/java/sca/modules/domain-manager/src/main/resources/workspace-gadget.html @@ -23,11 +23,42 @@ - - - - - - -
- - Here is the list of SCA contributions currently available in your SCA domain. -

- -
-
-
- -
- -

- -
- - - -
Add Contribution
Add an SCA contribution containing your application artifacts to the SCA domain.
-
- - - -
Contribution URI:e.g. yourcontrib, http://yourcontrib
Location:e.g. http://host/yourjar.jar, file:/yourdir, file:/yourjar.jar
- -
- -
- diff --git a/java/sca/modules/domain-manager/src/main/resources/workspace.html b/java/sca/modules/domain-manager/src/main/resources/workspace.html index b3c4538a40..f3114b3a14 100644 --- a/java/sca/modules/domain-manager/src/main/resources/workspace.html +++ b/java/sca/modules/domain-manager/src/main/resources/workspace.html @@ -20,18 +20,36 @@ SCA Domain - Contributions + + - -

+
+
SCA Domain

Contributions 

+ Here is the list of SCA contributions currently available in your SCA domain. +

+ +
- + + + + -- cgit v1.2.3