Skip to content

Commit 2ef4196

Browse files
committed
Updated savepoint 2, 3, 4, 5, 6, 7, 8, 9
1 parent a546467 commit 2ef4196

File tree

391 files changed

+18264
-6532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

391 files changed

+18264
-6532
lines changed
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
namespace BlazingPizza.ComponentsLibrary.Map
1+
namespace BlazingPizza.ComponentsLibrary.Map;
2+
3+
public class Marker
24
{
3-
public class Marker
4-
{
5-
public string Description { get; set; }
5+
public string Description { get; set; }
66

7-
public double X { get; set; }
7+
public double X { get; set; }
88

9-
public double Y { get; set; }
9+
public double Y { get; set; }
1010

11-
public bool ShowPopup { get; set; }
12-
}
13-
}
11+
public bool ShowPopup { get; set; }
12+
}
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
namespace BlazingPizza.ComponentsLibrary.Map
1+
namespace BlazingPizza.ComponentsLibrary.Map;
2+
3+
public class Point
24
{
3-
public class Point
4-
{
5-
public double X { get; set; }
5+
public double X { get; set; }
66

7-
public double Y { get; set; }
8-
}
9-
}
7+
public double Y { get; set; }
8+
}
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
namespace BlazingPizza.ComponentsLibrary.Map
1+
namespace BlazingPizza.ComponentsLibrary.Map;
2+
public class Marker
23
{
3-
public class Marker
4-
{
5-
public string Description { get; set; }
4+
public string Description { get; set; }
65

7-
public double X { get; set; }
6+
public double X { get; set; }
87

9-
public double Y { get; set; }
8+
public double Y { get; set; }
109

11-
public bool ShowPopup { get; set; }
12-
}
13-
}
10+
public bool ShowPopup { get; set; }
11+
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
namespace BlazingPizza.ComponentsLibrary.Map
1+
namespace BlazingPizza.ComponentsLibrary.Map;
2+
3+
public class Point
24
{
3-
public class Point
4-
{
5-
public double X { get; set; }
5+
public double X { get; set; }
66

7-
public double Y { get; set; }
8-
}
7+
public double Y { get; set; }
98
}
9+
// Compare this snippet from save-points\01-Components-and-layout\BlazingPizza.ComponentsLibrary\Map\Marker.cs:
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using Microsoft.AspNetCore.Identity;
22

3-
namespace BlazingPizza.Server
3+
namespace BlazingPizza.Server;
4+
public class PizzaStoreUser : IdentityUser
45
{
5-
public class PizzaStoreUser : IdentityUser
6-
{
7-
}
86
}

save-points/02-customize-a-pizza/BlazingPizza.Client/BlazingPizza.Client.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>$(TargetFrameworkVersion)</TargetFramework>
5+
<ImplicitUsings>true</ImplicitUsings>
56
</PropertyGroup>
67

78
<ItemGroup>
Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
2-
using Microsoft.Extensions.DependencyInjection;
3-
using System;
4-
using System.Net.Http;
5-
using System.Threading.Tasks;
1+
using BlazingPizza.Client;
2+
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
63

7-
namespace BlazingPizza.Client
8-
{
9-
public class Program
10-
{
11-
public static async Task Main(string[] args)
12-
{
13-
var builder = WebAssemblyHostBuilder.CreateDefault(args);
14-
builder.RootComponents.Add<App>("#app");
4+
var builder = WebAssemblyHostBuilder.CreateDefault(args);
5+
builder.RootComponents.Add<App>("#app");
156

16-
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
7+
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
178

18-
await builder.Build().RunAsync();
19-
}
20-
}
21-
}
9+
await builder.Build().RunAsync();

save-points/02-customize-a-pizza/BlazingPizza.ComponentsLibrary/BlazingPizza.ComponentsLibrary.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>$(TargetFrameworkVersion)</TargetFramework>
5+
<ImplicitUsings>true</ImplicitUsings>
56
</PropertyGroup>
67

78
<ItemGroup>
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
using Microsoft.JSInterop;
2-
using System.Threading.Tasks;
32

4-
namespace BlazingPizza.ComponentsLibrary
3+
namespace BlazingPizza.ComponentsLibrary;
4+
5+
public static class LocalStorage
56
{
6-
public static class LocalStorage
7-
{
8-
public static ValueTask<T> GetAsync<T>(IJSRuntime jsRuntime, string key)
9-
=> jsRuntime.InvokeAsync<T>("blazorLocalStorage.get", key);
107

11-
public static ValueTask SetAsync(IJSRuntime jsRuntime, string key, object value)
12-
=> jsRuntime.InvokeVoidAsync("blazorLocalStorage.set", key, value);
8+
public static ValueTask<T> GetAsync<T>(IJSRuntime jsRuntime, string key)
9+
=> jsRuntime.InvokeAsync<T>("blazorLocalStorage.get", key);
10+
11+
public static ValueTask SetAsync(IJSRuntime jsRuntime, string key, object value)
12+
=> jsRuntime.InvokeVoidAsync("blazorLocalStorage.set", key, value);
1313

14-
public static ValueTask DeleteAsync(IJSRuntime jsRuntime, string key)
15-
=> jsRuntime.InvokeVoidAsync("blazorLocalStorage.delete", key);
16-
}
17-
}
14+
public static ValueTask DeleteAsync(IJSRuntime jsRuntime, string key)
15+
=> jsRuntime.InvokeVoidAsync("blazorLocalStorage.delete", key);
16+
17+
}

save-points/02-customize-a-pizza/BlazingPizza.Server/BlazingPizza.Server.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>$(TargetFrameworkVersion)</TargetFramework>
5+
<ImplicitUsings>true</ImplicitUsings>
56
</PropertyGroup>
67

78
<ItemGroup>

0 commit comments

Comments
 (0)