From c338f002c04d798d27ebb6ce9060d5c711e4f9ed Mon Sep 17 00:00:00 2001 From: Brady Dowling Date: Thu, 17 Dec 2015 21:40:22 +0000 Subject: [PATCH 1/4] Simplified support menu in IDE --- package.json | 9 +++++---- plugins/c9.ide.help/help.js | 38 +++++++++++++------------------------ 2 files changed, 18 insertions(+), 29 deletions(-) diff --git a/package.json b/package.json index cb10f78e..d9772d72 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "c9" ], "c9plugins": { - "c9.ide.language": "#c2740d0254", + "c9.ide.language": "#842f2035be", "c9.ide.language.css": "#a649f2a710", "c9.ide.language.generic": "#77d43cfaf0", "c9.ide.language.html": "#0f4078c187", @@ -86,11 +86,12 @@ "c9.ide.dialog.wizard": "#7667ec79a8", "c9.ide.fontawesome": "#781602c5d8", "c9.ide.format": "#5ec97fb083", - "c9.ide.help.support": "#0c311f7165", + "c9.ide.help.support": "#870494064f", "c9.ide.imgeditor": "#612e75ef4f", "c9.ide.immediate": "#a962119bec", "c9.ide.installer": "#0fde9f0067", - "c9.ide.mount": "#b9a5a2d45c", + "c9.ide.language.python": "#undefined", + "c9.ide.mount": "#8fb263e308", "c9.ide.navigate": "#38ae100ea1", "c9.ide.newresource": "#981a408a7b", "c9.ide.openfiles": "#7fa4a97fed", @@ -114,6 +115,6 @@ "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", "c9.ide.upload": "#0bd010d3dc", - "c9.ide.welcome": "#4a53636aea" + "c9.ide.welcome": "#f42e833148" } } \ No newline at end of file diff --git a/plugins/c9.ide.help/help.js b/plugins/c9.ide.help/help.js index 2161c30d..caae814e 100644 --- a/plugins/c9.ide.help/help.js +++ b/plugins/c9.ide.help/help.js @@ -40,50 +40,38 @@ define(function(require, exports, module) { }), 100, plugin); var c = 0; - menus.addItemByPath("Support/Status Page", new ui.item({ + menus.addItemByPath("Support/Check Cloud9 Status", new ui.item({ onclick: function(){window.open('http://status.c9.io'); } }), c += 100, plugin); - // menus.addItemByPath("Support/~", new ui.divider(), c += 100, plugin); - // ide.addEventListener("hook.ext/keybindings_default/keybindings_default", function(c, e) { - // menus.addItemByPath("Support/Keyboard Shortcuts", new ui.item({ onclick : function(){ e.ext.keybindings(); }}), c); - // }.bind(this, c += 100), plugin); menus.addItemByPath("Support/~", new ui.divider(), c += 100, plugin); - menus.addItemByPath("Support/Cloud9 Community", new ui.item({ + menus.addItemByPath("Support/Get Help (Community)", new ui.item({ onclick: function(){ window.open("https://community.c9.io"); } }), c += 100, plugin); - menus.addItemByPath("Support/Learning/", null, c += 100, plugin); - menus.addItemByPath("Support/Get Help/", null, c += 100, plugin); - menus.addItemByPath("Support/Get in Touch/", null, c += 100, plugin); - - c = 0; - menus.addItemByPath("Support/Learning/Cloud9 Documentation", new ui.item({ + + menus.addItemByPath("Support/~", new ui.divider(), c += 100, plugin); + + menus.addItemByPath("Support/Read Documentation", new ui.item({ onclick: function(){ window.open("https://docs.c9.io"); } }), c += 100, plugin); - menus.addItemByPath("Support/Learning/YouTube Channel for Cloud9", new ui.item({ + menus.addItemByPath("Support/Request a Feature", new ui.item({ + onclick: function() { + // draw(); + window.open('https://community.c9.io/c/feature-requests'); + } + }), c += 100, plugin); + menus.addItemByPath("Support/Go To YouTube Channel", new ui.item({ onclick: function(){ window.open('http://www.youtube.com/user/c9ide/videos?view=pl'); } }), c += 100, plugin); c = 0; - menus.addItemByPath("Support/Get in Touch/Blog", new ui.item({ - onclick: function(){ window.open('https://blog.c9.io/'); } - }), c += 100, plugin); - menus.addItemByPath("Support/Get in Touch/Twitter (for Cloud9 Support)", new ui.item({ - onclick: function(){ window.open('https://twitter.com/C9Support'); } - }), c += 100, plugin); - menus.addItemByPath("Support/Get in Touch/Twitter (for general Cloud9 tweets)", new ui.item({ - onclick: function(){ window.open('https://twitter.com/Cloud9IDE'); } - }), c += 100, plugin); - menus.addItemByPath("Support/Get in Touch/Facebook", new ui.item({ - onclick: function(){ window.open('https://www.facebook.com/Cloud9IDE'); } - }), c += 100, plugin); if (c9.hosted || c9.local) { c9.on("state.change", fetchBlog); From 197ddb03a7be18b67fe3e24d8402a68ebbb710e2 Mon Sep 17 00:00:00 2001 From: Brady Dowling Date: Thu, 31 Dec 2015 16:43:07 +0000 Subject: [PATCH 2/4] Premium subscription <> Premium support --- package.json | 2 +- plugins/c9.ide.help/help.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d9772d72..bdacdfc8 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "c9.ide.dialog.wizard": "#7667ec79a8", "c9.ide.fontawesome": "#781602c5d8", "c9.ide.format": "#5ec97fb083", - "c9.ide.help.support": "#870494064f", + "c9.ide.help.support": "#98a1b45962", "c9.ide.imgeditor": "#612e75ef4f", "c9.ide.immediate": "#a962119bec", "c9.ide.installer": "#0fde9f0067", diff --git a/plugins/c9.ide.help/help.js b/plugins/c9.ide.help/help.js index caae814e..e97e4565 100644 --- a/plugins/c9.ide.help/help.js +++ b/plugins/c9.ide.help/help.js @@ -52,7 +52,7 @@ define(function(require, exports, module) { } }), c += 100, plugin); - menus.addItemByPath("Support/~", new ui.divider(), c += 100, plugin); + menus.addItemByPath("Support/~", new ui.divider(), c += 300, plugin); menus.addItemByPath("Support/Read Documentation", new ui.item({ onclick: function(){ From 3f0c1ef38c7758bd884a1341de82f97d9b3d7e72 Mon Sep 17 00:00:00 2001 From: Brady Dowling Date: Wed, 6 Jan 2016 14:12:59 +0000 Subject: [PATCH 3/4] Added Welcome Page back to support menu --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bdacdfc8..43c602c1 100644 --- a/package.json +++ b/package.json @@ -115,6 +115,6 @@ "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", "c9.ide.upload": "#0bd010d3dc", - "c9.ide.welcome": "#f42e833148" + "c9.ide.welcome": "#04ad90a1c9" } } \ No newline at end of file From a32cb7a057d81f2ed422c4cc9a89426af850c0ad Mon Sep 17 00:00:00 2001 From: Brady Dowling Date: Wed, 6 Jan 2016 15:22:24 +0000 Subject: [PATCH 4/4] Added tracking for visiting community --- plugins/c9.ide.help/help.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/c9.ide.help/help.js b/plugins/c9.ide.help/help.js index e97e4565..6a01e169 100644 --- a/plugins/c9.ide.help/help.js +++ b/plugins/c9.ide.help/help.js @@ -1,5 +1,5 @@ define(function(require, exports, module) { - main.consumes = ["Plugin", "c9", "menus", "layout", "ui", "http"]; + main.consumes = ["Plugin", "c9", "menus", "layout", "ui", "http", "c9.analytics"]; main.provides = ["help"]; return main; @@ -9,6 +9,7 @@ define(function(require, exports, module) { var http = imports.http; var ui = imports.ui; var menus = imports.menus; + var analytics = imports["c9.analytics"]; var markup = require("text!./help.xml"); var css = require("text!./style.css"); @@ -48,6 +49,7 @@ define(function(require, exports, module) { menus.addItemByPath("Support/Get Help (Community)", new ui.item({ onclick: function(){ + analytics.track("Visited Cloud9 Community"); window.open("https://community.c9.io"); } }), c += 100, plugin); @@ -56,7 +58,7 @@ define(function(require, exports, module) { menus.addItemByPath("Support/Read Documentation", new ui.item({ onclick: function(){ - window.open("https://docs.c9.io"); + window.open("https://docs.c9.io/docs"); } }), c += 100, plugin); menus.addItemByPath("Support/Request a Feature", new ui.item({