molecules

package
v0.46.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowHeader

type FlowHeader struct {
	app.Compo

	SingleUser models.User

	SinglePostID string
	Hashtag      string

	ButtonsDisabled bool
	RefreshClicked  bool
}

func (*FlowHeader) Render

func (h *FlowHeader) Render() app.UI

type ImageInput added in v0.46.23

type ImageInput struct {
	app.Compo

	ImageData *[]byte
	ImageFile *string
	ImageLink *string

	ButtonsDisabled *bool
}

func (*ImageInput) OnMount added in v0.46.23

func (i *ImageInput) OnMount(ctx app.Context)

func (*ImageInput) Render added in v0.46.23

func (i *ImageInput) Render() app.UI

type PollBody added in v0.46.27

type PollBody struct {
	app.Compo

	RenderProps struct {
		PollTimestamp    string
		UserVoted        bool
		OptionOneShare   int64
		OptionTwoShare   int64
		OptionThreeShare int64
	}

	Poll       models.Poll
	LoggedUser models.User

	OnClickOptionOneActionName   string
	OnClickOptionTwoActionName   string
	OnClickOptionThreeActionName string

	ButtonDisabled  bool
	LoaderShowImage bool
}

func (*PollBody) OnMount added in v0.46.27

func (p *PollBody) OnMount(ctx app.Context)

func (*PollBody) Render added in v0.46.27

func (p *PollBody) Render() app.UI

type PollFooter added in v0.46.27

type PollFooter struct {
	app.Compo

	Poll models.Poll

	LoggedUserNickname string
	PollTimestamp      string

	ButtonsDisabled bool

	OnClickDeleteActionName string
}

func (*PollFooter) Render added in v0.46.27

func (p *PollFooter) Render() app.UI

type PollHeader added in v0.46.27

type PollHeader struct {
	app.Compo

	Poll models.Poll

	ButtonsDisabled bool

	OnClickLinkActionName string
}

func (*PollHeader) Render added in v0.46.27

func (p *PollHeader) Render() app.UI

type PostBody

type PostBody struct {
	app.Compo

	RenderProps struct {
		ImageSource     string
		PostSummary     string
		OriginalContent string
		OriginalSummary string
		PostTimestamp   string
		SystemLink      string
	}

	Post models.Post

	OnClickImageActionName   string
	OnClickHistoryActionName string

	ButtonDisabled  bool
	LoaderShowImage bool
}

func (*PostBody) OnMount

func (p *PostBody) OnMount(ctx app.Context)

func (*PostBody) Render

func (p *PostBody) Render() app.UI

type PostFooter

type PostFooter struct {
	app.Compo

	LoggedUserNickname string
	PostTimestamp      string

	Post models.Post

	ButtonsDisabled bool

	OnClickDeleteActionName string
	OnClickStarActionName   string
	OnClickReplyActionName  string
}

func (*PostFooter) Render

func (p *PostFooter) Render() app.UI

type PostHeader

type PostHeader struct {
	app.Compo

	PostAuthor    string
	PostAvatarURL string
	PostID        string

	ButtonsDisabled bool

	OnClickLinkActionName  string
	OnClickUserActionName  string
	OnMouseEnterActionName string
	OnMouseLeaveActionName string
}

func (*PostHeader) Render

func (p *PostHeader) Render() app.UI

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL