hedgequantx 2.6.140 → 2.6.141
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 +7 -5
package/package.json
CHANGED
package/src/pages/algo/ui.js
CHANGED
|
@@ -374,7 +374,7 @@ class AlgoUI {
|
|
|
374
374
|
_drawLogs() {
|
|
375
375
|
const { W, logs, maxLogs } = this;
|
|
376
376
|
|
|
377
|
-
// Activity header
|
|
377
|
+
// Activity header with animated spinner
|
|
378
378
|
// Date is cached on first draw to prevent changes
|
|
379
379
|
if (!this.cachedDate) {
|
|
380
380
|
const nowDate = new Date();
|
|
@@ -382,9 +382,11 @@ class AlgoUI {
|
|
|
382
382
|
}
|
|
383
383
|
const dateStr = this.cachedDate;
|
|
384
384
|
|
|
385
|
-
//
|
|
386
|
-
const
|
|
387
|
-
|
|
385
|
+
// Animated spinner - advances on each render
|
|
386
|
+
const spinner = SPINNER[this.spinnerFrame % SPINNER.length];
|
|
387
|
+
this.spinnerFrame++;
|
|
388
|
+
|
|
389
|
+
const leftText = ` EXECUTION LOG ${spinner}`;
|
|
388
390
|
const rightText = `[X] STOP `;
|
|
389
391
|
|
|
390
392
|
const totalFixed = leftText.length + rightText.length;
|
|
@@ -392,7 +394,7 @@ class AlgoUI {
|
|
|
392
394
|
const centerPadLeft = Math.floor((centerSpace - dateStr.length) / 2);
|
|
393
395
|
const centerPadRight = centerSpace - dateStr.length - centerPadLeft;
|
|
394
396
|
|
|
395
|
-
const left = ` ${chalk.bold('EXECUTION LOG')} ${chalk.green(
|
|
397
|
+
const left = ` ${chalk.bold('EXECUTION LOG')} ${chalk.green(spinner)}`;
|
|
396
398
|
const center = ' '.repeat(Math.max(0, centerPadLeft)) + chalk.white.bold(dateStr) + ' '.repeat(Math.max(0, centerPadRight));
|
|
397
399
|
const right = chalk.yellow.bold('[X] STOP') + ' ';
|
|
398
400
|
|