From f9f4654d97126eb12999e5f074c70c8a977dd7cd Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 9 May 2023 10:16:02 +0200 Subject: [PATCH] Typo + fix libman config --- EgwCoreLib.BlazorTest/Pages/FetchData.razor | 23 +++++++++++++++++---- EgwCoreLib.BlazorTest/Pages/_Layout.cshtml | 1 + EgwCoreLib.BlazorTest/libman.json | 4 ++++ EgwCoreLib.Razor/CalendarMonth.razor.cs | 4 ++-- 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/EgwCoreLib.BlazorTest/Pages/FetchData.razor b/EgwCoreLib.BlazorTest/Pages/FetchData.razor index ce40e5a..9c580cd 100644 --- a/EgwCoreLib.BlazorTest/Pages/FetchData.razor +++ b/EgwCoreLib.BlazorTest/Pages/FetchData.razor @@ -18,10 +18,10 @@ else - - - - + + + + @@ -42,7 +42,22 @@ else private WeatherForecast[]? forecasts; protected override async Task OnInitializedAsync() + { + await ReloadAllData(); + } + + protected async Task ReloadAllData() { forecasts = await ForecastService.GetForecastAsync(DateTime.Now); } + + private bool sortAsc = true; + private string sortField = ""; + + protected async Task SortRequested(Sorter.SortCallBack e) + { + sortField = e.ParamName; + sortAsc = e.IsAscending; + await ReloadAllData(); + } } diff --git a/EgwCoreLib.BlazorTest/Pages/_Layout.cshtml b/EgwCoreLib.BlazorTest/Pages/_Layout.cshtml index 4e1d681..aebdb89 100644 --- a/EgwCoreLib.BlazorTest/Pages/_Layout.cshtml +++ b/EgwCoreLib.BlazorTest/Pages/_Layout.cshtml @@ -9,6 +9,7 @@ + diff --git a/EgwCoreLib.BlazorTest/libman.json b/EgwCoreLib.BlazorTest/libman.json index 03b77f0..9fbb4ec 100644 --- a/EgwCoreLib.BlazorTest/libman.json +++ b/EgwCoreLib.BlazorTest/libman.json @@ -5,6 +5,10 @@ { "library": "bootstrap@5.2.3", "destination": "wwwroot/lib/css/bootstrap/" + }, + { + "library": "font-awesome@6.3.0", + "destination": "wwwroot/lib/font-awesome/" } ] } \ No newline at end of file diff --git a/EgwCoreLib.Razor/CalendarMonth.razor.cs b/EgwCoreLib.Razor/CalendarMonth.razor.cs index 5bec4cd..a1d6a70 100644 --- a/EgwCoreLib.Razor/CalendarMonth.razor.cs +++ b/EgwCoreLib.Razor/CalendarMonth.razor.cs @@ -226,7 +226,7 @@ namespace EgwCoreLib.Razor private string dayCss(DateTime currDay) { string answ = CurrMonthCss; - // se � fuori estremi mese --> grigio... + // se fosse fuori estremi mese --> grigio... if (currDay < MonthStart || currDay > MonthEnd) { answ = OtherMonthCss; @@ -238,7 +238,7 @@ namespace EgwCoreLib.Razor { answ = DateCheckBlock[currDay]; } - // se � weekend forzo quello + // se fosse weekend forzo quello else if (currDay.DayOfWeek == DayOfWeek.Saturday || currDay.DayOfWeek == DayOfWeek.Sunday) { answ = WeekEndCss;
DateTemp. (C)Temp. (F)SummaryDateTemp. (C)Temp. (F)Summary