hedgequantx 2.9.213 → 2.9.214
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 +11 -5
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -179,17 +179,23 @@ const run = async () => {
|
|
|
179
179
|
// First launch - show banner then try restore session
|
|
180
180
|
await banner();
|
|
181
181
|
|
|
182
|
-
const spinner = ora({ text: '
|
|
182
|
+
const spinner = ora({ text: 'Restoring session...', color: 'cyan' }).start();
|
|
183
183
|
|
|
184
184
|
const restored = await connections.restoreFromStorage();
|
|
185
185
|
|
|
186
186
|
if (restored) {
|
|
187
|
-
|
|
187
|
+
const conn = connections.getAll()[0];
|
|
188
|
+
currentService = conn.service;
|
|
189
|
+
const accountCount = currentService.accounts?.length || 0;
|
|
190
|
+
spinner.succeed(`Session restored: ${conn.propfirm} (${accountCount} accounts)`);
|
|
191
|
+
await new Promise(r => setTimeout(r, 500));
|
|
192
|
+
|
|
193
|
+
const spinner2 = ora({ text: 'Loading dashboard...', color: 'yellow' }).start();
|
|
188
194
|
await refreshStats();
|
|
189
|
-
|
|
190
|
-
global.__hqxSpinner = spinner;
|
|
195
|
+
global.__hqxSpinner = spinner2;
|
|
191
196
|
} else {
|
|
192
|
-
spinner.
|
|
197
|
+
spinner.info('No saved session - please login');
|
|
198
|
+
await new Promise(r => setTimeout(r, 500));
|
|
193
199
|
global.__hqxSpinner = null;
|
|
194
200
|
}
|
|
195
201
|
|