kopia lustrzana https://github.com/c9/core
commit
82b64cecc5
|
@ -83,7 +83,7 @@
|
||||||
"c9.ide.imgeditor": "#08bbc53578",
|
"c9.ide.imgeditor": "#08bbc53578",
|
||||||
"c9.ide.immediate": "#e9ba147cc2",
|
"c9.ide.immediate": "#e9ba147cc2",
|
||||||
"c9.ide.installer": "#24e7d6f399",
|
"c9.ide.installer": "#24e7d6f399",
|
||||||
"c9.ide.mount": "#c9d598b254",
|
"c9.ide.mount": "#32e79866ee",
|
||||||
"c9.ide.navigate": "#1ff8b463aa",
|
"c9.ide.navigate": "#1ff8b463aa",
|
||||||
"c9.ide.newresource": "#9a7464cc47",
|
"c9.ide.newresource": "#9a7464cc47",
|
||||||
"c9.ide.openfiles": "#28a4f5af16",
|
"c9.ide.openfiles": "#28a4f5af16",
|
||||||
|
|
|
@ -391,6 +391,8 @@ define(function(require, exports, module) {
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if (!baseclass) {
|
if (!baseclass) {
|
||||||
|
delete this.baseclass;
|
||||||
|
delete this.freezePublicAPI.baseclass;
|
||||||
delete this.freezePublicAPI;
|
delete this.freezePublicAPI;
|
||||||
delete this.setAPIKey;
|
delete this.setAPIKey;
|
||||||
delete this.getEmitter;
|
delete this.getEmitter;
|
||||||
|
@ -401,6 +403,7 @@ define(function(require, exports, module) {
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
var baseclass;
|
var baseclass;
|
||||||
|
this.baseclass =
|
||||||
this.freezePublicAPI.baseclass = function(){ baseclass = true; };
|
this.freezePublicAPI.baseclass = function(){ baseclass = true; };
|
||||||
|
|
||||||
function getElement(name, callback) {
|
function getElement(name, callback) {
|
||||||
|
@ -611,7 +614,7 @@ define(function(require, exports, module) {
|
||||||
|
|
||||||
/***** Register and define API *****/
|
/***** Register and define API *****/
|
||||||
|
|
||||||
this.freezePublicAPI.baseclass();
|
this.baseclass();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for all Plugins of Cloud9. A Cloud9 Plugin is
|
* Base class for all Plugins of Cloud9. A Cloud9 Plugin is
|
||||||
|
|
|
@ -74,11 +74,14 @@ define(function(require, module, exports) {
|
||||||
var modal = options.modal;
|
var modal = options.modal;
|
||||||
var zindex = options.zindex;
|
var zindex = options.zindex;
|
||||||
var allowClose = options.allowClose;
|
var allowClose = options.allowClose;
|
||||||
var elements = options.elements;
|
var elements = options.elements || [];
|
||||||
var resizable = options.resizable || false;
|
var resizable = options.resizable || false;
|
||||||
var widths = options.widths || {};
|
var widths = options.widths || {};
|
||||||
var count = 0;
|
var count = 0;
|
||||||
|
|
||||||
|
if (custom === undefined)
|
||||||
|
custom = !(body || heading);
|
||||||
|
|
||||||
var dialog, buttons, titles;
|
var dialog, buttons, titles;
|
||||||
|
|
||||||
var loaded;
|
var loaded;
|
||||||
|
@ -148,9 +151,14 @@ define(function(require, module, exports) {
|
||||||
buttons = plugin.getElement("buttons");
|
buttons = plugin.getElement("buttons");
|
||||||
|
|
||||||
// Create dynamic UI elements
|
// Create dynamic UI elements
|
||||||
elements.forEach(function(item) {
|
if (elements.length) {
|
||||||
createItem(null, null, item);
|
elements.forEach(function(item) {
|
||||||
});
|
createItem(null, null, item);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
buttons.parentNode.removeChild(buttons);
|
||||||
|
}
|
||||||
|
|
||||||
emit.sticky("draw", {
|
emit.sticky("draw", {
|
||||||
aml: titles,
|
aml: titles,
|
||||||
|
@ -175,7 +183,7 @@ define(function(require, module, exports) {
|
||||||
implementation();
|
implementation();
|
||||||
|
|
||||||
// Update UI
|
// Update UI
|
||||||
if (!custom) {
|
if (!custom && (heading || body)) {
|
||||||
titles.$int.innerHTML = "<h3 style='margin:0 0 10px 0'>"
|
titles.$int.innerHTML = "<h3 style='margin:0 0 10px 0'>"
|
||||||
+ heading + "</h3><div class='alertMsg'>"
|
+ heading + "</h3><div class='alertMsg'>"
|
||||||
+ body + "</div>";
|
+ body + "</div>";
|
||||||
|
|
|
@ -1591,7 +1591,7 @@
|
||||||
@upload-frame-item-color: #e1e1e1;
|
@upload-frame-item-color: #e1e1e1;
|
||||||
|
|
||||||
// Mount
|
// Mount
|
||||||
@mount-container-padding: 18px 10px 12px 10px;
|
@mount-container-padding: 8px 0px 2px 0px;
|
||||||
@mount-loading-background: rgba(0,0,0,0.5);
|
@mount-loading-background: rgba(0,0,0,0.5);
|
||||||
@mount-loading-color: #f1f1f1;
|
@mount-loading-color: #f1f1f1;
|
||||||
|
|
||||||
|
|
|
@ -1591,7 +1591,7 @@
|
||||||
@upload-frame-item-color: #e1e1e1;
|
@upload-frame-item-color: #e1e1e1;
|
||||||
|
|
||||||
// Mount
|
// Mount
|
||||||
@mount-container-padding: 18px 10px 12px 10px;
|
@mount-container-padding: 8px 0px 2px 0px;
|
||||||
@mount-loading-background: rgba(0,0,0,0.5);
|
@mount-loading-background: rgba(0,0,0,0.5);
|
||||||
@mount-loading-color: #f1f1f1;
|
@mount-loading-color: #f1f1f1;
|
||||||
|
|
||||||
|
|
|
@ -1591,7 +1591,7 @@
|
||||||
@upload-frame-item-color: #333;
|
@upload-frame-item-color: #333;
|
||||||
|
|
||||||
// Mount
|
// Mount
|
||||||
@mount-container-padding: 20px;
|
@mount-container-padding: 5px 0 0 0;
|
||||||
@mount-loading-background: rgba(0, 0, 0, 0.17);
|
@mount-loading-background: rgba(0, 0, 0, 0.17);
|
||||||
@mount-loading-color: #333;
|
@mount-loading-color: #333;
|
||||||
|
|
||||||
|
|
|
@ -1591,7 +1591,7 @@
|
||||||
@upload-frame-item-color: #e1e1e1;
|
@upload-frame-item-color: #e1e1e1;
|
||||||
|
|
||||||
// Mount
|
// Mount
|
||||||
@mount-container-padding: 18px 10px 12px 10px;
|
@mount-container-padding: 8px 0px 2px 0px;
|
||||||
@mount-loading-background: rgba(0,0,0,0.5);
|
@mount-loading-background: rgba(0,0,0,0.5);
|
||||||
@mount-loading-color: #f1f1f1;
|
@mount-loading-color: #f1f1f1;
|
||||||
|
|
||||||
|
|
|
@ -1591,7 +1591,7 @@
|
||||||
@upload-frame-item-color: #e1e1e1;
|
@upload-frame-item-color: #e1e1e1;
|
||||||
|
|
||||||
// Mount
|
// Mount
|
||||||
@mount-container-padding: 18px 10px 12px 10px;
|
@mount-container-padding: 8px 0px 2px 0px;
|
||||||
@mount-loading-background: rgba(0,0,0,0.5);
|
@mount-loading-background: rgba(0,0,0,0.5);
|
||||||
@mount-loading-color: #f1f1f1;
|
@mount-loading-color: #f1f1f1;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue