Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ...stomization/ExportCustomization/App.razor → App.razor
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<Router AppAssembly="@typeof(Program).Assembly">
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<LayoutView Layout="@typeof(MainLayout)">
<p>Sorry, there's nothing at this address.</p>
<p role="alert">Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
using System;

namespace ExportCustomization.Data
namespace ExportingCustomization.Data
{
public class WeatherForecast
{
public DateTime Date { get; set; }
public DateOnly Date { get; set; }

public int TemperatureC { get; set; }

public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);

public string Summary { get; set; }
public string? Summary { get; set; }
}
}
}
20 changes: 20 additions & 0 deletions Data/WeatherForecastService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
namespace ExportingCustomization.Data
{
public class WeatherForecastService
{
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};

public Task<WeatherForecast[]> GetForecastAsync(DateOnly startDate)
{
return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
{
Date = startDate.AddDays(index),
TemperatureC = Random.Shared.Next(-20, 55),
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
}).ToArray());
}
}
}

This file was deleted.

11 changes: 0 additions & 11 deletions ExportCustomization/ExportCustomization/ExportCustomization.csproj

This file was deleted.

16 changes: 0 additions & 16 deletions ExportCustomization/ExportCustomization/Pages/Error.razor

This file was deleted.

28 changes: 0 additions & 28 deletions ExportCustomization/ExportCustomization/Program.cs

This file was deleted.

15 changes: 0 additions & 15 deletions ExportCustomization/ExportCustomization/Shared/MainLayout.razor

This file was deleted.

37 changes: 0 additions & 37 deletions ExportCustomization/ExportCustomization/Shared/NavMenu.razor

This file was deleted.

60 changes: 0 additions & 60 deletions ExportCustomization/ExportCustomization/Startup.cs

This file was deleted.

This file was deleted.

This file was deleted.

Loading