DEVELOPMENT ENVIRONMENT

~liljamo/felu

a31d2cb4d52f56af0252dda738fca6b6d74a7aa5 — Jonni Liljamo 1 year, 1 month ago a363560 0.1.3
feat: update admin index
2 files changed, 22 insertions(+), 32 deletions(-)

M internal/components/manageadmin.templ
M internal/components/manageadmin_templ.go
M internal/components/manageadmin.templ => internal/components/manageadmin.templ +1 -2
@@ 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>

M internal/components/manageadmin_templ.go => internal/components/manageadmin_templ.go +21 -30
@@ 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
		}