2023-05-08 18:43:07 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
// Code generated by vugu via vugugen. Please regenerate instead of editing or add additional code in a separate file. DO NOT EDIT.
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
import "reflect"
|
|
|
|
import "github.com/vugu/vjson"
|
|
|
|
import "github.com/vugu/vugu"
|
|
|
|
import js "github.com/vugu/vugu/js"
|
|
|
|
|
|
|
|
import (
|
2023-05-08 19:14:55 +00:00
|
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/components/navigation"
|
|
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
|
2023-05-08 18:43:07 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func (c *Root) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
|
|
|
|
var vgiterkey interface{}
|
|
|
|
_ = vgiterkey
|
|
|
|
var vgn *vugu.VGNode
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "html", Attr: []vugu.VGAttribute(nil)}
|
|
|
|
vgout.Out = append(vgout.Out, vgn) // root for output
|
|
|
|
{
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "head", Attr: []vugu.VGAttribute(nil)}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "body", Attr: []vugu.VGAttribute(nil)}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "style", Val: "width: 100vw; height: 100wh;"}}}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
2023-05-18 21:17:17 +00:00
|
|
|
var vgcomp vugu.Builder = c.OverlayContainer
|
|
|
|
if vgcomp != nil {
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
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"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0x5A2188DCD2842ECF^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-08 18:43:07 +00:00
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*navigation.Sidebar)
|
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
|
|
|
vgcomp = new(navigation.Sidebar)
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
}
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
2023-05-12 10:57:42 +00:00
|
|
|
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)
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0xFF4FD9801989715^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-12 10:57:42 +00:00
|
|
|
// 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
|
|
|
|
})
|
2023-05-08 18:43:07 +00:00
|
|
|
vgcomp.Entries = 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)
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0xEA984085D17D7DFD^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-08 18:43:07 +00:00
|
|
|
// ask BuildEnv for prior instance of this specific component
|
2023-05-12 10:57:42 +00:00
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*navigation.SidebarEntry)
|
2023-05-08 18:43:07 +00:00
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
2023-05-12 10:57:42 +00:00
|
|
|
vgcomp = new(navigation.SidebarEntry)
|
2023-05-08 18:43:07 +00:00
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
}
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
vgcomp.URL = "/"
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
2023-05-08 18:43:07 +00:00
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0xE69C1F543D9DE3C8^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-08 18:43:07 +00:00
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LHome)
|
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
|
|
|
vgcomp = new(icons.LHome)
|
|
|
|
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
|
|
|
|
|
2023-05-12 10:57:42 +00:00
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
|
2023-05-08 18:43:07 +00:00
|
|
|
vgparent.AppendChild(vgn)
|
2023-05-12 10:57:42 +00:00
|
|
|
{
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
2023-05-16 16:10:24 +00:00
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Home"}
|
2023-05-12 10:57:42 +00:00
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
}
|
2023-05-08 18:43:07 +00:00
|
|
|
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)
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0xC5E660E711CE63DC^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 = "/input/"
|
|
|
|
vgcomp.IconSlot = 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(0xB47E90BD9401601E^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LStar)
|
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
|
|
|
vgcomp = new(icons.LStar)
|
|
|
|
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: "Input"}
|
|
|
|
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(0xD94A8B3C9791181C^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-08 18:43:07 +00:00
|
|
|
// ask BuildEnv for prior instance of this specific component
|
2023-05-12 10:57:42 +00:00
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*navigation.SidebarEntry)
|
2023-05-08 18:43:07 +00:00
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
2023-05-12 10:57:42 +00:00
|
|
|
vgcomp = new(navigation.SidebarEntry)
|
2023-05-08 18:43:07 +00:00
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
}
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
vgcomp.URL = "/icons/"
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
2023-05-08 18:43:07 +00:00
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0x2ABB18F44D3020FE^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-08 18:43:07 +00:00
|
|
|
// ask BuildEnv for prior instance of this specific component
|
2023-05-12 10:57:42 +00:00
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LStar)
|
2023-05-08 18:43:07 +00:00
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
2023-05-12 10:57:42 +00:00
|
|
|
vgcomp = new(icons.LStar)
|
2023-05-08 18:43:07 +00:00
|
|
|
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
|
|
|
|
|
2023-05-12 10:57:42 +00:00
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
|
2023-05-08 18:43:07 +00:00
|
|
|
vgparent.AppendChild(vgn)
|
2023-05-12 10:57:42 +00:00
|
|
|
{
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Icons"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
}
|
2023-05-08 18:43:07 +00:00
|
|
|
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)
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0x536DB6B041421F5D^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-08 18:43:07 +00:00
|
|
|
// ask BuildEnv for prior instance of this specific component
|
2023-05-12 10:57:42 +00:00
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*navigation.SidebarEntry)
|
2023-05-08 18:43:07 +00:00
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
2023-05-12 10:57:42 +00:00
|
|
|
vgcomp = new(navigation.SidebarEntry)
|
2023-05-08 18:43:07 +00:00
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
}
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
2023-05-16 16:10:24 +00:00
|
|
|
vgcomp.URL = "/layout/"
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
2023-05-08 18:43:07 +00:00
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0x1C2A42E8C79FA21C^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-08 18:43:07 +00:00
|
|
|
// ask BuildEnv for prior instance of this specific component
|
2023-05-12 10:57:42 +00:00
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LInfoCircle)
|
2023-05-08 18:43:07 +00:00
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
2023-05-12 10:57:42 +00:00
|
|
|
vgcomp = new(icons.LInfoCircle)
|
2023-05-08 18:43:07 +00:00
|
|
|
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
|
|
|
|
|
2023-05-12 10:57:42 +00:00
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
|
2023-05-08 18:43:07 +00:00
|
|
|
vgparent.AppendChild(vgn)
|
2023-05-12 10:57:42 +00:00
|
|
|
{
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
2023-05-16 16:10:24 +00:00
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Typography & Layout"}
|
2023-05-12 10:57:42 +00:00
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
}
|
2023-05-08 18:43:07 +00:00
|
|
|
return
|
|
|
|
})
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
}
|
2023-05-18 11:55:48 +00:00
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0x93C4C9986A49D2A2^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-18 11:55:48 +00:00
|
|
|
// 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 = "/colors/"
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
2023-05-18 11:55:48 +00:00
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0x4677ACD87545722A^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-18 11:55:48 +00:00
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LCustomize)
|
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
|
|
|
vgcomp = new(icons.LCustomize)
|
|
|
|
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: "Colors"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
}
|
|
|
|
return
|
|
|
|
})
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
}
|
2023-05-18 21:17:17 +00:00
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0xEF0A44841D349965^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-18 21:17:17 +00:00
|
|
|
// 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 = "/overlays/"
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
2023-05-18 21:17:17 +00:00
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0xBBA3250E75A4E344^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-18 21:17:17 +00:00
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LDocument)
|
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
|
|
|
vgcomp = new(icons.LDocument)
|
|
|
|
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: "Overlays"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
}
|
|
|
|
return
|
|
|
|
})
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
}
|
2023-05-08 18:43:07 +00:00
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
return
|
|
|
|
})
|
|
|
|
vgcomp.BottomEntries = 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)
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0x39454D50284E555A^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-12 10:57:42 +00:00
|
|
|
// 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
|
2023-05-16 16:10:24 +00:00
|
|
|
vgcomp.URL = "/user/"
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
2023-05-12 10:57:42 +00:00
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0x8EC99EE5D469BC01^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-12 10:57:42 +00:00
|
|
|
// 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)
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0x3EEBD636AF8476^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-08 18:43:07 +00:00
|
|
|
// ask BuildEnv for prior instance of this specific component
|
2023-05-12 10:57:42 +00:00
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*navigation.SidebarEntry)
|
2023-05-08 18:43:07 +00:00
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
2023-05-12 10:57:42 +00:00
|
|
|
vgcomp = new(navigation.SidebarEntry)
|
2023-05-08 18:43:07 +00:00
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
}
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
2023-05-16 16:10:24 +00:00
|
|
|
vgcomp.URL = "/settings/"
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
2023-05-08 18:43:07 +00:00
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgcompKey := vugu.MakeCompKey(0xD8A4319507FB8ABF^vgin.CurrentPositionHash(), vgiterkey)
|
2023-05-08 18:43:07 +00:00
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LSettings)
|
|
|
|
if vgcomp == nil {
|
|
|
|
// create new one if needed
|
|
|
|
vgcomp = new(icons.LSettings)
|
|
|
|
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
|
|
|
|
|
2023-05-12 10:57:42 +00:00
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
|
2023-05-08 18:43:07 +00:00
|
|
|
vgparent.AppendChild(vgn)
|
2023-05-12 10:57:42 +00:00
|
|
|
{
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Settings"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
}
|
2023-05-08 18:43:07 +00:00
|
|
|
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"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
return
|
|
|
|
})
|
|
|
|
vgcomp.Body = 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)
|
|
|
|
{
|
|
|
|
var vgcomp vugu.Builder = c.Body
|
|
|
|
if vgcomp != nil {
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
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
|
|
|
|
})
|
|
|
|
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"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
|
|
|
|
{
|
|
|
|
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\thtml {\n\t\tfont-family: \"Segoe UI\", sans-serif;\n\t}\n\n\tbody {\n\t\tmargin: 0;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
|
|
|
|
}
|
|
|
|
vgout.AppendCSS(vgn)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return vgout
|
|
|
|
}
|
|
|
|
|
|
|
|
// 'fix' unused imports
|
|
|
|
var _ fmt.Stringer
|
|
|
|
var _ reflect.Type
|
|
|
|
var _ vjson.RawMessage
|
|
|
|
var _ js.Value
|