| | | 1 | | @using Pomodoro.Web.Models |
| | | 2 | | @using Pomodoro.Web.Pages |
| | | 3 | | |
| | | 4 | | <div class="daily-view"> |
| | | 5 | | <div class="date-navigator-container"> |
| | | 6 | | <DateNavigator SelectedDate="SelectedDate" |
| | | 7 | | OnDateChanged="OnDateChanged" /> |
| | | 8 | | </div> |
| | | 9 | | |
| | | 10 | | <DailySummarySection CurrentStats="CurrentStats" /> |
| | | 11 | | |
| | | 12 | | <div class="history-content"> |
| | | 13 | | <div class="time-distribution-section"> |
| | | 14 | | <TimeDistributionChart SelectedDate="SelectedDate" /> |
| | | 15 | | </div> |
| | | 16 | | |
| | | 17 | | <TimelineSection Activities="Activities" |
| | | 18 | | HasMoreActivities="HasMoreActivities" |
| | | 19 | | IsLoadingMore="IsLoadingMore" |
| | | 20 | | OnLoadMore="OnLoadMore" /> |
| | | 21 | | </div> |
| | | 22 | | </div> |
| | | 23 | | |
| | | 24 | | @code { |
| | | 25 | | [Parameter] |
| | 277 | 26 | | public DateTime SelectedDate { get; set; } |
| | | 27 | | |
| | | 28 | | [Parameter] |
| | 183 | 29 | | public DailyStatsSummary? CurrentStats { get; set; } |
| | | 30 | | |
| | | 31 | | [Parameter] |
| | 269 | 32 | | public List<ActivityRecord> Activities { get; set; } = new(); |
| | | 33 | | |
| | | 34 | | [Parameter] |
| | 184 | 35 | | public bool HasMoreActivities { get; set; } |
| | | 36 | | |
| | | 37 | | [Parameter] |
| | 183 | 38 | | public bool IsLoadingMore { get; set; } |
| | | 39 | | |
| | | 40 | | [Parameter] |
| | 181 | 41 | | public EventCallback<DateTime> OnDateChanged { get; set; } |
| | | 42 | | |
| | | 43 | | [Parameter] |
| | 181 | 44 | | public EventCallback OnLoadMore { get; set; } |
| | | 45 | | } |