Documentation
¶
Index ¶
- Variables
- func AccountPage(account Account, profile *data.Profile) gomponents.Node
- func Alert(text, class string) gomponents.Node
- func BasePage(title, baseURL string, bodyNodes gomponents.Group) gomponents.Node
- func Cart() gomponents.Node
- func CartProductDetailsModalContent(cartProduct data.CartProduct) gomponents.Node
- func CartProductRow(cartProduct CartProduct) gomponents.Node
- func CartQuickAddModalContent() gomponents.Node
- func CartTable(cartProducts []CartProduct) gomponents.Node
- func Checked(b bool) gomponents.Node
- func Disabled(b bool) gomponents.Node
- func ErrorPage(statusCode int, statusCodeText string) gomponents.Node
- func ExploreRecipes() gomponents.Node
- func FavoriteButton(listID uuid.UUID, favorite bool) gomponents.Node
- func FavoriteRecipes() gomponents.Node
- func FormCheck(id, label string, isSwitch bool, input gomponents.Node) gomponents.Node
- func FormInput(id, label string, attributes, input gomponents.Node) gomponents.Node
- func IngredientDetailsModalContent(listID uuid.UUID, ingredient data.Ingredient) gomponents.Node
- func IngredientRow(accountID, recipeAccountID uuid.UUID, ingredient Ingredient) gomponents.Node
- func Ingredients(accountID uuid.UUID, list data.List) gomponents.Node
- func IngredientsTable(accountID, listAccountID uuid.UUID, ingredients []Ingredient) gomponents.Node
- func ListDetailsEdit(list data.List, copy bool) gomponents.Node
- func ListDetailsModalContent(accountID uuid.UUID, list data.List, copy bool) gomponents.Node
- func ListDetailsView(list data.List) gomponents.Node
- func ListRow(accountID uuid.UUID, list data.List) gomponents.Node
- func ListTable(accountID uuid.UUID, lists []data.List) gomponents.Node
- func Lists(accountID uuid.UUID) gomponents.Node
- func LocationNode(location *data.CacheLocation) gomponents.Node
- func LocationSearchRow(location Location) gomponents.Node
- func LocationsSearchModal(accountID uuid.UUID) gomponents.Node
- func LocationsSearchTable(locations []Location) gomponents.Node
- func Menu() gomponents.Node
- func Modal() gomponents.Node
- func ModalButton(btnClass, text string, htmxContentEndpoint gomponents.Node) gomponents.Node
- func ModalContent(title string, bodyContent gomponents.Node, footerContent gomponents.Node) gomponents.Node
- func ModalDismiss() gomponents.Node
- func ModalForm(htmxFormSubmit gomponents.Node, inputs ...gomponents.Node) gomponents.Node
- func ModalSubmit() gomponents.Node
- func ProductSearchRow(product Product) gomponents.Node
- func ProductsSearch() gomponents.Node
- func ProductsSearchTable(products []Product) gomponents.Node
- func Profile(account Account, profile *data.Profile) gomponents.Node
- func ProfilePage(profile data.Profile) gomponents.Node
- func Profiles() gomponents.Node
- func ProfilesSearchResults(profiles []data.Profile) gomponents.Node
- func RecipeDetailsEdit(recipe data.Recipe, copy bool) gomponents.Node
- func RecipeDetailsModalContent(accountID uuid.UUID, recipe data.Recipe, copy bool) gomponents.Node
- func RecipeDetailsView(recipe data.Recipe) gomponents.Node
- func RecipeRow(accountID uuid.UUID, recipe data.Recipe) gomponents.Node
- func RecipeTable(accountID uuid.UUID, recipes []data.Recipe) gomponents.Node
- func Recipes(accountID uuid.UUID) gomponents.Node
- func Select[T comparable](id, label, name string, selected T, values []T, action gomponents.Node) gomponents.Node
- func Settings(account Account) gomponents.Node
- func ShoppingList() gomponents.Node
- func ShoppingListLocation(location string, shoppingListRows gomponents.Group) gomponents.Node
- func ShoppingListRow(cartProduct CartProduct) gomponents.Node
- func ShoppingListTable(cartProducts []CartProduct) gomponents.Node
- func WelcomePage() gomponents.Node
- type Account
- type CartProduct
- type Ingredient
- type Location
- type Product
Constants ¶
This section is empty.
Variables ¶
View Source
var ThemeJavascript string
Functions ¶
func AccountPage ¶
func AccountPage(account Account, profile *data.Profile) gomponents.Node
func Alert ¶
func Alert(text, class string) gomponents.Node
func BasePage ¶
func BasePage(title, baseURL string, bodyNodes gomponents.Group) gomponents.Node
func Cart ¶
func Cart() gomponents.Node
func CartProductDetailsModalContent ¶
func CartProductDetailsModalContent(cartProduct data.CartProduct) gomponents.Node
func CartProductRow ¶
func CartProductRow(cartProduct CartProduct) gomponents.Node
func CartQuickAddModalContent ¶
func CartQuickAddModalContent() gomponents.Node
func CartTable ¶
func CartTable(cartProducts []CartProduct) gomponents.Node
func Checked ¶
func Checked(b bool) gomponents.Node
func Disabled ¶
func Disabled(b bool) gomponents.Node
func ExploreRecipes ¶
func ExploreRecipes() gomponents.Node
func FavoriteButton ¶
func FavoriteButton(listID uuid.UUID, favorite bool) gomponents.Node
func FavoriteRecipes ¶
func FavoriteRecipes() gomponents.Node
func FormCheck ¶
func FormCheck(id, label string, isSwitch bool, input gomponents.Node) gomponents.Node
func FormInput ¶
func FormInput(id, label string, attributes, input gomponents.Node) gomponents.Node
func IngredientDetailsModalContent ¶
func IngredientDetailsModalContent(listID uuid.UUID, ingredient data.Ingredient) gomponents.Node
func IngredientRow ¶
func IngredientRow(accountID, recipeAccountID uuid.UUID, ingredient Ingredient) gomponents.Node
func Ingredients ¶
func IngredientsTable ¶
func IngredientsTable(accountID, listAccountID uuid.UUID, ingredients []Ingredient) gomponents.Node
func ListDetailsEdit ¶
func ListDetailsEdit(list data.List, copy bool) gomponents.Node
func ListDetailsModalContent ¶
func ListDetailsView ¶
func ListDetailsView(list data.List) gomponents.Node
func LocationNode ¶
func LocationNode(location *data.CacheLocation) gomponents.Node
func LocationSearchRow ¶
func LocationSearchRow(location Location) gomponents.Node
func LocationsSearchModal ¶
func LocationsSearchModal(accountID uuid.UUID) gomponents.Node
func LocationsSearchTable ¶
func LocationsSearchTable(locations []Location) gomponents.Node
func Menu ¶
func Menu() gomponents.Node
func Modal ¶
func Modal() gomponents.Node
func ModalButton ¶
func ModalButton(btnClass, text string, htmxContentEndpoint gomponents.Node) gomponents.Node
func ModalContent ¶
func ModalContent( title string, bodyContent gomponents.Node, footerContent gomponents.Node, ) gomponents.Node
func ModalDismiss ¶
func ModalDismiss() gomponents.Node
func ModalForm ¶
func ModalForm(htmxFormSubmit gomponents.Node, inputs ...gomponents.Node) gomponents.Node
func ModalSubmit ¶
func ModalSubmit() gomponents.Node
func ProductSearchRow ¶
func ProductSearchRow(product Product) gomponents.Node
func ProductsSearch ¶
func ProductsSearch() gomponents.Node
func ProductsSearchTable ¶
func ProductsSearchTable(products []Product) gomponents.Node
func ProfilePage ¶
func ProfilePage(profile data.Profile) gomponents.Node
func Profiles ¶
func Profiles() gomponents.Node
func ProfilesSearchResults ¶
func ProfilesSearchResults(profiles []data.Profile) gomponents.Node
func RecipeDetailsEdit ¶
func RecipeDetailsEdit(recipe data.Recipe, copy bool) gomponents.Node
func RecipeDetailsView ¶
func RecipeDetailsView(recipe data.Recipe) gomponents.Node
func RecipeTable ¶
func Select ¶
func Select[T comparable](id, label, name string, selected T, values []T, action gomponents.Node) gomponents.Node
func Settings ¶
func Settings(account Account) gomponents.Node
func ShoppingList ¶
func ShoppingList() gomponents.Node
func ShoppingListLocation ¶
func ShoppingListLocation(location string, shoppingListRows gomponents.Group) gomponents.Node
func ShoppingListRow ¶
func ShoppingListRow(cartProduct CartProduct) gomponents.Node
func ShoppingListTable ¶
func ShoppingListTable(cartProducts []CartProduct) gomponents.Node
func WelcomePage ¶
func WelcomePage() gomponents.Node
Types ¶
type CartProduct ¶
Click to show internal directories.
Click to hide internal directories.