mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-26 14:05:04 +08:00
# Conflicts: # jsowell-ui/.env.development # jsowell-ui/.env.staging # jsowell-ui/bin/build-sit.bat # jsowell-ui/bin/build.bat # jsowell-ui/src/api/adapayMember/adapayMember.js # jsowell-ui/src/api/pile/merchant.js # jsowell-ui/src/router/index.js # jsowell-ui/src/views/financial/financeDetail.vue # jsowell-ui/src/views/financial/merchant.vue # jsowell-ui/src/views/homeIndex/homeIndex.vue # jsowell-ui/src/views/login.vue # jsowell-ui/src/views/pile/basic/detail.vue # jsowell-ui/src/views/pile/station/components/SiteInfo.vue # jsowell-ui/src/views/pile/station/detail.vue # jsowell-ui/src/views/pile/station/orderReport.vue
76 lines
1.3 KiB
JavaScript
76 lines
1.3 KiB
JavaScript
"use strict";
|
|
|
|
// Generated by CoffeeScript 2.5.1
|
|
var codes, styles;
|
|
module.exports = styles = {};
|
|
styles.codes = codes = {
|
|
'none': 0,
|
|
'black': 30,
|
|
'red': 31,
|
|
'green': 32,
|
|
'yellow': 33,
|
|
'blue': 34,
|
|
'magenta': 35,
|
|
'cyan': 36,
|
|
'white': 37,
|
|
'grey': 90,
|
|
'bright-red': 91,
|
|
'bright-green': 92,
|
|
'bright-yellow': 93,
|
|
'bright-blue': 94,
|
|
'bright-magenta': 95,
|
|
'bright-cyan': 96,
|
|
'bright-white': 97,
|
|
'bg-black': 40,
|
|
'bg-red': 41,
|
|
'bg-green': 42,
|
|
'bg-yellow': 43,
|
|
'bg-blue': 44,
|
|
'bg-magenta': 45,
|
|
'bg-cyan': 46,
|
|
'bg-white': 47,
|
|
'bg-grey': 100,
|
|
'bg-bright-red': 101,
|
|
'bg-bright-green': 102,
|
|
'bg-bright-yellow': 103,
|
|
'bg-bright-blue': 104,
|
|
'bg-bright-magenta': 105,
|
|
'bg-bright-cyan': 106,
|
|
'bg-bright-white': 107
|
|
};
|
|
|
|
styles.color = function (str) {
|
|
var code;
|
|
|
|
if (str === 'none') {
|
|
return '';
|
|
}
|
|
|
|
code = codes[str];
|
|
|
|
if (code == null) {
|
|
throw Error("Unknown color `".concat(str, "`"));
|
|
}
|
|
|
|
return "\x1b[" + code + "m";
|
|
};
|
|
|
|
styles.bg = function (str) {
|
|
var code;
|
|
|
|
if (str === 'none') {
|
|
return '';
|
|
}
|
|
|
|
code = codes['bg-' + str];
|
|
|
|
if (code == null) {
|
|
throw Error("Unknown bg color `".concat(str, "`"));
|
|
}
|
|
|
|
return "\x1B[" + code + "m";
|
|
};
|
|
|
|
styles.none = function (str) {
|
|
return "\x1B[" + codes.none + "m";
|
|
}; |