hedgequantx 2.4.40 → 2.4.42
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 +9 -3
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -241,10 +241,10 @@ const run = async () => {
|
|
|
241
241
|
while (true) {
|
|
242
242
|
try {
|
|
243
243
|
prepareStdin();
|
|
244
|
-
console.clear();
|
|
245
|
-
await banner(false);
|
|
246
244
|
|
|
247
245
|
if (!connections.isConnected()) {
|
|
246
|
+
console.clear();
|
|
247
|
+
await banner(false);
|
|
248
248
|
const choice = await mainMenu();
|
|
249
249
|
|
|
250
250
|
if (choice === 'exit') {
|
|
@@ -262,8 +262,14 @@ const run = async () => {
|
|
|
262
262
|
await refreshStats();
|
|
263
263
|
}
|
|
264
264
|
} else {
|
|
265
|
-
//
|
|
265
|
+
// Show spinner while refreshing stats
|
|
266
|
+
const spinner = ora({ text: 'LOADING...', color: 'cyan' }).start();
|
|
266
267
|
await refreshStats();
|
|
268
|
+
spinner.stop();
|
|
269
|
+
|
|
270
|
+
// Clear and display dashboard
|
|
271
|
+
console.clear();
|
|
272
|
+
await banner(false);
|
|
267
273
|
|
|
268
274
|
const action = await dashboardMenu(currentService);
|
|
269
275
|
|