kopia lustrzana https://github.com/c9/core
Don't show support references in standalone mode
rodzic
fdd4297e0c
commit
61f22360a3
|
@ -706,7 +706,8 @@ module.exports = function(options) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
packagePath: "plugins/c9.ide.help/help",
|
packagePath: "plugins/c9.ide.help/help",
|
||||||
staticPrefix: staticPrefix + "/plugins/c9.ide.help"
|
staticPrefix: staticPrefix + "/plugins/c9.ide.help",
|
||||||
|
hosted: hosted
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
packagePath: "plugins/c9.ide.guide/guide",
|
packagePath: "plugins/c9.ide.guide/guide",
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
"c9.ide.immediate": "#0b0ee744f9",
|
"c9.ide.immediate": "#0b0ee744f9",
|
||||||
"c9.ide.installer": "#2921efaf6d",
|
"c9.ide.installer": "#2921efaf6d",
|
||||||
"c9.ide.language.python": "#ec0b9070a4",
|
"c9.ide.language.python": "#ec0b9070a4",
|
||||||
"c9.ide.language.go": "#6ce1c7a7ef",
|
"c9.ide.language.go": "#84b5636301",
|
||||||
"c9.ide.navigate": "#5d5707058c",
|
"c9.ide.navigate": "#5d5707058c",
|
||||||
"c9.ide.newresource": "#981a408a7b",
|
"c9.ide.newresource": "#981a408a7b",
|
||||||
"c9.ide.openfiles": "#2ae85a9e33",
|
"c9.ide.openfiles": "#2ae85a9e33",
|
||||||
|
|
|
@ -21,10 +21,8 @@ define(function(require, exports, module) {
|
||||||
|
|
||||||
var aboutDialog;
|
var aboutDialog;
|
||||||
|
|
||||||
var loaded = false;
|
function load() {
|
||||||
function load(){
|
if (!options.hosted) return;
|
||||||
if (loaded) return false;
|
|
||||||
loaded = true;
|
|
||||||
|
|
||||||
var mnuHelp = new ui.menu();
|
var mnuHelp = new ui.menu();
|
||||||
menus.addItemByPath("Support/", mnuHelp, 900, plugin);
|
menus.addItemByPath("Support/", mnuHelp, 900, plugin);
|
||||||
|
@ -151,7 +149,6 @@ define(function(require, exports, module) {
|
||||||
|
|
||||||
});
|
});
|
||||||
plugin.on("unload", function(){
|
plugin.on("unload", function(){
|
||||||
loaded = false;
|
|
||||||
drawn = false;
|
drawn = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,9 @@
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<a href="https://docs.c9.io">Documentation</a> |
|
<a href="https://docs.c9.io">Documentation</a> |
|
||||||
<a href="http://status.c9.io">Server Status</a> |
|
<a href="http://status.c9.io">Server Status</a> |
|
||||||
|
<% if (!standalone) { %>
|
||||||
<a href="http://support.c9.io">Support</a>
|
<a href="http://support.c9.io">Support</a>
|
||||||
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
|
@ -9,7 +9,9 @@
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<a href="https://docs.c9.io">Documentation</a> |
|
<a href="https://docs.c9.io">Documentation</a> |
|
||||||
<a href="http://status.c9.io">Server Status</a> |
|
<a href="http://status.c9.io">Server Status</a> |
|
||||||
|
<% if (!standalone) { %>
|
||||||
<a href="http://support.c9.io">Support</a>
|
<a href="http://support.c9.io">Support</a>
|
||||||
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -116,6 +116,7 @@ function plugin(options, imports, register) {
|
||||||
architectConfig: getConfig(configName, opts),
|
architectConfig: getConfig(configName, opts),
|
||||||
configName: configName,
|
configName: configName,
|
||||||
packed: opts.packed,
|
packed: opts.packed,
|
||||||
|
standalone: true,
|
||||||
version: opts.version
|
version: opts.version
|
||||||
}, next);
|
}, next);
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue