mirror of
https://github.com/screentinker/screentinker.git
synced 2026-06-29 09:23:16 -06:00
fix(server): boot banner shows the real version, not a hardcoded v1.2.0
The startup ASCII banner printed "ScreenTinker Server v1.2.0". Use the already-imported
VERSION (require('./version'), the single source of truth that reads the root VERSION
file) in a fixed-width field (VERSION.padEnd(22).slice(0, 22) — the same padEnd
discipline the port line uses) so the fixed-width box border stays aligned for any
version length. No other behavior changes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
10298d8a18
commit
f1f3d45221
|
|
@ -742,7 +742,7 @@ const protocol = hasSsl ? 'https' : 'http';
|
|||
server.listen(listenPort, '0.0.0.0', () => {
|
||||
console.log(`
|
||||
╔══════════════════════════════════════════════════╗
|
||||
║ ScreenTinker Server v1.2.0 ║
|
||||
║ ScreenTinker Server v${VERSION.padEnd(22).slice(0, 22)}║
|
||||
║──────────────────────────────────────────────────║
|
||||
║ Dashboard: ${protocol}://localhost:${String(listenPort).padEnd(5)} ║
|
||||
║ API: ${protocol}://localhost:${String(listenPort).padEnd(5)}/api ║
|
||||
|
|
|
|||
Loading…
Reference in a new issue