настройка webpack
This commit is contained in:
21
node_modules/renderkid/lib/layout/block/blockAppendor/Default.js
generated
vendored
Normal file
21
node_modules/renderkid/lib/layout/block/blockAppendor/Default.js
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
// Generated by CoffeeScript 1.9.3
|
||||
var DefaultBlockAppendor, tools,
|
||||
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;
|
||||
|
||||
tools = require('../../../tools');
|
||||
|
||||
module.exports = DefaultBlockAppendor = (function(superClass) {
|
||||
extend(DefaultBlockAppendor, superClass);
|
||||
|
||||
function DefaultBlockAppendor() {
|
||||
return DefaultBlockAppendor.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
DefaultBlockAppendor.prototype._render = function(options) {
|
||||
return tools.repeatString("\n", this._config.amount);
|
||||
};
|
||||
|
||||
return DefaultBlockAppendor;
|
||||
|
||||
})(require('./_BlockAppendor'));
|
||||
15
node_modules/renderkid/lib/layout/block/blockAppendor/_BlockAppendor.js
generated
vendored
Normal file
15
node_modules/renderkid/lib/layout/block/blockAppendor/_BlockAppendor.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
// Generated by CoffeeScript 1.9.3
|
||||
var _BlockAppendor;
|
||||
|
||||
module.exports = _BlockAppendor = (function() {
|
||||
function _BlockAppendor(_config) {
|
||||
this._config = _config;
|
||||
}
|
||||
|
||||
_BlockAppendor.prototype.render = function(options) {
|
||||
return this._render(options);
|
||||
};
|
||||
|
||||
return _BlockAppendor;
|
||||
|
||||
})();
|
||||
21
node_modules/renderkid/lib/layout/block/blockPrependor/Default.js
generated
vendored
Normal file
21
node_modules/renderkid/lib/layout/block/blockPrependor/Default.js
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
// Generated by CoffeeScript 1.9.3
|
||||
var DefaultBlockPrependor, tools,
|
||||
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;
|
||||
|
||||
tools = require('../../../tools');
|
||||
|
||||
module.exports = DefaultBlockPrependor = (function(superClass) {
|
||||
extend(DefaultBlockPrependor, superClass);
|
||||
|
||||
function DefaultBlockPrependor() {
|
||||
return DefaultBlockPrependor.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
DefaultBlockPrependor.prototype._render = function(options) {
|
||||
return tools.repeatString("\n", this._config.amount);
|
||||
};
|
||||
|
||||
return DefaultBlockPrependor;
|
||||
|
||||
})(require('./_BlockPrependor'));
|
||||
15
node_modules/renderkid/lib/layout/block/blockPrependor/_BlockPrependor.js
generated
vendored
Normal file
15
node_modules/renderkid/lib/layout/block/blockPrependor/_BlockPrependor.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
// Generated by CoffeeScript 1.9.3
|
||||
var _BlockPrependor;
|
||||
|
||||
module.exports = _BlockPrependor = (function() {
|
||||
function _BlockPrependor(_config) {
|
||||
this._config = _config;
|
||||
}
|
||||
|
||||
_BlockPrependor.prototype.render = function(options) {
|
||||
return this._render(options);
|
||||
};
|
||||
|
||||
return _BlockPrependor;
|
||||
|
||||
})();
|
||||
21
node_modules/renderkid/lib/layout/block/lineAppendor/Default.js
generated
vendored
Normal file
21
node_modules/renderkid/lib/layout/block/lineAppendor/Default.js
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
// Generated by CoffeeScript 1.9.3
|
||||
var DefaultLineAppendor, tools,
|
||||
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;
|
||||
|
||||
tools = require('../../../tools');
|
||||
|
||||
module.exports = DefaultLineAppendor = (function(superClass) {
|
||||
extend(DefaultLineAppendor, superClass);
|
||||
|
||||
function DefaultLineAppendor() {
|
||||
return DefaultLineAppendor.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
DefaultLineAppendor.prototype._render = function(inherited, options) {
|
||||
return inherited + tools.repeatString(" ", this._config.amount);
|
||||
};
|
||||
|
||||
return DefaultLineAppendor;
|
||||
|
||||
})(require('./_LineAppendor'));
|
||||
17
node_modules/renderkid/lib/layout/block/lineAppendor/_LineAppendor.js
generated
vendored
Normal file
17
node_modules/renderkid/lib/layout/block/lineAppendor/_LineAppendor.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Generated by CoffeeScript 1.9.3
|
||||
var _LineAppendor;
|
||||
|
||||
module.exports = _LineAppendor = (function() {
|
||||
function _LineAppendor(_config) {
|
||||
this._config = _config;
|
||||
this._lineNo = 0;
|
||||
}
|
||||
|
||||
_LineAppendor.prototype.render = function(inherited, options) {
|
||||
this._lineNo++;
|
||||
return '<none>' + this._render(inherited, options) + '</none>';
|
||||
};
|
||||
|
||||
return _LineAppendor;
|
||||
|
||||
})();
|
||||
58
node_modules/renderkid/lib/layout/block/linePrependor/Default.js
generated
vendored
Normal file
58
node_modules/renderkid/lib/layout/block/linePrependor/Default.js
generated
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
// Generated by CoffeeScript 1.9.3
|
||||
var DefaultLinePrependor, SpecialString, tools,
|
||||
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;
|
||||
|
||||
tools = require('../../../tools');
|
||||
|
||||
SpecialString = require('../../SpecialString');
|
||||
|
||||
module.exports = DefaultLinePrependor = (function(superClass) {
|
||||
var self;
|
||||
|
||||
extend(DefaultLinePrependor, superClass);
|
||||
|
||||
function DefaultLinePrependor() {
|
||||
return DefaultLinePrependor.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
self = DefaultLinePrependor;
|
||||
|
||||
DefaultLinePrependor.pad = function(howMuch) {
|
||||
return tools.repeatString(" ", howMuch);
|
||||
};
|
||||
|
||||
DefaultLinePrependor.prototype._render = function(inherited, options) {
|
||||
var addToLeft, addToRight, alignment, bullet, char, charLen, diff, left, output, space, toWrite;
|
||||
if (this._lineNo === 0 && (bullet = this._config.bullet)) {
|
||||
char = bullet.char;
|
||||
charLen = SpecialString(char).length;
|
||||
alignment = bullet.alignment;
|
||||
space = this._config.amount;
|
||||
toWrite = char;
|
||||
addToLeft = '';
|
||||
addToRight = '';
|
||||
if (space > charLen) {
|
||||
diff = space - charLen;
|
||||
if (alignment === 'right') {
|
||||
addToLeft = self.pad(diff);
|
||||
} else if (alignment === 'left') {
|
||||
addToRight = self.pad(diff);
|
||||
} else if (alignment === 'center') {
|
||||
left = Math.round(diff / 2);
|
||||
addToLeft = self.pad(left);
|
||||
addToRight = self.pad(diff - left);
|
||||
} else {
|
||||
throw Error("Unknown alignment `" + alignment + "`");
|
||||
}
|
||||
}
|
||||
output = addToLeft + char + addToRight;
|
||||
} else {
|
||||
output = self.pad(this._config.amount);
|
||||
}
|
||||
return inherited + output;
|
||||
};
|
||||
|
||||
return DefaultLinePrependor;
|
||||
|
||||
})(require('./_LinePrependor'));
|
||||
17
node_modules/renderkid/lib/layout/block/linePrependor/_LinePrependor.js
generated
vendored
Normal file
17
node_modules/renderkid/lib/layout/block/linePrependor/_LinePrependor.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Generated by CoffeeScript 1.9.3
|
||||
var _LinePrependor;
|
||||
|
||||
module.exports = _LinePrependor = (function() {
|
||||
function _LinePrependor(_config) {
|
||||
this._config = _config;
|
||||
this._lineNo = -1;
|
||||
}
|
||||
|
||||
_LinePrependor.prototype.render = function(inherited, options) {
|
||||
this._lineNo++;
|
||||
return '<none>' + this._render(inherited, options) + '</none>';
|
||||
};
|
||||
|
||||
return _LinePrependor;
|
||||
|
||||
})();
|
||||
17
node_modules/renderkid/lib/layout/block/lineWrapper/Default.js
generated
vendored
Normal file
17
node_modules/renderkid/lib/layout/block/lineWrapper/Default.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Generated by CoffeeScript 1.9.3
|
||||
var DefaultLineWrapper,
|
||||
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;
|
||||
|
||||
module.exports = DefaultLineWrapper = (function(superClass) {
|
||||
extend(DefaultLineWrapper, superClass);
|
||||
|
||||
function DefaultLineWrapper() {
|
||||
return DefaultLineWrapper.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
DefaultLineWrapper.prototype._render = function() {};
|
||||
|
||||
return DefaultLineWrapper;
|
||||
|
||||
})(require('./_LineWrapper'));
|
||||
13
node_modules/renderkid/lib/layout/block/lineWrapper/_LineWrapper.js
generated
vendored
Normal file
13
node_modules/renderkid/lib/layout/block/lineWrapper/_LineWrapper.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
// Generated by CoffeeScript 1.9.3
|
||||
var _LineWrapper;
|
||||
|
||||
module.exports = _LineWrapper = (function() {
|
||||
function _LineWrapper() {}
|
||||
|
||||
_LineWrapper.prototype.render = function(str, options) {
|
||||
return this._render(str, options);
|
||||
};
|
||||
|
||||
return _LineWrapper;
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user