hedgequantx 2.9.56 → 2.9.57
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/pages/algo/ui.js +14 -4
- package/src/ui/index.js +6 -2
package/package.json
CHANGED
package/src/pages/algo/ui.js
CHANGED
|
@@ -135,9 +135,14 @@ class AlgoUI {
|
|
|
135
135
|
this._line(chalk.cyan(BOX.V) + chalk.cyan(' ██║ ██║███████╗██████╔╝╚██████╔╝███████╗╚██████╔╝╚██████╔╝██║ ██║██║ ╚████║ ██║ ') + chalk.yellow('██╔╝ ██╗') + ' ' + chalk.cyan(BOX.V));
|
|
136
136
|
this._line(chalk.cyan(BOX.V) + chalk.cyan(' ╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝ ╚══════╝ ╚══▀▀═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ') + chalk.yellow('╚═╝ ╚═╝') + ' ' + chalk.cyan(BOX.V));
|
|
137
137
|
|
|
138
|
-
// Separator + title
|
|
138
|
+
// Separator + title with version in magenta
|
|
139
139
|
this._line(chalk.cyan(BOX.ML + BOX.H.repeat(W) + BOX.MR));
|
|
140
|
-
|
|
140
|
+
const titleText = 'PROP FUTURES ALGO TRADING';
|
|
141
|
+
const versionText = `V${version}`;
|
|
142
|
+
const fullTitle = `${titleText} ${versionText}`;
|
|
143
|
+
const titlePad = W - fullTitle.length;
|
|
144
|
+
const titleLeftPad = Math.floor(titlePad / 2);
|
|
145
|
+
this._line(chalk.cyan(BOX.V) + ' '.repeat(titleLeftPad) + chalk.yellow(titleText) + ' ' + chalk.magenta(versionText) + ' '.repeat(titlePad - titleLeftPad) + chalk.cyan(BOX.V));
|
|
141
146
|
this._line(chalk.cyan(BOX.ML + BOX.H.repeat(W) + BOX.MR));
|
|
142
147
|
this._line(chalk.cyan(BOX.V) + chalk.cyan.bold(center((this.config.subtitle || 'HQX ALGO TRADING').toUpperCase(), W)) + chalk.cyan(BOX.V));
|
|
143
148
|
}
|
|
@@ -397,9 +402,14 @@ const renderSessionSummary = (stats, stopReason) => {
|
|
|
397
402
|
console.log(chalk.cyan(BOX.V) + chalk.cyan(' ██║ ██║███████╗██████╔╝╚██████╔╝███████╗╚██████╔╝╚██████╔╝██║ ██║██║ ╚████║ ██║ ') + chalk.yellow('██╔╝ ██╗') + ' ' + chalk.cyan(BOX.V));
|
|
398
403
|
console.log(chalk.cyan(BOX.V) + chalk.cyan(' ╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝ ╚══════╝ ╚══▀▀═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ') + chalk.yellow('╚═╝ ╚═╝') + ' ' + chalk.cyan(BOX.V));
|
|
399
404
|
|
|
400
|
-
// Separator + title
|
|
405
|
+
// Separator + title with version in magenta
|
|
401
406
|
console.log(chalk.cyan(BOX.ML + BOX.H.repeat(W) + BOX.MR));
|
|
402
|
-
|
|
407
|
+
const sumTitleText = 'PROP FUTURES ALGO TRADING';
|
|
408
|
+
const sumVersionText = `V${version}`;
|
|
409
|
+
const sumFullTitle = `${sumTitleText} ${sumVersionText}`;
|
|
410
|
+
const sumTitlePad = W - sumFullTitle.length;
|
|
411
|
+
const sumTitleLeftPad = Math.floor(sumTitlePad / 2);
|
|
412
|
+
console.log(chalk.cyan(BOX.V) + ' '.repeat(sumTitleLeftPad) + chalk.yellow(sumTitleText) + ' ' + chalk.magenta(sumVersionText) + ' '.repeat(sumTitlePad - sumTitleLeftPad) + chalk.cyan(BOX.V));
|
|
403
413
|
console.log(chalk.cyan(BOX.ML + BOX.H.repeat(W) + BOX.MR));
|
|
404
414
|
console.log(chalk.cyan(BOX.V) + chalk.yellow(center('SESSION SUMMARY', W)) + chalk.cyan(BOX.V));
|
|
405
415
|
|
package/src/ui/index.js
CHANGED
|
@@ -69,8 +69,12 @@ const displayBanner = () => {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
console.log(chalk.cyan('╠' + '═'.repeat(innerWidth) + '╣'));
|
|
72
|
-
const
|
|
73
|
-
|
|
72
|
+
const taglineText = isMobile ? 'HQX' : 'PROP FUTURES ALGO TRADING';
|
|
73
|
+
const versionText = `V${version}`;
|
|
74
|
+
const fullTagline = `${taglineText} ${versionText}`;
|
|
75
|
+
const taglinePadding = innerWidth - fullTagline.length;
|
|
76
|
+
const taglineLeftPad = Math.floor(taglinePadding / 2);
|
|
77
|
+
console.log(chalk.cyan('║') + ' '.repeat(taglineLeftPad) + chalk.yellow(taglineText) + ' ' + chalk.magenta(versionText) + ' '.repeat(taglinePadding - taglineLeftPad) + chalk.cyan('║'));
|
|
74
78
|
|
|
75
79
|
// ALWAYS close the banner
|
|
76
80
|
console.log(chalk.cyan('╚' + '═'.repeat(innerWidth) + '╝'));
|