kopia lustrzana https://github.com/c9/core
Doc based fixes
rodzic
47171cb993
commit
7c1d0cfccf
10
package.json
10
package.json
|
@ -60,7 +60,7 @@
|
|||
"c9.ide.language.javascript.tern": "#7aab8b0b6a",
|
||||
"c9.ide.language.javascript.infer": "#ebb2daf81a",
|
||||
"c9.ide.language.jsonalyzer": "#d82c60fcb9",
|
||||
"c9.ide.collab": "#7c770ca148",
|
||||
"c9.ide.collab": "#7009f69cb0",
|
||||
"c9.ide.local": "#2bfd7ff051",
|
||||
"c9.ide.find": "#989c06e6a7",
|
||||
"c9.ide.find.infiles": "#f98dfef554",
|
||||
|
@ -78,7 +78,7 @@
|
|||
"c9.ide.configuration": "#b8470f4107",
|
||||
"c9.ide.dialog.wizard": "#a588b64050",
|
||||
"c9.ide.fontawesome": "#781602c5d8",
|
||||
"c9.ide.format": "#1ae38e60e6",
|
||||
"c9.ide.format": "#4295dcca4d",
|
||||
"c9.ide.help.support": "#60e88f5680",
|
||||
"c9.ide.imgeditor": "#08bbc53578",
|
||||
"c9.ide.immediate": "#e9ba147cc2",
|
||||
|
@ -87,9 +87,9 @@
|
|||
"c9.ide.navigate": "#64156c7f4a",
|
||||
"c9.ide.newresource": "#9a7464cc47",
|
||||
"c9.ide.openfiles": "#28a4f5af16",
|
||||
"c9.ide.preview": "#f6d1bd9921",
|
||||
"c9.ide.preview.browser": "#be197b0464",
|
||||
"c9.ide.preview.markdown": "#bf952685f6",
|
||||
"c9.ide.preview": "#dba2f4214d",
|
||||
"c9.ide.preview.browser": "#ac18aaf31d",
|
||||
"c9.ide.preview.markdown": "#ab8d30ad9f",
|
||||
"c9.ide.pubsub": "#92ec19ed3a",
|
||||
"c9.ide.readonly": "#f6f07bbe42",
|
||||
"c9.ide.recentfiles": "#7c099abf40",
|
||||
|
|
|
@ -2,7 +2,7 @@ define(function(require, exports, module) {
|
|||
main.consumes = [
|
||||
"PreferencePanel", "commands", "settings", "ui", "util", "Form",
|
||||
"c9", "dialog.alert", "tabManager", "save", "dialog.confirm", "layout",
|
||||
"preferences", "menus"
|
||||
"menus" // "preferenced"
|
||||
];
|
||||
main.provides = ["preferences.keybindings"];
|
||||
return main;
|
||||
|
@ -12,7 +12,7 @@ define(function(require, exports, module) {
|
|||
var commands = imports.commands;
|
||||
var settings = imports.settings;
|
||||
var layout = imports.layout;
|
||||
var preferences = imports.preferences;
|
||||
// var preferences = imports.preferences;
|
||||
var ui = imports.ui;
|
||||
var c9 = imports.c9;
|
||||
var util = imports.util;
|
||||
|
@ -32,7 +32,7 @@ define(function(require, exports, module) {
|
|||
|
||||
var plugin = new PreferencePanel("Ajax.org", main.consumes, {
|
||||
caption: "Keybindings",
|
||||
className: "keybindings",
|
||||
className: "keybindings flatform",
|
||||
form: true,
|
||||
noscroll: true,
|
||||
index: 200
|
||||
|
@ -211,7 +211,7 @@ define(function(require, exports, module) {
|
|||
node: container = new ui.bar({
|
||||
anchors: "269 0 0 0",
|
||||
"class" : "keybindings",
|
||||
style: "padding:44px 10px 10px 10px;position:relative"
|
||||
style: "padding:44px 10px 10px 10px"
|
||||
})
|
||||
}
|
||||
], commands);
|
||||
|
@ -509,16 +509,19 @@ define(function(require, exports, module) {
|
|||
});
|
||||
plugin.on("resize", function(e) {
|
||||
datagrid && datagrid.resize();
|
||||
});
|
||||
plugin.on("enable", function() {
|
||||
|
||||
});
|
||||
plugin.on("disable", function() {
|
||||
|
||||
});
|
||||
plugin.on("unload", function() {
|
||||
loaded = false;
|
||||
drawn = false;
|
||||
|
||||
model = null;
|
||||
datagrid = null;
|
||||
changed = null;
|
||||
container = null;
|
||||
filterbox = null;
|
||||
appliedCustomSets = null;
|
||||
intro = null;
|
||||
reloading = null;
|
||||
});
|
||||
|
||||
/***** Register and define API *****/
|
||||
|
|
|
@ -23,7 +23,7 @@ define(function(require, exports, module) {
|
|||
var emit = plugin.getEmitter();
|
||||
emit.setMaxListeners(1000);
|
||||
|
||||
var navHtml, intro;
|
||||
var intro;
|
||||
|
||||
var loaded = false;
|
||||
function load() {
|
||||
|
@ -44,7 +44,7 @@ define(function(require, exports, module) {
|
|||
prefs.on("add", function(e) {
|
||||
if (!("Project" in e.state))
|
||||
plugin.add(e.state, e.plugin);
|
||||
});
|
||||
}, plugin);
|
||||
}
|
||||
|
||||
var drawn = false;
|
||||
|
@ -52,8 +52,6 @@ define(function(require, exports, module) {
|
|||
if (drawn) return;
|
||||
drawn = true;
|
||||
|
||||
navHtml = e.navHtml;
|
||||
|
||||
plugin.add({
|
||||
"General" : {
|
||||
position: 10,
|
||||
|
@ -71,7 +69,7 @@ define(function(require, exports, module) {
|
|||
+ "Cloud9 will return to it's original configuration",
|
||||
function(){
|
||||
settings.reset();
|
||||
}, function(){})
|
||||
}, function(){});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -109,8 +107,8 @@ define(function(require, exports, module) {
|
|||
+ '<p class="hint">These settings are synced across all your workspaces.</p>';
|
||||
|
||||
intro.$int.querySelector("a").onclick = function(){
|
||||
emit("edit")
|
||||
}
|
||||
emit("edit");
|
||||
};
|
||||
}
|
||||
|
||||
/***** Methods *****/
|
||||
|
@ -123,16 +121,11 @@ define(function(require, exports, module) {
|
|||
});
|
||||
plugin.on("draw", function(e) {
|
||||
draw(e);
|
||||
});
|
||||
plugin.on("enable", function() {
|
||||
|
||||
});
|
||||
plugin.on("disable", function() {
|
||||
|
||||
});
|
||||
plugin.on("unload", function() {
|
||||
loaded = false;
|
||||
drawn = false;
|
||||
intro = null;
|
||||
});
|
||||
|
||||
/***** Register and define API *****/
|
||||
|
|
|
@ -261,7 +261,7 @@ define(function(require, module, exports) {
|
|||
"textarea" : 400,
|
||||
"checked-spinner" : 50
|
||||
}
|
||||
});
|
||||
}, plugin);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -148,14 +148,15 @@
|
|||
.bar-preferences .keybindings{
|
||||
min-height: 250px;
|
||||
}
|
||||
.bar-preferences .keybindings .container > .hsplitbox, .bar-preferences .keybindings .container > .basic{
|
||||
.bar-preferences .flatform .container > .hsplitbox,
|
||||
.bar-preferences .flatform .container > .basic{
|
||||
border-top : 1px solid @preferences-border-top-color-light;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.bar-preferences .keybindings .intro when(@preferences-flat){
|
||||
margin-bottom: 8px !important;
|
||||
}
|
||||
.bar-preferences .keybindings .container > .hsplitbox:last-child when(@preferences-flat){
|
||||
.bar-preferences .flatform .container > .hsplitbox:last-child when(@preferences-flat){
|
||||
height: 49px !important;
|
||||
}
|
||||
.bar-preferences .container>.hsplitbox:last-child{
|
||||
|
|
|
@ -21,7 +21,7 @@ define(function(require, exports, module) {
|
|||
var emit = plugin.getEmitter();
|
||||
emit.setMaxListeners(1000);
|
||||
|
||||
var navHtml, intro;
|
||||
var intro;
|
||||
|
||||
var loaded = false;
|
||||
function load() {
|
||||
|
@ -42,12 +42,12 @@ define(function(require, exports, module) {
|
|||
prefs.on("add", function(e) {
|
||||
if ("Project" in e.state)
|
||||
plugin.add(e.state, e.plugin);
|
||||
});
|
||||
}, plugin);
|
||||
|
||||
prefs.on("draw", function(e) {
|
||||
if (!prefs.activePanel)
|
||||
prefs.activate(plugin);
|
||||
});
|
||||
}, plugin);
|
||||
}
|
||||
|
||||
var drawn = false;
|
||||
|
@ -65,8 +65,6 @@ define(function(require, exports, module) {
|
|||
intro.$int.querySelector("a").onclick = function(){
|
||||
emit("edit");
|
||||
}
|
||||
|
||||
navHtml = e.navHtml;
|
||||
}
|
||||
|
||||
/***** Methods *****/
|
||||
|
@ -78,16 +76,11 @@ define(function(require, exports, module) {
|
|||
});
|
||||
plugin.on("draw", function(e) {
|
||||
draw(e);
|
||||
});
|
||||
plugin.on("enable", function() {
|
||||
|
||||
});
|
||||
plugin.on("disable", function() {
|
||||
|
||||
});
|
||||
plugin.on("unload", function() {
|
||||
loaded = false;
|
||||
drawn = false;
|
||||
intro = null;
|
||||
});
|
||||
|
||||
/***** Register and define API *****/
|
||||
|
|
|
@ -10,7 +10,7 @@ define(function(require, exports, module) {
|
|||
|
||||
/***** Initialization *****/
|
||||
|
||||
function Form(options) {
|
||||
function Form(options, forPlugin) {
|
||||
var plugin = new Plugin("Ajax.org", main.consumes);
|
||||
var emit = plugin.getEmitter();
|
||||
|
||||
|
@ -41,6 +41,9 @@ define(function(require, exports, module) {
|
|||
|
||||
if (options.form)
|
||||
add(options.form);
|
||||
|
||||
if (forPlugin)
|
||||
forPlugin.addOther(function(){ plugin.unload(); });
|
||||
}
|
||||
|
||||
var drawn = false;
|
||||
|
@ -412,7 +415,14 @@ define(function(require, exports, module) {
|
|||
dropdown.setAttribute("value", item.value);
|
||||
break;
|
||||
default:
|
||||
if ("value" in item)
|
||||
el.lastChild.setAttribute('value', item.value);
|
||||
if ("onclick" in item)
|
||||
el.lastChild.onclick = item.onclick;
|
||||
if ("visible" in item)
|
||||
el.lastChild.setAttribute("visible", item.visible)
|
||||
if ("zindex" in item)
|
||||
el.lastChild.setAttribute("zindex", item.zindex)
|
||||
break;
|
||||
}
|
||||
})
|
||||
|
|
|
@ -40,6 +40,12 @@ define(function(require, module, exports) {
|
|||
apf.Class.prototype.emit = apf.Class.prototype.dispatchEvent;
|
||||
apf.Class.prototype.off = apf.Class.prototype.removeEventListener;
|
||||
|
||||
Object.defineProperty(apf.Class.prototype, '$html', {
|
||||
get: function() { return this.$int || this.$container || this.$ext; },
|
||||
enumerable: false,
|
||||
configurable: false
|
||||
});
|
||||
|
||||
apf.preProcessCSS = insertLess;
|
||||
|
||||
// Load a basic document into APF
|
||||
|
|
Ładowanie…
Reference in New Issue