Started work on Embeds

This commit is contained in:
hydrabolt
2015-10-29 14:30:34 +00:00
parent 1af1d71643
commit cefbcd05af
9 changed files with 115 additions and 0 deletions

9
lib/Embed.js Normal file
View File

@@ -0,0 +1,9 @@
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Embed = function Embed(data) {
_classCallCheck(this, Embed);
};
module.exports = Embed;

9
lib/Embeds/Embed.js Normal file
View File

@@ -0,0 +1,9 @@
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Embed = function Embed(data) {
_classCallCheck(this, Embed);
};
module.exports = Embed;

21
lib/Embeds/ImageEmbed.js Normal file
View File

@@ -0,0 +1,21 @@
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var Embed = require("./Embed.js");
var ImageEmbed = (function (_Embed) {
_inherits(ImageEmbed, _Embed);
function ImageEmbed(data) {
_classCallCheck(this, ImageEmbed);
_Embed.call(this, data);
}
return ImageEmbed;
})(Embed);
module.exports = ImageEmbed;

21
lib/Embeds/LinkEmbed.js Normal file
View File

@@ -0,0 +1,21 @@
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var Embed = require("./Embed.js");
var LinkEmbed = (function (_Embed) {
_inherits(LinkEmbed, _Embed);
function LinkEmbed(data) {
_classCallCheck(this, LinkEmbed);
_Embed.call(this, data);
}
return LinkEmbed;
})(Embed);
module.exports = LinkEmbed;

21
lib/Embeds/VideoEmbed.js Normal file
View File

@@ -0,0 +1,21 @@
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var Embed = require("./Embed.js");
var VideoEmbed = (function (_Embed) {
_inherits(VideoEmbed, _Embed);
function VideoEmbed(data) {
_classCallCheck(this, VideoEmbed);
_Embed.call(this, data);
}
return VideoEmbed;
})(Embed);
module.exports = VideoEmbed;

7
src/Embeds/Embed.js Normal file
View File

@@ -0,0 +1,7 @@
class Embed{
constructor(data){
}
}
module.exports = Embed;

9
src/Embeds/ImageEmbed.js Normal file
View File

@@ -0,0 +1,9 @@
var Embed = require("./Embed.js");
class ImageEmbed extends Embed{
constructor(data){
super(data);
}
}
module.exports = ImageEmbed;

9
src/Embeds/LinkEmbed.js Normal file
View File

@@ -0,0 +1,9 @@
var Embed = require("./Embed.js");
class LinkEmbed extends Embed{
constructor(data){
super(data);
}
}
module.exports = LinkEmbed;

9
src/Embeds/VideoEmbed.js Normal file
View File

@@ -0,0 +1,9 @@
var Embed = require("./Embed.js");
class VideoEmbed extends Embed{
constructor(data){
super(data);
}
}
module.exports = VideoEmbed;