Skip to content

Commit ec758dc

Browse files
chore: cleanup templates for release
1 parent 90da478 commit ec758dc

6 files changed

Lines changed: 5 additions & 9 deletions

File tree

src/BlazorDesktop.Sample/wwwroot/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
<!DOCTYPE html>
66
<html lang="en">
7-
87
<head>
98
<meta charset="utf-8" />
109
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
@@ -26,5 +25,4 @@
2625

2726
<script src="_framework/blazor.webview.js"></script>
2827
</body>
29-
3028
</html>

src/BlazorDesktop.Templates/templates/BlazorDesktop-CSharp/Data/WeatherForecastService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
public class WeatherForecastService
44
{
5-
private static readonly string[] Summaries = new[]
5+
private static readonly string[] s_summaries = new[]
66
{
77
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
88
};
@@ -13,7 +13,7 @@ public Task<WeatherForecast[]> GetForecastAsync(DateTime startDate)
1313
{
1414
Date = startDate.AddDays(index),
1515
TemperatureC = Random.Shared.Next(-20, 55),
16-
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
16+
Summary = s_summaries[Random.Shared.Next(s_summaries.Length)]
1717
}).ToArray());
1818
}
1919
}

src/BlazorDesktop.Templates/templates/BlazorDesktop-CSharp/Pages/FetchData.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ else
3737
}
3838

3939
@code {
40-
private WeatherForecast[] forecasts;
40+
private WeatherForecast[]? forecasts;
4141

4242
protected override async Task OnInitializedAsync()
4343
{

src/BlazorDesktop.Templates/templates/BlazorDesktop-CSharp/Shared/NavMenu.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
@code {
3131
private bool collapseNavMenu = true;
3232

33-
private string NavMenuCssClass => collapseNavMenu ? "collapse" : null;
33+
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;
3434

3535
private void ToggleNavMenu()
3636
{

src/BlazorDesktop.Templates/templates/BlazorDesktop-CSharp/Shared/SurveyPrompt.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
@code {
1313
// Demonstrates how a parent component can supply parameters
1414
[Parameter]
15-
public string Title { get; set; }
15+
public string? Title { get; set; }
1616
}

src/BlazorDesktop.Templates/templates/BlazorDesktop-CSharp/wwwroot/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
43
<head>
54
<meta charset="utf-8" />
65
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
@@ -22,5 +21,4 @@
2221

2322
<script src="_framework/blazor.webview.js"></script>
2423
</body>
25-
2624
</html>

0 commit comments

Comments
 (0)