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:06:03 UTC
[37/37] git commit: moving console app files into a directory.
moving console app files into a directory.
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/a240bd2b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/a240bd2b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/a240bd2b
Branch: refs/heads/master
Commit: a240bd2b42533706b7eafdb59d3b428cb402d017
Parents: 89fb391
Author: Pradeep Fernando <pr...@gmail.com>
Authored: Thu Jan 9 16:34:59 2014 +0530
Committer: Pradeep Fernando <pr...@gmail.com>
Committed: Thu Jan 9 16:34:59 2014 +0530
----------------------------------------------------------------------
.../org.apache.stratos.manager.console/LICENSE | 191 -
.../org.apache.stratos.manager.console/README | 1 -
.../README.md | 33 -
.../apis/README | 1 -
.../org.apache.stratos.manager.console/app.js | 14 -
.../cartridge_deployments.jag | 9 -
.../cartridges.jag | 7 -
.../config/console.js | 8 -
.../config/console.json | 22 -
.../configure_stratos.jag | 7 -
.../console/LICENSE | 191 +
.../console/README | 1 +
.../console/README.md | 33 +
.../console/apis/README | 1 +
.../console/app.js | 14 +
.../console/cartridge_deployments.jag | 9 +
.../console/cartridges.jag | 7 +
.../console/config/console.js | 8 +
.../console/config/console.json | 22 +
.../console/configure_stratos.jag | 7 +
.../console/controllers/README | 1 +
.../console/controllers/acs.jag | 93 +
.../console/controllers/login.jag | 37 +
.../console/controllers/logout.jag | 41 +
.../console/controllers/payloadFactory.jag | 50 +
.../console/controllers/profileClient.jag | 58 +
.../console/data/cartridge_deployments.json | 10 +
.../console/data/cartridges.json | 35 +
.../console/data/config_status.json | 4 +
.../console/data/lbs.json | 10 +
.../console/data/mt_service_deployments.json | 10 +
.../console/data/mycartridges.json | 35 +
.../console/data/partition_deployments.json | 10 +
.../console/data/policy_deployments.json | 10 +
.../console/index.jag | 7 +
.../console/jaggery.conf | 3 +
.../console/js/dialog.js | 369 +
.../console/js/main.js | 19 +
.../console/lbs.jag | 9 +
.../console/login.jag | 5 +
.../console/modules/README | 1 +
.../console/mt_service_deployments.jag | 9 +
.../console/partition_deployments.jag | 9 +
.../console/policy_deployments.jag | 9 +
.../console/root-js | 369 +
.../console/subscribe_cartridge.jag | 6 +
.../console/themes/README | 1 +
.../console/themes/theme1/pages/index.hbs | 78 +
.../theme1/partials/cartridge_deployments.hbs | 90 +
.../themes/theme1/partials/cartridges.hbs | 37 +
.../theme1/partials/configure_stratos.hbs | 48 +
.../console/themes/theme1/partials/header.hbs | 105 +
.../console/themes/theme1/partials/lbs.hbs | 90 +
.../console/themes/theme1/partials/login.hbs | 31 +
.../theme1/partials/mt_service_deployments.hbs | 90 +
.../themes/theme1/partials/mycartridges.hbs | 7 +
.../theme1/partials/partition_deployments.hbs | 129 +
.../theme1/partials/policy_deployments.hbs | 90 +
.../theme1/partials/subscribe_cartridge.hbs | 125 +
.../console/themes/theme1/partials/title.hbs | 1 +
.../themes/theme1/renderers/account_recovery.js | 23 +
.../theme1/renderers/cartridge_deployments.js | 47 +
.../themes/theme1/renderers/cartridges.js | 72 +
.../theme1/renderers/configure_stratos.js | 42 +
.../console/themes/theme1/renderers/index.js | 68 +
.../console/themes/theme1/renderers/lbs.js | 47 +
.../console/themes/theme1/renderers/login.js | 22 +
.../theme1/renderers/mt_service_deployments.js | 47 +
.../theme1/renderers/partition_deployments.js | 47 +
.../theme1/renderers/policy_deployments.js | 47 +
.../theme1/renderers/subscribe_cartridge.js | 37 +
.../console/themes/theme1/theme.js | 1 +
.../console/themes/theme1/ui/404.html | 157 +
.../ui/apple-touch-icon-114x114-precomposed.png | Bin 0 -> 1189 bytes
.../ui/apple-touch-icon-144x144-precomposed.png | Bin 0 -> 1475 bytes
.../ui/apple-touch-icon-57x57-precomposed.png | Bin 0 -> 730 bytes
.../ui/apple-touch-icon-72x72-precomposed.png | Bin 0 -> 854 bytes
.../theme1/ui/apple-touch-icon-precomposed.png | Bin 0 -> 730 bytes
.../themes/theme1/ui/apple-touch-icon.png | Bin 0 -> 730 bytes
.../console/themes/theme1/ui/crossdomain.xml | 15 +
.../themes/theme1/ui/css/bootstrap-missing.css | 995 +++
.../themes/theme1/ui/css/bootstrap-theme.css | 404 ++
.../theme1/ui/css/bootstrap-theme.min.css | 1 +
.../console/themes/theme1/ui/css/bootstrap.css | 6805 ++++++++++++++++++
.../themes/theme1/ui/css/bootstrap.min.css | 9 +
.../console/themes/theme1/ui/css/dialog.css | 128 +
.../console/themes/theme1/ui/css/main.css | 363 +
.../images/222222_11x11_icon_close.gif | Bin 0 -> 62 bytes
.../images/222222_11x11_icon_resize_se.gif | Bin 0 -> 61 bytes
.../smoothness/images/222222_7x7_arrow_left.gif | Bin 0 -> 53 bytes
.../images/222222_7x7_arrow_right.gif | Bin 0 -> 53 bytes
.../images/454545_11x11_icon_close.gif | Bin 0 -> 62 bytes
.../smoothness/images/454545_7x7_arrow_left.gif | Bin 0 -> 53 bytes
.../images/454545_7x7_arrow_right.gif | Bin 0 -> 53 bytes
.../images/888888_11x11_icon_close.gif | Bin 0 -> 62 bytes
.../smoothness/images/888888_7x7_arrow_left.gif | Bin 0 -> 53 bytes
.../images/888888_7x7_arrow_right.gif | Bin 0 -> 53 bytes
.../css/smoothness/images/animated-overlay.gif | Bin 0 -> 1738 bytes
.../dadada_40x100_textures_02_glass_75.png | Bin 0 -> 214 bytes
.../e6e6e6_40x100_textures_02_glass_75.png | Bin 0 -> 211 bytes
.../images/ffffff_40x100_textures_01_flat_0.png | Bin 0 -> 178 bytes
.../ffffff_40x100_textures_02_glass_65.png | Bin 0 -> 207 bytes
.../images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 0 -> 212 bytes
.../images/ui-bg_flat_75_ffffff_40x100.png | Bin 0 -> 208 bytes
.../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 0 -> 335 bytes
.../images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 207 bytes
.../images/ui-bg_glass_75_dadada_1x400.png | Bin 0 -> 262 bytes
.../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 0 -> 262 bytes
.../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 0 -> 332 bytes
.../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 0 -> 280 bytes
.../images/ui-icons_222222_256x240.png | Bin 0 -> 6922 bytes
.../images/ui-icons_2e83ff_256x240.png | Bin 0 -> 4549 bytes
.../images/ui-icons_454545_256x240.png | Bin 0 -> 6992 bytes
.../images/ui-icons_888888_256x240.png | Bin 0 -> 6999 bytes
.../images/ui-icons_cd0a0a_256x240.png | Bin 0 -> 4549 bytes
.../smoothness/jquery-ui-1.10.3.custom.min.css | 7 +
.../ui/css/smoothness/jqueryui-themeroller.css | 856 +++
.../themes/theme1/ui/custom-fonts/Read Me.txt | 5 +
.../theme1/ui/custom-fonts/fonts/stratos.eot | Bin 0 -> 6660 bytes
.../theme1/ui/custom-fonts/fonts/stratos.svg | 21 +
.../theme1/ui/custom-fonts/fonts/stratos.ttf | Bin 0 -> 6496 bytes
.../theme1/ui/custom-fonts/fonts/stratos.woff | Bin 0 -> 6572 bytes
.../theme1/ui/custom-fonts/selection.json | 268 +
.../themes/theme1/ui/custom-fonts/style.css | 58 +
.../console/themes/theme1/ui/favicon.ico | Bin 0 -> 766 bytes
.../ui/font-awesome/css/font-awesome-ie7.css | 1203 ++++
.../font-awesome/css/font-awesome-ie7.min.css | 384 +
.../theme1/ui/font-awesome/css/font-awesome.css | 1338 ++++
.../ui/font-awesome/css/font-awesome.min.css | 4 +
.../theme1/ui/font-awesome/font/FontAwesome.otf | Bin 0 -> 61896 bytes
.../font-awesome/font/fontawesome-webfont.eot | Bin 0 -> 37405 bytes
.../font-awesome/font/fontawesome-webfont.svg | 399 +
.../font-awesome/font/fontawesome-webfont.ttf | Bin 0 -> 79076 bytes
.../font-awesome/font/fontawesome-webfont.woff | Bin 0 -> 43572 bytes
.../ui/font-awesome/fonts/FontAwesome.otf | Bin 0 -> 62856 bytes
.../font-awesome/fonts/fontawesome-webfont.eot | Bin 0 -> 38205 bytes
.../font-awesome/fonts/fontawesome-webfont.svg | 414 ++
.../font-awesome/fonts/fontawesome-webfont.ttf | Bin 0 -> 80652 bytes
.../font-awesome/fonts/fontawesome-webfont.woff | Bin 0 -> 44432 bytes
.../ui/fonts/glyphicons-halflings-regular.eot | Bin 0 -> 14079 bytes
.../ui/fonts/glyphicons-halflings-regular.svg | 228 +
.../ui/fonts/glyphicons-halflings-regular.ttf | Bin 0 -> 29512 bytes
.../ui/fonts/glyphicons-halflings-regular.woff | Bin 0 -> 16448 bytes
.../console/themes/theme1/ui/fonts/stratos.eot | Bin 0 -> 6316 bytes
.../console/themes/theme1/ui/fonts/stratos.svg | 20 +
.../console/themes/theme1/ui/fonts/stratos.ttf | Bin 0 -> 6152 bytes
.../console/themes/theme1/ui/fonts/stratos.woff | Bin 0 -> 6228 bytes
.../console/themes/theme1/ui/img/clouds.png | Bin 0 -> 6663 bytes
.../console/themes/theme1/ui/img/egg-logo.png | Bin 0 -> 8299 bytes
.../console/themes/theme1/ui/img/gray.png | Bin 0 -> 144 bytes
.../console/themes/theme1/ui/img/icon-lock.png | Bin 0 -> 337 bytes
.../console/themes/theme1/ui/img/icon-user.png | Bin 0 -> 447 bytes
.../themes/theme1/ui/img/login-shadow.png | Bin 0 -> 1214 bytes
.../themes/theme1/ui/img/logo-inside.png | Bin 0 -> 7563 bytes
.../console/themes/theme1/ui/img/logo-login.png | Bin 0 -> 6223 bytes
.../console/themes/theme1/ui/img/repeat.png | Bin 0 -> 7371 bytes
.../themes/theme1/ui/img/transparent-white.png | Bin 0 -> 144 bytes
.../themes/theme1/ui/js/configure_stratos.js | 38 +
.../console/themes/theme1/ui/js/main.js | 1 +
.../console/themes/theme1/ui/js/utils.js | 21 +
.../themes/theme1/ui/js/vendor/bootstrap.js | 1999 +++++
.../themes/theme1/ui/js/vendor/bootstrap.min.js | 6 +
.../theme1/ui/js/vendor/jquery-1.10.1.min.js | 6 +
.../ui/js/vendor/jquery-ui-1.10.3.custom.min.js | 6 +
.../theme1/ui/js/vendor/jquery.validate.min.js | 2 +
.../vendor/modernizr-2.6.2-respond-1.1.0.min.js | 11 +
.../themes/theme1/ui/js/vendor/raphael-min.js | 11 +
.../console/util/utility.jag | 146 +
.../controllers/README | 1 -
.../controllers/acs.jag | 93 -
.../controllers/login.jag | 37 -
.../controllers/logout.jag | 41 -
.../controllers/payloadFactory.jag | 50 -
.../controllers/profileClient.jag | 58 -
.../data/cartridge_deployments.json | 10 -
.../data/cartridges.json | 35 -
.../data/config_status.json | 4 -
.../data/lbs.json | 10 -
.../data/mt_service_deployments.json | 10 -
.../data/mycartridges.json | 35 -
.../data/partition_deployments.json | 10 -
.../data/policy_deployments.json | 10 -
.../index.jag | 7 -
.../jaggery.conf | 3 -
.../js/dialog.js | 369 -
.../js/main.js | 19 -
.../org.apache.stratos.manager.console/lbs.jag | 9 -
.../login.jag | 5 -
.../modules/README | 1 -
.../mt_service_deployments.jag | 9 -
.../partition_deployments.jag | 9 -
.../policy_deployments.jag | 9 -
.../org.apache.stratos.manager.console/root-js | 369 -
.../subscribe_cartridge.jag | 6 -
.../themes/README | 1 -
.../themes/theme1/pages/index.hbs | 78 -
.../theme1/partials/cartridge_deployments.hbs | 90 -
.../themes/theme1/partials/cartridges.hbs | 37 -
.../theme1/partials/configure_stratos.hbs | 48 -
.../themes/theme1/partials/header.hbs | 105 -
.../themes/theme1/partials/lbs.hbs | 90 -
.../themes/theme1/partials/login.hbs | 31 -
.../theme1/partials/mt_service_deployments.hbs | 90 -
.../themes/theme1/partials/mycartridges.hbs | 7 -
.../theme1/partials/partition_deployments.hbs | 129 -
.../theme1/partials/policy_deployments.hbs | 90 -
.../theme1/partials/subscribe_cartridge.hbs | 125 -
.../themes/theme1/partials/title.hbs | 1 -
.../themes/theme1/renderers/account_recovery.js | 23 -
.../theme1/renderers/cartridge_deployments.js | 47 -
.../themes/theme1/renderers/cartridges.js | 72 -
.../theme1/renderers/configure_stratos.js | 42 -
.../themes/theme1/renderers/index.js | 68 -
.../themes/theme1/renderers/lbs.js | 47 -
.../themes/theme1/renderers/login.js | 22 -
.../theme1/renderers/mt_service_deployments.js | 47 -
.../theme1/renderers/partition_deployments.js | 47 -
.../theme1/renderers/policy_deployments.js | 47 -
.../theme1/renderers/subscribe_cartridge.js | 37 -
.../themes/theme1/theme.js | 1 -
.../themes/theme1/ui/404.html | 157 -
.../ui/apple-touch-icon-114x114-precomposed.png | Bin 1189 -> 0 bytes
.../ui/apple-touch-icon-144x144-precomposed.png | Bin 1475 -> 0 bytes
.../ui/apple-touch-icon-57x57-precomposed.png | Bin 730 -> 0 bytes
.../ui/apple-touch-icon-72x72-precomposed.png | Bin 854 -> 0 bytes
.../theme1/ui/apple-touch-icon-precomposed.png | Bin 730 -> 0 bytes
.../themes/theme1/ui/apple-touch-icon.png | Bin 730 -> 0 bytes
.../themes/theme1/ui/crossdomain.xml | 15 -
.../themes/theme1/ui/css/bootstrap-missing.css | 995 ---
.../themes/theme1/ui/css/bootstrap-theme.css | 404 --
.../theme1/ui/css/bootstrap-theme.min.css | 1 -
.../themes/theme1/ui/css/bootstrap.css | 6805 ------------------
.../themes/theme1/ui/css/bootstrap.min.css | 9 -
.../themes/theme1/ui/css/dialog.css | 128 -
.../themes/theme1/ui/css/main.css | 363 -
.../images/222222_11x11_icon_close.gif | Bin 62 -> 0 bytes
.../images/222222_11x11_icon_resize_se.gif | Bin 61 -> 0 bytes
.../smoothness/images/222222_7x7_arrow_left.gif | Bin 53 -> 0 bytes
.../images/222222_7x7_arrow_right.gif | Bin 53 -> 0 bytes
.../images/454545_11x11_icon_close.gif | Bin 62 -> 0 bytes
.../smoothness/images/454545_7x7_arrow_left.gif | Bin 53 -> 0 bytes
.../images/454545_7x7_arrow_right.gif | Bin 53 -> 0 bytes
.../images/888888_11x11_icon_close.gif | Bin 62 -> 0 bytes
.../smoothness/images/888888_7x7_arrow_left.gif | Bin 53 -> 0 bytes
.../images/888888_7x7_arrow_right.gif | Bin 53 -> 0 bytes
.../css/smoothness/images/animated-overlay.gif | Bin 1738 -> 0 bytes
.../dadada_40x100_textures_02_glass_75.png | Bin 214 -> 0 bytes
.../e6e6e6_40x100_textures_02_glass_75.png | Bin 211 -> 0 bytes
.../images/ffffff_40x100_textures_01_flat_0.png | Bin 178 -> 0 bytes
.../ffffff_40x100_textures_02_glass_65.png | Bin 207 -> 0 bytes
.../images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 212 -> 0 bytes
.../images/ui-bg_flat_75_ffffff_40x100.png | Bin 208 -> 0 bytes
.../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 335 -> 0 bytes
.../images/ui-bg_glass_65_ffffff_1x400.png | Bin 207 -> 0 bytes
.../images/ui-bg_glass_75_dadada_1x400.png | Bin 262 -> 0 bytes
.../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 262 -> 0 bytes
.../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 332 -> 0 bytes
.../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 280 -> 0 bytes
.../images/ui-icons_222222_256x240.png | Bin 6922 -> 0 bytes
.../images/ui-icons_2e83ff_256x240.png | Bin 4549 -> 0 bytes
.../images/ui-icons_454545_256x240.png | Bin 6992 -> 0 bytes
.../images/ui-icons_888888_256x240.png | Bin 6999 -> 0 bytes
.../images/ui-icons_cd0a0a_256x240.png | Bin 4549 -> 0 bytes
.../smoothness/jquery-ui-1.10.3.custom.min.css | 7 -
.../ui/css/smoothness/jqueryui-themeroller.css | 856 ---
.../themes/theme1/ui/custom-fonts/Read Me.txt | 5 -
.../theme1/ui/custom-fonts/fonts/stratos.eot | Bin 6660 -> 0 bytes
.../theme1/ui/custom-fonts/fonts/stratos.svg | 21 -
.../theme1/ui/custom-fonts/fonts/stratos.ttf | Bin 6496 -> 0 bytes
.../theme1/ui/custom-fonts/fonts/stratos.woff | Bin 6572 -> 0 bytes
.../theme1/ui/custom-fonts/selection.json | 268 -
.../themes/theme1/ui/custom-fonts/style.css | 58 -
.../themes/theme1/ui/favicon.ico | Bin 766 -> 0 bytes
.../ui/font-awesome/css/font-awesome-ie7.css | 1203 ----
.../font-awesome/css/font-awesome-ie7.min.css | 384 -
.../theme1/ui/font-awesome/css/font-awesome.css | 1338 ----
.../ui/font-awesome/css/font-awesome.min.css | 4 -
.../theme1/ui/font-awesome/font/FontAwesome.otf | Bin 61896 -> 0 bytes
.../font-awesome/font/fontawesome-webfont.eot | Bin 37405 -> 0 bytes
.../font-awesome/font/fontawesome-webfont.svg | 399 -
.../font-awesome/font/fontawesome-webfont.ttf | Bin 79076 -> 0 bytes
.../font-awesome/font/fontawesome-webfont.woff | Bin 43572 -> 0 bytes
.../ui/font-awesome/fonts/FontAwesome.otf | Bin 62856 -> 0 bytes
.../font-awesome/fonts/fontawesome-webfont.eot | Bin 38205 -> 0 bytes
.../font-awesome/fonts/fontawesome-webfont.svg | 414 --
.../font-awesome/fonts/fontawesome-webfont.ttf | Bin 80652 -> 0 bytes
.../font-awesome/fonts/fontawesome-webfont.woff | Bin 44432 -> 0 bytes
.../ui/fonts/glyphicons-halflings-regular.eot | Bin 14079 -> 0 bytes
.../ui/fonts/glyphicons-halflings-regular.svg | 228 -
.../ui/fonts/glyphicons-halflings-regular.ttf | Bin 29512 -> 0 bytes
.../ui/fonts/glyphicons-halflings-regular.woff | Bin 16448 -> 0 bytes
.../themes/theme1/ui/fonts/stratos.eot | Bin 6316 -> 0 bytes
.../themes/theme1/ui/fonts/stratos.svg | 20 -
.../themes/theme1/ui/fonts/stratos.ttf | Bin 6152 -> 0 bytes
.../themes/theme1/ui/fonts/stratos.woff | Bin 6228 -> 0 bytes
.../themes/theme1/ui/img/clouds.png | Bin 6663 -> 0 bytes
.../themes/theme1/ui/img/egg-logo.png | Bin 8299 -> 0 bytes
.../themes/theme1/ui/img/gray.png | Bin 144 -> 0 bytes
.../themes/theme1/ui/img/icon-lock.png | Bin 337 -> 0 bytes
.../themes/theme1/ui/img/icon-user.png | Bin 447 -> 0 bytes
.../themes/theme1/ui/img/login-shadow.png | Bin 1214 -> 0 bytes
.../themes/theme1/ui/img/logo-inside.png | Bin 7563 -> 0 bytes
.../themes/theme1/ui/img/logo-login.png | Bin 6223 -> 0 bytes
.../themes/theme1/ui/img/repeat.png | Bin 7371 -> 0 bytes
.../themes/theme1/ui/img/transparent-white.png | Bin 144 -> 0 bytes
.../themes/theme1/ui/js/configure_stratos.js | 38 -
.../themes/theme1/ui/js/main.js | 1 -
.../themes/theme1/ui/js/utils.js | 21 -
.../themes/theme1/ui/js/vendor/bootstrap.js | 1999 -----
.../themes/theme1/ui/js/vendor/bootstrap.min.js | 6 -
.../theme1/ui/js/vendor/jquery-1.10.1.min.js | 6 -
.../ui/js/vendor/jquery-ui-1.10.3.custom.min.js | 6 -
.../theme1/ui/js/vendor/jquery.validate.min.js | 2 -
.../vendor/modernizr-2.6.2-respond-1.1.0.min.js | 11 -
.../themes/theme1/ui/js/vendor/raphael-min.js | 11 -
.../util/utility.jag | 146 -
316 files changed, 19263 insertions(+), 19263 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/LICENSE
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/LICENSE b/components/org.apache.stratos.manager.console/LICENSE
deleted file mode 100644
index 37ec93a..0000000
--- a/components/org.apache.stratos.manager.console/LICENSE
+++ /dev/null
@@ -1,191 +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:
-
-You must give any other recipients of the Work or Derivative Works a copy of
-this License; and
-You must cause any modified files to carry prominent notices stating that You
-changed the files; and
-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
-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/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/README
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/README b/components/org.apache.stratos.manager.console/README
deleted file mode 100644
index 1e72692..0000000
--- a/components/org.apache.stratos.manager.console/README
+++ /dev/null
@@ -1 +0,0 @@
-This component contains the console web application written in jaggeryjs (httpL://jaggeryjs.org)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/README.md
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/README.md b/components/org.apache.stratos.manager.console/README.md
deleted file mode 100644
index 13e060e..0000000
--- a/components/org.apache.stratos.manager.console/README.md
+++ /dev/null
@@ -1,33 +0,0 @@
-#wso2-samples-store
-==================
-
-This is an example Jaggery application to demonstrate the features of caramel framework.
-
-##Installing
-
-* Copy `wso2-samples-store` webapp into a Jaggery server which has caramel module installed.
-* You can straightaway try this on [WSO2 UES 1.0.0](http://wso2.com/products/user-engagement-server).
-* If you change the webapp context, you need to update the value of `context` object key in`wso2-samples-store/app.js`
-to match you context.
-
-##Documentation
-
-* This sample contains 2 different themes for the same webapp. All themes resides on `themes` directory and you can add
-any number of themes as you want.
-* Theme for a particular HTTP request is determined by evaluating the theme callback that you specified in `caramel`
-configuration.
-* `caramel` configuration is set when the app get deployed using the init script `app.js`.
-* According to the logic in this particular caramel configuration, theme can be switched by specifying `theme` url
-parameter with desired theme name. Then, selected theme will be stored in user session and will be used for subsequent
-requests.
-* `theme0` is a very basic theme which use only the core apis of `caramel`.
-* `theme1` is a theme based on the `handlebars` engine which is an extension on top of `caramel` core.
-* A theme can have their own theme engine and each theme has complete control over the data been rendered for each
-request.
-* In order to switch to `theme0`, use [http://localhost:9763/wso2-samples-store/?theme=theme0](http://localhost:9763/wso2-samples-store/?theme=theme0)
-* In order to switch to `theme1`, use [http://localhost:9763/wso2-samples-store/?theme=theme1](http://localhost:9763/wso2-samples-store/?theme=theme1)
-* Once you switched to a theme, you can void `theme` parameter.
-* Please refer architecture diagrams in `docs` directory along with the app source to learn more.
-* There are several more features of caramel like i18n, client side rendering etc. which will be added to this sample
-in the future.
-
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/apis/README
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/apis/README b/components/org.apache.stratos.manager.console/apis/README
deleted file mode 100644
index 0ac0f3d..0000000
--- a/components/org.apache.stratos.manager.console/apis/README
+++ /dev/null
@@ -1 +0,0 @@
-Contain all apis exposed from this webapp
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/app.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/app.js b/components/org.apache.stratos.manager.console/app.js
deleted file mode 100644
index 0883bb8..0000000
--- a/components/org.apache.stratos.manager.console/app.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var caramel = require('caramel');
-
-caramel.configs({
- context: '/console',
- cache: true,
- negotiation: true,
- themer: function () {
- return 'theme1';
- }/*,
- languagesDir: '/i18n',
- language: function() {
- return 'si';
- }*/
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/cartridge_deployments.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/cartridge_deployments.jag b/components/org.apache.stratos.manager.console/cartridge_deployments.jag
deleted file mode 100644
index bdcbc59..0000000
--- a/components/org.apache.stratos.manager.console/cartridge_deployments.jag
+++ /dev/null
@@ -1,9 +0,0 @@
-<%
-var caramel = require('caramel');
-var cartridge_deployments = require('/data/cartridge_deployments.json');
-var config_status = require('/data/config_status.json');
-caramel.render({
- cartridge_deployments:cartridge_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/cartridges.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/cartridges.jag b/components/org.apache.stratos.manager.console/cartridges.jag
deleted file mode 100644
index d0f4268..0000000
--- a/components/org.apache.stratos.manager.console/cartridges.jag
+++ /dev/null
@@ -1,7 +0,0 @@
-<%
-var caramel = require('caramel')
-var cartridges = require('/data/cartridges.json');
-caramel.render({
- cartridges:cartridges
-});
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/config/console.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/config/console.js b/components/org.apache.stratos.manager.console/config/console.js
deleted file mode 100644
index 7f72b0a..0000000
--- a/components/org.apache.stratos.manager.console/config/console.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var config;
-(function () {
- config = function () {
- var config = require('/config/console.json'),
- process = require('process');
- return config;
- };
-})();
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/config/console.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/config/console.json b/components/org.apache.stratos.manager.console/config/console.json
deleted file mode 100644
index 23efa7c..0000000
--- a/components/org.apache.stratos.manager.console/config/console.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "backendServerConfiguration":{
- "url":"https://localhost:9443/stratos/admin"
- },
-
- "oauthConfiguration":{
- "clientId":"",
- "clientSecret":"",
- "tokenGrantEndpoint":""
- },
-
- "ssoConfiguration": {
- "enabled": true,
- "issuer": "console",
- "identityProviderURL": "https://localhost:9446/sso/samlsso.jag",
- "keyStorePassword": "wso2carbon",
- "identityAlias": "wso2carbon",
- "responseSigningEnabled": "true",
- "storeAcs" : "https://localhost:9443/console/controllers/acs",
- "keyStoreName": "/repository/resources/security/wso2carbon.jks"
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/configure_stratos.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/configure_stratos.jag b/components/org.apache.stratos.manager.console/configure_stratos.jag
deleted file mode 100644
index 351229b..0000000
--- a/components/org.apache.stratos.manager.console/configure_stratos.jag
+++ /dev/null
@@ -1,7 +0,0 @@
-<%
-var caramel = require('caramel');
-var partition_deployment = require('/data/partition_deployment.json');
-caramel.render({
- partition_deployment:partition_deployment
-});
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/console/LICENSE
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/LICENSE b/components/org.apache.stratos.manager.console/console/LICENSE
new file mode 100644
index 0000000..37ec93a
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/LICENSE
@@ -0,0 +1,191 @@
+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:
+
+You must give any other recipients of the Work or Derivative Works a copy of
+this License; and
+You must cause any modified files to carry prominent notices stating that You
+changed the files; and
+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
+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/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/console/README
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/README b/components/org.apache.stratos.manager.console/console/README
new file mode 100644
index 0000000..1e72692
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/README
@@ -0,0 +1 @@
+This component contains the console web application written in jaggeryjs (httpL://jaggeryjs.org)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/console/README.md
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/README.md b/components/org.apache.stratos.manager.console/console/README.md
new file mode 100644
index 0000000..13e060e
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/README.md
@@ -0,0 +1,33 @@
+#wso2-samples-store
+==================
+
+This is an example Jaggery application to demonstrate the features of caramel framework.
+
+##Installing
+
+* Copy `wso2-samples-store` webapp into a Jaggery server which has caramel module installed.
+* You can straightaway try this on [WSO2 UES 1.0.0](http://wso2.com/products/user-engagement-server).
+* If you change the webapp context, you need to update the value of `context` object key in`wso2-samples-store/app.js`
+to match you context.
+
+##Documentation
+
+* This sample contains 2 different themes for the same webapp. All themes resides on `themes` directory and you can add
+any number of themes as you want.
+* Theme for a particular HTTP request is determined by evaluating the theme callback that you specified in `caramel`
+configuration.
+* `caramel` configuration is set when the app get deployed using the init script `app.js`.
+* According to the logic in this particular caramel configuration, theme can be switched by specifying `theme` url
+parameter with desired theme name. Then, selected theme will be stored in user session and will be used for subsequent
+requests.
+* `theme0` is a very basic theme which use only the core apis of `caramel`.
+* `theme1` is a theme based on the `handlebars` engine which is an extension on top of `caramel` core.
+* A theme can have their own theme engine and each theme has complete control over the data been rendered for each
+request.
+* In order to switch to `theme0`, use [http://localhost:9763/wso2-samples-store/?theme=theme0](http://localhost:9763/wso2-samples-store/?theme=theme0)
+* In order to switch to `theme1`, use [http://localhost:9763/wso2-samples-store/?theme=theme1](http://localhost:9763/wso2-samples-store/?theme=theme1)
+* Once you switched to a theme, you can void `theme` parameter.
+* Please refer architecture diagrams in `docs` directory along with the app source to learn more.
+* There are several more features of caramel like i18n, client side rendering etc. which will be added to this sample
+in the future.
+
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/console/apis/README
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/apis/README b/components/org.apache.stratos.manager.console/console/apis/README
new file mode 100644
index 0000000..0ac0f3d
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/apis/README
@@ -0,0 +1 @@
+Contain all apis exposed from this webapp
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/console/app.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/app.js b/components/org.apache.stratos.manager.console/console/app.js
new file mode 100644
index 0000000..0883bb8
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/app.js
@@ -0,0 +1,14 @@
+var caramel = require('caramel');
+
+caramel.configs({
+ context: '/console',
+ cache: true,
+ negotiation: true,
+ themer: function () {
+ return 'theme1';
+ }/*,
+ languagesDir: '/i18n',
+ language: function() {
+ return 'si';
+ }*/
+});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/console/cartridge_deployments.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/cartridge_deployments.jag b/components/org.apache.stratos.manager.console/console/cartridge_deployments.jag
new file mode 100644
index 0000000..bdcbc59
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/cartridge_deployments.jag
@@ -0,0 +1,9 @@
+<%
+var caramel = require('caramel');
+var cartridge_deployments = require('/data/cartridge_deployments.json');
+var config_status = require('/data/config_status.json');
+caramel.render({
+ cartridge_deployments:cartridge_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/console/cartridges.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/cartridges.jag b/components/org.apache.stratos.manager.console/console/cartridges.jag
new file mode 100644
index 0000000..d0f4268
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/cartridges.jag
@@ -0,0 +1,7 @@
+<%
+var caramel = require('caramel')
+var cartridges = require('/data/cartridges.json');
+caramel.render({
+ cartridges:cartridges
+});
+%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/console/config/console.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/config/console.js b/components/org.apache.stratos.manager.console/console/config/console.js
new file mode 100644
index 0000000..7f72b0a
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/config/console.js
@@ -0,0 +1,8 @@
+var config;
+(function () {
+ config = function () {
+ var config = require('/config/console.json'),
+ process = require('process');
+ return config;
+ };
+})();
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/console/config/console.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/config/console.json b/components/org.apache.stratos.manager.console/console/config/console.json
new file mode 100644
index 0000000..23efa7c
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/config/console.json
@@ -0,0 +1,22 @@
+{
+ "backendServerConfiguration":{
+ "url":"https://localhost:9443/stratos/admin"
+ },
+
+ "oauthConfiguration":{
+ "clientId":"",
+ "clientSecret":"",
+ "tokenGrantEndpoint":""
+ },
+
+ "ssoConfiguration": {
+ "enabled": true,
+ "issuer": "console",
+ "identityProviderURL": "https://localhost:9446/sso/samlsso.jag",
+ "keyStorePassword": "wso2carbon",
+ "identityAlias": "wso2carbon",
+ "responseSigningEnabled": "true",
+ "storeAcs" : "https://localhost:9443/console/controllers/acs",
+ "keyStoreName": "/repository/resources/security/wso2carbon.jks"
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/console/configure_stratos.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/configure_stratos.jag b/components/org.apache.stratos.manager.console/console/configure_stratos.jag
new file mode 100644
index 0000000..351229b
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/configure_stratos.jag
@@ -0,0 +1,7 @@
+<%
+var caramel = require('caramel');
+var partition_deployment = require('/data/partition_deployment.json');
+caramel.render({
+ partition_deployment:partition_deployment
+});
+%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/console/controllers/README
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/README b/components/org.apache.stratos.manager.console/console/controllers/README
new file mode 100644
index 0000000..bdd0c86
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/controllers/README
@@ -0,0 +1 @@
+Contains controllers required for this project
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a240bd2b/components/org.apache.stratos.manager.console/console/controllers/acs.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/acs.jag b/components/org.apache.stratos.manager.console/console/controllers/acs.jag
new file mode 100644
index 0000000..a83826e
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/controllers/acs.jag
@@ -0,0 +1,93 @@
+<%
+(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/console/controllers/login.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/login.jag b/components/org.apache.stratos.manager.console/console/controllers/login.jag
new file mode 100644
index 0000000..828c874
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/controllers/login.jag
@@ -0,0 +1,37 @@
+<%
+(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/console/controllers/logout.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/logout.jag b/components/org.apache.stratos.manager.console/console/controllers/logout.jag
new file mode 100644
index 0000000..461f1b3
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/controllers/logout.jag
@@ -0,0 +1,41 @@
+<%
+(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/console/controllers/payloadFactory.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/payloadFactory.jag b/components/org.apache.stratos.manager.console/console/controllers/payloadFactory.jag
new file mode 100644
index 0000000..3132f02
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/controllers/payloadFactory.jag
@@ -0,0 +1,50 @@
+<%
+
+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/console/controllers/profileClient.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/profileClient.jag b/components/org.apache.stratos.manager.console/console/controllers/profileClient.jag
new file mode 100644
index 0000000..655cf77
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/controllers/profileClient.jag
@@ -0,0 +1,58 @@
+<%
+
+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/console/data/cartridge_deployments.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/data/cartridge_deployments.json b/components/org.apache.stratos.manager.console/console/data/cartridge_deployments.json
new file mode 100644
index 0000000..07555c0
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/data/cartridge_deployments.json
@@ -0,0 +1,10 @@
+[
+ {
+ "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/console/data/cartridges.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/data/cartridges.json b/components/org.apache.stratos.manager.console/console/data/cartridges.json
new file mode 100644
index 0000000..b49a04c
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/data/cartridges.json
@@ -0,0 +1,35 @@
+{"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/console/data/config_status.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/data/config_status.json b/components/org.apache.stratos.manager.console/console/data/config_status.json
new file mode 100644
index 0000000..1c73caa
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/data/config_status.json
@@ -0,0 +1,4 @@
+{
+ "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/console/data/lbs.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/data/lbs.json b/components/org.apache.stratos.manager.console/console/data/lbs.json
new file mode 100644
index 0000000..0d135f9
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/data/lbs.json
@@ -0,0 +1,10 @@
+[
+ {
+ "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/console/data/mt_service_deployments.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/data/mt_service_deployments.json b/components/org.apache.stratos.manager.console/console/data/mt_service_deployments.json
new file mode 100644
index 0000000..087f1a5
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/data/mt_service_deployments.json
@@ -0,0 +1,10 @@
+[
+ {
+ "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/console/data/mycartridges.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/data/mycartridges.json b/components/org.apache.stratos.manager.console/console/data/mycartridges.json
new file mode 100644
index 0000000..b49a04c
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/data/mycartridges.json
@@ -0,0 +1,35 @@
+{"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/console/data/partition_deployments.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/data/partition_deployments.json b/components/org.apache.stratos.manager.console/console/data/partition_deployments.json
new file mode 100644
index 0000000..9629cdd
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/data/partition_deployments.json
@@ -0,0 +1,10 @@
+[
+ {
+ "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/console/data/policy_deployments.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/data/policy_deployments.json b/components/org.apache.stratos.manager.console/console/data/policy_deployments.json
new file mode 100644
index 0000000..db657be
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/data/policy_deployments.json
@@ -0,0 +1,10 @@
+[
+ {
+ "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/console/index.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/index.jag b/components/org.apache.stratos.manager.console/console/index.jag
new file mode 100644
index 0000000..f852cc4
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/index.jag
@@ -0,0 +1,7 @@
+<%
+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/console/jaggery.conf
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/jaggery.conf b/components/org.apache.stratos.manager.console/console/jaggery.conf
new file mode 100644
index 0000000..c26875e
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/jaggery.conf
@@ -0,0 +1,3 @@
+{
+ "initScripts": ["app.js"]
+}
\ No newline at end of file