Documentation
¶
Overview ¶
templ: version: v0.3.1001
templ: version: v0.3.1001
Index ¶
Constants ¶
View Source
const (
MaxUploadSize = 20 * 1024 * 1024 // 20MB
)
Variables ¶
This section is empty.
Functions ¶
func ProcessProfileImage ¶
ProcessProfileImage takes raw image bytes, center-crops to a square, resizes to 160x160, and returns PNG-encoded bytes.
func ValidImageContentType ¶
ValidImageContentType returns true if the content type is a valid image type.
Types ¶
type DirectoryMember ¶
type DirectoryMember struct {
ID int64
DisplayName string
Pronouns string
Bio string
DiscordUsername string
HasProfilePicture bool
HasDiscordAvatar bool
Leadership bool
FobLastSeen int64
}
DirectoryMember represents a member in the directory listing.
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) AttachRoutes ¶
type ProfileData ¶
type ProfileData struct {
ID int64
Name string // Original name from signup
NameOverride *string // Custom display name
Pronouns string
Bio string
HasProfilePicture bool
HasDiscordAvatar bool
DiscordUsername string
Leadership bool
DirectoryHidden bool // If true, hide this member from the directory listing
}
ProfileData represents the current user's profile for editing.
Click to show internal directories.
Click to hide internal directories.