You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by pr...@apache.org on 2014/01/09 12:05:45 UTC
[19/37] moving console app files into a directory.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/console/util/utility.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/util/utility.jag b/components/org.apache.stratos.manager.console/console/util/utility.jag
new file mode 100644
index 0000000..e943e10
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/util/utility.jag
@@ -0,0 +1,146 @@
+<%
+
+function E4XtoJSON(xml, ignored) {
+ var r, children = xml.*, attributes = xml.@*, length = children.length();
+ if(length == 0) {
+ r = xml.toString();
+ } else if(length == 1) {
+ var text = xml.text().toString();
+ if(text) {
+ r = text;
+ }
+ }
+ if(r == undefined) {
+ r = {};
+ for each (var child in children) {
+ var name = child.localName();
+ var json = E4XtoJSON(child, ignored);
+ var value = r[name];
+ if(value) {
+ if(value.length) {
+ value.push(json);
+ } else {
+ r[name] = [value, json]
+ }
+ } else {
+ r[name] = json;
+ }
+ }
+ }
+ if(attributes.length()) {
+ var a = {}, c = 0;
+ for each (var attribute in attributes) {
+ var name = attribute.localName();
+ if(ignored && ignored.indexOf(name) == -1) {
+ a["_" + name] = attribute.toString();
+ c ++;
+ }
+ }
+ if(c) {
+ if(r) a._ = r;
+ return a;
+ }
+ }
+ return r;
+}
+
+function sortNumber(jsonArray, property, ascending, zeroLast) {
+ jsonArray.sort(function (a, b) {
+ var aProp = parseFloat(a[property]);
+ var bProp = parseFloat(b[property]);
+
+ if(zeroLast){
+ if(aProp == 0){
+ aProp = 500000;
+ }
+ if(bProp == 0 ){
+ bProp = 500000;
+ }
+ }
+
+ return aProp === bProp ? 0 : ( ascending ? (aProp >= bProp ? 1 : -1 ) : (aProp >= bProp ? -1 : 1 ));
+ });
+
+ return jsonArray;
+}
+
+
+
+
+function getServerUrl(){
+ var serverUrl = "https://localhost:9453/services";
+ serverUrl = serverUrl + "/UserProfileMgtService";
+
+ return serverUrl;
+}
+
+consoleAppUtil = new function(){
+ var log = new Log();
+
+ this.getAvailableCartridges = function(){
+
+ };
+
+ this.getSubscribedCartridges = function(){
+
+ }
+
+ this.makeRequest = function(httpMethod,urlPostFix,data){
+ var config = require('/config/console.js').config();
+ var backendServerURL = config.backendServerConfiguration.url;
+ // getting the access token from the session.
+ var endpoint = backendServerURL + urlPostfix;
+ var accessToken = this.getAccessTokenFromSession();
+ // the header values are constant
+ var headers = {
+ "Authorization": "Bearer "+accessToken,
+ "Content-Type": "application/json"
+ };
+ var type = "json"; // response format
+ var response;
+ switch (httpMethod){
+ case "GET":
+ response = get(endpoint,{},headers,type);
+ break;
+ case "POST":
+ response = post(endpoint,data,headers,type);
+ break;
+ case "PUT":
+ response = put(endpoint,data,headers,type);
+ break;
+ case "DELETE":
+ response = del(endpoint,data,headers,type);
+ break;
+ default :
+ log.error("Error in the programme flow.");
+ }
+ log.debug(response.data);
+ return response;
+ };
+
+
+
+ this.getOauthAccessToken = function(encodedSAMLToken,basicAuthToken){
+ var config = require('/config/console.js').config();
+ var endpoint = config.oauthConfiguration.tokenEndpoint;
+ var headers = {
+ "Authorization": "Basic "+basicAuthToken,
+ "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
+ };
+ var data = {
+ grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",
+ assertion:encodedSAMLToken
+ };
+ var response = post(endpoint,data,headers,"json");
+ log.debug(response);
+ return response;
+ };
+
+ this.getAccessTokenFromSession = function(){
+ return session.get("access_token");
+ };
+};
+
+
+
+%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/controllers/README
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/controllers/README b/components/org.apache.stratos.manager.console/controllers/README
deleted file mode 100644
index bdd0c86..0000000
--- a/components/org.apache.stratos.manager.console/controllers/README
+++ /dev/null
@@ -1 +0,0 @@
-Contains controllers required for this project
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/controllers/acs.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/controllers/acs.jag b/components/org.apache.stratos.manager.console/controllers/acs.jag
deleted file mode 100644
index a83826e..0000000
--- a/components/org.apache.stratos.manager.console/controllers/acs.jag
+++ /dev/null
@@ -1,93 +0,0 @@
-<%
-(function () {
- var log = new Log();
- log.info("console ACS page....");
- var configs = require('/config/console.js').config(),
- process = require("process"),
- util = require('/util/utility.jag'),
- samlResponse = request.getParameter('SAMLResponse'),
- sessionId = session.getId(),
- samlRequest = request.getParameter('SAMLRequest'),
- relayState = request.getParameter('RelayState'),
- sso = require('sso'),
- samlRespObj,
- keyStoreProps = {
- KEY_STORE_NAME: process.getProperty('carbon.home') + configs.ssoConfiguration.keyStoreName,
- KEY_STORE_PASSWORD: configs.ssoConfiguration.keyStorePassword,
- IDP_ALIAS: configs.ssoConfiguration.identityAlias
- },
- sso_sessions = application.get('sso_sessions');
- log.info("SAML request :"+ samlRequest);
- log.info("SAML response : "+ samlResponse);
-
- if (!sso_sessions) {
- application.put('sso_sessions', {});
- sso_sessions = application.get('sso_sessions');
- }
-
- if (samlResponse != null) {
- samlRespObj = sso.client.getSamlObject(samlResponse);
- log.info("SAML response object :" + samlRespObj);
- if (!sso.client.isLogoutResponse(samlRespObj)) {
-
- // validating the signature
- if (configs.ssoConfiguration.responseSigningEnabled) {
-
- if (sso.client.validateSignature(samlRespObj, keyStoreProps)) {
- var sessionObj = sso.client.decodeSAMLLoginResponse(samlRespObj, samlResponse, sessionId);
- var samlToken = sso.client.getB64EncodedtSAMLAssertion(samlRespObj);
- log.info("B64 encoded SAML2Token : " + samlToken.b64Encoded);
- var encodedString = sso.client.b64encode("LATjzZ4FvQc2gFEfwcitay78lQQa:LeZD0oN0ZLTLjLmRqphX4Ulrr5wa");
- log.info("encoded string : " + encodedString);
- var accessToken = util.consoleAppUtil.getOauthAccessToken(samlToken.b64Encoded,encodedString);
- log.info(accessToken.data.access_token);
- session.put("access_token",accessToken.data.access_token);
- if (sessionObj.sessionIndex != null || sessionObj.sessionIndex != 'undefined') {
- session.put("LOGGED_IN_USER", sessionObj.loggedInUser);
- //session.put("Logged", "true");
-
- //sso_sessions[sessionObj.sessionIndex] = sessionObj.sessionId;
-
- log.debug("session index :: " + sessionObj.sessionIndex);
- log.debug("session :: " + sessionObj.sessionId);
-
- log.debug("real session :: " + session.getId());
-
-
- //sso_sessions[sso_sessions[sessionObj.sessionIndex] = sessionObj.sessionId] = sessionObj.sessionIndex;
-
- sso_sessions[sessionObj.sessionId] = sessionObj.sessionIndex;
- response.sendRedirect('/console');
- //var user = require('store').user;
-
- //if (user.loginWithSAML(sessionObj.loggedInUser)) {
- // log.debug('user is set :::' + sessionObj.loggedInUser);
- // response.sendRedirect('/publisher');
- //}
-
- }
- }
- }
-
- } else {
- session.invalidate();
- response.sendRedirect('/publisher');
- }
- }
-
- // if saml request is a log out request, then invalidate session.
- if (samlRequest != null) {
- var index = sso.client.decodeSAMLLogoutRequest(sso.client.getSamlObject(samlRequest));
- log.debug('BACKEND LOGOUT RECIEVED FROM STORE THE INDEX IS ######' + index);
-
- var jSessionId = application.get('sso_sessions')[index];
-
- delete application.get('sso_sessions')[index];
-
-
- log.debug('portal Session Id :::' + jSessionId);
-
- session.invalidate();
- }
-}());
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/controllers/login.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/controllers/login.jag b/components/org.apache.stratos.manager.console/controllers/login.jag
deleted file mode 100644
index 828c874..0000000
--- a/components/org.apache.stratos.manager.console/controllers/login.jag
+++ /dev/null
@@ -1,37 +0,0 @@
-<%
-(function(){
- var dataConfig = require('/config/console.json'),
- sso = require("sso"),
- process = require("process"),
- sessionId = session.getId(),
- requestURI,
- requestedPage = request.getParameter("requestedPage"),
- relayState = '/console',log = new Log();
- log.info(dataConfig.ssoConfiguration.issuer);
- var encodedSAMLAuthRequest = sso.client.getEncodedSAMLAuthRequest(dataConfig.ssoConfiguration.issuer);
- postUrl = "https://" + process.getProperty('carbon.local.ip') + ":" + process.getProperty('https.port');
-
-
- if (!session.get("Loged")) {
- %>
-
- <div>
-
- <p>You are now being redirected to Identity Server. If the
- redirection fails, please click on the button below.</p>
- <form method="post" action="<%=postUrl%>/admin/samlsso">
- <p>
- <input type="hidden" name="SAMLRequest" value="<%= encodedSAMLAuthRequest %>"/>
- <input type="hidden" name="RelayState" value="<%= relayState %>"/>
- <input type="hidden" name="SSOAuthSessionID" value="<%= sessionId %>"/>
- <button type="submit">Redirect manually</button>
- </p>
- </form>
- </div>
- <script type = "text/javascript" >
- document.forms[0].submit();
- </script>
- <%
- }
-}());
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/controllers/logout.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/controllers/logout.jag b/components/org.apache.stratos.manager.console/controllers/logout.jag
deleted file mode 100644
index 461f1b3..0000000
--- a/components/org.apache.stratos.manager.console/controllers/logout.jag
+++ /dev/null
@@ -1,41 +0,0 @@
-<%
-(function(){
- var user = require('store').server.current(session).username;//session.get("LOGGED_IN_USER");
- if(user === null) {
- response.sendRedirect('/portal');
- } else {
- var config = require('/config/publisher.js').config(),
- sso = require('sso'),
- sso_sessions = application.get('sso_sessions'),
- sessionId = session.getId(),
- encodedSAMLLogoutRequest = sso.client.getEncodedSAMLLogoutRequest(user, sso_sessions[session.getId()], config.ssoConfiguration.issuer),
- relayState = '/publisher',
- postUrl = "https://" + process.getProperty('carbon.local.ip') + ":" + process.getProperty('https.port');
-
- var log = new Log();
-
- log.debug("portal session index : " + sso_sessions[session.getId()]);
-
- %>
- <div>
- <p>You are now redirected to Stratos Identity. If the
- redirection fails, please click the post button.</p>
-
- <form id="logoutForm" method="post" action="<%=postUrl%>/admin/samlsso">
- <p>
- <input type="hidden" name="SAMLRequest"
- value="<%= encodedSAMLLogoutRequest %>"/>
- <input type="hidden" name="RelayState" value="<%= relayState %>"/>
- <input type="hidden" name="SSOAuthSessionID" value="<%= sessionId %>"/>
- <button type="submit">POST</button>
- </p>
- </form>
- </div>
- <script type = "text/javascript" >
- document.forms[0].submit();
- </script>
-
- <%
- }
-}());
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/controllers/payloadFactory.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/controllers/payloadFactory.jag b/components/org.apache.stratos.manager.console/controllers/payloadFactory.jag
deleted file mode 100644
index 3132f02..0000000
--- a/components/org.apache.stratos.manager.console/controllers/payloadFactory.jag
+++ /dev/null
@@ -1,50 +0,0 @@
-<%
-
-var getUserProfile = "<mgt:getUserProfile xmlns:mgt=\"http://mgt.profile.user.identity.carbon.wso2.org\">\n" +
- "<mgt:username>{0}</mgt:username>\n" +
- "<mgt:profileName>{1}</mgt:profileName>\n" +
- "</mgt:getUserProfile>";
-
-application.put("urn:getUserProfile", getUserProfile);
-
-
-
-
-var log = new Log();
-
-
-function getPayload(method, param){
-
- var payload = application.get(method);
-
- if(payload != null){
- if(param instanceof Array){
- for(var x = 0; x < param.length; x++){
- payload = format(payload, param[x], x);
- }
- }else{
- payload = format(payload, param, 0);
- }
- }
-
- return payload;
-}
-
-function format(variable, value, index){
- var placeHolder = "{" + index + "}";
- var index = variable.indexOf(placeHolder);
- if(index > -1){
- var data = variable.split(placeHolder);
- var newData = data[0] + value;
- if(data.length > 1){
- newData += data[1];
- }
-
- return newData;
- }
-
- return variable;
-}
-
-
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/controllers/profileClient.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/controllers/profileClient.jag b/components/org.apache.stratos.manager.console/controllers/profileClient.jag
deleted file mode 100644
index 655cf77..0000000
--- a/components/org.apache.stratos.manager.console/controllers/profileClient.jag
+++ /dev/null
@@ -1,58 +0,0 @@
-<%
-
-var payloadFac = require("payloadFactory.jag");
-var util = require("../util/utility.jag");
-
-var log = new Log();
-var serverUrl = util.getServerUrl();
-
-var ws = require('ws');
-var webService = new ws.WSRequest();
-
-function getUserProfile(username, profileName){
-
- var options = new Array();
- options.useSOAP = 1.1;
- options.action = "urn:getUserProfile";
-
- var payload = payloadFac.getPayload(options.action, new Array(username, profileName));
- var result;
-
- try {
- webService.open(options, serverUrl, false, "admin", "admin");
- webService.send(payload);
-
- if(webService.readyState == 4){
- result = webService.responseXML;
- result = util.E4XtoJSON(result);
-
- result.return.fieldValues = util.sortNumber(result.return.fieldValues, 'displayOrder', true, true);
-
- for(var x = 0; x < result.return.fieldValues.length; x++){
- var obj = result.return.fieldValues[x];
- if(obj.required === "false"){
- obj.required = "";
- }
-
- if(obj.readOnly === "false"){
- obj.readOnly = "";
- }
- }
-
- log.info(result);
- return result;
- }
-
- } catch (e) {
- log.error(e.toString());
-
- //TODO send proper error message from i18n file
- return "";
- }
-
-}
-
-
-
-
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/data/cartridge_deployments.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/data/cartridge_deployments.json b/components/org.apache.stratos.manager.console/data/cartridge_deployments.json
deleted file mode 100644
index 07555c0..0000000
--- a/components/org.apache.stratos.manager.console/data/cartridge_deployments.json
+++ /dev/null
@@ -1,10 +0,0 @@
-[
- {
- "name":"Cartridge - deployment1",
- "policy":"{'partition':{'id': 'P1','provider': 'ec2','property': [{'name': 'region','value': 'ap-southeast-1'}],'partitionMin': '1','partitionMax': '3' }}"
- },
- {
- "name":"Cartridge - deployment2",
- "policy":"{'partition':{'id': 'P1','provider': 'ec2','property': [{'name': 'region','value': 'ap-southeast-1'}],'partitionMin': '1','partitionMax': '3' }}"
- }
-]
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/data/cartridges.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/data/cartridges.json b/components/org.apache.stratos.manager.console/data/cartridges.json
deleted file mode 100644
index b49a04c..0000000
--- a/components/org.apache.stratos.manager.console/data/cartridges.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{"cartridge": [
- {
- "activeInstances": 0,
- "cartridgeAlias": "-",
- "cartridgeType": "lb",
- "description": "LB Cartridge",
- "displayName": "load balancer",
- "multiTenant": false,
- "provider": "apache",
- "status": "NOT-SUBSCRIBED",
- "version": 4
- },
- {
- "activeInstances": 0,
- "cartridgeAlias": "-",
- "cartridgeType": "php",
- "description": "Apache Stratos PHP Cartridge",
- "displayName": "Apache Stratos PHP Cartridge",
- "multiTenant": false,
- "provider": "Apache Stratos",
- "status": "NOT-SUBSCRIBED",
- "version": 1
- },
- {
- "activeInstances": 0,
- "cartridgeAlias": "-",
- "cartridgeType": "stratos-lb",
- "description": "Apache Stratos Load Balancer Cartridge",
- "displayName": "Apache Stratos Load Balancer Cartridge",
- "multiTenant": false,
- "provider": "apache",
- "status": "NOT-SUBSCRIBED",
- "version": 4
- }
-]}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/data/config_status.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/data/config_status.json b/components/org.apache.stratos.manager.console/data/config_status.json
deleted file mode 100644
index 1c73caa..0000000
--- a/components/org.apache.stratos.manager.console/data/config_status.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "first_use":false,
- "not_complete":true
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/data/lbs.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/data/lbs.json b/components/org.apache.stratos.manager.console/data/lbs.json
deleted file mode 100644
index 0d135f9..0000000
--- a/components/org.apache.stratos.manager.console/data/lbs.json
+++ /dev/null
@@ -1,10 +0,0 @@
-[
- {
- "name":"LB1",
- "policy":"{'partition':{'id': 'P1','provider': 'ec2','property': [{'name': 'region','value': 'ap-southeast-1'}],'partitionMin': '1','partitionMax': '3' }}"
- },
- {
- "name":"LB2",
- "policy":"{'partition':{'id': 'P1','provider': 'ec2','property': [{'name': 'region','value': 'ap-southeast-1'}],'partitionMin': '1','partitionMax': '3' }}"
- }
-]
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/data/mt_service_deployments.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/data/mt_service_deployments.json b/components/org.apache.stratos.manager.console/data/mt_service_deployments.json
deleted file mode 100644
index 087f1a5..0000000
--- a/components/org.apache.stratos.manager.console/data/mt_service_deployments.json
+++ /dev/null
@@ -1,10 +0,0 @@
-[
- {
- "name":"MT Service Deployment1",
- "policy":"{'partition':{'id': 'P1','provider': 'ec2','property': [{'name': 'region','value': 'ap-southeast-1'}],'partitionMin': '1','partitionMax': '3' }}"
- },
- {
- "name":"MT Service Deployment2",
- "policy":"{'partition':{'id': 'P1','provider': 'ec2','property': [{'name': 'region','value': 'ap-southeast-1'}],'partitionMin': '1','partitionMax': '3' }}"
- }
-]
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/data/mycartridges.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/data/mycartridges.json b/components/org.apache.stratos.manager.console/data/mycartridges.json
deleted file mode 100644
index b49a04c..0000000
--- a/components/org.apache.stratos.manager.console/data/mycartridges.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{"cartridge": [
- {
- "activeInstances": 0,
- "cartridgeAlias": "-",
- "cartridgeType": "lb",
- "description": "LB Cartridge",
- "displayName": "load balancer",
- "multiTenant": false,
- "provider": "apache",
- "status": "NOT-SUBSCRIBED",
- "version": 4
- },
- {
- "activeInstances": 0,
- "cartridgeAlias": "-",
- "cartridgeType": "php",
- "description": "Apache Stratos PHP Cartridge",
- "displayName": "Apache Stratos PHP Cartridge",
- "multiTenant": false,
- "provider": "Apache Stratos",
- "status": "NOT-SUBSCRIBED",
- "version": 1
- },
- {
- "activeInstances": 0,
- "cartridgeAlias": "-",
- "cartridgeType": "stratos-lb",
- "description": "Apache Stratos Load Balancer Cartridge",
- "displayName": "Apache Stratos Load Balancer Cartridge",
- "multiTenant": false,
- "provider": "apache",
- "status": "NOT-SUBSCRIBED",
- "version": 4
- }
-]}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/data/partition_deployments.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/data/partition_deployments.json b/components/org.apache.stratos.manager.console/data/partition_deployments.json
deleted file mode 100644
index 9629cdd..0000000
--- a/components/org.apache.stratos.manager.console/data/partition_deployments.json
+++ /dev/null
@@ -1,10 +0,0 @@
-[
- {
- "name":"Partition - deployment1",
- "policy":"{'partition':{'id': 'P1','provider': 'ec2','property': [{'name': 'region','value': 'ap-southeast-1'}],'partitionMin': '1','partitionMax': '3' }}"
- },
- {
- "name":"Partition - deployment2",
- "policy":"{'partition':{'id': 'P1','provider': 'ec2','property': [{'name': 'region','value': 'ap-southeast-1'}],'partitionMin': '1','partitionMax': '3' }}"
- }
-]
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/data/policy_deployments.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/data/policy_deployments.json b/components/org.apache.stratos.manager.console/data/policy_deployments.json
deleted file mode 100644
index db657be..0000000
--- a/components/org.apache.stratos.manager.console/data/policy_deployments.json
+++ /dev/null
@@ -1,10 +0,0 @@
-[
- {
- "name":"Policy Deployment1",
- "policy":"{'partition':{'id': 'P1','provider': 'ec2','property': [{'name': 'region','value': 'ap-southeast-1'}],'partitionMin': '1','partitionMax': '3' }}"
- },
- {
- "name":"Policy Deployment2",
- "policy":"{'partition':{'id': 'P1','provider': 'ec2','property': [{'name': 'region','value': 'ap-southeast-1'}],'partitionMin': '1','partitionMax': '3' }}"
- }
-]
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/index.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/index.jag b/components/org.apache.stratos.manager.console/index.jag
deleted file mode 100644
index f852cc4..0000000
--- a/components/org.apache.stratos.manager.console/index.jag
+++ /dev/null
@@ -1,7 +0,0 @@
-<%
-var caramel = require('caramel')
-var mycartridges = require('/data/mycartridges.json');
-caramel.render({
- mycartridges:mycartridges
-});
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/jaggery.conf
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/jaggery.conf b/components/org.apache.stratos.manager.console/jaggery.conf
deleted file mode 100644
index c26875e..0000000
--- a/components/org.apache.stratos.manager.console/jaggery.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "initScripts": ["app.js"]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/js/dialog.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/js/dialog.js b/components/org.apache.stratos.manager.console/js/dialog.js
deleted file mode 100644
index efa834f..0000000
--- a/components/org.apache.stratos.manager.console/js/dialog.js
+++ /dev/null
@@ -1,369 +0,0 @@
-if (typeof CARBON == "undefined" || CARBON) {
- /**
- * The CARBON global namespace object. If CARBON is already defined, the
- * existing CARBON object will not be overwirrten so that defined
- * namespaces are preserved
- */
- var CARBON = {};
-}
-
-var pageLoaded = false;
-
-jQuery(document).ready(function() {
- pageLoaded = true;
-});
-
-/**
- * Display the Warning Message inside a jQuery UI's dialog widget.
- * @method showWarningDialog
- * @param {String} message to display
- * @return {Boolean}
- */
-CARBON.showWarningDialog = function(message, callback, closeCallback) {
- var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox-warning'><p>" +
- message + "</p></div></div>";
- //var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox'><img src='img/warning.gif'/><p>" +
- // message + "</p></div></div>";
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
-
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "OK":function() {
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- if(callback && typeof callback == "function")
- callback();
- return false;
- }
- },
- height:160,
- width:450,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-
-};
-
-/**
- * Display the Error Message inside a jQuery UI's dialog widget.
- * @method showErrorDialog
- * @param {String} message to display
- * @return {Boolean}
- */
-CARBON.showErrorDialog = function(message, callback, closeCallback) {
- var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox-error'><p>" +
- message + "</p></div></div>";
- //var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox'><img src='img/error.gif'/><p>" +
- // message + "</p></div></div>";
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
-
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "OK":function() {
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- if(callback && typeof callback == "function")
- callback();
- return false;
- }
- },
- height:200,
- width:490,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-
-};
-
-/**
- * Display the Info Message inside a jQuery UI's dialog widget.
- * @method showInfoDialog
- * @param {String} message to display
- * @return {Boolean}
- */
-CARBON.showInfoDialog = function(message, callback, closeCallback) {
- var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox-info'><p>" +
- message + "</p></div></div>";
- //var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox'><img src='img/info.gif'/><p>" +
- // message + "</p></div></div>";
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
-
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "OK":function() {
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- if(callback && typeof callback == "function")
- callback();
- return false;
- }
- },
- height:160,
- width:450,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-
-};
-
-/**
- * Display the Confirmation dialog.
- * @method showConfirmationDialog
- * @param {String} message to display
- * @param {Function} handleYes callback function to execute after user press Yes button
- * @param {Function} handleNo callback function to execute after user press No button
- * @return {Boolean} It's prefer to return boolean always from your callback functions to maintain consistency.
- */
-CARBON.showConfirmationDialog = function(message, handleYes, handleNo, closeCallback){
- /* This function always assume that your second parameter is handleYes function and third parameter is handleNo function.
- * If you are not going to provide handleYes function and want to give handleNo callback please pass null as the second
- * parameter.
- */
- var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox-confirm'><p>" +
- message + "</p></div></div>";
-
- handleYes = handleYes || function(){return true};
-
- handleNo = handleNo || function(){return false};
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
-
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "Yes":function() {
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- handleYes();
- },
- "No":function(){
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- handleNo();
- }
- },
- height:160,
- width:450,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
- return false;
-}
-
-/**
- * Display the Info Message inside a jQuery UI's dialog widget.
- * @method showPopupDialog
- * @param {String} message to display
- * @return {Boolean}
- */
-CARBON.showPopupDialog = function(message, title, windowHight, okButton, callback, windowWidth) {
- var strDialog = "<div id='dialog' title='" + title + "'><div id='popupDialog'></div>" + message + "</div>";
- var requiredWidth = 750;
- if (windowWidth) {
- requiredWidth = windowWidth;
- }
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
- if (okButton) {
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- return false;
- },
- buttons:{
- "OK":function() {
- if (callback && typeof callback == "function")
- callback();
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- return false;
- }
- },
- height:windowHight,
- width:requiredWidth,
- minHeight:windowHight,
- minWidth:requiredWidth,
- modal:true
- });
- } else {
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- return false;
- },
- height:windowHight,
- width:requiredWidth,
- minHeight:windowHight,
- minWidth:requiredWidth,
- modal:true
- });
- }
-
- jQuery('.ui-dialog-titlebar-close').click(function(){
- jQuery('#dialog').dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- jQuery("#dcontainer").html('');
- });
-
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-};
-
-/**
- * Display the Input dialog.
- * @method showInputDialog
- * @param {String} message to display
- * @param {Function} handleOk callback function to execute after user press OK button.
- * @param {Function} handleCancel callback function to execute after user press Cancel button
- * @param {Function} closeCallback callback function to execute after user close the dialog button.
- * @return {Boolean} It's prefer to return boolean always from your callback functions to maintain consistency.
- *
- * handleOk function signature
- * ---------------------------
- * function(inputText){
- * //logic
- * }
- */
-CARBON.showInputDialog = function(message, handleOk, handleCancel, closeCallback){
- var strInput = "<div style='margin:20px;'><p>"+message+ "</p><br/>"+
- "<input type='text' id='carbon-ui-dialog-input' size='40' name='carbon-dialog-inputval'></div>";
- var strDialog = "<div id='dialog' title='WSO2 Carbon'>" + strInput + "</div>";
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "OK":function() {
- var inputVal = jQuery('input[name=carbon-dialog-inputval]').fieldValue();
- handleOk(inputVal);
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- return false;
- },
- "Cancel":function(){
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- handleCancel();
- }
- },
- height:160,
- width:450,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-}
-/**
- * Display the loading dialog.
- * @method showLoadingDialog
- * @param {String} message to display
- * @param {Function} handleRemoveMessage callback function to triger the removal of the message.
- * handleOk function signature
- * ---------------------------
- * function(inputText){
- * //logic
- * }
- */
-CARBON.showLoadingDialog = function(message, handleRemoveMessage){
- //var strInput = "<div id='dcontainer' style='margin:20px;'><p><img src='../admin/images/loading.gif' />"+message+ "</p><br/></div>";
-
-
- var func = function() {
- var windowHeight = 20;
- var windowWidth = 100 + message.length*7;
- var strDialog = '<div class="ui-dialog-overlay" style="border-width: 0pt; margin: 0pt; padding: 0pt; position: absolute; top: 0pt; left: 0pt; width: ' + jQuery(document).width() + 'px; height: ' + jQuery(document).height() + 'px; z-index: 1001;">' +
- '<div class="loadingDialogBox" style="background-color:#fff;border-radious:5px; -moz-border-radious:5px;possition:absolute;margin-top:' + (( jQuery(window).height() - windowHeight ) / 2+jQuery(window).scrollTop()) + 'px;margin-left:' + (( jQuery(window).width() - windowWidth ) / 2+jQuery(window).scrollLeft()) + 'px;height:'+windowHeight+'px;width:'+windowWidth+'px;">' + message + '</div>' +
- '</div>';
- jQuery("#dcontainer").html(strDialog);
-
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-}
-CARBON.closeWindow = function(){
-jQuery("#dialog").dialog("destroy").remove();
-}
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/js/main.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/js/main.js b/components/org.apache.stratos.manager.console/js/main.js
deleted file mode 100644
index d652929..0000000
--- a/components/org.apache.stratos.manager.console/js/main.js
+++ /dev/null
@@ -1,19 +0,0 @@
-function validateEmpty(fldname) {
- var fld = document.getElementsByName(fldname)[0];
- var error = "";
- var value = fld.value;
- if (value.length == 0) {
- error = fld.name + " ";
- return error;
- }
- value = value.replace(/^\s+/, "");
- if (value.length == 0) {
- error = fld.name + "(contains only spaces) ";
- return error;
- }
- return error;
-}
-
-function cancelProcess(parameters){
- location.href = "index.jag?" + (parameters ? parameters : "");
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/lbs.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/lbs.jag b/components/org.apache.stratos.manager.console/lbs.jag
deleted file mode 100644
index f229535..0000000
--- a/components/org.apache.stratos.manager.console/lbs.jag
+++ /dev/null
@@ -1,9 +0,0 @@
-<%
-var caramel = require('caramel');
-var lbs = require('/data/lbs.json');
-var config_status = require('/data/config_status.json');
-caramel.render({
- lbs:lbs,
- config_status:config_status
-});
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/login.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/login.jag b/components/org.apache.stratos.manager.console/login.jag
deleted file mode 100644
index b63847d..0000000
--- a/components/org.apache.stratos.manager.console/login.jag
+++ /dev/null
@@ -1,5 +0,0 @@
-<%
-var caramel = require('caramel');
-
-caramel.render({});
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/modules/README
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/modules/README b/components/org.apache.stratos.manager.console/modules/README
deleted file mode 100644
index dccec0a..0000000
--- a/components/org.apache.stratos.manager.console/modules/README
+++ /dev/null
@@ -1 +0,0 @@
-Contains modules required for the project
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/mt_service_deployments.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/mt_service_deployments.jag b/components/org.apache.stratos.manager.console/mt_service_deployments.jag
deleted file mode 100644
index abe143d..0000000
--- a/components/org.apache.stratos.manager.console/mt_service_deployments.jag
+++ /dev/null
@@ -1,9 +0,0 @@
-<%
-var caramel = require('caramel');
-var mt_service_deployments = require('/data/mt_service_deployments.json');
-var config_status = require('/data/config_status.json');
-caramel.render({
- mt_service_deployments:mt_service_deployments,
- config_status:config_status
-});
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/partition_deployments.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/partition_deployments.jag b/components/org.apache.stratos.manager.console/partition_deployments.jag
deleted file mode 100644
index 9834048..0000000
--- a/components/org.apache.stratos.manager.console/partition_deployments.jag
+++ /dev/null
@@ -1,9 +0,0 @@
-<%
-var caramel = require('caramel');
-var partition_deployments = require('/data/partition_deployments.json');
-var config_status = require('/data/config_status.json');
-caramel.render({
- partition_deployments:partition_deployments,
- config_status:config_status
-});
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/policy_deployments.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/policy_deployments.jag b/components/org.apache.stratos.manager.console/policy_deployments.jag
deleted file mode 100644
index 100e1c6..0000000
--- a/components/org.apache.stratos.manager.console/policy_deployments.jag
+++ /dev/null
@@ -1,9 +0,0 @@
-<%
-var caramel = require('caramel');
-var policy_deployments = require('/data/policy_deployments.json');
-var config_status = require('/data/config_status.json');
-caramel.render({
- policy_deployments:policy_deployments,
- config_status:config_status
-});
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/root-js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/root-js b/components/org.apache.stratos.manager.console/root-js
deleted file mode 100644
index efa834f..0000000
--- a/components/org.apache.stratos.manager.console/root-js
+++ /dev/null
@@ -1,369 +0,0 @@
-if (typeof CARBON == "undefined" || CARBON) {
- /**
- * The CARBON global namespace object. If CARBON is already defined, the
- * existing CARBON object will not be overwirrten so that defined
- * namespaces are preserved
- */
- var CARBON = {};
-}
-
-var pageLoaded = false;
-
-jQuery(document).ready(function() {
- pageLoaded = true;
-});
-
-/**
- * Display the Warning Message inside a jQuery UI's dialog widget.
- * @method showWarningDialog
- * @param {String} message to display
- * @return {Boolean}
- */
-CARBON.showWarningDialog = function(message, callback, closeCallback) {
- var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox-warning'><p>" +
- message + "</p></div></div>";
- //var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox'><img src='img/warning.gif'/><p>" +
- // message + "</p></div></div>";
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
-
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "OK":function() {
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- if(callback && typeof callback == "function")
- callback();
- return false;
- }
- },
- height:160,
- width:450,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-
-};
-
-/**
- * Display the Error Message inside a jQuery UI's dialog widget.
- * @method showErrorDialog
- * @param {String} message to display
- * @return {Boolean}
- */
-CARBON.showErrorDialog = function(message, callback, closeCallback) {
- var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox-error'><p>" +
- message + "</p></div></div>";
- //var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox'><img src='img/error.gif'/><p>" +
- // message + "</p></div></div>";
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
-
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "OK":function() {
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- if(callback && typeof callback == "function")
- callback();
- return false;
- }
- },
- height:200,
- width:490,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-
-};
-
-/**
- * Display the Info Message inside a jQuery UI's dialog widget.
- * @method showInfoDialog
- * @param {String} message to display
- * @return {Boolean}
- */
-CARBON.showInfoDialog = function(message, callback, closeCallback) {
- var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox-info'><p>" +
- message + "</p></div></div>";
- //var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox'><img src='img/info.gif'/><p>" +
- // message + "</p></div></div>";
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
-
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "OK":function() {
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- if(callback && typeof callback == "function")
- callback();
- return false;
- }
- },
- height:160,
- width:450,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-
-};
-
-/**
- * Display the Confirmation dialog.
- * @method showConfirmationDialog
- * @param {String} message to display
- * @param {Function} handleYes callback function to execute after user press Yes button
- * @param {Function} handleNo callback function to execute after user press No button
- * @return {Boolean} It's prefer to return boolean always from your callback functions to maintain consistency.
- */
-CARBON.showConfirmationDialog = function(message, handleYes, handleNo, closeCallback){
- /* This function always assume that your second parameter is handleYes function and third parameter is handleNo function.
- * If you are not going to provide handleYes function and want to give handleNo callback please pass null as the second
- * parameter.
- */
- var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox-confirm'><p>" +
- message + "</p></div></div>";
-
- handleYes = handleYes || function(){return true};
-
- handleNo = handleNo || function(){return false};
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
-
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "Yes":function() {
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- handleYes();
- },
- "No":function(){
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- handleNo();
- }
- },
- height:160,
- width:450,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
- return false;
-}
-
-/**
- * Display the Info Message inside a jQuery UI's dialog widget.
- * @method showPopupDialog
- * @param {String} message to display
- * @return {Boolean}
- */
-CARBON.showPopupDialog = function(message, title, windowHight, okButton, callback, windowWidth) {
- var strDialog = "<div id='dialog' title='" + title + "'><div id='popupDialog'></div>" + message + "</div>";
- var requiredWidth = 750;
- if (windowWidth) {
- requiredWidth = windowWidth;
- }
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
- if (okButton) {
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- return false;
- },
- buttons:{
- "OK":function() {
- if (callback && typeof callback == "function")
- callback();
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- return false;
- }
- },
- height:windowHight,
- width:requiredWidth,
- minHeight:windowHight,
- minWidth:requiredWidth,
- modal:true
- });
- } else {
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- return false;
- },
- height:windowHight,
- width:requiredWidth,
- minHeight:windowHight,
- minWidth:requiredWidth,
- modal:true
- });
- }
-
- jQuery('.ui-dialog-titlebar-close').click(function(){
- jQuery('#dialog').dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- jQuery("#dcontainer").html('');
- });
-
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-};
-
-/**
- * Display the Input dialog.
- * @method showInputDialog
- * @param {String} message to display
- * @param {Function} handleOk callback function to execute after user press OK button.
- * @param {Function} handleCancel callback function to execute after user press Cancel button
- * @param {Function} closeCallback callback function to execute after user close the dialog button.
- * @return {Boolean} It's prefer to return boolean always from your callback functions to maintain consistency.
- *
- * handleOk function signature
- * ---------------------------
- * function(inputText){
- * //logic
- * }
- */
-CARBON.showInputDialog = function(message, handleOk, handleCancel, closeCallback){
- var strInput = "<div style='margin:20px;'><p>"+message+ "</p><br/>"+
- "<input type='text' id='carbon-ui-dialog-input' size='40' name='carbon-dialog-inputval'></div>";
- var strDialog = "<div id='dialog' title='WSO2 Carbon'>" + strInput + "</div>";
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "OK":function() {
- var inputVal = jQuery('input[name=carbon-dialog-inputval]').fieldValue();
- handleOk(inputVal);
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- return false;
- },
- "Cancel":function(){
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- handleCancel();
- }
- },
- height:160,
- width:450,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-}
-/**
- * Display the loading dialog.
- * @method showLoadingDialog
- * @param {String} message to display
- * @param {Function} handleRemoveMessage callback function to triger the removal of the message.
- * handleOk function signature
- * ---------------------------
- * function(inputText){
- * //logic
- * }
- */
-CARBON.showLoadingDialog = function(message, handleRemoveMessage){
- //var strInput = "<div id='dcontainer' style='margin:20px;'><p><img src='../admin/images/loading.gif' />"+message+ "</p><br/></div>";
-
-
- var func = function() {
- var windowHeight = 20;
- var windowWidth = 100 + message.length*7;
- var strDialog = '<div class="ui-dialog-overlay" style="border-width: 0pt; margin: 0pt; padding: 0pt; position: absolute; top: 0pt; left: 0pt; width: ' + jQuery(document).width() + 'px; height: ' + jQuery(document).height() + 'px; z-index: 1001;">' +
- '<div class="loadingDialogBox" style="background-color:#fff;border-radious:5px; -moz-border-radious:5px;possition:absolute;margin-top:' + (( jQuery(window).height() - windowHeight ) / 2+jQuery(window).scrollTop()) + 'px;margin-left:' + (( jQuery(window).width() - windowWidth ) / 2+jQuery(window).scrollLeft()) + 'px;height:'+windowHeight+'px;width:'+windowWidth+'px;">' + message + '</div>' +
- '</div>';
- jQuery("#dcontainer").html(strDialog);
-
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-}
-CARBON.closeWindow = function(){
-jQuery("#dialog").dialog("destroy").remove();
-}
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/subscribe_cartridge.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/subscribe_cartridge.jag b/components/org.apache.stratos.manager.console/subscribe_cartridge.jag
deleted file mode 100644
index 6714559..0000000
--- a/components/org.apache.stratos.manager.console/subscribe_cartridge.jag
+++ /dev/null
@@ -1,6 +0,0 @@
-<%
-var caramel = require('caramel')
-caramel.render({
- name:"PHP 5.4 Cartridge"
-});
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/themes/README
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/themes/README b/components/org.apache.stratos.manager.console/themes/README
deleted file mode 100644
index e8fc5c7..0000000
--- a/components/org.apache.stratos.manager.console/themes/README
+++ /dev/null
@@ -1 +0,0 @@
-Contains themes applied for this application
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/themes/theme1/pages/index.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/themes/theme1/pages/index.hbs b/components/org.apache.stratos.manager.console/themes/theme1/pages/index.hbs
deleted file mode 100644
index a0dade2..0000000
--- a/components/org.apache.stratos.manager.console/themes/theme1/pages/index.hbs
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--[if lt IE 7]>
-<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
-<!--[if IE 7]>
-<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
-<!--[if IE 8]>
-<html class="no-js lt-ie9"> <![endif]-->
-<!--[if gt IE 8]><!-->
-<html class="no-js"> <!--<![endif]-->
-<head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- {{include title}}
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width">
- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
- <link href="{{url "/themes/theme1/ui/css/bootstrap.css"}}" rel="stylesheet">
- <link href="{{url "/themes/theme1/ui/css/bootstrap-theme.css"}}" rel="stylesheet">
- <link href="{{url "/themes/theme1/ui/css/bootstrap-missing.css"}}" rel="stylesheet">
-
- <link rel="stylesheet" href="{{url "/themes/theme1/ui/css/main.css"}}">
- <link rel="stylesheet" href="{{url "/themes/theme1/ui/css/smoothness/jquery-ui-1.10.3.custom.min.css"}}">
- <link rel="stylesheet" href="{{url "/themes/theme1/ui/css/smoothness/jqueryui-themeroller.css"}}">
- <link rel="stylesheet" href="{{url "/themes/theme1/ui/css/dialog.css"}}">
- <link rel="stylesheet" href="{{url "/themes/theme1/ui/custom-fonts/style.css"}}">
- <link rel="stylesheet" href="{{url "/themes/theme1/ui/font-awesome/css/font-awesome.css"}}">
- <script src="{{url "/themes/theme1/ui/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"}}"></script>
- <script src="{{url "/themes/theme1/ui/js/vendor/jquery-1.10.1.min.js"}}"></script>
- <script src="{{url "/themes/theme1/ui/js/vendor/jquery-ui-1.10.3.custom.min.js"}}"></script>
- <script src="{{url "/js/main.js"}}"></script>
- <script src="{{url "/js/dialog.js"}}"></script>
-</head>
-<body>
-
-<div id="dcontainer"></div>
-
-<!--[if lt IE 7]>
-<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
- your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to
- improve your experience.</p>
-<![endif]-->
-
-
-<!-- Part 1: Wrap all page content here -->
-<div id="wrap">
-
- {{include header}}
- {{include body}}
-
-
- <!-- /container -->
- <div id="push"></div>
-</div>
-
-<footer id="footer">
- <div class="container">
- <div class="pull-left"><img src="{{url "/themes/theme1/ui/img/egg-logo.png"}}" /></div>
- <div class="pull-right footer-right">
- Copyright © 2013 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
- Apache SIS, Apache, the Apache feather logo are trademarks of The Apache Software Foundation.
- </div>
- <div style="clear:both"></div>
- </div>
-</footer>
-
-
-
-<script src="{{url "/themes/theme1/ui/js/vendor/bootstrap.min.js"}}"></script>
-<script src="{{url "/themes/theme1/ui/js/vendor/jquery.validate.min.js"}}"></script>
-<script src="{{url "/themes/theme1/ui/js/main.js"}}"></script>
-<div class="speech-bubble help-section" id="speech_bubble_container" style="display: none">
- <div class="speech-pointer"></div>
- <i class="icon-help"></i>
-
- <p></p>
-</div>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/themes/theme1/partials/cartridge_deployments.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/themes/theme1/partials/cartridge_deployments.hbs b/components/org.apache.stratos.manager.console/themes/theme1/partials/cartridge_deployments.hbs
deleted file mode 100644
index 76638f4..0000000
--- a/components/org.apache.stratos.manager.console/themes/theme1/partials/cartridge_deployments.hbs
+++ /dev/null
@@ -1,90 +0,0 @@
-<div class="container content-starter">
- <div class="row">
- <div class="col-lg-12">
- <h1>{{title}}</h1>
- </div>
- </div>
-</div>
-<div class="container" style="display: none;" id="addItemSection">
- <div class="row">
- <div class="col-md-12">
- <h2>Deploy New Cartridge</h2>
- <form role="form">
- <label for="policy" class="required">Policy Configuration</label>
-
- <div class="container">
- <div class="row">
- <div class="col-md-6 padding-remover-left">
- <textarea class="form-control" rows="11" id="policy"></textarea>
- <button type="button" class="btn btn-primary" id="deployPolicy">Deploy Cartridge</button>
- <a>Cancel</a>
- </div>
- <div class="col-md-6">
- <i class="icons-help"></i>
- Example configuration:
- <pre>
- {
- "partition":{
- "id": "P1",
- "provider": "ec2",
- "property": [
- {
- "name": "region",
- "value": "ap-southeast-1"
- }
- ],
- "partitionMin": "1",
- "partitionMax": "3"
- }
- }
- </pre>
- </div>
- </div>
-
- </div>
-
-
- </form>
-
- </div>
- </div>
- </div>
-
-<div class="container">
-
- <div class="row">
- <div class="col-md-12">
-
-
- <div class="panel-group" id="accordion">
-
-
- {{#each cartridge_deployments}}
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{key}}">
- {{name}}
- </a>
- </h4>
- </div>
- <div id="collapse{{key}}" class="panel-collapse collapse">
- <div class="panel-body">
- <pre>{{policy}}</pre>
- <textarea style="display:none" class="jsonEditor">{{policy}}</textarea>
- <button class="btn btn-primary js_jsonEdit">Edit</button>
- <button class="btn btn-primary js_jsonSave" style="display:none">Save</button>
- <a class="js_jsonCancel" style="display:none">Cancel</a>
- </div>
- </div>
- </div>
- {{/each}}
-
-
-
- </div>
- </div>
- </div>
-</div>
-<script src="{{url "/themes/theme1/ui/js/utils.js"}}"></script>
-<script src="{{url "/themes/theme1/ui/js/configure_stratos.js"}}"></script>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/themes/theme1/partials/cartridges.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/themes/theme1/partials/cartridges.hbs b/components/org.apache.stratos.manager.console/themes/theme1/partials/cartridges.hbs
deleted file mode 100644
index 2e5d831..0000000
--- a/components/org.apache.stratos.manager.console/themes/theme1/partials/cartridges.hbs
+++ /dev/null
@@ -1,37 +0,0 @@
-<div class="container content-starter">
- <div class="row">
- <div class="col-lg-12">
- <h1>{{title}}</h1>
- </div>
- </div>
-</div>
-{{#each cartridges}}
-<div class="container">
- <div class="row">
- <div class="col-lg-12">
- <div class="h2-wrapper"><h2>{{kind}}</h2></div>
- </div>
- </div>
- <div class="row">
- {{#each cartridges}}
- <div class="col-md-6">
- <div class="box-container">
- <div class="container">
- <div class="row">
- <div class="col-lg-3">
- <div class="box-left"><i class="icons-{{cartridgeType}} big-pro-icons"></i></div>
- <div class="big-pro-icons-title">{{version}}</div>
- </div>
- <div class="col-lg-9">
- <a href="{{url "/subscribe_cartridge.jag"}}"><h3>{{displayName}} - {{version}}</h3></a>
- <div class="cartridge-description">{{description}}</div>
-
- </div>
- </div>
- </div>
- </div>
- </div>
- {{/each}}
- </div>
-</div>
-{{/each}}
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/themes/theme1/partials/configure_stratos.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/themes/theme1/partials/configure_stratos.hbs b/components/org.apache.stratos.manager.console/themes/theme1/partials/configure_stratos.hbs
deleted file mode 100644
index 7759df1..0000000
--- a/components/org.apache.stratos.manager.console/themes/theme1/partials/configure_stratos.hbs
+++ /dev/null
@@ -1,48 +0,0 @@
-<div>kkakaka</div>
-<div class="container content-starter">
- <div class="row">
- <div class="col-lg-12">
- <h1>{{title}} - Partition Deployments</h1>
- </div>
- </div>
-</div>
-
-
-<div class="container">
-
- <div class="row">
- <div class="col-md-12">
-
-
- <div class="panel-group" id="accordion">
-
-
- {{#each partition_deployment}}
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{key}}">
- {{name}}
- </a>
- </h4>
- </div>
- <div id="collapse{{key}}" class="panel-collapse collapse in">
- <div class="panel-body">
- <pre>{{policy}}</pre>
- <textarea style="display:none" class="jsonEditor">{{policy}}</textarea>
- <button class="btn btn-primary js_jsonEdit">Edit</button>
- <button class="btn btn-primary js_jsonSave" style="display:none">Save</button>
- <a class="js_jsonCancel" style="display:none">Cancel</a>
- </div>
- </div>
- </div>
- {{/each}}
-
-
-
- </div>
- </div>
- </div>
-</div>
-<script src="{{url "/themes/theme1/ui/js/utils.js"}}"></script>
-<script src="{{url "/themes/theme1/ui/js/configure_stratos.js"}}"></script>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/themes/theme1/partials/header.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/themes/theme1/partials/header.hbs b/components/org.apache.stratos.manager.console/themes/theme1/partials/header.hbs
deleted file mode 100644
index 673070f..0000000
--- a/components/org.apache.stratos.manager.console/themes/theme1/partials/header.hbs
+++ /dev/null
@@ -1,105 +0,0 @@
-{{#if login}}
- <div class="top-blue-strip"></div>
- <div class="login-logo-section"><a href="{{url "/"}}"><img src="{{url "/themes/theme1/ui/img/logo-login.png"}}"/></a></div>
- <style>
- body {
- padding-top: 0;
- padding-bottom: 0;
- }
- </style>
-{{/if}}
-{{#unless login}}
-<div class="navbar navbar-inverse navbar-fixed-top main-menu">
-<div class="shadow-wrapper">
- <div class="top-blue-strip"></div>
- <div class="container">
- <div class="row">
- <div class="col-lg-3">
- <a class="navbar-brand" href="{{url "/"}}"><img src="{{url "/themes/theme1/ui/img/logo-inside.png"}}"/></a>
- </div>
- <div class="col-lg-9 custom-nav">
- <ul class="pull-left">
- <li {{#if dashboard}} class="active" {{/if}}><a href="{{url "/"}}"><i class="fa fa-dashboard"></i> <span><br>Dashboard</span></a></li>
- <li {{#if partition_deployments}} class="active" {{/if}}><a href="{{url "/partition_deployments.jag"}}"><i class="fa fa-cogs"></i> <span><br>Configure Stratos</span></a></li>
- <li {{#if tenant_mgt}} class="active" {{/if}}><a href="{{url "/"}}"><i class="fa fa-user"></i> <span><br>Tenant Mgt</span></a></li>
- <li {{#if my_cartridges}} class="active" {{/if}}><a href="{{url "/"}}"><i class="icons-cartridge"></i> <span><br>My Cartridges</span></a></li>
- </ul>
- <ul class="pull-right">
- <li><a><i class="icon-user"></i><br> logout section</a></li>
- </ul>
- </div>
- </div>
- <!--/.navbar-collapse -->
- </div><!-- End container -->
- </div>
- <div class="breadcrumb-strip">
- <div class="container">
- <div class="row">
-
- <div class="col-lg-3">
- <a class="btn {{button.class_name}}" href="{{url button.link }}"><i class="{{button.class_icon}}"></i> {{button.name}}</a>
- </div>
- <div class="col-lg-9 help-section">
- {{#if has_help}}
- <i class="icons-help"></i>
- <p>{{help}}</p>
- {{/if}}
- {{#unless has_help}}
- <ul class="sub-menu">
- <li {{#if partition_deployments}} class="active" {{/if}}>
- {{#if config_status.first_use}}
- <span>Partition Deployments</span>
- {{else}}
- <a href="{{url "/partition_deployments.jag" }}">Partition Deployments</a>
- {{/if}}
- </li>
- <li {{#if policy_deployments}} class="active" {{/if}}>
- {{#if config_status.first_use}}
- <span>Policy Deployments</span>
- {{else}}
- <a href="{{url "/policy_deployments.jag" }}">Policy Deployments</a>
- {{/if}}
- </li>
- <li {{#if lbs}} class="active" {{/if}}>
- {{#if config_status.first_use}}
- <span>LBs</span>
- {{else}}
- <a href="{{url "/lbs.jag" }}">LBs</a>
- {{/if}}
- </li>
- <li {{#if cartridge_deployments}} class="active" {{/if}}>
- {{#if config_status.first_use}}
- <span>Cartridge Deployments</span>
- {{else}}
- <a href="{{url "/cartridge_deployments.jag" }}">Cartridge Deployments</a>
- {{/if}}
- </li>
- <li {{#if mt_service_deployments}} class="active" {{/if}}>
- {{#if config_status.first_use}}
- <span>Multi-Tenant Service Deployments</span>
- {{else}}
- <a href="{{url "/mt_service_deployments.jag" }}">Multi-Tenant Service Deployments</a>
- {{/if}}
- </li>
- </ul>
- {{/unless}}
- </div>
- </div>
- </div>
- </div>
- {{#if config_status.not_complete}}
- <div class="info-bar">
- <div class="container">
- <div class="row">
- <div class="col-lg-3">
- </div>
- <div class="col-lg-6">
- <i class="icon-exclamation"></i> Configure Stratos is not completed. <a>Take the Wizard</a>
- </div>
- </div>
- </div>
- </div>
- {{/if}}
-</div>
-
-{{/unless}}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/themes/theme1/partials/lbs.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/themes/theme1/partials/lbs.hbs b/components/org.apache.stratos.manager.console/themes/theme1/partials/lbs.hbs
deleted file mode 100644
index d28ca15..0000000
--- a/components/org.apache.stratos.manager.console/themes/theme1/partials/lbs.hbs
+++ /dev/null
@@ -1,90 +0,0 @@
-<div class="container content-starter">
- <div class="row">
- <div class="col-lg-12">
- <h1>{{title}}</h1>
- </div>
- </div>
-</div>
-<div class="container" style="display: none;" id="addItemSection">
- <div class="row">
- <div class="col-md-12">
- <h2>New LB</h2>
- <form role="form">
- <label for="policy" class="required">LB Configuration</label>
-
- <div class="container">
- <div class="row">
- <div class="col-md-6 padding-remover-left">
- <textarea class="form-control" rows="11" id="policy"></textarea>
- <button type="button" class="btn btn-primary" id="deployPolicy">Add New LB</button>
- <a>Cancel</a>
- </div>
- <div class="col-md-6">
- <i class="icons-help"></i>
- Example configuration:
- <pre>
- {
- "partition":{
- "id": "P1",
- "provider": "ec2",
- "property": [
- {
- "name": "region",
- "value": "ap-southeast-1"
- }
- ],
- "partitionMin": "1",
- "partitionMax": "3"
- }
- }
- </pre>
- </div>
- </div>
-
- </div>
-
-
- </form>
-
- </div>
- </div>
- </div>
-
-<div class="container">
-
- <div class="row">
- <div class="col-md-12">
-
-
- <div class="panel-group" id="accordion">
-
-
- {{#each lbs}}
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{key}}">
- {{name}}
- </a>
- </h4>
- </div>
- <div id="collapse{{key}}" class="panel-collapse collapse">
- <div class="panel-body">
- <pre>{{policy}}</pre>
- <textarea style="display:none" class="jsonEditor">{{policy}}</textarea>
- <button class="btn btn-primary js_jsonEdit">Edit</button>
- <button class="btn btn-primary js_jsonSave" style="display:none">Save</button>
- <a class="js_jsonCancel" style="display:none">Cancel</a>
- </div>
- </div>
- </div>
- {{/each}}
-
-
-
- </div>
- </div>
- </div>
-</div>
-<script src="{{url "/themes/theme1/ui/js/utils.js"}}"></script>
-<script src="{{url "/themes/theme1/ui/js/configure_stratos.js"}}"></script>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/themes/theme1/partials/login.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/themes/theme1/partials/login.hbs b/components/org.apache.stratos.manager.console/themes/theme1/partials/login.hbs
deleted file mode 100644
index e6cf4a2..0000000
--- a/components/org.apache.stratos.manager.console/themes/theme1/partials/login.hbs
+++ /dev/null
@@ -1,31 +0,0 @@
-<h1 class="login-title">The most comprehensive enterprise grade PaaS Framework</h1>
-<div class="container">
- <div class="row">
- <div class="col-lg-12 login-box-wrapper">
- <div class="login-box">
- <div class="login-box-top">
- <h2 class="login-sub-title">Login to create cartridges</h2>
- <form>
- <div class="username-wrapper">
- <input class="input-username" type="text" placeholder="Email" />
- </div>
- <div class="password-wrapper">
- <input class="input-password" type="text" placeholder="Password" />
- </div>
-
- <div class="login-button-wrapper">
- <button class="btn btn-primary login-button" type="button">Sign In</button>
- </div>
- </form>
- </div>
- <div class="login-box-bottom">
- <label class="pull-left"><input type="checkbox" /> Stay Signed In</label>
- <label class="pull-right"><a>Create an account</a></label>
- <div style="clear: both"></div>
- </div>
- </div>
- <br />
- <div class="login-box-footer"></div>
- </div>
- </div>
-</div>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/themes/theme1/partials/mt_service_deployments.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/themes/theme1/partials/mt_service_deployments.hbs b/components/org.apache.stratos.manager.console/themes/theme1/partials/mt_service_deployments.hbs
deleted file mode 100644
index 42ddbba..0000000
--- a/components/org.apache.stratos.manager.console/themes/theme1/partials/mt_service_deployments.hbs
+++ /dev/null
@@ -1,90 +0,0 @@
-<div class="container content-starter">
- <div class="row">
- <div class="col-lg-12">
- <h1>{{title}}</h1>
- </div>
- </div>
-</div>
-<div class="container" style="display: none;" id="addItemSection">
- <div class="row">
- <div class="col-md-12">
- <h2>Deploy New Multi-Tenant Service</h2>
- <form role="form">
- <label for="policy" class="required">Policy Configuration</label>
-
- <div class="container">
- <div class="row">
- <div class="col-md-6 padding-remover-left">
- <textarea class="form-control" rows="11" id="policy"></textarea>
- <button type="button" class="btn btn-primary" id="deployPolicy">Deploy MT Service</button>
- <a>Cancel</a>
- </div>
- <div class="col-md-6">
- <i class="icons-help"></i>
- Example configuration:
- <pre>
- {
- "partition":{
- "id": "P1",
- "provider": "ec2",
- "property": [
- {
- "name": "region",
- "value": "ap-southeast-1"
- }
- ],
- "partitionMin": "1",
- "partitionMax": "3"
- }
- }
- </pre>
- </div>
- </div>
-
- </div>
-
-
- </form>
-
- </div>
- </div>
- </div>
-
-<div class="container">
-
- <div class="row">
- <div class="col-md-12">
-
-
- <div class="panel-group" id="accordion">
-
-
- {{#each mt_service_deployments}}
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{key}}">
- {{name}}
- </a>
- </h4>
- </div>
- <div id="collapse{{key}}" class="panel-collapse collapse">
- <div class="panel-body">
- <pre>{{policy}}</pre>
- <textarea style="display:none" class="jsonEditor">{{policy}}</textarea>
- <button class="btn btn-primary js_jsonEdit">Edit</button>
- <button class="btn btn-primary js_jsonSave" style="display:none">Save</button>
- <a class="js_jsonCancel" style="display:none">Cancel</a>
- </div>
- </div>
- </div>
- {{/each}}
-
-
-
- </div>
- </div>
- </div>
-</div>
-<script src="{{url "/themes/theme1/ui/js/utils.js"}}"></script>
-<script src="{{url "/themes/theme1/ui/js/configure_stratos.js"}}"></script>
\ No newline at end of file