hedgequantx 1.7.9 → 1.8.1
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 +10 -2
- package/src/menus/dashboard.js +1 -1
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -133,7 +133,15 @@ const banner = async () => {
|
|
|
133
133
|
console.log(chalk.cyan('╠' + '═'.repeat(innerWidth) + '╣'));
|
|
134
134
|
const tagline = isMobile ? `HQX v${version}` : `Prop Futures Algo Trading v${version}`;
|
|
135
135
|
console.log(chalk.cyan('║') + chalk.white(centerText(tagline, innerWidth)) + chalk.cyan('║'));
|
|
136
|
-
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Display banner with closing border (for loading states)
|
|
140
|
+
*/
|
|
141
|
+
const bannerClosed = async () => {
|
|
142
|
+
await banner();
|
|
143
|
+
const boxWidth = process.stdout.columns < 60 ? Math.max(process.stdout.columns - 2, 40) : Math.max(getLogoWidth(), 98);
|
|
144
|
+
console.log(chalk.cyan('╚' + '═'.repeat(boxWidth - 2) + '╝'));
|
|
137
145
|
};
|
|
138
146
|
|
|
139
147
|
/**
|
|
@@ -152,7 +160,7 @@ const mainMenu = async () => {
|
|
|
152
160
|
console.log(chalk.cyan('║') + leftPadded + rightPadded + chalk.cyan('║'));
|
|
153
161
|
};
|
|
154
162
|
|
|
155
|
-
// Continue from banner
|
|
163
|
+
// Continue from banner (use ╠ not ╔)
|
|
156
164
|
console.log(chalk.cyan('╠' + '═'.repeat(innerWidth) + '╣'));
|
|
157
165
|
console.log(chalk.cyan('║') + chalk.white.bold(centerText('SELECT PLATFORM', innerWidth)) + chalk.cyan('║'));
|
|
158
166
|
console.log(chalk.cyan('╠' + '═'.repeat(innerWidth) + '╣'));
|
package/src/menus/dashboard.js
CHANGED
|
@@ -30,7 +30,7 @@ const dashboardMenu = async (service) => {
|
|
|
30
30
|
return chalk.cyan('║') + content + ' '.repeat(Math.max(0, padding)) + chalk.cyan('║');
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
// Continue from banner (
|
|
33
|
+
// Continue from banner (use ╠ not ╔)
|
|
34
34
|
console.log(chalk.cyan('╠' + '═'.repeat(W) + '╣'));
|
|
35
35
|
console.log(makeLine(chalk.yellow.bold('Welcome, HQX Trader!'), 'center'));
|
|
36
36
|
console.log(chalk.cyan('╠' + '═'.repeat(W) + '╣'));
|