|
|
@ -9,7 +9,6 @@ import "github.com/vugu/vugu"
|
|
|
|
import js "github.com/vugu/vugu/js"
|
|
|
|
import js "github.com/vugu/vugu/js"
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/components/input"
|
|
|
|
|
|
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/components/navigation"
|
|
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/components/navigation"
|
|
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
|
|
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -47,7 +46,7 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x3405DFBDDF796314^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x2E9A2E5DC2291CAD^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*navigation.Sidebar)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*navigation.Sidebar)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
@ -58,6 +57,33 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
var ParentSidebar = vgcomp // vg-var
|
|
|
|
var ParentSidebar = vgcomp // vg-var
|
|
|
|
_ = ParentSidebar
|
|
|
|
_ = ParentSidebar
|
|
|
|
|
|
|
|
vgcomp.MenuEntries = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
|
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t\t"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x686B5692725EA031^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*navigation.ButtonFullscreen)
|
|
|
|
|
|
|
|
if vgcomp == nil {
|
|
|
|
|
|
|
|
// create new one if needed
|
|
|
|
|
|
|
|
vgcomp = new(navigation.ButtonFullscreen)
|
|
|
|
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
})
|
|
|
|
vgcomp.Entries = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgcomp.Entries = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
@ -68,12 +94,12 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t\t"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x245694A4FF43312D^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x5D38B25E830DE580^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.ButtonNav)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*navigation.SidebarEntry)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
|
|
|
// create new one if needed
|
|
|
|
vgcomp = new(input.ButtonNav)
|
|
|
|
vgcomp = new(navigation.SidebarEntry)
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
@ -86,7 +112,7 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
_ = vgparent
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x4AE13405398E63E1^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xE1B3F56AA51B2DB3^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LHome)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LHome)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
@ -108,8 +134,14 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgparent := vgn
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Entry 1"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Entry 1"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
return
|
|
|
|
return
|
|
|
|
})
|
|
|
|
})
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
@ -119,12 +151,12 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t\t"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x172A029BD816D50A^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xEBE260D8ADE95FBE^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.ButtonNav)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*navigation.SidebarEntry)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
|
|
|
// create new one if needed
|
|
|
|
vgcomp = new(input.ButtonNav)
|
|
|
|
vgcomp = new(navigation.SidebarEntry)
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
@ -137,12 +169,12 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
_ = vgparent
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x70EFE1C0393B2EFA^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x52BB52A71CBC3F81^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LGlobalNav)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LStar)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
|
|
|
// create new one if needed
|
|
|
|
vgcomp = new(icons.LGlobalNav)
|
|
|
|
vgcomp = new(icons.LStar)
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
@ -159,8 +191,14 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgparent := vgn
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Icons"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Icons"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
return
|
|
|
|
return
|
|
|
|
})
|
|
|
|
})
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
@ -170,12 +208,12 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t\t"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x9F8FB0242AD2A594^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x2AF1551B8C561CD9^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.ButtonNav)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*navigation.SidebarEntry)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
|
|
|
// create new one if needed
|
|
|
|
vgcomp = new(input.ButtonNav)
|
|
|
|
vgcomp = new(navigation.SidebarEntry)
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
@ -188,12 +226,12 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
_ = vgparent
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x7F2C3AF881673BA8^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xFDC8CD2FD0424FED^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.Empty)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LInfoCircle)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
|
|
|
// create new one if needed
|
|
|
|
vgcomp = new(icons.Empty)
|
|
|
|
vgcomp = new(icons.LInfoCircle)
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
@ -210,8 +248,14 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgparent := vgn
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Entry 3"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Entry 3"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
return
|
|
|
|
return
|
|
|
|
})
|
|
|
|
})
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
@ -232,12 +276,69 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t\t"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xBA5CDF7834C137A0^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xCF5E40696C88BAC9^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*navigation.SidebarEntry)
|
|
|
|
|
|
|
|
if vgcomp == nil {
|
|
|
|
|
|
|
|
// create new one if needed
|
|
|
|
|
|
|
|
vgcomp = new(navigation.SidebarEntry)
|
|
|
|
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
|
|
|
|
vgcomp.URL = "/"
|
|
|
|
|
|
|
|
vgcomp.SymbolSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
|
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xF36D7D0B128ECD49^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LGlobe)
|
|
|
|
|
|
|
|
if vgcomp == nil {
|
|
|
|
|
|
|
|
// create new one if needed
|
|
|
|
|
|
|
|
vgcomp = new(icons.LGlobe)
|
|
|
|
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
|
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "John Doe"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t\t"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x1D39634A579B7FEA^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.ButtonNav)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*navigation.SidebarEntry)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
|
|
|
// create new one if needed
|
|
|
|
vgcomp = new(input.ButtonNav)
|
|
|
|
vgcomp = new(navigation.SidebarEntry)
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
@ -250,7 +351,7 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
_ = vgparent
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xACAC312934F8C0E3^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xECD3DBB2A4682E34^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LSettings)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LSettings)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
@ -272,8 +373,14 @@ func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgparent := vgn
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Bottom"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Settings"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
return
|
|
|
|
return
|
|
|
|
})
|
|
|
|
})
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|