Typo + fix libman config
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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/"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user