mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-03 06:50:26 +00:00
chore: refactoring
This commit is contained in:
parent
2391e338b4
commit
ae86ef519c
7 changed files with 87 additions and 75 deletions
|
|
@ -66,7 +66,7 @@ func (i *detailCmp) updateContent() {
|
|||
levelStyle := getLevelStyle(i.currentLog.Level)
|
||||
|
||||
// Format timestamp
|
||||
timeStr := time.UnixMilli(i.currentLog.Timestamp).Format(time.RFC3339)
|
||||
timeStr := i.currentLog.Timestamp.Format(time.RFC3339)
|
||||
|
||||
header := lipgloss.JoinHorizontal(
|
||||
lipgloss.Center,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ package logs
|
|||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/charmbracelet/bubbles/key"
|
||||
"github.com/charmbracelet/bubbles/table"
|
||||
|
|
@ -161,7 +160,7 @@ func (i *tableCmp) updateRows() {
|
|||
|
||||
for _, log := range i.logs {
|
||||
// Format timestamp as time
|
||||
timeStr := time.UnixMilli(log.Timestamp).Format("15:04:05")
|
||||
timeStr := log.Timestamp.Format("15:04:05")
|
||||
|
||||
// Include ID as hidden first column for selection
|
||||
row := table.Row{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue