user_views

package
v0.0.0-...-4a6608b Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlbumCreate

func AlbumCreate(
	page string,
	fromProtected bool,
	isError bool,
	msg fiber.Map,
	username string,
	cmp templ.Component,
	isAdmin bool,
) templ.Component

func AlbumCreateIndex

func AlbumCreateIndex(username string, csrfToken string) templ.Component

func AlbumEdit

func AlbumEdit(
	page string,
	fromProtected bool,
	isError bool,
	msg fiber.Map,
	username string,
	cmp templ.Component,
	isAdmin bool,
) templ.Component

func AlbumEditIndex

func AlbumEditIndex(username string, csrfToken string, album models.Album) templ.Component

func AlbumView

func AlbumView(
	page string,
	fromProtected bool,
	isError bool,
	msg fiber.Map,
	username string,
	cmp templ.Component,
	isAdmin bool,
) templ.Component

func AlbumViewIndex

func AlbumViewIndex(username string, csrfToken string, album models.Album, albumImages []GalleryImage, userImages []GalleryImage) templ.Component

func Albums

func Albums(
	page string,
	fromProtected bool,
	isError bool,
	msg fiber.Map,
	username string,
	plan string,
	cmp templ.Component,
	isAdmin bool,
) templ.Component

func AlbumsIndex

func AlbumsIndex(username string, csrfToken string, plan string, albums []AlbumWithGalleryImages) templ.Component

func GalleryGroups

func GalleryGroups(groups []ImageGroup, page int, lastGroup string, selectedYear int) templ.Component

Render grouped gallery blocks, each with its own masonry container

func GalleryImageItem

func GalleryImageItem(image GalleryImage) templ.Component

Single image tile (card)

func ImageEditContent

func ImageEditContent(image models.Image, csrfToken string) templ.Component

func Images

func Images(
	page string,
	fromProtected bool,
	isError bool,
	msg fiber.Map,
	username string,
	plan string,
	cmp templ.Component,
	isAdmin bool,
) templ.Component

func ImagesGallery

func ImagesGallery(username string, groups []ImageGroup, total int, years []int, selectedYear int) templ.Component

func Profile

func Profile(
	page string,
	fromProtected bool,
	isError bool,
	msg fiber.Map,
	username string,
	plan string,
	cmp templ.Component,
	isAdmin bool,
) templ.Component

func ProfileEdit

func ProfileEdit(
	page string,
	fromProtected bool,
	isError bool,
	msg fiber.Map,
	username string,
	cmp templ.Component,
	isAdmin bool,
) templ.Component

func ProfileEditIndex

func ProfileEditIndex(username string, csrfToken string, user models.User) templ.Component

func ProfileIndex

func ProfileIndex(username string, csrfToken string, plan string, user models.User, imageCount int, albumCount int, storageUsage int64) templ.Component

func PublicAlbum

func PublicAlbum(
	page string,
	fromProtected bool,
	isError bool,
	msg fiber.Map,
	username string,
	cmp templ.Component,
	isAdmin bool,
	ogViewModel *viewmodel.OpenGraph,
) templ.Component

func PublicAlbumIndex

func PublicAlbumIndex(album models.Album, albumImages []GalleryImage) templ.Component

func Settings

func Settings(
	page string,
	fromProtected bool,
	isError bool,
	msg fiber.Map,
	username string,
	plan string,
	cmp templ.Component,
	isAdmin bool,
) templ.Component

func SettingsIndex

func SettingsIndex(
	username string,
	csrfToken string,
	plan string,
	canOrig bool,
	canWebp bool,
	canAvif bool,
	prefOrig bool,
	prefWebp bool,
	prefAvif bool,
	newAPIKey string,
	hasAPIKey bool,
	maskedAPIKey string,
	apiKeyCreated string,
	apiKeyLastUsed string,
) templ.Component

func UserImageEdit

func UserImageEdit(image models.Image, csrfToken string) templ.Component

Types

type AlbumWithGalleryImages

type AlbumWithGalleryImages struct {
	Album  models.Album
	Images []GalleryImage
}

AlbumWithGalleryImages holds album with converted gallery images

type GalleryImage

type GalleryImage struct {
	ID               uint
	UUID             string
	Title            string
	ShareLink        string
	PreviewPath      string
	SmallPreviewPath string
	OriginalPath     string
	CreatedAt        string
	IsPublic         bool
	FileName         string
	Width            int
	Height           int
	FileSize         int64
	StorageTier      string
	StorageType      string
	StoragePoolName  string
	// Grouping helpers for section headers
	GroupLabel     string
	SuppressHeader bool
	RenderHeader   bool
}

type ImageGroup

type ImageGroup struct {
	Label string
	Items []GalleryImage
}

Jump to

Keyboard shortcuts

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