diff --git a/static/index.html b/static/index.html index 2947d5d..f76a50d 100644 --- a/static/index.html +++ b/static/index.html @@ -41,7 +41,10 @@

goprocmgr

diff --git a/static/script.js b/static/script.js index 669cadc..eefc9d7 100644 --- a/static/script.js +++ b/static/script.js @@ -56,6 +56,15 @@ document.addEventListener('alpine:init', () => { countLogsByOutput(name, output) { return this.getServer(name).logs.filter(log => log.output === output).length }, + formatTimestamp(timestamp) { + // Format the timestamp to HH:MM:SS + return new Date(timestamp).toLocaleTimeString([], { + hour: '2-digit', + minute: '2-digit', + second: '2-digit', + hour12: false, + }) + }, handleKeyEvents() { if (this.keyEvent.key === 'Escape') { this.selectedServer = null diff --git a/static/style.css b/static/style.css index 978f8b4..a216a55 100644 --- a/static/style.css +++ b/static/style.css @@ -126,6 +126,10 @@ body { padding: 0; } +#app div#content ul#logs-wrapper li span.timestamp { + font-weight: bold; +} + #app div#content ul#logs-wrapper li.stdout { background-color: var(--stdout-bg-color); }