http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/cartridge_info.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/cartridge_info.js b/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/cartridge_info.js deleted file mode 100755 index 600c6fd..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/cartridge_info.js +++ /dev/null @@ -1,101 +0,0 @@ -/* - * - * 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. - * -*/ - -var render = function (theme, data, meta, require) { - if(data.error.length == 0 ){ - theme('index', { - body: [ - { - partial: 'cartridge_info', - context: { - title:'Cartridges', - cartridgeInfo:data.cartridgeInfo.cartridge, - lbclusterinfo:data.lbCluster.cluster, - clusterinfo:data.clusterInfo.cluster, - host:data.cartridgeInfo.cartridge.hostName - } - } - ], - header: [ - { - partial: 'header', - context:{ - title:'Cartridges', - my_cartridges:true, - button:{ - link:'/', - name:'Back To My Cartridges', - class_name:"btn-default", - class_icon: 'icons-arrow-left' - }, - bamInfo:data.bamInfo, - has_help:false, - help:'Create cartridges like PHP, Python, Ruby etc.. Or create data cartridges with mySql, PostgreSQL. Directly install applications like Drupal, Wordpress etc..' - } - } - ], - title:[ - { - partial:'title', - context:{ - title:"My Cartridges" - } - } - ] - }); - }else{ - theme('index', { - body: [ - { - partial: 'error_page', - context: { - title:'Error', - error:data.error - } - } - ], - header: [ - { - partial: 'header', - context: { - title: 'My Cartridges', - my_cartridges: true, - button: { - link: '/cartridges.jag', - name: 'Subscribe to Cartridge', - class_name: 'btn-important' - }, - has_help:false, - help: 'Create cartridges like PHP, Python, Ruby etc.. Or create data cartridges with mySql, PostgreSQL. Directly install applications like Drupal, Wordpress etc..' - } - } - ], - title: [ - { - partial: 'title', - context: { - title: "My Cartridges" - } - } - ] - }); - } -};
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/cartridge_info_sg.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/cartridge_info_sg.js b/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/cartridge_info_sg.js deleted file mode 100644 index cf7fe0e..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/cartridge_info_sg.js +++ /dev/null @@ -1,99 +0,0 @@ -/* - * - * 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. - * -*/ - -var render = function (theme, data, meta, require) { - if(data.error.length == 0 ){ - theme('index', { - body: [ - { - partial: 'cartridge_info_sg', - context: { - title:'Cartridges', - cartridges:data.cartridges, - serviceGroup:data.serviceGroup - } - } - ], - header: [ - { - partial: 'header', - context:{ - title:'Cartridges', - my_cartridges:true, - button:{ - link:'/', - name:'Back To My Cartridges', - class_name:"btn-default", - class_icon: 'icons-arrow-left' - }, - bamInfo:data.bamInfo, - has_help:false, - help:'Create cartridges like PHP, Python, Ruby etc.. Or create data cartridges with mySql, PostgreSQL. Directly install applications like Drupal, Wordpress etc..' - } - } - ], - title:[ - { - partial:'title', - context:{ - title:"My Cartridges" - } - } - ] - }); - }else{ - theme('index', { - body: [ - { - partial: 'error_page', - context: { - title:'Error', - error:data.error - } - } - ], - header: [ - { - partial: 'header', - context: { - title: 'My Cartridges', - my_cartridges: true, - button: { - link: '/cartridges.jag', - name: 'Subscribe to Cartridge', - class_name: 'btn-important' - }, - has_help: true, - help: 'Create cartridges like PHP, Python, Ruby etc.. Or create data cartridges with mySql, PostgreSQL. Directly install applications like Drupal, Wordpress etc..' - } - } - ], - title: [ - { - partial: 'title', - context: { - title: "My Cartridges" - } - } - ] - }); - } -}; http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/cartridges.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/cartridges.js b/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/cartridges.js deleted file mode 100755 index 9da9776..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/cartridges.js +++ /dev/null @@ -1,161 +0,0 @@ -/* - * - * 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. - * -*/ - -var render = function (theme, data, meta, require) { - // Re-create the data structure of the cartridges. - if(data.error.length == 0 ){ - var log = new Log(); - session.remove("get-status"); - session.remove("deploy-status"); - var cartridges = data.cartridges.cartridge,cartridges_new =[]; - - - for (var i = 0; i < cartridges.length; i++) { - if(cartridges[i].serviceGroup != undefined){ - if(!cartridges[i].done){ - - cartridges[i].done = true; - var newObj = {}; - var serviceGroup = cartridges[i].serviceGroup; - newObj.serviceGroup = serviceGroup; - newObj.cartridgeType = cartridges[i].cartridgeType; - newObj.items = []; - newObj.items.push(parse(stringify(cartridges[i]))); - newObj.version = cartridges[i].version; - for (var j = 0; j < cartridges.length; j++) { - if(cartridges[j].serviceGroup == serviceGroup && !cartridges[j].done){ - cartridges[j].done =true; - newObj.items.push(parse(stringify(cartridges[j]))); - } - } - - cartridges_new.push(newObj); - } - }else { - cartridges_new.push(cartridges[i]); - } - } - - /*var cartridges_new = [ - { - kind: "Framework", - cartridges: []} - ]; - var cartridgesToPush; - for (var i = 0; i < cartridges_old.length; i++) { - if (cartridges_old[i].provider == undefined || (cartridges_old[i].provider.toLowerCase() != "application" && cartridges_old[i].provider.toLowerCase() != "data" )) { - cartridgesToPush = null; - for (var j = 0; j < cartridges_new.length; j++) { - if (cartridges_new[j].kind == "Framework") { - cartridgesToPush = cartridges_new[j].cartridges; - } - } - cartridgesToPush.push(cartridges_old[i]); - } else { - cartridgesToPush = null; - for (var j = 0; j < cartridges_new.length; j++) { - if (cartridges_new[j].kind == cartridges_old[i].provider) { - cartridgesToPush = cartridges_new[j].cartridges; - } - } - if (cartridgesToPush == null) { - var kind = cartridges_old[i].provider; - cartridges_new.push({kind: cartridges_old[i].provider, cartridges: [cartridges_old[i]]}) - } else { - cartridgesToPush.push(cartridges_old[i]); - } - } - }*/ - theme('index', { - body: [ - { - partial: 'cartridges', - context: { - title:'Subscribe to Cartridge', - cartridges:cartridges_new - } - } - ], - header: [ - { - partial: 'header', - context:{ - title:'Cartridges', - my_cartridges:true, - button:{ - link:'/', - name:'Back To My Cartridges', - class_name:"btn-default", - class_icon: 'icons-arrow-left' - }, - bamInfo:data.bamInfo, - has_help:false, - help:'Create cartridges like PHP, Python, Ruby etc.. Or create data cartridges with mySql, PostgreSQL. Directly install applications like Drupal, Wordpress etc..' - } - } - ], - title:[ - { - partial:'title', - context:{ - title:"Subscribe to Cartridge" - } - } - ] - }); - }else{ - theme('index', { - body: [ - { - partial: 'error_page', - context: { - title:'Error', - error:data.error - } - } - ], - header: [ - { - partial: 'header', - context: { - title: 'My Cartridges', - my_cartridges: true, - button: { - link: '/cartridges.jag', - name: 'Subscribe to Cartridge', - class_name: 'btn-important' - }, - has_help:false, - help: 'Create cartridges like PHP, Python, Ruby etc.. Or create data cartridges with mySql, PostgreSQL. Directly install applications like Drupal, Wordpress etc..' - } - } - ], - title: [ - { - partial: 'title', - context: { - title: "Subscribe to Cartridge" - } - } - ] - }); - } -}; http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/configure_stratos.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/configure_stratos.js b/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/configure_stratos.js deleted file mode 100755 index d258013..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/configure_stratos.js +++ /dev/null @@ -1,163 +0,0 @@ -/* - * - * 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. - * -*/ - -var render = function (theme, data, meta, require) { - session.put("configuring","true"); - - var title; - var header_type; - var deploy_status = session.get("deploy-status"); - var list_status = session.get("get-status"); - var err_message; - var isErrDeply = false; - var isErrGet = false; - var isErr = false; - var isSucceeded = false; - var wizard_on_val = []; - for(var i=0; i<6 ;i++){ - if(i <= data.wizard.step-1){ - wizard_on_val.push(true); - }else{ - wizard_on_val.push(false); - } - } - var config_status = data.wizard; - if( config_status.step == 1 ){ - title = 'Partition Deployment'; - }else if( config_status.step == 2 ){ - title = 'Auto scale Policy Deployment'; - }else if( config_status.step == 3 ){ - title = 'Deployment Policy Deployment'; - }else if( config_status.step == 4 ){ - title = 'Lb'; - }else if( config_status.step == 5 ){ - title = 'Cartridge Deployment'; - }else if( config_status.step == 6 ){ - title = 'Multi-Tenant Service Deployment'; - } - - if(data.config_status.first_use){ - title = "Configure Stratos"; - } - - if(deploy_status == "succeeded") { - isErrDeply = false; - isSucceeded = true; - } else if(deploy_status == null) { - isErrDeply = false; - } else { - isErrDeply = true; - err_message = deploy_status; - } - - if(list_status == "succeeded") { - isErrGet = false; - } else if(list_status == null) { - isErrGet = false; - } else { - isErrGet = true; - if(err_message == undefined) { - err_message = list_status; - } else { - err_message = err_message + ", " + list_status; - } - step_data = "[]"; - } - - if(isErrDeply || isErrGet) { - isErr = true; - } - - session.remove("get-status"); - session.remove("deploy-status"); - - if(step_data != null && step_data != undefined){ - for(var i=0;i<step_data.length;i++){ - step_data[i].json_string = stringify(step_data[i]); - } - } - var log = new Log(); - theme('index', { - body: [ - { - partial: 'configure_stratos_wizard', - context: { - title:title, - step_data:data.step_data, - step:config_status.step, - wizard_on:false, - config_on:true, - wizard_on_1:wizard_on_val[0], - wizard_on_2:wizard_on_val[1], - wizard_on_3:wizard_on_val[2], - wizard_on_4:wizard_on_val[3], - wizard_on_5:wizard_on_val[4], - wizard_on_6:wizard_on_val[5], - config_status:data.config_status, - data_string:stringify(data.step_data), - configure_stratos:true, - error:data.error - - } - } - ], - header: [ - { - partial: 'header', - context:{ - title:'Configure Stratos', - button:{ - link:'/', - name:'Deploy New Cartridge', - class_name:'' - }, - bamInfo:data.bamInfo, - has_help:false, - step_data:true, - config_status:data.config_status, - wizard_on:false, - config_on:true, - wizard_on_1:wizard_on_val[0], - wizard_on_2:wizard_on_val[1], - wizard_on_3:wizard_on_val[2], - wizard_on_4:wizard_on_val[3], - wizard_on_5:wizard_on_val[4], - wizard_on_6:wizard_on_val[5], - step:config_status.step, - configure_stratos:true, - error:isErr, - deploy_status:isSucceeded, - error_msg:err_message, - type:title - } - } - ], - title:[ - { - partial:'title', - context:{ - title:title - } - } - ] - }); - -}; http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/configure_stratos_wizard.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/configure_stratos_wizard.js b/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/configure_stratos_wizard.js deleted file mode 100755 index 804c6df..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/configure_stratos_wizard.js +++ /dev/null @@ -1,157 +0,0 @@ -/* - * - * 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. - * -*/ - -var render = function (theme, data, meta, require) { - session.put("configuring","false"); - var deploy_status = session.get("deploy-status"); - var list_status = session.get("get-status"); - var title; - var err_message; - var isErrDeply = false; - var isErrGet = false; - var isErr = false; - var isSucceeded = false; - var artifact_deploy = session.get("deploy_artifacts"); - session.remove("deploy_artifacts"); - var wizard_on_val = []; - for(var i=0; i<6 ;i++){ - if(i <= data.wizard.step-1){ - wizard_on_val.push(true); - }else{ - wizard_on_val.push(false); - } - } - - if(deploy_status == "succeeded") { - isErrDeply = false; - isSucceeded = true; - } else if(deploy_status == null) { - isErrDeply = false; - } else { - isErrDeply = true; - err_message = deploy_status; - } - - if(list_status == "succeeded") { - isErrGet = false; - } else if(list_status == null) { - isErrGet = false; - } else { - isErrGet = true; - if(err_message == undefined) { - err_message = list_status; - } else { - err_message = err_message + ", " + list_status; - } - step_data = "[]"; - } - - if(isErrDeply || isErrGet) { - isErr = true; - } - - session.remove("get-status"); - session.remove("deploy-status"); - - var config_status = data.wizard; - if( config_status.step == 1 ){ - title = 'Partition Deployment'; - }else if( config_status.step == 2 ){ - title = 'Auto scale Policy Deployment'; - }else if( config_status.step == 3 ){ - title = 'Deployment Policy Deployment'; - }else if( config_status.step == 4 ){ - title = 'Lb'; - }else if( config_status.step == 5 ){ - title = 'Cartridge Deployment'; - }else if( config_status.step == 6 ){ - title = 'Multi-Tenant Service Deployment'; - }else{ - title = 'Configure Stratos Wizard Finished'; - } - - if(step_data != null && step_data != undefined){ - for(var i=0;i<step_data.length;i++){ - step_data[i].json_string = stringify(step_data[i]); - } - } - - theme('index', { - body: [ - { - partial: 'configure_stratos_wizard', - context: { - title:title, - step_data:data.step_data, - step:config_status.step, - wizard_on:true, - wizard_on_1:wizard_on_val[0], - wizard_on_2:wizard_on_val[1], - wizard_on_3:wizard_on_val[2], - wizard_on_4:wizard_on_val[3], - wizard_on_5:wizard_on_val[4], - wizard_on_6:wizard_on_val[5], - data_string:stringify(data.step_data), - error:data.error - } - } - ], - header: [ - { - partial: 'header', - context:{ - title:'Configure Stratos', - button:{ - link:'/', - name:'Deploy New Cartridge', - class_name:'' - }, - bamInfo:data.bamInfo, - has_help:false, - step_data:true, - config_status:data.config_status, - wizard_on:true, - wizard_on_1:wizard_on_val[0], - wizard_on_2:wizard_on_val[1], - wizard_on_3:wizard_on_val[2], - wizard_on_4:wizard_on_val[3], - wizard_on_5:wizard_on_val[4], - wizard_on_6:wizard_on_val[5], - step:step, - configure_stratos:true, - error:isErr, - deploy_status:isSucceeded, - error_msg:err_message, - type:artifact_deploy - } - } - ], - title:[ - { - partial:'title', - context:{ - title:title - } - } - ] - }); - -}; http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/dashboard.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/dashboard.js b/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/dashboard.js deleted file mode 100755 index 2fe10ce..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/dashboard.js +++ /dev/null @@ -1,98 +0,0 @@ -/* - * - * 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. - * -*/ - -var render = function (theme, data, meta, require) { - if(data.error.length == 0 ){ - var log = new Log(); - theme('index', { - body: [ - { - partial: 'dashboard', - context: { - title: 'Dashboard', - elbs: stringify(data.elbs), - clusters: stringify(data.clusters) - } - } - ], - header: [ - { - partial: 'header', - context: { - title: 'My Cartridges', - dashboard: true, - button: { - link: '/cartridges.jag', - name: 'Subscribe to Cartridge', - class_name: 'btn-important' - }, - has_help:false, - help: 'Dashboard visually represents the network topology. You can click and view details of each node from the user interface.' - } - } - ], - title: [ - { - partial: 'title', - context: { - title: "My Cartridges" - } - } - ] - }); - }else{ - theme('index', { - body: [ - { - partial: 'error_page', - context: { - title:'Error', - error:data.error - } - } - ], - header: [ - { - partial: 'header', - context: { - title: 'My Cartridges', - my_cartridges: true, - button: { - link: '/cartridges.jag', - name: 'Subscribe to Cartridge', - class_name: 'btn-important' - }, - has_help:false, - help: 'Create cartridges like PHP, Python, Ruby etc.. Or create data cartridges with mySql, PostgreSQL. Directly install applications like Drupal, Wordpress etc..' - } - } - ], - title: [ - { - partial: 'title', - context: { - title: "My Cartridges" - } - } - ] - }); - } -}; http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/index.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/index.js b/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/index.js deleted file mode 100755 index fa6e688..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/index.js +++ /dev/null @@ -1,183 +0,0 @@ -/* - * - * 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. - * -*/ - -var render = function (theme, data, meta, require) { - // Re-create the data structure of the cartridges. - var log = new Log(); - if(data.error.length == 0 ){ - if(data.mycartridges == null || data.mycartridges == undefined || data.mycartridges == ""){ - data.mycartridges = {}; - } - var cartridges= data.mycartridges.cartridge,cartridges_new =[]; - session.remove("get-status"); - session.remove("deploy-status"); - - /* - Uncomment this to populate some dummy data to preview the UI - - for(var i=0;i<3;i++){ - var newElm =parse(stringify(cartridges[0])); - newElm.serviceGroup = "foo"; - newElm.cartridgeAlias = newElm.cartridgeAlias + i; - cartridges.push(newElm); - } - for(var i=0;i<3;i++){ - var newElm =parse(stringify(cartridges[0])); - newElm.serviceGroup = "bar"; - newElm.cartridgeAlias = newElm.cartridgeAlias + i; - cartridges.push(newElm); - } - */ - for (var i = 0; i < cartridges.length; i++) { - if(cartridges[i].serviceGroup != undefined){ - if(!cartridges[i].done){ - - cartridges[i].done = true; - var newObj = {}; - var serviceGroup = cartridges[i].serviceGroup; - newObj.serviceGroup = serviceGroup; - newObj.items = []; - newObj.items.push(parse(stringify(cartridges[i]))); - - for (var j = 0; j < cartridges.length; j++) { - if(cartridges[j].serviceGroup == serviceGroup && !cartridges[j].done){ - cartridges[j].done =true; - newObj.items.push(parse(stringify(cartridges[j]))); - } - } - - cartridges_new.push(newObj); - } - }else { - cartridges_new.push(cartridges[i]); - } - } - - - /*if(cartridges_old == null) { - cartridges_old = {}; - } - - var cartridges_new = [ - { - kind: "Framework", - cartridges: []} - ]; - var cartridgesToPush; - for (var i = 0; i < cartridges_old.length; i++) { - if (cartridges_old[i].provider == undefined || (cartridges_old[i].provider.toLowerCase() != "application" && cartridges_old[i].provider.toLowerCase() != "data" )) { - cartridgesToPush = null; - for (var j = 0; j < cartridges_new.length; j++) { - if (cartridges_new[j].kind == "Framework") { - cartridgesToPush = cartridges_new[j].cartridges; - } - } - cartridgesToPush.push(cartridges_old[i]); - } else { - cartridgesToPush = null; - for (var j = 0; j < cartridges_new.length; j++) { - if (cartridges_new[j].kind == cartridges_old[i].provider) { - cartridgesToPush = cartridges_new[j].cartridges; - } - } - if (cartridgesToPush == null) { - var kind = cartridges_old[i].provider; - cartridges_new.push({kind: cartridges_old[i].provider, cartridges: [cartridges_old[i]]}) - } else { - cartridgesToPush.push(cartridges_old[i]); - } - } - }*/ - - theme('index', { - body: [ - { - partial: 'mycartridges', - context: { - title: 'My Cartridges', - mycartridges: cartridges_new - } - } - ], - header: [ - { - partial: 'header', - context: { - title: 'My Cartridges', - my_cartridges: true, - button: { - link: '/cartridges.jag', - name: 'Subscribe to Cartridge', - class_name: 'btn-important' - }, - has_help:false, - bamInfo:data.bamInfo, - help: 'Create cartridges like PHP, Python, Ruby etc.. Or create data cartridges with mySql, PostgreSQL. Directly install applications like Drupal, Wordpress etc..' - } - } - ], - title: [ - { - partial: 'title', - context: { - title: "My Cartridges" - } - } - ] - }); - }else{ - theme('index', { - body: [ - { - partial: 'error_page', - context: { - title:'Error', - error:data.error - } - } - ], - header: [ - { - partial: 'header', - context: { - title: 'My Cartridges', - my_cartridges: true, - button: { - link: '/cartridges.jag', - name: 'Subscribe to Cartridge', - class_name: 'btn-important' - }, - has_help:false, - help: 'Create cartridges like PHP, Python, Ruby etc.. Or create data cartridges with mySql, PostgreSQL. Directly install applications like Drupal, Wordpress etc..' - } - } - ], - title: [ - { - partial: 'title', - context: { - title: "My Cartridges" - } - } - ] - }); - } -}; http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/login.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/login.js b/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/login.js deleted file mode 100644 index 2bc2772..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/login.js +++ /dev/null @@ -1,58 +0,0 @@ -/* - * - * 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. - * -*/ - -var render = function (theme, data, meta, require) { - var hasError = true; - if(data.error == ""){ - hasError = false; - } - theme('index', { - body: [ - { - partial: 'login', - context: { - error:data.error, - hasError:hasError - } - } - ], - header: [ - { - partial: 'header', - context:{ - title:'Login', - login:true, - breadcrumb:[ - {link:'/', name:'Login',isLink:false} - ] - } - } - ], - title: [ - { - partial: 'title', - context: { - title: "Apache Stratos Login" - } - } - ] - }); -}; http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/subscribe_cartridge.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/subscribe_cartridge.js b/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/subscribe_cartridge.js deleted file mode 100755 index 04270a5..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/subscribe_cartridge.js +++ /dev/null @@ -1,119 +0,0 @@ -/* - * - * 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. - * -*/ - -var render = function (theme, data, meta, require) { - if(data.error.length == 0 ){ - var cartridge = data.cartridge.cartridge; - if(cartridge == undefined){ - cartridge = data.cartridge; - } - var mtServiceInfo = {} - if(data.mtServiceInfo != null || data.mtServiceInfo != undefined && data.mtServiceInfo != ""){ - mtServiceInfo = data.mtServiceInfo.serviceDefinitionBean; - } - var autoScalePolicies = {} - if(data.autoScalePolicies != null && data.autoScalePolicies != undefined && data.autoScalePolicies != ""){ - autoScalePolicies = data.autoScalePolicies.autoscalePolicy; - } - var deploymentPolicies = {} - if(data.deploymentPolicies != null && data.deploymentPolicies != undefined && data.deploymentPolicies != ""){ - deploymentPolicies = data.deploymentPolicies.deploymentPolicy; - } - theme('index', { - body: [ - { - partial: 'subscribe_cartridge', - context: { - autoScalePolicies:autoScalePolicies, - deploymentPolicies:deploymentPolicies, - mtServiceInfo:mtServiceInfo, - cartridge:cartridge, - cartridgeType:meta.request.getParameter('cartridgeType'), - serviceGroup:meta.request.getParameter('serviceGroup') - } - } - ], - header: [ - { - partial: 'header', - context:{ - title:'Subscribe Cartridge', - my_cartridges:true, - button:{ - link: '/cartridges.jag', - name: 'Select different Cartridge', - class_name: "btn-default", - class_icon: "icon-arrow-left" - }, - bamInfo:data.bamInfo, - has_help:false, - help:'Create cartridges like PHP, Python, Ruby etc.. Or create data cartridges with mySql, PostgreSQL. Directly install applications like Drupal, Wordpress etc..' - } - } - ], - title:[ - { - partial:'title', - context:{ - title:"Subscribe Cartridge -" + cartridge.cartridgeType + " " + cartridge.version + " Cartridge", - cartridge:cartridge - } - } - ] - }); - }else{ - theme('index', { - body: [ - { - partial: 'error_page', - context: { - title:'Error', - error:data.error - } - } - ], - header: [ - { - partial: 'header', - context: { - title: 'My Cartridges', - my_cartridges: true, - button: { - link: '/cartridges.jag', - name: 'Subscribe to Cartridge', - class_name: 'btn-important' - }, - has_help:false, - help: 'Create cartridges like PHP, Python, Ruby etc.. Or create data cartridges with mySql, PostgreSQL. Directly install applications like Drupal, Wordpress etc..' - } - } - ], - title: [ - { - partial: 'title', - context: { - title: "My Cartridges" - } - } - ] - }); - } -}; http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/tenant_management.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/tenant_management.js b/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/tenant_management.js deleted file mode 100755 index 34d2017..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/tenant_management.js +++ /dev/null @@ -1,103 +0,0 @@ -/* - * - * 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. - * -*/ - -var render = function (theme, data, meta, require) { - session.remove("get-status"); - session.remove("deploy-status"); - var create_btn_class = 'btn-important'; - var title = 'Tenant Management'; - if(data.error.length == 0 ){ - theme('index', { - body: [ - { - partial: 'tenant_management', - context: { - title:title, - tenants:data.tenants.tenantInfoBean - } - } - ], - header: [ - { - partial: 'header', - context:{ - title:'Tenant Management', - button:{ - link:'/tenant_new.jag', - name:'Add New Tenant', - class_name:create_btn_class - }, - bamInfo:data.bamInfo, - has_help:false, - help:"Tenants you create has permission to view and subscribe to Cartridges. Tenants don't have permission to do Partition deployment, Policy deployment, LB Creation, and MT service deployment.", - tenant_mgt:true, - has_action_buttons:true - } - } - ], - title:[ - { - partial:'title', - context:{ - title:title - } - } - ] - }); - }else{ - theme('index', { - body: [ - { - partial: 'error_page', - context: { - title:'Error', - error:data.error - } - } - ], - header: [ - { - partial: 'header', - context: { - title: 'My Cartridges', - my_cartridges: true, - button: { - link: '/cartridges.jag', - name: 'Subscribe to Cartridge', - class_name: 'btn-important' - }, - bamInfo:data.bamInfo, - has_help: false, - help: 'Create cartridges like PHP, Python, Ruby etc.. Or create data cartridges with mySql, PostgreSQL. Directly install applications like Drupal, Wordpress etc..' - } - } - ], - title: [ - { - partial: 'title', - context: { - title: "My Cartridges" - } - } - ] - }); - } -}; http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/tenant_new.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/tenant_new.js b/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/tenant_new.js deleted file mode 100755 index e2c0828..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/tenant_new.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * - * 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. - * -*/ - -var render = function (theme, data, meta, require) { - - var create_btn_class = 'btn-default'; - var title = 'Tenant Management - Add New Tenant'; - - theme('index', { - body: [ - { - partial: 'tenant_new', - context: { - title: title, - tenants: data.tenants - } - } - ], - header: [ - { - partial: 'header', - context: { - title: title, - button: { - link: '/tenant_management.jag', - name: 'Tenant Management', - class_name: create_btn_class, - class_icon: 'icons-arrow-left' - }, - - has_help:false, - bamInfo:data.bamInfo, - help: "Tenants you create has permission to view and subscribe to Cartridges. Tenants don't have permission to do Partition deployment, Policy deployment, LB Creation, and MT service deployment.", - tenant_mgt: true - } - } - ], - title: [ - { - partial: 'title', - context: { - title: title - } - } - ] - }); - -}; http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/subthemes/theme2/ui/css/main.css ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/subthemes/theme2/ui/css/main.css b/components/org.apache.stratos.manager.console/console/themes/theme1/subthemes/theme2/ui/css/main.css deleted file mode 100644 index 7f9d0d3..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/subthemes/theme2/ui/css/main.css +++ /dev/null @@ -1,600 +0,0 @@ -/* - * - * 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, div, h1,h2,h3,h4,h5, p, span{ - font-family: 'Open Sans', sans-serif; -} -a{cursor: pointer} -a:hover{text-decoration: none} -.top-blue-strip{ - background: #18c3f4; - height: 6px; -} -.login-logo-section{ - text-align: center; - width: 100%; - padding:20px 0; -} -h1.login-title{ - font-size:28px; - text-align: center; - padding-bottom:20px; - margin:0; -} -h2.login-sub-title{ - font-size:14px; - background: transparent url(../img/transparent-white.png) repeat left top; - padding:5px; - margin:20px 0; -} -.login-box-wrapper{ - text-align: center; -} -.login-box{ - width:415px; - display: inline-block; -} -.login-box-top{ - background: #e8ebeb url(../img/clouds.png) no-repeat 40px 10px; - border-radius: 0; - -webkit-border-top-left-radius: 8px; - -webkit-border-top-right-radius: 8px; - -moz-border-radius-topleft: 8px; - -moz-border-radius-topright: 8px; - border-top-left-radius: 8px; - border-top-right-radius: 8px; - padding-top:10px; - padding-bottom:10px; -} -.login-box-bottom{ - background: #c1c1c1; - border-radius: 0; - -webkit-border-bottom-right-radius: 8px; - -webkit-border-bottom-left-radius: 8px; - -moz-border-radius-bottomright: 8px; - -moz-border-radius-bottomleft: 8px; - border-bottom-right-radius: 8px; - border-bottom-left-radius: 8px; - padding:20px 10px; - text-align: left; -} -.login-box-footer{ - background: transparent url(../img/login-shadow.png) no-repeat left top; - width:440px; - height: 64px; - margin-top:10px; - display: inline-block; -} -.username-wrapper{ - background: #c1c1c1 url(../img/icon-user.png) no-repeat 8px 16px; - -webkit-border-top-left-radius: 5px; - -webkit-border-bottom-left-radius: 5px; - -moz-border-radius-topleft: 5px; - -moz-border-radius-bottomleft: 5px; - border-top-left-radius: 5px; - border-bottom-left-radius: 5px; - height:60px; - margin:0 10px; - padding-left:40px; -} -.password-wrapper{ - background: #c1c1c1 url(../img/icon-lock.png) no-repeat 8px 16px; - -webkit-border-top-left-radius: 5px; - -webkit-border-bottom-left-radius: 5px; - -moz-border-radius-topleft: 5px; - -moz-border-radius-bottomleft: 5px; - border-top-left-radius: 5px; - border-bottom-left-radius: 5px; - height:60px; - margin:0 10px; - padding-left:40px; -} -.login-button-wrapper{ - margin:34px 10px 20px; -} -div.username-wrapper input.input-username{ - height:60px; - width:100%; - font-size: 16px; -} -div.password-wrapper input.input-password{ - height:60px; - width:100%; - font-size: 16px; -} -.login-button{ - height:40px; - width:100%; - font-size: 16px; -} -.footer-right{ - width:400px; - font-size: 111px; - color:red; -} -/* Sticky footer styles - -------------------------------------------------- */ - -html, -body { - height: 100%; - /* The html and body elements cannot have any padding or margin. */ -} - -/* Wrapper for page content to push down footer */ -#wrap { - min-height: 100%; - height: auto !important; - height: 100%; - /* Negative indent footer by it's height */ - margin: 0 auto -35px; -} - -/* Set the fixed height of the footer here */ -#push, -#footer { - height: 62px; - padding-top:10px; - -} -#footer{ - background: #e8ebeb; -} -.main-menu{ - background: #e8ebeb; - -webkit-box-shadow: 1px 3px 4px 1px rgba(71,71,71,1); - -moz-box-shadow: 1px 3px 4px 1px rgba(71,71,71,1); - box-shadow: 1px 3px 4px 1px rgba(71,71,71,1); -} -.shadow-wrapper{ - background: transparent url(../img/repeat.png) repeat-x; - -webkit-box-shadow: 1px 3px 4px 1px rgba(71,71,71,1); - -moz-box-shadow: 1px 3px 4px 1px rgba(71,71,71,1); - box-shadow: 1px 3px 4px 1px rgba(71,71,71,1); -} -.breadcrumb-strip{ - min-height: 58px; - z-index: 1; - padding-top:10px; -} -.menu-strip{ - z-index: 2; -} -.custom-nav ul{ - padding:0; - margin:0; - border-left:solid 1px #9eafbc; - border-right:solid 1px #cadff0; -} -.custom-nav ul li{ - float:left; - display: block; - border-left:solid 1px #cadff0; - border-right:solid 1px #9eafbc; -} -.custom-nav ul li a{ - height: 64px; - display: block; - padding:5px 20px; - text-align: center; - font-size: 14px; - color:#444; -} -.custom-nav ul li a:hover{ - background: #c8d6df; - text-decoration: none; -} -.custom-nav ul li i{ - font-size: 24px; -} -.custom-nav ul li.active a{ - background: #595a5a; - color: #fff; -} -.custom-nav ul li.active a:hover{ - background: #3e3f3f; -} -.custom-nav ul li.active i{ - color:#06adf0; -} -.navbar-brand{ - padding:10px 0 0 0; -} -.help-section p { - font-size: 12px; -} -.icons-help{ - font-size: 34px; - color:#a4a6a6; - display: block; - float:left; - margin-right:10px; -} -i.icons-small-size{ - font-size: 20px; -} -.content-starter{ - margin-top: 125px; -} -h1{ - color:#575757; - font-size:37px; -} -h2{ - background: #fff; - display: inline-block; - padding:0 10px 0 0; - margin:10px 0 20px; - color:#575757; - text-transform:capitalize; - -} -.h2-wrapper{ - background: transparent url(../img/gray.png) repeat-x left 30px; -} -h3{ - margin: 15px 0 0 0; -} -h3 span{ - color:#999; -} -h4{ - font-weight: bold; - padding: 0; - margin: 10px 0 0 0; - color:#686868; - font-size: 14px; -} -.box-container{ - background: #eff1f1; - border: solid 1px #dadada; - min-height: 160px; - margin-top:10px ; - margin-bottom: 20px; - padding:10px; -} -.box-left{ - padding-top: 20px; -} -.state-box{ - position: absolute; - margin-top: -15px; -} -.active-state{ - background: #67b200; - color:#fff; - padding:5px 10px; -} -.inactive-state{ - background: #fbc240; - color:#fff; - padding:5px 10px; -} -.big-pro-icons{ - font-size: 50px; - margin-top: 20px; -} -.box-left span{ - font-size: 14px; -} -.big-pro-icons-title{ - text-align: left ; - padding-top: 10px; -} -.cartridge-description{ - padding-top:10px; - font-size: 12px; -} - -.lb-description{ - padding-top:10px; - font-size: 14px; - font-weight: bold; - color: green; -} -.required{ - font-weight: bold; -} -.speech-bubble{ - width: 780px; - background: #eff1f1; - border:solid 1px #dadada; - padding: 10px; - color:#686868; - position: absolute; -} - -.speech-pointer { - content: ''; - position: absolute; - border-style: solid; - border-width: 15px 15px 15px 0; - border-color: transparent #eff1f1; - display: block; - width: 0; - z-index: 1; - left: -15px; - top: 5px; -} -#credential_container h2{ - background: transparent; -} -.sub-menu{ - padding:0; - margin:-7px 0 0; -} -.sub-menu li{ - list-style: none; - float:left; -} -.sub-menu li a{ - display:block; - padding:15px 10px; - border-left: solid 1px #f2f5f5; - border-right: solid 1px #d1d3d3; - height: 55px; -} -.sub-menu li.active a{ - background: #f45b00; - color:#fff; -} -.sub-menu li span{ - display:block; - padding:15px 10px; - border-left: solid 1px #f2f5f5; - border-right: solid 1px #d1d3d3; - height: 55px; - color:#999; -} -/* wizard menu */ -.sub-menu-wizard{ - padding:0; - margin:-7px 0 0; -} -.sub-menu-wizard li{ - list-style: none; - float:left; - background: #dcdcdc; - text-align: center; -} -.sub-menu-wizard li.no-background{ - background: transparent; -} -.sub-menu-wizard li a{ - display:block; - padding:5px 10px; - height: 55px; - text-align: center; -} -.sub-menu-wizard li.active a{ - background: #ffae00; - color:#fff; -} -.sub-menu-wizard li a{ - background: #444444; - color:#fff; -} -.non-wizard li a{ - border-left:solid 1px #444; - border-right:solid 1px #efefef; -} -.sub-menu-wizard li span{ - display:block; - padding:15px 10px; - border-left: solid 1px #f2f5f5; - border-right: solid 1px #d1d3d3; - height: 55px; - color:#999; -} -.sub-menu-wizard-pointer { - content: ''; - border-style: solid; - border-width: 27px 0 28px 10px; - border-color: transparent #dcdcdc; - display: block; - width: 0; - z-index: 1; -} -ul li.active-pointer{ - border-color: transparent #ffae00; - background: #ffae00; -} -div.wizard-number{ - display: inline-block; - width:20px; - padding:2px 5px; - background: #595a5a; - color:#fff; - font-weight: bold; - font-size: 12px; - border-radius: 11px; - -moz-border-radius: 11px; - -webkit-border-radius: 11px; -} -div.in-active-wizard-item{ - padding:5px 10px; - height: 55px; -} -ul.sub-menu-wizard li.active-no-background{ - background: #dcdcdc; -} -/* inactive menu */ -.sub-menu-inactive{ - padding:0; - margin:-7px 0 0; - border-right:solid 4px #444; -} - -.sub-menu-inactive li{ - list-style: none; - float:left; - display:block; - padding:15px 10px; - border-left: solid 1px #f2f5f5; - border-right: solid 1px #d1d3d3; - height: 55px; - color:#888; - background: #ddd; -} -#messageModal i{ - font-size:75px; -} -#messageModal i.error{ - color:red; -} -#messageModal i.warning{ - color: #ffba41; -} -#messageModal i.info{ - color: #4b7eff; -} -#messageModal td.imageCell{ - padding-right:20px; -} -/* syntax highlight styles */ -pre {border:none;background: transparent } -.string { color: green; } -.number { color: darkorange; } -.boolean { color: blue; } -.null { color: magenta; } -.key { color: red; } -textarea{display: block;} -textarea.jsonEditor{ - width:100%; -} -/*syntax highlight styles */ -.info-bar{ - background: #ffe096; - position: absolute; - width:100%; - margin-top:-10px; -} -div.error{ - background: none repeat scroll 0 0 #FF2222; - color: #FFFFFF; -} - -div.success{ - background:#ffe096; - color:#058a26; -} - -.color-a-full-icons{ - color:#ff9000; - font-size:30px; -} -.panel-heading{ - padding:5px 10px; -} -.padding-remover-left{ - padding-left:0; -} -label.required{ - font-weight: bold; -} -li.dropdown ul.dropdown-menu li{ - float: none; -} -li.dropdown ul.dropdown-menu li a{ - height: 28px; - padding: 3px 20px; - text-align: left; -} -li.dropdown ul.dropdown-menu li a:hover{ - background: #3e3f3f; - color:#fff; -} -li.dropdown ul.dropdown-menu li a i{ - font-size: 20px; -} -.green-check{ - color: #00b600; - font-size:18px; -}.orange-check{ - color: #e68d00; - font-size:18px; -} -.table thead > tr > th{ - vertical-align: top; - background: #9d9f9f; - color:#fff; -} -.table thead > tr > th div{ - font-size: 11px; - color:#d9d9d9; -} -.terms-of-use{ - padding:10px; - background: #f7f7f7; - border: solid 1px #d1d1d1; -} -#wrap > div.container, .main-menu div.container{ - min-width: 800px; -} -@media (max-width: 980px) { - .sub-menu-wizard{ - font-size: 11px; - } -} -@media (max-width: 1200px) { - .sub-menu{ - font-size: 11px; - } -} -label.error{ - color: #be0000; - padding-bottom: 10px; -} -.loginError{ - color: #BE0000; - margin-top: -27px; - position: absolute; - text-align: center; - width: 395px; -} -.hasDomain{ - color:green; -} -.noDomain{ - color:red; -} -.un-subscribe-container{ - position: absolute; - width:100%; - text-align: right; - padding-right:30px; - z-index: 100; - margin-top: -5px; -} -.un-subscribe-container a.un-subscribe{ - color:red; -} -.un-subscribe-container i{ - font-size:20px; -} -.terms-of-use-check{ - padding-bottom:20px; -} -.terms-of-use-check label.error{ - position: absolute; - margin-left: 0; - margin-top: 20px; -} http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/theme.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/theme.js b/components/org.apache.stratos.manager.console/console/themes/theme1/theme.js deleted file mode 100644 index 2d42592..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/theme.js +++ /dev/null @@ -1,104 +0,0 @@ -/* - * - * 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. - * -*/ - -//var engine = require('caramel').engine('handlebars'); - -var engine = require('caramel').engine('handlebars', (function () { - return { - partials: function (Handlebars) { - var theme = caramel.theme(); - var partials = function (file) { - (function register(prefix, file) { - var i, length, name, files; - if (file.isDirectory()) { - files = file.listFiles(); - length = files.length; - for (i = 0; i < length; i++) { - file = files[i]; - register(prefix ? prefix + '.' + file.getName() : file.getName(), file); - } - } else { - name = file.getName(); - if (name.substring(name.length - 4) !== '.hbs') { - return; - } - file.open('r'); - Handlebars.registerPartial(prefix.substring(0, prefix.length - 4), file.readAll()); - file.close(); - } - })('', file); - }; - //TODO : we don't need to register all partials in the themes dir. - //Rather register only not overridden partials - partials(new File(theme.__proto__.resolve.call(theme, 'partials'))); - partials(new File(theme.resolve('partials'))); - - Handlebars.registerHelper('isAllowed', function(action, options) { - if(caramel.meta().request.permissions != undefined && caramel.meta().request.permissions[action]) { - return options.fn(this); - } - return options.inverse(this); - }); - - - Handlebars.registerHelper('ifCond', function (v1, operator, v2, options) { - - switch (operator) { - case '==': - return (v1 == v2) ? options.fn(this) : options.inverse(this); - case '===': - return (v1 === v2) ? options.fn(this) : options.inverse(this); - case '<': - return (v1 < v2) ? options.fn(this) : options.inverse(this); - case '<=': - return (v1 <= v2) ? options.fn(this) : options.inverse(this); - case '>': - return (v1 > v2) ? options.fn(this) : options.inverse(this); - case '>=': - return (v1 >= v2) ? options.fn(this) : options.inverse(this); - default: - return options.inverse(this); - } - }); - - Handlebars.registerHelper('user', function(action, options) { - if(caramel.meta().session.get("USER_NAME") != undefined ) { - return caramel.meta().session.get("USER_NAME"); - } - return ""; - }); - - Handlebars.registerHelper('domain', function(action, options) { - if(caramel.meta().session.get("TENANT_DOMAIN") != undefined ) { - return caramel.meta().session.get("TENANT_DOMAIN"); - } - return ""; - }); - Handlebars.registerHelper('tenantID', function(action, options) { - if(caramel.meta().session.get("TENANT_ID") != undefined ) { - return caramel.meta().session.get("TENANT_ID"); - } - return ""; - }); - - } - } -}())); http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/LICENSE.txt ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/LICENSE.txt b/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/LICENSE.txt deleted file mode 100644 index d645695..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed 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. http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Bold.ttf ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Bold.ttf b/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Bold.ttf deleted file mode 100644 index fd79d43..0000000 Binary files a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Bold.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-BoldItalic.ttf ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-BoldItalic.ttf b/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-BoldItalic.ttf deleted file mode 100644 index 9bc8009..0000000 Binary files a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-BoldItalic.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-ExtraBold.ttf ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-ExtraBold.ttf b/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-ExtraBold.ttf deleted file mode 100644 index 21f6f84..0000000 Binary files a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-ExtraBold.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-ExtraBoldItalic.ttf ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-ExtraBoldItalic.ttf b/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-ExtraBoldItalic.ttf deleted file mode 100644 index 31cb688..0000000 Binary files a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-ExtraBoldItalic.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Italic.ttf ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Italic.ttf b/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Italic.ttf deleted file mode 100644 index c90da48..0000000 Binary files a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Italic.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Light.ttf ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Light.ttf b/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Light.ttf deleted file mode 100644 index 0d38189..0000000 Binary files a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Light.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-LightItalic.ttf ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-LightItalic.ttf b/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-LightItalic.ttf deleted file mode 100644 index 68299c4..0000000 Binary files a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-LightItalic.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Regular.ttf ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Regular.ttf b/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Regular.ttf deleted file mode 100644 index db43334..0000000 Binary files a/components/org.apache.stratos.manager.console/console/themes/theme1/ui/Open_Sans/OpenSans-Regular.ttf and /dev/null differ
