feat(events): listener Docker events (F-002) — auto-refresh daftar + panel Aktivitas beranda hidup
CI / test (push) Successful in 25s
CI / test (push) Successful in 25s
This commit is contained in:
1 parent
177e27910b
commit
f555f27467
8 files changed
+316
-32
No files matched your search
+2
-10
@@ -42,7 +42,8 @@ func (m Model) homeBody() string {
|
||||
row2 := lipgloss.JoinHorizontal(lipgloss.Top,
|
||||
panel(i18n.T("section.containers"), i18n.Tf("fmt.countTotal", len(m.containers)),
|
||||
m.miniContainerLines(row2H-2), k1, row2H, false),
|
||||
panel(i18n.T("section.activity"), i18n.Tf("fmt.phase", "2"), activityLines(), k2, row2H, false),
|
||||
panel(i18n.T("section.activity"), fmt.Sprintf("(%d)", len(m.activity)),
|
||||
m.activityLines(k2-4, row2H-2), k2, row2H, false),
|
||||
)
|
||||
|
||||
return row1 + "\n" + row2
|
||||
@@ -125,15 +126,6 @@ func (m Model) miniContainerLines(maxLines int) []string {
|
||||
return lines
|
||||
}
|
||||
|
||||
func activityLines() []string {
|
||||
return []string{
|
||||
dim(i18n.T("activity.coming")),
|
||||
"",
|
||||
dim(i18n.T("activity.willShow")),
|
||||
dim(i18n.T("activity.examples")),
|
||||
}
|
||||
}
|
||||
|
||||
// --- small formatting helpers ---
|
||||
|
||||
func humanKB(kb uint64) string {
|
||||
|
||||
Reference in new issue
Block a user