From 61c9466ff91ca40f4b1ebbe670d7848e521131d7 Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:08:20 +0000 Subject: Moving 1.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835130 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/resources/DomainManager.composite | 246 ++++++++++++++ .../domain-manager/src/main/resources/cloud.html | 362 +++++++++++++++++++++ .../src/main/resources/composite.html | 257 +++++++++++++++ .../domain-manager/src/main/resources/files.html | 114 +++++++ .../domain-manager/src/main/resources/home.html | 59 ++++ .../src/main/resources/icons/feed-icon.png | Bin 0 -> 818 bytes .../domain-manager/src/main/resources/manager.css | 99 ++++++ .../domain-manager/src/main/resources/utils.js | 197 +++++++++++ .../src/main/resources/workspace.html | 206 ++++++++++++ 9 files changed, 1540 insertions(+) create mode 100644 sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/DomainManager.composite create mode 100644 sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/cloud.html create mode 100644 sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/composite.html create mode 100644 sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/files.html create mode 100644 sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/home.html create mode 100644 sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/icons/feed-icon.png create mode 100644 sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/manager.css create mode 100644 sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/utils.js create mode 100644 sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/workspace.html (limited to 'sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources') diff --git a/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/DomainManager.composite b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/DomainManager.composite new file mode 100644 index 0000000000..fe1fdc2d80 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/DomainManager.composite @@ -0,0 +1,246 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + workspace.xml + cloud + + + + + + + + + + + + + + + + + files + + + + + + + + + files + + + + + + + + + domain.composite + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + cloud.composite + cloud + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/cloud.html b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/cloud.html new file mode 100644 index 0000000000..2564322ec9 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/cloud.html @@ -0,0 +1,362 @@ + + + +SCA Domain - Cloud + + + + + + + + + + +
+ +
+
+ + SCA Domain

+ Cloud  +
+

+ 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/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/composite.html b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/composite.html new file mode 100644 index 0000000000..9a873d42d2 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/composite.html @@ -0,0 +1,257 @@ + + + +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. +

+ +
+
+
+ +
+ +

+ +
+ + + +
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/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/files.html b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/files.html new file mode 100644 index 0000000000..1a7460df11 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/files.html @@ -0,0 +1,114 @@ + + + +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. +

+ +
+
+
+ +
+ +

+ +
+ + + +
Upload File
Upload a file to the server.
+
+ + +
File:
+
+ +
+ +
+ + diff --git a/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/home.html b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/home.html new file mode 100644 index 0000000000..88f190336d --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/home.html @@ -0,0 +1,59 @@ + + + +SCA Domain - Home + + + + + + + + + + +
+ +
+ + SCA Domain + + +




+ +
+ + + +
Search:
+
+ +






