Typo + fix libman config

This commit is contained in:
Samuele Locatelli
2023-05-09 10:16:02 +02:00
parent 397b619017
commit f9f4654d97
4 changed files with 26 additions and 6 deletions
+19 -4
View File
@@ -18,10 +18,10 @@ else
<table class="table">
<thead>
<tr>
<th>Date</th>
<th>Temp. (C)</th>
<th>Temp. (F)</th>
<th>Summary</th>
<th>Date<Sorter ParamName="Date" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter></th>
<th>Temp. (C)<Sorter ParamName="TempC" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter></th>
<th>Temp. (F)<Sorter ParamName="TempF" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter></th>
<th>Summary<Sorter ParamName="Summary" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter></th>
</tr>
</thead>
<tbody>
@@ -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();
}
}
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="~/" />
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
<link rel="stylesheet" href="~/lib/font-awesome/css/all.min.css" />
<link href="css/site.css" rel="stylesheet" />
<link href="EgwCoreLib.BlazorTest.styles.css" rel="stylesheet" />
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />
+4
View File
@@ -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/"
}
]
}
+2 -2
View File
@@ -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;