removing the old test UI codes

This commit is contained in:
2026-01-12 20:03:32 +00:00
parent 3d52caeb04
commit e7bfc5c81f
21 changed files with 30 additions and 395 deletions
+28
View File
@@ -0,0 +1,28 @@
// Package dom
package dom
import (
"github.com/rivo/tview"
)
type UINode struct {
ID string
Self tview.Primitive
Parent tview.Primitive
Children map[string]*UINode
}
func newUINode(ID string, parent, root tview.Primitive) *UINode {
return &UINode{
ID: ID,
Self: root,
Children: make(map[string]*UINode),
}
}
func (l *UINode) AppendItem(item *UINode) error {
// Its not necessary to verify if this ID is already a child of this Node
// because we do that at the UI level
l.Children[item.ID] = item
return nil
}