+
This page is under construction, searching the domain is not implemented yet.
+ + + diff --git a/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/icons/feed-icon.png b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/icons/feed-icon.png new file mode 100644 index 0000000000..a59728b2ad Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/icons/feed-icon.png differ diff --git a/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/manager.css b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/manager.css new file mode 100644 index 0000000000..5f4166876d --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/manager.css @@ -0,0 +1,99 @@ +/* + * 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. + */ + +body { + white-space: nowrap +} + +table { + border: 1px; border-collapse: separate +} + +th { + font-weight: bold; white-space: nowrap; background-color: #e5ecf9; color: #598edd; + text-align: left; padding-left: 2px; padding-right: 20px; padding-top: 2px; padding-bottom: 2px; vertical-align: text-top; + border-top: 1px; border-bottom: 1px; border-left: 0px; border-right: 0px; + border-style: solid; border-top-color: #a2bae7; border-bottom-color: #d1d3d4 +} + +td { + padding-left: 2px; padding-top: 2px; padding-right: 20px; white-space: nowrap; vertical-align: text-top +} + +input { + vertical-align: middle +} + +a:link { + color: blue +} + +a:visited { + color: blue +} + +.tdw { + padding-left: 2px; padding-top: 2px; padding-right: 20px; white-space: normal; vertical-align: text-top +} + +.hd1 { + font-size:150%; font-weight: bold +} + +.tbar { + margin: 0px; + padding-top: 0px; padding-left: 0px; padding-right: 0px; padding-bottom: 3px; + border-bottom: 1px solid #a2bae7 +} + +.ltbar { + padding-left: 0px; padding-top: 0px; padding-right: 20px; white-space: nowrap; vertical-align: top +} + +.rtbar { + padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: nowrap; vertical-align: top; + text-align: right +} + +.suggest { + background-color: #e5ecf9; color: #598edd; + border-top: 1px; border-bottom: 1px; border-left: 1px; border-right: 1px; + border-style: solid; border-top-color: #a2bae7; border-bottom-color: #d1d3d4; + border-left-color: #d1d3d4; border-right-color: #d1d3d4; + position: absolute; + overflow: auto; overflow-x: hidden; + cursor: default; + padding: 0px; margin: 0px; +} + +suggestTable { + border: 0px; border-collapse: separate; + padding-left: 5px; padding-right: 5px; padding-top: 2px; padding-bottom: 2px; + margin: 0px; +} + +.suggestItem { + padding-left: 2px; padding-top: 0px; padding-bottom: 0px; padding-right: 2px; white-space: nowrap; vertical-align: text-top; + background-color: #e5ecf9; color: #598edd; +} + +.suggestHilighted { + padding-left: 2px; padding-top: 0px; padding-bottom: 0px; padding-right: 2px; white-space: nowrap; vertical-align: text-top; + background-color: #598edd; color: #e5ecf9; +} diff --git a/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/utils.js b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/utils.js new file mode 100644 index 0000000000..32fbdb47ad --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/utils.js @@ -0,0 +1,197 @@ +/* + * 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. + */ + +/** + * Autocomplete / suggest support for input fields + * + * To use it declare a 'suggest' function as follows: + * function suggestItems() { + * return new Array('abc', 'def', 'ghi'); + * } + * + * then hook it to an input field as follows: + * suggest(document.yourForm.yourInputField, suggestItems); + */ +function selectSuggestion(node, value) { + for (;;) { + node = node.parentNode; + if (node.tagName.toLowerCase() == 'div') { + break; + } + } + node.selectSuggestion(value); +} + +function hilightSuggestion(node, over) { + if (over) { + node.className = 'suggestHilighted'; + } else { + node.className = 'suggestItem'; + } +} + +function suggest(input, suggestFunction) { + + input.suggest = suggestFunction; + + input.selectSuggestion = function(value) { + this.hideSuggestDiv(); + this.value = value; + } + + input.hideSuggestDiv = function() { + if (this.suggestDiv != null) { + this.suggestDiv.style.visibility = 'hidden'; + } + } + + input.showSuggestDiv = function() { + if (this.suggestDiv == null) { + this.suggestDiv = document.createElement('div'); + this.suggestDiv.input = this; + this.suggestDiv.className = 'suggest'; + input.parentNode.insertBefore(this.suggestDiv, input); + this.suggestDiv.style.visibility = 'hidden'; + this.suggestDiv.style.zIndex = '99'; + + this.suggestDiv.selectSuggestion = function(value) { + this.input.selectSuggestion(value); + } + } + + var values = this.suggest(); + var items = ""; + for (var i = 0; i < values.length; i++) { + if (values[i].indexOf(this.value) == -1) { + continue; + } + if (items.length == 0) { + items += ''; + } + items += ''; + } + if (items.length != 0) { + items += '
' + values[i] + '
'; + } + this.suggestDiv.innerHTML = items; + + if (items.length != 0) { + var node = input; + var left = 0; + var top = 0; + for (;;) { + left += node.offsetLeft; + top += node.offsetTop; + node = node.offsetParent; + if (node.tagName.toLowerCase() == 'body') { + break; + } + } + this.suggestDiv.style.left = left; + this.suggestDiv.style.top = top + input.offsetHeight; + this.suggestDiv.style.visibility = 'visible'; + } else { + this.suggestDiv.style.visibility = 'hidden'; + } + } + + input.onkeydown = function(event) { + this.showSuggestDiv(); + }; + + input.onkeyup = function(event) { + this.showSuggestDiv(); + }; + + input.onmousedown = function(event) { + this.showSuggestDiv(); + }; + + input.onblur = function(event) { + setTimeout(function() { input.hideSuggestDiv(); }, 50); + }; +} + +/** + * A Toolbar class + */ +function Tool(name, href) { + this.name = name; + this.href = href; +} + +Tool.prototype.print = function() { + var loc = '' + location; + if (loc.match(this.href) == null) { + return '' + this.name + ''; + } else { + return '' + this.name + ''; + } +} + +/** + * Initialize the toolbar + */ +function toolbar() { + var toolbar = '' + + '' + + '' + + '
'; + + for (var i = 0; i < tools.length; i++) { + toolbar = toolbar + '' + } + + toolbar = toolbar + '
' +tools[i].print() + '
' + + '
' + home.print() + '
'; + + document.getElementById('toolbar').innerHTML = toolbar; +} + +/** + * Utility function returning an non-sparse array from an array or an object. + */ +function array(obj) { + if (obj.length == undefined) { + var a = new Array(); + a[0] = obj; + return a; + } + else { + var a = new Array(); + var n = 0; + for (var i in obj) { + a[n++] = obj[i]; + } + return a; + } +} + +/** + * Populate the default toolbar + */ +var tools = new Array(); +tools[0] = new Tool("Contributions", "/ui/workspace"); +tools[1] = new Tool("Composites", "/ui/composite"); +tools[2] = new Tool("Cloud", "/ui/cloud"); +tools[3] = new Tool("Files", "/ui/files"); + +var home = new Tool("Home", "/ui/home"); diff --git a/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/workspace.html b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/workspace.html new file mode 100644 index 0000000000..db3b4ac560 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.3/modules/domain-manager/src/main/resources/workspace.html @@ -0,0 +1,206 @@ + + + +SCA Domain - Contributions + + + + + + + + + + +
+ +
+
+ + SCA Domain

+ Contributions 
+

+ 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
+ +
+ +
+ + -- cgit v1.2.3