This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+17 -9
View File
@@ -1,8 +1,8 @@
// Generated by CoffeeScript 1.9.3
"use strict";
// Generated by CoffeeScript 2.5.1
var codes, styles;
module.exports = styles = {};
styles.codes = codes = {
'none': 0,
'black': 30,
@@ -39,30 +39,38 @@ styles.codes = codes = {
'bg-bright-white': 107
};
styles.color = function(str) {
styles.color = function (str) {
var code;
if (str === 'none') {
return '';
}
code = codes[str];
if (code == null) {
throw Error("Unknown color `" + str + "`");
throw Error("Unknown color `".concat(str, "`"));
}
return "\x1b[" + code + "m";
};
styles.bg = function(str) {
styles.bg = function (str) {
var code;
if (str === 'none') {
return '';
}
code = codes['bg-' + str];
if (code == null) {
throw Error("Unknown bg color `" + str + "`");
throw Error("Unknown bg color `".concat(str, "`"));
}
return "\x1B[" + code + "m";
};
styles.none = function(str) {
styles.none = function (str) {
return "\x1B[" + codes.none + "m";
};
};
+6 -6
View File
@@ -1,6 +1,7 @@
// Generated by CoffeeScript 1.9.3
var color, colors, i, len, tags;
"use strict";
// Generated by CoffeeScript 2.5.1
var color, colors, i, len, tags;
module.exports = tags = {
'none': {
color: 'none',
@@ -15,7 +16,6 @@ module.exports = tags = {
bg: 'inherit'
}
};
colors = ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white', 'grey', 'bright-red', 'bright-green', 'bright-yellow', 'bright-blue', 'bright-magenta', 'bright-cyan', 'bright-white'];
for (i = 0, len = colors.length; i < len; i++) {
@@ -24,12 +24,12 @@ for (i = 0, len = colors.length; i < len; i++) {
color: color,
bg: 'inherit'
};
tags["color-" + color] = {
tags["color-".concat(color)] = {
color: color,
bg: 'inherit'
};
tags["bg-" + color] = {
tags["bg-".concat(color)] = {
color: 'inherit',
bg: color
};
}
}