@@ 3,8 3,7 @@ package components
templ ManageAdmin() {
@ManageBase("ManageAdmin") {
<div>
- something something admin page
- <br/>probs have like stats and that kinda stuff here
+ todo: probs have like stats and that kinda stuff here
</div>
<div class="flex flex-col">
<a class="border p-2" href="/manage/admin/users">Users</a>
@@ 32,26 32,17 @@ func ManageAdmin() templ.Component {
if err != nil {
return err
}
- var_3 := `something something admin page`
+ var_3 := `todo: probs have like stats and that kinda stuff here`
_, err = templBuffer.WriteString(var_3)
if err != nil {
return err
}
- _, err = templBuffer.WriteString(" <br>")
- if err != nil {
- return err
- }
- var_4 := `probs have like stats and that kinda stuff here`
- _, err = templBuffer.WriteString(var_4)
- if err != nil {
- return err
- }
_, err = templBuffer.WriteString("</div> <div class=\"flex flex-col\"><a class=\"border p-2\" href=\"/manage/admin/users\">")
if err != nil {
return err
}
- var_5 := `Users`
- _, err = templBuffer.WriteString(var_5)
+ var_4 := `Users`
+ _, err = templBuffer.WriteString(var_4)
if err != nil {
return err
}
@@ 59,8 50,8 @@ func ManageAdmin() templ.Component {
if err != nil {
return err
}
- var_6 := `Domains`
- _, err = templBuffer.WriteString(var_6)
+ var_5 := `Domains`
+ _, err = templBuffer.WriteString(var_5)
if err != nil {
return err
}
@@ 92,12 83,12 @@ func ManageAdminUsers() templ.Component {
defer templ.ReleaseBuffer(templBuffer)
}
ctx = templ.InitializeContext(ctx)
- var_7 := templ.GetChildren(ctx)
- if var_7 == nil {
- var_7 = templ.NopComponent
+ var_6 := templ.GetChildren(ctx)
+ if var_6 == nil {
+ var_6 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- var_8 := templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) {
+ var_7 := templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) {
templBuffer, templIsBuffer := w.(*bytes.Buffer)
if !templIsBuffer {
templBuffer = templ.GetBuffer()
@@ 107,8 98,8 @@ func ManageAdminUsers() templ.Component {
if err != nil {
return err
}
- var_9 := `Email`
- _, err = templBuffer.WriteString(var_9)
+ var_8 := `Email`
+ _, err = templBuffer.WriteString(var_8)
if err != nil {
return err
}
@@ 116,8 107,8 @@ func ManageAdminUsers() templ.Component {
if err != nil {
return err
}
- var_10 := `Initial Password`
- _, err = templBuffer.WriteString(var_10)
+ var_9 := `Initial Password`
+ _, err = templBuffer.WriteString(var_9)
if err != nil {
return err
}
@@ 125,8 116,8 @@ func ManageAdminUsers() templ.Component {
if err != nil {
return err
}
- var_11 := `Add`
- _, err = templBuffer.WriteString(var_11)
+ var_10 := `Add`
+ _, err = templBuffer.WriteString(var_10)
if err != nil {
return err
}
@@ 139,7 130,7 @@ func ManageAdminUsers() templ.Component {
}
return err
})
- err = ManageBase("ManageAdmin").Render(templ.WithChildren(ctx, var_8), templBuffer)
+ err = ManageBase("ManageAdmin").Render(templ.WithChildren(ctx, var_7), templBuffer)
if err != nil {
return err
}
@@ 158,12 149,12 @@ func ManageAdminDomains() templ.Component {
defer templ.ReleaseBuffer(templBuffer)
}
ctx = templ.InitializeContext(ctx)
- var_12 := templ.GetChildren(ctx)
- if var_12 == nil {
- var_12 = templ.NopComponent
+ var_11 := templ.GetChildren(ctx)
+ if var_11 == nil {
+ var_11 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- var_13 := templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) {
+ var_12 := templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) {
templBuffer, templIsBuffer := w.(*bytes.Buffer)
if !templIsBuffer {
templBuffer = templ.GetBuffer()
@@ 178,7 169,7 @@ func ManageAdminDomains() templ.Component {
}
return err
})
- err = ManageBase("ManageAdmin").Render(templ.WithChildren(ctx, var_13), templBuffer)
+ err = ManageBase("ManageAdmin").Render(templ.WithChildren(ctx, var_12), templBuffer)
if err != nil {
return err
}