kopia lustrzana https://github.com/c9/core
Merge remote-tracking branch 'origin/master' into user-domain
Conflicts: Makefile npm-shrinkwrap.jsonpull/223/head
commit
88c9baaf62
|
@ -299,8 +299,17 @@ require.undef = function(module, recursive) {
|
||||||
|
|
||||||
function undefAll(module, hash) {
|
function undefAll(module, hash) {
|
||||||
Object.keys(hash).forEach(function(key) {
|
Object.keys(hash).forEach(function(key) {
|
||||||
|
var i = key.indexOf("!") + 1;
|
||||||
if (key.lastIndexOf(module, 0) == 0)
|
if (key.lastIndexOf(module, 0) == 0)
|
||||||
require.undef(key);
|
require.undef(key);
|
||||||
|
if (i) {
|
||||||
|
var plugin = key.slice(0, i - 1);
|
||||||
|
var resource = key.slice(i);
|
||||||
|
if (resource.lastIndexOf(module, 0) == 0 || plugin.lastIndexOf(module, 0) == 0) {
|
||||||
|
require.undef(key);
|
||||||
|
require.undef(resource);
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "c9",
|
"name": "c9",
|
||||||
"description": "New Cloud9 Client",
|
"description": "New Cloud9 Client",
|
||||||
"version": "3.0.2867",
|
"version": "3.1.8",
|
||||||
"author": "Ajax.org B.V. <info@ajax.org>",
|
"author": "Ajax.org B.V. <info@ajax.org>",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "bin/c9",
|
"main": "bin/c9",
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
"c9.ide.language.javascript.eslint": "#df7e424b54",
|
"c9.ide.language.javascript.eslint": "#df7e424b54",
|
||||||
"c9.ide.language.javascript.tern": "#40cf04bded",
|
"c9.ide.language.javascript.tern": "#40cf04bded",
|
||||||
"c9.ide.language.javascript.infer": "#8478e3c702",
|
"c9.ide.language.javascript.infer": "#8478e3c702",
|
||||||
"c9.ide.language.jsonalyzer": "#d44cb13695",
|
"c9.ide.language.jsonalyzer": "#8401c240b3",
|
||||||
"c9.ide.collab": "#a8e597ae5e",
|
"c9.ide.collab": "#a8e597ae5e",
|
||||||
"c9.ide.local": "#a6e689e33b",
|
"c9.ide.local": "#a6e689e33b",
|
||||||
"c9.ide.find": "#35379124ca",
|
"c9.ide.find": "#35379124ca",
|
||||||
|
@ -75,14 +75,14 @@
|
||||||
"c9.automate": "#47e2c429c9",
|
"c9.automate": "#47e2c429c9",
|
||||||
"c9.ide.ace.emmet": "#6dc4585e02",
|
"c9.ide.ace.emmet": "#6dc4585e02",
|
||||||
"c9.ide.ace.gotoline": "#a8ff07c8f4",
|
"c9.ide.ace.gotoline": "#a8ff07c8f4",
|
||||||
"c9.ide.ace.keymaps": "#bf6d36213f",
|
"c9.ide.ace.keymaps": "#2e3c6e3c8f",
|
||||||
"c9.ide.ace.repl": "#7989bbd07f",
|
"c9.ide.ace.repl": "#7989bbd07f",
|
||||||
"c9.ide.ace.split": "#0ae0151c78",
|
"c9.ide.ace.split": "#0ae0151c78",
|
||||||
"c9.ide.ace.statusbar": "#d95be89d53",
|
"c9.ide.ace.statusbar": "#d95be89d53",
|
||||||
"c9.ide.ace.stripws": "#cf0f42ac59",
|
"c9.ide.ace.stripws": "#cf0f42ac59",
|
||||||
"c9.ide.behaviors": "#e2c7f68242",
|
"c9.ide.behaviors": "#e2c7f68242",
|
||||||
"c9.ide.closeconfirmation": "#cee4674141",
|
"c9.ide.closeconfirmation": "#cee4674141",
|
||||||
"c9.ide.configuration": "#382b61f4ab",
|
"c9.ide.configuration": "#a9066299a2",
|
||||||
"c9.ide.dialog.wizard": "#7667ec79a8",
|
"c9.ide.dialog.wizard": "#7667ec79a8",
|
||||||
"c9.ide.fontawesome": "#781602c5d8",
|
"c9.ide.fontawesome": "#781602c5d8",
|
||||||
"c9.ide.format": "#b0bb91a623",
|
"c9.ide.format": "#b0bb91a623",
|
||||||
|
|
|
@ -267,19 +267,21 @@ define(function(require, exports, module) {
|
||||||
if (!json.categories || json.categories.length == 0)
|
if (!json.categories || json.categories.length == 0)
|
||||||
return callback(new Error("ERROR: At least one category is required in package.json"));
|
return callback(new Error("ERROR: At least one category is required in package.json"));
|
||||||
|
|
||||||
|
var description = json.description;
|
||||||
|
|
||||||
|
if (description)
|
||||||
|
console.warn("WARNING: Description property in package.json will be ignored. README.md will be used.");
|
||||||
|
|
||||||
// Validate README.md
|
// Validate README.md
|
||||||
if (!fs.existsSync(join(cwd, "README.md"))) {
|
if (fs.existsSync(join(cwd, "README.md"))) {
|
||||||
|
description = fs.readFileSync(join(cwd, "README.md"), "utf8")
|
||||||
|
.replace(/^\#.*\n*/, "");
|
||||||
|
} else {
|
||||||
console.warn("WARNING: README.md is missing.");
|
console.warn("WARNING: README.md is missing.");
|
||||||
if (!force)
|
if (!force)
|
||||||
return callback(new Error("Use --force to ignore these warnings."));
|
return callback(new Error("Use --force to ignore these warnings."));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (json.description)
|
|
||||||
console.warn("WARNING: Description property in package.json will be ignored. README.md will be used.");
|
|
||||||
|
|
||||||
var description = fs.readFileSync(join(cwd, "README.md"), "utf8")
|
|
||||||
.replace(/^\#.*\n*/, "");
|
|
||||||
|
|
||||||
// Validate plugins
|
// Validate plugins
|
||||||
var plugins = {};
|
var plugins = {};
|
||||||
|
|
||||||
|
|
|
@ -292,29 +292,33 @@ define(function(require, exports, module) {
|
||||||
// Validation
|
// Validation
|
||||||
var toNode = findNode(newPath);
|
var toNode = findNode(newPath);
|
||||||
|
|
||||||
if (parent) { // Dir is in cache
|
deleteNode(node, true);
|
||||||
|
if (toNode)
|
||||||
|
deleteNode(toNode, true);
|
||||||
|
|
||||||
|
createNode(newPath, null, node); // Move node
|
||||||
|
recurPathUpdate(node, oldPath, newPath);
|
||||||
|
|
||||||
|
e.undo = function(){
|
||||||
|
if (!parent) {
|
||||||
|
var tmpParent = node;
|
||||||
|
while (node.parent && tmpParent.parent.status == "pending")
|
||||||
|
tmpParent = tmpParent.parent;
|
||||||
|
if (tmpParent)
|
||||||
|
deleteNode(tmpParent, true);
|
||||||
|
}
|
||||||
|
deleteNode(node, true);
|
||||||
if (toNode)
|
if (toNode)
|
||||||
deleteNode(toNode);
|
createNode(newPath, null, toNode);
|
||||||
|
|
||||||
createNode(newPath, null, node); // Move node
|
createNode(oldPath, null, node);
|
||||||
recurPathUpdate(node, oldPath, newPath);
|
recurPathUpdate(node, newPath, oldPath);
|
||||||
|
};
|
||||||
e.undo = function(){
|
e.confirm = function() {
|
||||||
createNode(oldPath, null, node);
|
if (node.status === "predicted")
|
||||||
recurPathUpdate(node, newPath, oldPath);
|
node.status = "loaded";
|
||||||
|
};
|
||||||
if (toNode)
|
node.status = "predicted";
|
||||||
createNode(newPath, null, toNode);
|
|
||||||
};
|
|
||||||
e.confirm = function() {
|
|
||||||
if (node.status === "predicted")
|
|
||||||
node.status = "loaded";
|
|
||||||
};
|
|
||||||
node.status = "predicted";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
removeSingleNode(e);
|
|
||||||
}
|
|
||||||
}, plugin);
|
}, plugin);
|
||||||
fs.on("afterRename", afterHandler, plugin);
|
fs.on("afterRename", afterHandler, plugin);
|
||||||
|
|
||||||
|
@ -553,10 +557,6 @@ define(function(require, exports, module) {
|
||||||
node.status = "loaded";
|
node.status = "loaded";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isFolder && !node.map)
|
|
||||||
node.map = {};
|
|
||||||
else if (!isFolder && node.map)
|
|
||||||
delete node.map;
|
|
||||||
if (stat.size != undefined)
|
if (stat.size != undefined)
|
||||||
node.size = stat.size;
|
node.size = stat.size;
|
||||||
if (stat.mtime != undefined)
|
if (stat.mtime != undefined)
|
||||||
|
@ -566,6 +566,11 @@ define(function(require, exports, module) {
|
||||||
node.isFolder = isFolder;
|
node.isFolder = isFolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (node.isFolder && !node.map)
|
||||||
|
node.map = {};
|
||||||
|
else if (!node.isFolder && node.map)
|
||||||
|
delete node.map;
|
||||||
|
|
||||||
node.children = null;
|
node.children = null;
|
||||||
|
|
||||||
if (!updating) {
|
if (!updating) {
|
||||||
|
|
|
@ -618,8 +618,8 @@ define(function(require, exports, module) {
|
||||||
return isAvailable ? isAvailable(editor.ace) : true;
|
return isAvailable ? isAvailable(editor.ace) : true;
|
||||||
};
|
};
|
||||||
|
|
||||||
command.findEditor = function(editor) {
|
command.findEditor = function(editor, e) {
|
||||||
if (apf.activeElement && apf.activeElement.ace && apf.activeElement.ace.isFocused())
|
if (e && apf.activeElement && apf.activeElement.ace && apf.activeElement.ace.isFocused())
|
||||||
return apf.activeElement.ace;
|
return apf.activeElement.ace;
|
||||||
return editor && editor.ace || editor;
|
return editor && editor.ace || editor;
|
||||||
};
|
};
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<p textselect="true">
|
<p textselect="true">
|
||||||
Arron Bailiss, Bas de Wachter, Dana Ivan, Fabian Jakobs, Harutyun Amirjanyan,
|
Arron Bailiss, Bas de Wachter, Dana Ivan, Fabian Jakobs, Harutyun Amirjanyan,
|
||||||
Ivar Pruijn, Justin Dray, Lennart Kats, Luca Cipriani,
|
Ivar Pruijn, Justin Dray, Lennart Kats, Luca Cipriani,
|
||||||
Mostafa Eweda, Matthijs van Henten, Nikolai Onken, Tim Robinson, Ruben Daniels
|
Mostafa Eweda, Matthijs van Henten, Nikolai Onken, Suraj Biyani, Tim Robinson, Ruben Daniels
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="c9Copyright">
|
<div class="c9Copyright">
|
||||||
|
|
|
@ -127,10 +127,10 @@ define(function(require, exports, module) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.isAvailable && !command.isAvailable(editor, args, e))
|
if (command.isAvailable && !command.isAvailable(editor, args, e))
|
||||||
return; //Disable commands for other contexts
|
return; // Disable commands for other contexts
|
||||||
|
|
||||||
if (command.findEditor)
|
if (command.findEditor)
|
||||||
editor = command.findEditor(editor);
|
editor = command.findEditor(editor, e);
|
||||||
|
|
||||||
if (editor && editor.$readOnly && !command.readOnly)
|
if (editor && editor.$readOnly && !command.readOnly)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -47,9 +47,9 @@ module.exports = function(manifest, installPath, settingDir) {
|
||||||
// config.update.port = "8888"
|
// config.update.port = "8888"
|
||||||
// config.update.host = "http"
|
// config.update.host = "http"
|
||||||
|
|
||||||
config.nodeBin = [process.platform == "win32"
|
// config.nodeBin = [process.platform == "win32"
|
||||||
? path.join(process.execPath, "..\\node.exe")
|
// ? path.join(process.execPath, "..\\node.exe")
|
||||||
: path.join(installPath, "node/bin/node")];
|
// : path.join(installPath, "node/bin/node")];
|
||||||
config.bashBin = process.platform == "win32"
|
config.bashBin = process.platform == "win32"
|
||||||
? process.env.C9_BASH_BIN || "C:\\cygwin\\bin\\bash.exe"
|
? process.env.C9_BASH_BIN || "C:\\cygwin\\bin\\bash.exe"
|
||||||
: "/bin/bash";
|
: "/bin/bash";
|
||||||
|
|
Ładowanie…
Reference in New Issue