{{template "base" .}} {{define "title"}}Home{{end}} {{define "header"}}Home{{end}} {{define "content"}}

Daily Read Totals

{{ $data := (getSVGGraphData .Data.GraphData 800 70 )}} {{ range $index, $item := $data.LinePoints }} {{ (index $.Data.GraphData $index).Date }} {{ (index $.Data.GraphData $index).MinutesRead }} minutes {{ end }}

{{ .Data.DatabaseInfo.DocumentsSize }}

Documents

{{ .Data.DatabaseInfo.ActivitySize }}

Activity Records

{{ .Data.DatabaseInfo.ProgressSize }}

Progress Records

{{ .Data.DatabaseInfo.DevicesSize }}

Devices

{{ range $item := .Data.Streaks }}

{{ if eq $item.Window "WEEK" }} Weekly Read Streak {{ else }} Daily Read Streak {{ end }}

{{ $item.CurrentStreak }}

{{ if eq $item.Window "WEEK" }} Current Weekly Streak {{ else }} Current Daily Streak {{ end }}

{{ $item.CurrentStreakStartDate }} ➞ {{ $item.CurrentStreakEndDate }}
{{ $item.CurrentStreak }}

{{ if eq $item.Window "WEEK" }} Best Weekly Streak {{ else }} Best Daily Streak {{ end }}

{{ $item.MaxStreakStartDate }} ➞ {{ $item.MaxStreakEndDate }}
{{ $item.MaxStreak }}
{{ end }}
{{ template "component/leaderboard-card" ( dict "Name" "WPM" "Data" .Data.UserStatistics.WPM ) }} {{ template "component/leaderboard-card" ( dict "Name" "Duration" "Data" .Data.UserStatistics.Duration ) }} {{ template "component/leaderboard-card" ( dict "Name" "Words" "Data" .Data.UserStatistics.Words ) }}
{{end}}