create-flow-os 0.0.47-dev.1772043862 → 0.0.47-dev.1772043910
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.
- package/package.json +1 -1
- package/src/init/ui.ts +9 -9
package/package.json
CHANGED
package/src/init/ui.ts
CHANGED
|
@@ -9,7 +9,7 @@ const E = "\x1b[91m";
|
|
|
9
9
|
const R = "\x1b[0m";
|
|
10
10
|
const B = "\x1b[1m";
|
|
11
11
|
const DIM = "\x1b[2m";
|
|
12
|
-
const W = "\x1b[97m"; // bianco
|
|
12
|
+
const W = "\x1b[97m"; // bianco (solo per headerLogo)
|
|
13
13
|
|
|
14
14
|
const FRAMES = "⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏";
|
|
15
15
|
|
|
@@ -29,20 +29,20 @@ export function bannerBox(title: string, lines: string[], color: string, w = 50)
|
|
|
29
29
|
const innerW = w - 4;
|
|
30
30
|
const half = Math.max(0, Math.floor((innerW - innerLen) / 2));
|
|
31
31
|
const rest = innerW - half - innerLen;
|
|
32
|
-
const top = c + "╭" + "─".repeat(half) + inner +
|
|
33
|
-
const bottom = c + "╰" +
|
|
34
|
-
const emptyLine = c + "│" + R + " " + " ".repeat(innerW) + c + "│" + R;
|
|
35
|
-
const bodyLines = lines.map((l) => c + "│" + R + " " + pad(l, innerW) + c + "│" + R);
|
|
32
|
+
const top = c + "╭" + "─".repeat(half) + inner + "─".repeat(rest) + "╮" + R;
|
|
33
|
+
const bottom = c + "╰" + "─".repeat(innerW) + "╯" + R;
|
|
34
|
+
const emptyLine = c + "│" + R + " " + " ".repeat(innerW - 2) + c + "│" + R;
|
|
35
|
+
const bodyLines = lines.map((l) => c + "│" + R + " " + pad(l, innerW - 2) + c + "│" + R);
|
|
36
36
|
return "\n" + top + "\n" + emptyLine + "\n" + bodyLines.join("\n") + "\n" + bottom + "\n";
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export function box(lines: string[], color: string, w = 50): string {
|
|
40
40
|
const c = color;
|
|
41
41
|
const innerW = w - 4;
|
|
42
|
-
const top = c + "╭" +
|
|
43
|
-
const bottom = c + "╰" +
|
|
44
|
-
const emptyLine = c + "│" + R + " " + " ".repeat(innerW) + c + "│" + R;
|
|
45
|
-
const body = lines.map((l) => c + "│" + R + " " + pad(l, innerW) + c + "│" + R).join("\n");
|
|
42
|
+
const top = c + "╭" + "─".repeat(innerW) + "╮" + R;
|
|
43
|
+
const bottom = c + "╰" + "─".repeat(innerW) + "╯" + R;
|
|
44
|
+
const emptyLine = c + "│" + R + " " + " ".repeat(innerW - 2) + c + "│" + R;
|
|
45
|
+
const body = lines.map((l) => c + "│" + R + " " + pad(l, innerW - 2) + c + "│" + R).join("\n");
|
|
46
46
|
return "\n" + top + "\n" + emptyLine + "\n" + body + "\n" + bottom + "\n";
|
|
47
47
|
}
|
|
48
48
|
|