Made timestamps toggle-able in eventlog window.

This commit is contained in:
Jakob Friedl
2025-09-27 15:34:01 +02:00
parent 47799ee5f5
commit 5472019d78
2 changed files with 14 additions and 15 deletions

View File

@@ -266,19 +266,10 @@ proc draw*(component: ConsoleComponent, ws: WebSocket) =
let command = ($(addr component.inputBuffer[0])).strip()
if not command.isEmptyOrWhitespace():
component.addItem(LOG_COMMAND, command)
# For testing
# component.addItem(LOG_ERROR, "error message")
# component.addItem(LOG_SUCCESS, "success message")
# component.addItem(LOG_INFO, "info message")
# component.addItem(LOG_WARNING, "warning message")
# component.addItem(LOG_OUTPUT, "error message\nLong output\n\tindented output\nasdasd")
# TODO: Handle command execution
# console.handleCommand(command)
ws.send("CMD:" & component.agent.agentId & ":" & command)
# Send command to team server
# Add command to console history
component.history.add(command)