Add HTTPProber widget and API to display website statuses
This commit is contained in:
@@ -38,6 +38,7 @@ func initWidgets(ctx context.Context, term *tcell.Terminal) {
|
||||
widgets.New("Wifi", widgets.WifiQRCode()),
|
||||
widgets.New("NetworkDevices", widgets.NetworkDevices()),
|
||||
widgets.New("Docker", widgets.DockerList()),
|
||||
widgets.New("HTTPProber", widgets.HTTPProber()),
|
||||
widgets.New("PiHole", widgets.PiholeStats()),
|
||||
widgets.New("PiHoleBlocked", widgets.PiholeBlocked()),
|
||||
)
|
||||
@@ -104,6 +105,13 @@ func layout() []container.Option {
|
||||
),
|
||||
),
|
||||
grid.ColWidthPerc(35,
|
||||
grid.RowHeightPerc(20,
|
||||
grid.Widget(widgets.Get["HTTPProber"],
|
||||
container.BorderTitle("Website Status"),
|
||||
container.Border(linestyle.Light),
|
||||
container.BorderColor(cell.ColorWhite),
|
||||
),
|
||||
),
|
||||
grid.RowHeightPerc(25,
|
||||
grid.Widget(widgets.Get["Docker"],
|
||||
container.BorderTitle("Docker"),
|
||||
|
||||
Reference in New Issue
Block a user