@ritwikamit/cl8 0.1.0-alpha.10 → 0.1.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pixel-logo.d.ts","sourceRoot":"","sources":["../../src/ui/pixel-logo.ts"],"names":[],"mappings":"AAgBA,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"pixel-logo.d.ts","sourceRoot":"","sources":["../../src/ui/pixel-logo.ts"],"names":[],"mappings":"AAgBA,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAKlD"}
|
package/dist/ui/pixel-logo.js
CHANGED
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.renderLogo = renderLogo;
|
|
7
7
|
const gradient_string_1 = __importDefault(require("gradient-string"));
|
|
8
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
9
8
|
const LOGO_LINES = [
|
|
10
9
|
' ██████ ██ ██████ ',
|
|
11
10
|
'██ ██ ██ ██',
|
|
@@ -19,14 +18,6 @@ const GRADIENT = (0, gradient_string_1.default)(['#00AAFF', '#9333EA', '#FF6BCB'
|
|
|
19
18
|
function renderLogo(columns) {
|
|
20
19
|
const pad = Math.max(0, Math.floor((columns - WIDTH) / 2));
|
|
21
20
|
const prefix = ' '.repeat(pad);
|
|
22
|
-
|
|
23
|
-
lines.push(prefix + chalk_1.default.dim('┌' + '─'.repeat(WIDTH - 2) + '┐'));
|
|
24
|
-
for (const line of LOGO_LINES) {
|
|
25
|
-
const trimmed = line.trimEnd();
|
|
26
|
-
const colored = trimmed ? GRADIENT(trimmed) : trimmed;
|
|
27
|
-
lines.push(prefix + chalk_1.default.dim('│') + ' ' + colored + ' ' + chalk_1.default.dim('│'));
|
|
28
|
-
}
|
|
29
|
-
lines.push(prefix + chalk_1.default.dim('└' + '─'.repeat(WIDTH - 2) + '┘'));
|
|
30
|
-
return lines.join('\n');
|
|
21
|
+
return LOGO_LINES.map(line => prefix + GRADIENT(line.trimEnd())).join('\n');
|
|
31
22
|
}
|
|
32
23
|
//# sourceMappingURL=pixel-logo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pixel-logo.js","sourceRoot":"","sources":["../../src/ui/pixel-logo.ts"],"names":[],"mappings":";;;;;AAgBA,
|
|
1
|
+
{"version":3,"file":"pixel-logo.js","sourceRoot":"","sources":["../../src/ui/pixel-logo.ts"],"names":[],"mappings":";;;;;AAgBA,gCAKC;AArBD,sEAAuC;AAGvC,MAAM,UAAU,GAAG;IACjB,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;CAC9B,CAAC;AAEF,MAAM,KAAK,GAAG,EAAE,CAAC;AACjB,MAAM,MAAM,GAAG,CAAC,CAAC;AAEjB,MAAM,QAAQ,GAAG,IAAA,yBAAQ,EAAC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;AAE7D,SAAgB,UAAU,CAAC,OAAe;IACxC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC3D,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAE/B,OAAO,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9E,CAAC"}
|