hedgequantx 1.2.32 → 1.2.34
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/app.js +14 -11
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -63,16 +63,16 @@ const banner = async () => {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
// Draw logo
|
|
66
|
+
// Draw logo HEDGEQUANTX
|
|
67
67
|
console.log(chalk.cyan('╔' + '═'.repeat(innerWidth) + '╗'));
|
|
68
68
|
|
|
69
69
|
const logo = [
|
|
70
|
-
'██╗
|
|
71
|
-
'██║
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'██║
|
|
75
|
-
'╚═╝
|
|
70
|
+
'██╗ ██╗███████╗██████╗ ██████╗ ███████╗ ██████╗ ██╗ ██╗ █████╗ ███╗ ██╗████████╗',
|
|
71
|
+
'██║ ██║██╔════╝██╔══██╗██╔════╝ ██╔════╝██╔═══██╗██║ ██║██╔══██╗████╗ ██║╚══██╔══╝',
|
|
72
|
+
'███████║█████╗ ██║ ██║██║ ███╗█████╗ ██║ ██║██║ ██║███████║██╔██╗ ██║ ██║ ',
|
|
73
|
+
'██╔══██║██╔══╝ ██║ ██║██║ ██║██╔══╝ ██║▄▄ ██║██║ ██║██╔══██║██║╚██╗██║ ██║ ',
|
|
74
|
+
'██║ ██║███████╗██████╔╝╚██████╔╝███████╗╚██████╔╝╚██████╔╝██║ ██║██║ ╚████║ ██║ ',
|
|
75
|
+
'╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝ ╚══════╝ ╚══▀▀═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ '
|
|
76
76
|
];
|
|
77
77
|
const logoX = [
|
|
78
78
|
'██╗ ██╗',
|
|
@@ -193,17 +193,20 @@ const projectXMenu = async () => {
|
|
|
193
193
|
console.log(chalk.cyan('║') + chalk.white.bold(centerText('SELECT PROPFIRM', innerWidth)) + chalk.cyan('║'));
|
|
194
194
|
console.log(chalk.cyan('║') + ' '.repeat(innerWidth) + chalk.cyan('║'));
|
|
195
195
|
|
|
196
|
-
// Display in 3 columns
|
|
196
|
+
// Display in 3 columns with fixed width alignment
|
|
197
197
|
const rows = Math.ceil(numbered.length / numCols);
|
|
198
|
+
const maxNum = numbered.length;
|
|
199
|
+
const numWidth = maxNum >= 10 ? 4 : 3; // [XX] or [X]
|
|
200
|
+
|
|
198
201
|
for (let row = 0; row < rows; row++) {
|
|
199
202
|
let line = '';
|
|
200
203
|
for (let col = 0; col < numCols; col++) {
|
|
201
204
|
const idx = row + col * rows;
|
|
202
205
|
if (idx < numbered.length) {
|
|
203
206
|
const item = numbered[idx];
|
|
204
|
-
const
|
|
205
|
-
const coloredText = chalk.cyan(`[${
|
|
206
|
-
const textLen =
|
|
207
|
+
const numStr = item.num.toString().padStart(2, ' ');
|
|
208
|
+
const coloredText = chalk.cyan(`[${numStr}]`) + ' ' + chalk.white(item.name);
|
|
209
|
+
const textLen = 4 + 1 + item.name.length; // [XX] + space + name
|
|
207
210
|
const padding = colWidth - textLen - 2;
|
|
208
211
|
line += ' ' + coloredText + ' '.repeat(Math.max(0, padding));
|
|
209
212
|
} else {
|