view

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Overview

templ: version: v0.3.833

templ: version: v0.3.833

templ: version: v0.3.833

templ: version: v0.3.833

templ: version: v0.3.833

templ: version: v0.3.833

templ: version: v0.3.833

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthForm

func AuthForm(redirect string) templ.Component

func AuthRedirect

func AuthRedirect(postAuthRedirect string) templ.Component

func Backups

func Backups(bs []string) templ.Component

func Base

func Base(desc string, tags NullTags) templ.Component

func DeleteMedia

func DeleteMedia(media database.Mediafile) templ.Component

func DeletePost

func DeletePost(post database.Post) templ.Component

func EditMedia

func EditMedia(m database.Mediafile) templ.Component

func EditPost

func EditPost(post database.Post) templ.Component
func calcFontSize(count int64) string {
	return fmt.Sprintf("font-size: %fem;", 2.0 - float64(tag.TagCount) * 0.02)
}

func FormatTags added in v0.8.0

func FormatTags(s sql.NullString) string

func MdToHTML

func MdToHTML(ctx context.Context, q *database.Queries, md string) string

func Media

func Media(mediaFiles []database.Mediafile) templ.Component

func Mediafile

func Mediafile(media database.Mediafile) templ.Component
func Nav(page int, maxPage int, query string) templ.Component

func NotFound

func NotFound(message string) templ.Component

func Post

func Posts

func Posts(posts []database.Post, tags []database.GetAllTagsRow, nav templ.Component, selected int64) templ.Component

func SpotifyEmbed

func SpotifyEmbed(sc database.SpotifyCache) templ.Component

func UnixTimeToHTMLDateTime

func UnixTimeToHTMLDateTime(unixTime int64) string

func YoutubeEmbed

func YoutubeEmbed(ytc database.YoutubeCache) templ.Component

Types

type NullTags added in v0.7.0

type NullTags struct {
	Valid bool
	Tags  []database.GetAllTagsRow
}

Jump to

Keyboard shortcuts

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