diff --git a/maubot/management/frontend/src/pages/dashboard/Log.js b/maubot/management/frontend/src/pages/dashboard/Log.js index a4e8d0b..01b011e 100644 --- a/maubot/management/frontend/src/pages/dashboard/Log.js +++ b/maubot/management/frontend/src/pages/dashboard/Log.js @@ -50,10 +50,25 @@ class LogEntry extends PureComponent { return this.props.line.msg } + onClickOpen(path, line) { + return () => { + if (api.debugOpenFileEnabled()) { + api.debugOpenFile(path, line) + } + return false + } + } + + renderTimeTitle() { + return this.props.line.time.toDateString() + } + renderTime() { - return + return {this.props.line.time.toLocaleTimeString("en-GB")} - + } renderLevelName() { @@ -88,10 +103,9 @@ class LogEntry extends PureComponent { /File "(.+)", line ([0-9]+), in (.+)/g, (_, file, line, method) => { fileLinks.push( - { - api.debugOpenFile(file, line) - return false - }}>File "{file}", line {line}, in {method}, + + File "{file}", line {line}, in {method} + , ) return "||EDGE||" })