opencode-statboard 2.10.6 → 2.10.8
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/tui-dashboard.js +8 -4
package/package.json
CHANGED
package/tui-dashboard.js
CHANGED
|
@@ -398,8 +398,13 @@ class TUIServer {
|
|
|
398
398
|
|
|
399
399
|
openWeb() {
|
|
400
400
|
const url = 'http://' + this.host + ':' + this.port;
|
|
401
|
-
|
|
402
|
-
|
|
401
|
+
if (process.platform === 'win32') {
|
|
402
|
+
spawn('cmd', ['/c', 'start', '""', url], { detached: true, stdio: 'ignore' }).unref();
|
|
403
|
+
} else if (process.platform === 'darwin') {
|
|
404
|
+
spawn('open', [url], { detached: true, stdio: 'ignore' }).unref();
|
|
405
|
+
} else {
|
|
406
|
+
spawn('xdg-open', [url], { detached: true, stdio: 'ignore' }).unref();
|
|
407
|
+
}
|
|
403
408
|
}
|
|
404
409
|
|
|
405
410
|
getContentWidth() {
|
|
@@ -638,8 +643,7 @@ class TUIServer {
|
|
|
638
643
|
out += line + '\n';
|
|
639
644
|
}
|
|
640
645
|
|
|
641
|
-
out += '\n{gray}Less \u2591\u2591\u2592\u2592\u2593\u2593\u2588\u2588 More (max: ' + this.formatNumber(max) + '){/gray}';
|
|
642
|
-
return out;
|
|
646
|
+
out += '\n{gray}Less {cyan-fg}\u00B7\u00B7{/}{green-fg}\u2591\u2591{/}{yellow-fg}\u2592\u2592{/}{magenta-fg}\u2593\u2593{/}{red-fg}\u2588\u2588{/} More (max: ' + this.formatNumber(max) + '){/gray}';
|
|
643
647
|
return out;
|
|
644
648
|
}
|
|
645
649
|
|