hedgequantx 2.7.34 → 2.7.35
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 +12 -22
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -109,7 +109,7 @@ const refreshStats = async () => {
|
|
|
109
109
|
|
|
110
110
|
// ==================== BANNER ====================
|
|
111
111
|
|
|
112
|
-
const banner = async () => {
|
|
112
|
+
const banner = async (withLoading = false) => {
|
|
113
113
|
console.clear();
|
|
114
114
|
|
|
115
115
|
const termWidth = process.stdout.columns || 100;
|
|
@@ -134,16 +134,15 @@ const banner = async () => {
|
|
|
134
134
|
|
|
135
135
|
const tagline = isMobile ? `HQX v${version}` : `Prop Futures Algo Trading v${version}`;
|
|
136
136
|
console.log(chalk.cyan('║') + chalk.white(centerText(tagline, innerWidth)) + chalk.cyan('║'));
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
console.log(chalk.cyan('╚' + '═'.repeat(boxWidth - 2) + '╝'));
|
|
137
|
+
|
|
138
|
+
// Show loading message if requested
|
|
139
|
+
if (withLoading) {
|
|
140
|
+
const loadingText = ' LOADING DASHBOARD...';
|
|
141
|
+
const loadingPad = innerWidth - loadingText.length;
|
|
142
|
+
console.log(chalk.cyan('╠' + '═'.repeat(innerWidth) + '╣'));
|
|
143
|
+
console.log(chalk.cyan('║') + chalk.yellow(loadingText) + ' '.repeat(loadingPad) + chalk.cyan('║'));
|
|
144
|
+
console.log(chalk.cyan('╚' + '═'.repeat(innerWidth) + '╝'));
|
|
145
|
+
}
|
|
147
146
|
};
|
|
148
147
|
|
|
149
148
|
const getFullLogo = () => [
|
|
@@ -170,17 +169,8 @@ const run = async () => {
|
|
|
170
169
|
try {
|
|
171
170
|
log.info('Starting HQX CLI');
|
|
172
171
|
|
|
173
|
-
// First launch - show banner with loading
|
|
174
|
-
await banner();
|
|
175
|
-
const boxWidth = getLogoWidth();
|
|
176
|
-
const innerWidth = boxWidth - 2;
|
|
177
|
-
|
|
178
|
-
// Show loading inside the box (no extra borders)
|
|
179
|
-
const loadingText = ' LOADING DASHBOARD...';
|
|
180
|
-
const loadingPad = innerWidth - loadingText.length;
|
|
181
|
-
console.log(chalk.cyan('╠' + '═'.repeat(innerWidth) + '╣'));
|
|
182
|
-
console.log(chalk.cyan('║') + chalk.yellow(loadingText) + ' '.repeat(loadingPad) + chalk.cyan('║'));
|
|
183
|
-
console.log(chalk.cyan('╚' + '═'.repeat(innerWidth) + '╝'));
|
|
172
|
+
// First launch - show banner with loading (closed box)
|
|
173
|
+
await banner(true);
|
|
184
174
|
|
|
185
175
|
const restored = await connections.restoreFromStorage();
|
|
186
176
|
|