finish logs page
This commit is contained in:
parent
0d8d324ac6
commit
d39d52d95d
22 changed files with 564 additions and 250 deletions
|
|
@ -9,17 +9,12 @@ import (
|
|||
var LogsPage PageID = "logs"
|
||||
|
||||
func NewLogsPage() tea.Model {
|
||||
p := layout.NewSinglePane(
|
||||
logs.NewLogsTable(),
|
||||
layout.WithSinglePaneFocusable(true),
|
||||
layout.WithSinglePaneBordered(true),
|
||||
layout.WithSignlePaneBorderText(
|
||||
map[layout.BorderPosition]string{
|
||||
layout.TopMiddleBorder: "Logs",
|
||||
},
|
||||
),
|
||||
layout.WithSinglePanePadding(1),
|
||||
return layout.NewBentoLayout(
|
||||
layout.BentoPanes{
|
||||
layout.BentoRightTopPane: logs.NewLogsTable(),
|
||||
layout.BentoRightBottomPane: logs.NewLogsDetails(),
|
||||
},
|
||||
layout.WithBentoLayoutCurrentPane(layout.BentoRightTopPane),
|
||||
layout.WithBentoLayoutRightTopHeightRatio(0.5),
|
||||
)
|
||||
p.Focus()
|
||||
return p
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue