components

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package components implements UI components for stats.

Index

Constants

View Source
const (
	NumberOfMonths = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BarChart

type BarChart struct {
	// contains filtered or unexported fields
}

func NewBarChart

func NewBarChart(height int) BarChart

func (*BarChart) View

func (b *BarChart) View(stats []db.DailyStat) string

type DurationRatio

type DurationRatio struct {
	// contains filtered or unexported fields
}

func NewDurationRatio

func NewDurationRatio(width int) DurationRatio

func (*DurationRatio) View

func (d *DurationRatio) View(workDuration, breakDuration time.Duration) string

type HeatMap

type HeatMap struct{}

func NewHeatMap

func NewHeatMap() HeatMap

func (*HeatMap) View

func (h *HeatMap) View(stats []db.DailyStat) string

type Streak

type Streak struct{}

func NewStreak

func NewStreak() Streak

func (Streak) View

func (s Streak) View(streak db.StreakStats) string

Jump to

Keyboard shortcuts

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