2023-05-08 18:43:07 +00:00
|
|
|
package view
|
|
|
|
|
|
|
|
// 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"
|
|
|
|
|
2023-05-15 06:58:12 +00:00
|
|
|
import (
|
|
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
|
|
|
|
)
|
|
|
|
|
2023-05-17 19:37:24 +00:00
|
|
|
type CodeInline struct {
|
|
|
|
AttrMap vugu.AttrMap
|
|
|
|
|
|
|
|
DefaultSlot vugu.Builder
|
|
|
|
}
|
|
|
|
|
2023-05-08 18:43:07 +00:00
|
|
|
func (c *CodeInline) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
|
|
|
|
var vgiterkey interface{}
|
|
|
|
_ = vgiterkey
|
|
|
|
var vgn *vugu.VGNode
|
2023-05-15 06:58:12 +00:00
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "span", Attr: []vugu.VGAttribute(nil)}
|
2023-05-08 18:43:07 +00:00
|
|
|
vgout.Out = append(vgout.Out, vgn) // root for output
|
2023-05-18 11:55:48 +00:00
|
|
|
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1634910850 d3c-color-layer-1"})
|
2023-05-08 18:43:07 +00:00
|
|
|
{
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
{
|
|
|
|
var vgcomp vugu.Builder = c.DefaultSlot
|
|
|
|
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(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
|
|
|
|
{
|
2023-05-25 13:59:13 +00:00
|
|
|
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-1634910850 {\n\t\tpadding: 0 0.25em;\n\t\tborder-radius: 4px;\n\t\tfont-family: monospace;\n\t\tbackground-color: var(--d3c-color-background);\n\t\tcolor: var(--d3c-color-text);\n\t}\n", Attr: []vugu.VGAttribute(nil)})
|
2023-05-08 18:43:07 +00:00
|
|
|
}
|
|
|
|
vgout.AppendCSS(vgn)
|
|
|
|
return vgout
|
|
|
|
}
|
|
|
|
|
|
|
|
// 'fix' unused imports
|
|
|
|
var _ fmt.Stringer
|
|
|
|
var _ reflect.Type
|
|
|
|
var _ vjson.RawMessage
|
|
|
|
var _ js.Value
|