Merge pull request #642 from Kamidu/cloud-3.1.0

Cloud fixes for device cloud 3.1.0
revert-70aa11f8
Harshan Liyanage 8 years ago committed by GitHub
commit 99bb2a369f

@ -1,7 +1,7 @@
{ {
"Logo": { "Logo": {
"name": "Cloud", "name": "Cloud",
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt", "url": "https://<%= @cloudmgt_host %>/cloudmgt",
"target": "_parent" "target": "_parent"
}, },
"Main": { "Main": {
@ -12,13 +12,13 @@
"target": "_parent", "target": "_parent",
"dropDown": { "dropDown": {
"Organization": { "Organization": {
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/organization.jag", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/organization.jag",
"icon": "fw fw-organization", "icon": "fw fw-organization",
"dropDown": "false", "dropDown": "false",
"target": "_self" "target": "_self"
}, },
"Members": { "Members": {
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/user.jag", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/user.jag",
"icon": "fa fa-users", "icon": "fa fa-users",
"dropDown": "false", "dropDown": "false",
"target": "_self" "target": "_self"
@ -26,29 +26,29 @@
} }
}, },
"Account": { "Account": {
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/account-summary.jag", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/account-summary.jag",
"icon": "fw fw-resource", "icon": "fw fw-resource",
"isAdminOnly": true, "isAdminOnly": true,
"target": "_blank", "target": "_blank",
"dropDown": { "dropDown": {
"Upgrade Now": { "Upgrade Now": {
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/payment-plans.jag?cloud-type=api_cloud", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/payment-plans.jag?cloud-type=api_cloud",
"icon": "fw fw-export", "icon": "fw fw-export",
"target": "_self" "target": "_self"
}, },
"Monetization": { "Monetization": {
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/monetization-dashboard.jag", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/monetization-dashboard.jag",
"icon": "fa fa-money fa-lg", "icon": "fa fa-money fa-lg",
"dropDown": "false", "dropDown": "false",
"target": "_self" "target": "_self"
}, },
"Request Extension": { "Request Extension": {
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/contact-us.jag?cloud-type=api_cloud&request-extension=true", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/contact-us.jag?cloud-type=api_cloud&request-extension=true",
"icon": "fw fw-mail", "icon": "fw fw-mail",
"target": "_blank" "target": "_blank"
}, },
"Usage data": { "Usage data": {
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/tenant-usage.jag?cloud-type=api_cloud", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/tenant-usage.jag?cloud-type=api_cloud",
"icon": "fw fw-bar-chart", "icon": "fw fw-bar-chart",
"target": "_self" "target": "_self"
} }
@ -61,26 +61,26 @@
"dropDown": { "dropDown": {
"Admin Dashboard": { "Admin Dashboard": {
"id": "admin-dashboard", "id": "admin-dashboard",
"url": "https://api.cloudlocal.wso2.com:9445/admin-dashboard/", "url": "https://<%= @apimpublisher_host %>/admin-dashboard/",
"icon": "fw fw-user", "icon": "fw fw-user",
"target": "_self" "target": "_self"
}, },
"Custom URL": { "Custom URL": {
"id": "custom-url", "id": "custom-url",
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/custom_url.jag", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/custom_url.jag",
"icon": "fw fw-uri", "icon": "fw fw-uri",
"target": "_self" "target": "_self"
}, },
"API Store Access": { "API Store Access": {
"id": "custom-url", "id": "custom-url",
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/selfSignup.jag", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/selfSignup.jag",
"icon": "fw fw-store", "icon": "fw fw-store",
"target": "_self" "target": "_self"
} }
} }
}, },
"Support": { "Support": {
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/contact-us.jag", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/contact-us.jag",
"icon": "fw fw-mail", "icon": "fw fw-mail",
"isAdminOnly": false, "isAdminOnly": false,
"target": "_self", "target": "_self",
@ -103,9 +103,15 @@
"icon": "fw fw-application", "icon": "fw fw-application",
"target": "_blank" "target": "_blank"
}, },
"Device Cloud": {
"id": "device_cloud",
"url": "https://docs.wso2.com/display/DeviceCloud/WSO2+Device+Cloud+Documentation",
"icon": "fw fw-mobile",
"target": "_self"
},
"API Cloud Walkthrough": { "API Cloud Walkthrough": {
"id": "api_cloud_walkthrough", "id": "api_cloud_walkthrough",
"url": "https://api.cloudlocal.wso2.com:9445/publisher?interactiveTutorial=true", "url": "https://<%= @apimpublisher_host %>/publisher?interactiveTutorial=true",
"icon": "fw fw-document", "icon": "fw fw-document",
"target": "_self" "target": "_self"
} }
@ -117,19 +123,19 @@
"icon": "fw fw-user", "icon": "fw fw-user",
"dropDown": { "dropDown": {
"Profile": { "Profile": {
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/user-profile.jag", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/user-profile.jag",
"icon": "fw fw-user", "icon": "fw fw-user",
"dropDown": "true", "dropDown": "true",
"target": "_self" "target": "_self"
}, },
"Change Password": { "Change Password": {
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/change-password.jag", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/change-password.jag",
"icon": "fw fw-lock", "icon": "fw fw-lock",
"dropDown": "true", "dropDown": "true",
"target": "_self" "target": "_self"
}, },
"Logout": { "Logout": {
"url": "https://api.cloudlocal.wso2.com:9445/publisher/site/pages/logout.jag", "url": "https://<%= @apimpublisher_host %>/publisher/site/pages/logout.jag",
"icon": "fw fw-sign-out", "icon": "fw fw-sign-out",
"dropDown": "true", "dropDown": "true",
"target": "_self" "target": "_self"
@ -140,43 +146,50 @@
"Clouds": { "Clouds": {
"API Cloud": { "API Cloud": {
"id": "api_cloud", "id": "api_cloud",
"url": "https://api.cloudlocal.wso2.com:9445/publisher", "url": "https://<%= @apimpublisher_host %>/publisher",
"icon": "fw fw-api fw-3x", "icon": "fw fw-api fw-3x",
"dropDown": "true", "dropDown": "true",
"target": "_self" "target": "_self"
}, },
"Integration Cloud": { "Integration Cloud": {
"id": "integration_cloud", "id": "integration_cloud",
"url": "https://milestones.appfactory.wso2.com:9443/appmgt", "url": "https://milestones.appfactory.wso2.com:9443/appmgt",
"icon": "fa fa-cubes fa-3x", "icon": "fa fa-cubes fw-3x",
"dropDown": "true", "dropDown": "true",
"target": "_self" "target": "_self"
}, },
"Identity Cloud": { "Identity Cloud": {
"id": "integration_cloud", "id": "integration_cloud",
"url": "https://identity.cloudlocal.wso2.com:9443/admin", "url": "https://identity.cloudlocal.wso2.com:9443/admin",
"icon": "fw fw-security fa-3x", "icon": "fw fw-security fw-3x",
"dropDown": "true",
"target": "_self"
},
"App Cloud": {
"id": "app_cloud",
"url": "https://<%= @appcloud_host %>/appmgt",
"icon": "fw fw-application fw-3x",
"dropDown": "true", "dropDown": "true",
"target": "_self" "target": "_self"
}, },
"Device Cloud": { "Device Cloud": {
"id": "device_cloud", "id": "device_cloud",
"url": "https://device.cloudlocal.wso2.com:9443/devicemgt", "url": "https://<%= @mgt_hostname %>/devicemgt",
"icon": "fw fw-security fa-3x", "icon": "fw fw-mobile fw-3x",
"dropDown": "true", "dropDown": "true",
"target": "_self" "target": "_self"
} }
}, },
"Actions": { "Actions": {
"Organization": { "Organization": {
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/organization.jag", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/organization.jag",
"icon": "fw fw-organization fw-3x", "icon": "fw fw-organization fw-3x",
"dropDown": "true", "dropDown": "true",
"target": "_self" "target": "_self"
}, },
"Members": { "Members": {
"url": "https://cloudmgt.cloudlocal.wso2.com:9444/cloudmgt/site/pages/user.jag", "url": "https://<%= @cloudmgt_host %>/cloudmgt/site/pages/user.jag",
"icon": "fa fa-users fa-3x", "icon": "fa fa-users fw-3x",
"dropDown": "true", "dropDown": "true",
"target": "_self" "target": "_self"
} }

@ -18,12 +18,12 @@
var conf = function () { var conf = function () {
var cloudConf = application.get("CLOUD_CONF"); var cloudConf = application.get("CLOUD_CONF");
if (!conf) { if (!cloudConf) {
cloudConf = require("/app/conf/toplink-menu.json"); cloudConf = require("/app/conf/toplink-menu.json");
var pinch = require("/app/modules/conf-reader/pinch.min.js")["pinch"]; var pinch = require("/app/modules/conf-reader/pinch.min.js")["pinch"];
var server = require("carbon")["server"]; var server = require("carbon")["server"];
var process = require("process"); var process = require("process");
pinch(conf, /^/, pinch(cloudConf, /^/,
function (path, key, value) { function (path, key, value) {
if ((typeof value === "string") && value.indexOf("%https.ip%") > -1) { if ((typeof value === "string") && value.indexOf("%https.ip%") > -1) {
//noinspection JSUnresolvedFunction //noinspection JSUnresolvedFunction

Loading…
Cancel
Save