kopia lustrzana https://github.com/c9/core
Add terminal to sdk
rodzic
317a915a91
commit
058320dddb
|
@ -0,0 +1,45 @@
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
module.exports = function(options) {
|
||||||
|
var plugins = require("./client-default")(options);
|
||||||
|
|
||||||
|
// TODO: cleanup unneeded plugins?
|
||||||
|
var includes = [];
|
||||||
|
var excludes = {};
|
||||||
|
|
||||||
|
plugins.forEach(function(p) {
|
||||||
|
if (p.packagePath && p.packagePath.indexOf("c9.core/settings") >= 0) {
|
||||||
|
p.settings = "defaults";
|
||||||
|
p.template = {
|
||||||
|
user: {},
|
||||||
|
project: {},
|
||||||
|
state: {
|
||||||
|
console: {
|
||||||
|
"@maximized": true,
|
||||||
|
type: "pane",
|
||||||
|
nodes: []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else if (p.packagePath == "plugins/c9.ide.console/console") {
|
||||||
|
p.defaultState = {
|
||||||
|
type: "pane",
|
||||||
|
nodes: [{
|
||||||
|
type: "tab",
|
||||||
|
editorType: "terminal",
|
||||||
|
active: "true"
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
plugins = plugins
|
||||||
|
.concat(includes)
|
||||||
|
.filter(function (p) {
|
||||||
|
return !excludes[p] && !excludes[p.packagePath];
|
||||||
|
});
|
||||||
|
|
||||||
|
return plugins;
|
||||||
|
};
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
module.exports = function(options, optimist) {
|
||||||
|
var config = require("./standalone")(options, optimist);
|
||||||
|
|
||||||
|
// TODO: cleanup unneeded plugins?
|
||||||
|
|
||||||
|
options.client_config = "default-terminal";
|
||||||
|
|
||||||
|
return config;
|
||||||
|
};
|
||||||
|
|
||||||
|
if (!module.parent) require("../server")([__filename].concat(process.argv.slice(2)));
|
Ładowanie…
Reference in New Issue