Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
s8_ivanov_r
VPL-pizza-shop-blazor
Commits
d053349a
Unverified
Commit
d053349a
authored
Nov 20, 2020
by
Artak
Committed by
GitHub
Nov 20, 2020
Browse files
Merge pull request #292 from mkArtak/release/5.0
Update BlazingPizza app to 5.0
parents
fddeba9b
0f2f2563
Changes
80
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
43 additions
and
48 deletions
+43
-48
Directory.Build.props
Directory.Build.props
+4
-4
docs/04-refactor-state-management.md
docs/04-refactor-state-management.md
+1
-1
docs/06-authentication-and-authorization.md
docs/06-authentication-and-authorization.md
+3
-3
save-points/00-get-started/BlazingPizza.Client/BlazingPizza.Client.csproj
...et-started/BlazingPizza.Client/BlazingPizza.Client.csproj
+2
-5
save-points/00-get-started/BlazingPizza.Client/Program.cs
save-points/00-get-started/BlazingPizza.Client/Program.cs
+1
-1
save-points/00-get-started/BlazingPizza.Client/wwwroot/index.html
...nts/00-get-started/BlazingPizza.Client/wwwroot/index.html
+2
-2
save-points/00-get-started/BlazingPizza.ComponentsLibrary/BlazingPizza.ComponentsLibrary.csproj
...a.ComponentsLibrary/BlazingPizza.ComponentsLibrary.csproj
+6
-2
save-points/00-get-started/BlazingPizza.Server/BlazingPizza.Server.csproj
...et-started/BlazingPizza.Server/BlazingPizza.Server.csproj
+1
-2
save-points/00-get-started/BlazingPizza.Server/Startup.cs
save-points/00-get-started/BlazingPizza.Server/Startup.cs
+2
-2
save-points/00-get-started/BlazingPizza.Shared/BlazingPizza.Shared.csproj
...et-started/BlazingPizza.Shared/BlazingPizza.Shared.csproj
+1
-2
save-points/01-Components-and-layout/BlazingPizza.Client/BlazingPizza.Client.csproj
...and-layout/BlazingPizza.Client/BlazingPizza.Client.csproj
+2
-5
save-points/01-Components-and-layout/BlazingPizza.Client/Program.cs
...s/01-Components-and-layout/BlazingPizza.Client/Program.cs
+1
-1
save-points/01-Components-and-layout/BlazingPizza.Client/wwwroot/index.html
...ponents-and-layout/BlazingPizza.Client/wwwroot/index.html
+2
-2
save-points/01-Components-and-layout/BlazingPizza.ComponentsLibrary/BlazingPizza.ComponentsLibrary.csproj
...a.ComponentsLibrary/BlazingPizza.ComponentsLibrary.csproj
+5
-2
save-points/01-Components-and-layout/BlazingPizza.Server/BlazingPizza.Server.csproj
...and-layout/BlazingPizza.Server/BlazingPizza.Server.csproj
+1
-2
save-points/01-Components-and-layout/BlazingPizza.Server/Startup.cs
...s/01-Components-and-layout/BlazingPizza.Server/Startup.cs
+3
-2
save-points/01-Components-and-layout/BlazingPizza.Shared/BlazingPizza.Shared.csproj
...and-layout/BlazingPizza.Shared/BlazingPizza.Shared.csproj
+1
-2
save-points/02-customize-a-pizza/BlazingPizza.Client/BlazingPizza.Client.csproj
...ze-a-pizza/BlazingPizza.Client/BlazingPizza.Client.csproj
+2
-5
save-points/02-customize-a-pizza/BlazingPizza.Client/Program.cs
...oints/02-customize-a-pizza/BlazingPizza.Client/Program.cs
+1
-1
save-points/02-customize-a-pizza/BlazingPizza.Client/wwwroot/index.html
...-customize-a-pizza/BlazingPizza.Client/wwwroot/index.html
+2
-2
No files found.
Directory.Build.props
View file @
d053349a
<Project>
<PropertyGroup>
<AspNetCoreVersion>5.0.0
-preview.7.20326.3
</AspNetCoreVersion>
<BlazorVersion>5.0.0
-preview.7.20326.3
</BlazorVersion>
<EntityFrameworkVersion>5.0.0
-preview.7.20326.1
</EntityFrameworkVersion>
<SystemNetHttpJsonVersion>5.0.0
-preview.7.20326.1
</SystemNetHttpJsonVersion>
<AspNetCoreVersion>5.0.0</AspNetCoreVersion>
<BlazorVersion>5.0.0</BlazorVersion>
<EntityFrameworkVersion>5.0.0</EntityFrameworkVersion>
<SystemNetHttpJsonVersion>5.0.0</SystemNetHttpJsonVersion>
</PropertyGroup>
</Project>
docs/04-refactor-state-management.md
View file @
d053349a
...
...
@@ -18,7 +18,7 @@ Create a new class called `OrderState` in the Client Project root directory - an
public
static
async
Task
Main
(
string
[]
args
)
{
var
builder
=
WebAssemblyHostBuilder
.
CreateDefault
(
args
);
builder
.
RootComponents
.
Add
<
App
>(
"app"
);
builder
.
RootComponents
.
Add
<
App
>(
"
#
app"
);
builder
.
Services
.
AddScoped
(
sp
=>
new
HttpClient
{
BaseAddress
=
new
Uri
(
builder
.
HostEnvironment
.
BaseAddress
)
});
builder
.
Services
.
AddScoped
<
OrderState
>();
...
...
docs/06-authentication-and-authorization.md
View file @
d053349a
...
...
@@ -49,7 +49,7 @@ To enable the authentication services, add a call to `AddApiAuthorization` in *P
public
static
async
Task
Main
(
string
[]
args
)
{
var
builder
=
WebAssemblyHostBuilder
.
CreateDefault
(
args
);
builder
.
RootComponents
.
Add
<
App
>(
"app"
);
builder
.
RootComponents
.
Add
<
App
>(
"
#
app"
);
builder
.
Services
.
AddScoped
(
sp
=>
new
HttpClient
{
BaseAddress
=
new
Uri
(
builder
.
HostEnvironment
.
BaseAddress
)
});
builder
.
Services
.
AddScoped
<
OrderState
>();
...
...
@@ -68,8 +68,8 @@ The added services will be configured by default to use an identity provider on
```
csharp
public
void
ConfigureServices
(
IServiceCollection
services
)
{
services
.
Add
Mvc
()
.
AddNewtonsoftJson
();
services
.
Add
ControllersWithViews
()
;
services
.
AddRazorPages
();
services
.
AddDbContext
<
PizzaStoreContext
>(
options
=>
options
.
UseSqlite
(
"Data Source=pizza.db"
));
...
...
save-points/00-get-started/BlazingPizza.Client/BlazingPizza.Client.csproj
View file @
d053349a
<Project Sdk="Microsoft.NET.Sdk.
Web
">
<Project Sdk="Microsoft.NET.Sdk.
BlazorWebAssembly
">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>7.3</LangVersion>
<RazorLangVersion>3.0</RazorLangVersion>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="$(BlazorVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="$(BlazorVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="$(BlazorVersion)" PrivateAssets="all" />
<PackageReference Include="Microsoft.Extensions.Http" Version="$(AspNetCoreVersion)" />
<PackageReference Include="System.Net.Http.Json" Version="$(SystemNetHttpJsonVersion)" />
</ItemGroup>
...
...
save-points/00-get-started/BlazingPizza.Client/Program.cs
View file @
d053349a
...
...
@@ -11,7 +11,7 @@ namespace BlazingPizza.Client
public
static
async
Task
Main
(
string
[]
args
)
{
var
builder
=
WebAssemblyHostBuilder
.
CreateDefault
(
args
);
builder
.
RootComponents
.
Add
<
App
>(
"app"
);
builder
.
RootComponents
.
Add
<
App
>(
"
#
app"
);
builder
.
Services
.
AddScoped
(
sp
=>
new
HttpClient
{
BaseAddress
=
new
Uri
(
builder
.
HostEnvironment
.
BaseAddress
)
});
...
...
save-points/00-get-started/BlazingPizza.Client/wwwroot/index.html
View file @
d053349a
...
...
@@ -11,9 +11,9 @@
<title>
Blazing Pizza
</title>
</head>
<body>
<app>
<
div
id=
"
app
"
>
<div
class=
"loading-bar"
></div>
</
app
>
</
div
>
<div
id=
"blazor-error-ui"
>
An unhandled error has occurred.
...
...
save-points/00-get-started/BlazingPizza.ComponentsLibrary/BlazingPizza.ComponentsLibrary.csproj
View file @
d053349a
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="$(AspNetCoreVersion)" />
</ItemGroup>
<ItemGroup>
<SupportedPlatform Include="browser" />
</ItemGroup>
</Project>
save-points/00-get-started/BlazingPizza.Server/BlazingPizza.Server.csproj
View file @
d053349a
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>7.3</LangVersion>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
...
...
save-points/00-get-started/BlazingPizza.Server/Startup.cs
View file @
d053349a
...
...
@@ -19,8 +19,8 @@ namespace BlazingPizza.Server
public
void
ConfigureServices
(
IServiceCollection
services
)
{
services
.
Add
Mvc
()
.
AddNewtonsoftJson
();
services
.
Add
ControllersWithViews
()
;
services
.
AddRazorPages
();
services
.
AddDbContext
<
PizzaStoreContext
>(
options
=>
options
.
UseSqlite
(
"Data Source=pizza.db"
));
...
...
save-points/00-get-started/BlazingPizza.Shared/BlazingPizza.Shared.csproj
View file @
d053349a
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>7.3</LangVersion>
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>BlazingPizza</RootNamespace>
</PropertyGroup>
...
...
save-points/01-Components-and-layout/BlazingPizza.Client/BlazingPizza.Client.csproj
View file @
d053349a
<Project Sdk="Microsoft.NET.Sdk.
Web
">
<Project Sdk="Microsoft.NET.Sdk.
BlazorWebAssembly
">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>7.3</LangVersion>
<RazorLangVersion>3.0</RazorLangVersion>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="$(BlazorVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="$(BlazorVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="$(BlazorVersion)" PrivateAssets="all" />
<PackageReference Include="Microsoft.Extensions.Http" Version="$(AspNetCoreVersion)" />
<PackageReference Include="System.Net.Http.Json" Version="$(SystemNetHttpJsonVersion)" />
</ItemGroup>
...
...
save-points/01-Components-and-layout/BlazingPizza.Client/Program.cs
View file @
d053349a
...
...
@@ -11,7 +11,7 @@ namespace BlazingPizza.Client
public
static
async
Task
Main
(
string
[]
args
)
{
var
builder
=
WebAssemblyHostBuilder
.
CreateDefault
(
args
);
builder
.
RootComponents
.
Add
<
App
>(
"app"
);
builder
.
RootComponents
.
Add
<
App
>(
"
#
app"
);
builder
.
Services
.
AddScoped
(
sp
=>
new
HttpClient
{
BaseAddress
=
new
Uri
(
builder
.
HostEnvironment
.
BaseAddress
)
});
...
...
save-points/01-Components-and-layout/BlazingPizza.Client/wwwroot/index.html
View file @
d053349a
...
...
@@ -11,9 +11,9 @@
<title>
Blazing Pizza
</title>
</head>
<body>
<app>
<
div
id=
"
app
"
>
<div
class=
"loading-bar"
></div>
</
app
>
</
div
>
<div
id=
"blazor-error-ui"
>
An unhandled error has occurred.
...
...
save-points/01-Components-and-layout/BlazingPizza.ComponentsLibrary/BlazingPizza.ComponentsLibrary.csproj
View file @
d053349a
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
...
...
@@ -10,4 +9,8 @@
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="$(AspNetCoreVersion)" />
</ItemGroup>
<ItemGroup>
<SupportedPlatform Include="browser" />
</ItemGroup>
</Project>
save-points/01-Components-and-layout/BlazingPizza.Server/BlazingPizza.Server.csproj
View file @
d053349a
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>7.3</LangVersion>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
...
...
save-points/01-Components-and-layout/BlazingPizza.Server/Startup.cs
View file @
d053349a
...
...
@@ -19,8 +19,9 @@ namespace BlazingPizza.Server
public
void
ConfigureServices
(
IServiceCollection
services
)
{
services
.
AddMvc
()
.
AddNewtonsoftJson
();
services
.
AddControllersWithViews
();
services
.
AddRazorPages
();
services
.
AddDbContext
<
PizzaStoreContext
>(
options
=>
options
.
UseSqlite
(
"Data Source=pizza.db"
));
...
...
save-points/01-Components-and-layout/BlazingPizza.Shared/BlazingPizza.Shared.csproj
View file @
d053349a
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>7.3</LangVersion>
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>BlazingPizza</RootNamespace>
</PropertyGroup>
...
...
save-points/02-customize-a-pizza/BlazingPizza.Client/BlazingPizza.Client.csproj
View file @
d053349a
<Project Sdk="Microsoft.NET.Sdk.
Web
">
<Project Sdk="Microsoft.NET.Sdk.
BlazorWebAssembly
">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>7.3</LangVersion>
<RazorLangVersion>3.0</RazorLangVersion>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="$(BlazorVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="$(BlazorVersion)" PrivateAssets="all" />
<PackageReference Include="Microsoft.Extensions.Http" Version="$(AspNetCoreVersion)" />
<PackageReference Include="System.Net.Http.Json" Version="$(SystemNetHttpJsonVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="$(BlazorVersion)" />
...
...
save-points/02-customize-a-pizza/BlazingPizza.Client/Program.cs
View file @
d053349a
...
...
@@ -11,7 +11,7 @@ namespace BlazingPizza.Client
public
static
async
Task
Main
(
string
[]
args
)
{
var
builder
=
WebAssemblyHostBuilder
.
CreateDefault
(
args
);
builder
.
RootComponents
.
Add
<
App
>(
"app"
);
builder
.
RootComponents
.
Add
<
App
>(
"
#
app"
);
builder
.
Services
.
AddScoped
(
sp
=>
new
HttpClient
{
BaseAddress
=
new
Uri
(
builder
.
HostEnvironment
.
BaseAddress
)
});
...
...
save-points/02-customize-a-pizza/BlazingPizza.Client/wwwroot/index.html
View file @
d053349a
...
...
@@ -11,9 +11,9 @@
<title>
Blazing Pizza
</title>
</head>
<body>
<app>
<
div
id=
"
app
"
>
<div
class=
"loading-bar"
></div>
</
app
>
</
div
>
<div
id=
"blazor-error-ui"
>
An unhandled error has occurred.
...
...
Prev
1
2
3
4
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment