task_pages

package
v0.0.0-...-d131206 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

templ: version: v0.2.696

templ: version: v0.2.696

Index

Constants

View Source
const (
	WeightSetsAndReps int = iota
	TimePaceAndDistance
)

Variables

This section is empty.

Functions

func Add

func Add(listId int) templ.Component

func Cards

func Cards(listId int, models []TaskModel) templ.Component

func Edit

func Edit() templ.Component

func ListTasks

func ListTasks(list int, tasks []TaskModel) templ.Component

func PaceAndTimeTempl

func PaceAndTimeTempl() templ.Component

func UpdateableTasks

func UpdateableTasks(listId int, model []TaskModel) templ.Component

func WeightSetsAndRepsTempl

func WeightSetsAndRepsTempl() templ.Component

Types

type AddTaskModel

type AddTaskModel struct {
	Title string
	Value string
	Type  int
}

func AddTaskModelFromRequest

func AddTaskModelFromRequest(r *http.Request) (AddTaskModel, error)

type TaskModel

type TaskModel struct {
	Title     string
	Date      time.Time
	Value     string
	Type      int
	Id        int
	TaskTable TaskTable
}

type TaskRow

type TaskRow struct {
	Value []string
}

type TaskTable

type TaskTable struct {
	Headers []string
	Rows    []TaskRow
}

type TimePaceAndDistanceModel

type TimePaceAndDistanceModel struct {
	Pace string
	Time string
}

func TimePaceAndDistanceFromModel

func TimePaceAndDistanceFromModel(value string) TimePaceAndDistanceModel

func TimePaceAndDistanceFromRequest

func TimePaceAndDistanceFromRequest(r *http.Request) TimePaceAndDistanceModel

func (TimePaceAndDistanceModel) ToTable

func (model TimePaceAndDistanceModel) ToTable() TaskTable

type WeightSetsAndRepsModel

type WeightSetsAndRepsModel struct {
	Weight int
	Sets   int
	Reps   int
}

func WeightSetsAndRepsFromModel

func WeightSetsAndRepsFromModel(value string) WeightSetsAndRepsModel

func WeightSetsAndRepsFromRequest

func WeightSetsAndRepsFromRequest(r *http.Request) (WeightSetsAndRepsModel, error)

func (WeightSetsAndRepsModel) ToTable

func (model WeightSetsAndRepsModel) ToTable() TaskTable

Jump to

Keyboard shortcuts

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