refactor: move xmodule folder to root

- Moving xmodule folder to root as we're dissolving sub-projects of common folder in edx-platform
    - More info: https://openedx.atlassian.net/browse/BOM-2579
- -e common/lib/xmodule has been removed from the requirements as xmodule has itself become the part of edx-platform and not being installed through requirements
- The test files common/lib/xmodule/test_files/ have been removed as they are not being used anymore
This commit is contained in:
M Umar Khan
2022-05-19 21:40:48 +05:00
parent 26c8ec5c2a
commit a91df0c40f
487 changed files with 216 additions and 339 deletions

View File

@@ -0,0 +1,32 @@
// Once generated by CoffeeScript 1.9.3, but now lives as pure JS
/* eslint-disable */
(function() {
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
this.JSONEditingDescriptor = (function(superClass) {
extend(JSONEditingDescriptor, superClass);
function JSONEditingDescriptor(element) {
this.element = element;
this.edit_box = CodeMirror.fromTextArea($(".edit-box", this.element)[0], {
mode: {
name: "javascript",
json: true
},
lineNumbers: true,
lineWrapping: true
});
}
JSONEditingDescriptor.prototype.save = function() {
return {
data: JSON.parse(this.edit_box.getValue())
};
};
return JSONEditingDescriptor;
})(XModule.Descriptor);
}).call(this);

View File

@@ -0,0 +1,24 @@
// Once generated by CoffeeScript 1.9.3, but now lives as pure JS
/* eslint-disable */
(function() {
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
this.MetadataOnlyEditingDescriptor = (function(superClass) {
extend(MetadataOnlyEditingDescriptor, superClass);
function MetadataOnlyEditingDescriptor(element) {
this.element = element;
}
MetadataOnlyEditingDescriptor.prototype.save = function() {
return {
data: null
};
};
return MetadataOnlyEditingDescriptor;
})(XModule.Descriptor);
}).call(this);

View File

@@ -0,0 +1,29 @@
// Once generated by CoffeeScript 1.9.3, but now lives as pure JS
/* eslint-disable */
(function() {
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
this.XMLEditingDescriptor = (function(superClass) {
extend(XMLEditingDescriptor, superClass);
function XMLEditingDescriptor(element) {
this.element = element;
this.edit_box = CodeMirror.fromTextArea($(".edit-box", this.element)[0], {
mode: "xml",
lineNumbers: true,
lineWrapping: true
});
}
XMLEditingDescriptor.prototype.save = function() {
return {
data: this.edit_box.getValue()
};
};
return XMLEditingDescriptor;
})(XModule.Descriptor);
}).call(this);