home

package
v0.0.0-...-a953039 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comment

func Comment(c CommentData) templ.Component

func CommentInput

func CommentInput(url string, reply bool) templ.Component

func DislikeButton

func DislikeButton(disliked bool, postID string) templ.Component

func EndOfFeed

func EndOfFeed() templ.Component

func Form

func Form() templ.Component

func Index

func Index() templ.Component

func LikeButton

func LikeButton(liked bool, postID string) templ.Component

func LikeCount

func LikeCount(likeCount int, postID string) templ.Component

func LoadCommentBtn

func LoadCommentBtn(c CommentData) templ.Component

func LoadedComment

func LoadedComment(comments []CommentData) templ.Component

func ManyPost

func ManyPost(audience string, postDatas []PostData, manyPostType ManyPostType) templ.Component

func OptionButton

func OptionButton(isOwner bool, postID string) templ.Component

func Post

func Post(postData PostData, audience string) templ.Component

func ReactSection

func ReactSection(reactData ReactData) templ.Component

Types

type CommentData

type CommentData struct {
	PostID     string
	CommentID  string
	ParentID   string
	Content    string
	Username   string
	ReplyCount int
}

type ManyPostType

type ManyPostType int
const (
	ManyPostTypeBoth ManyPostType = iota
	ManyPostTypeNewer
	ManyPostTypeOlder
)

type PostData

type PostData struct {
	PostID       string
	Username     string
	Content      string
	ImgSrc       []string
	CommentCount int
	ReactStruct  ReactData
}

type ReactData

type ReactData struct {
	PostID    string
	LikeCount int
	Value     int
}

Jump to

Keyboard shortcuts

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