Skip to content

Commit cd94efd

Browse files
Restored Progressive Web App.
1 parent 9bf11f8 commit cd94efd

37 files changed

+325
-314
lines changed

src/App.razor

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Router AppAssembly="@typeof(App).Assembly">
2+
<Found Context="routeData">
3+
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
4+
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
5+
</Found>
6+
<NotFound>
7+
<PageTitle>Not found</PageTitle>
8+
<LayoutView Layout="@typeof(MainLayout)">
9+
<p role="alert">Sorry, there's nothing at this address.</p>
10+
</LayoutView>
11+
</NotFound>
12+
</Router>

src/BlazorPages.Client/BlazorPages.Client.csproj

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/BlazorPages.Client/Program.cs

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/BlazorPages.Client/wwwroot/appsettings.Development.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/BlazorPages.Client/wwwroot/appsettings.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/BlazorPages.csproj

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.1" />
12+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.1" PrivateAssets="all" />
13+
</ItemGroup>
14+
15+
<ItemGroup>
16+
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
17+
</ItemGroup>
18+
19+
</Project>

src/BlazorPages.sln

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,23 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.8.34525.116
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorPages", "BlazorPages\BlazorPages.csproj", "{42DFC2EA-9780-40A1-A765-9EC343E3BA46}"
7-
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorPages.Client", "BlazorPages.Client\BlazorPages.Client.csproj", "{5AA04AC3-9498-43B4-9AFF-71546CF27739}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorPages", "BlazorPages.csproj", "{B1EC3835-D12A-4DEE-81DE-D37E4AA13C85}"
97
EndProject
108
Global
119
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1210
Debug|Any CPU = Debug|Any CPU
1311
Release|Any CPU = Release|Any CPU
1412
EndGlobalSection
1513
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16-
{42DFC2EA-9780-40A1-A765-9EC343E3BA46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17-
{42DFC2EA-9780-40A1-A765-9EC343E3BA46}.Debug|Any CPU.Build.0 = Debug|Any CPU
18-
{42DFC2EA-9780-40A1-A765-9EC343E3BA46}.Release|Any CPU.ActiveCfg = Release|Any CPU
19-
{42DFC2EA-9780-40A1-A765-9EC343E3BA46}.Release|Any CPU.Build.0 = Release|Any CPU
20-
{5AA04AC3-9498-43B4-9AFF-71546CF27739}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21-
{5AA04AC3-9498-43B4-9AFF-71546CF27739}.Debug|Any CPU.Build.0 = Debug|Any CPU
22-
{5AA04AC3-9498-43B4-9AFF-71546CF27739}.Release|Any CPU.ActiveCfg = Release|Any CPU
23-
{5AA04AC3-9498-43B4-9AFF-71546CF27739}.Release|Any CPU.Build.0 = Release|Any CPU
14+
{B1EC3835-D12A-4DEE-81DE-D37E4AA13C85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{B1EC3835-D12A-4DEE-81DE-D37E4AA13C85}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{B1EC3835-D12A-4DEE-81DE-D37E4AA13C85}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{B1EC3835-D12A-4DEE-81DE-D37E4AA13C85}.Release|Any CPU.Build.0 = Release|Any CPU
2418
EndGlobalSection
2519
GlobalSection(SolutionProperties) = preSolution
2620
HideSolutionNode = FALSE
2721
EndGlobalSection
2822
GlobalSection(ExtensibilityGlobals) = postSolution
29-
SolutionGuid = {1EB7FBE4-8891-4047-8811-D3C3D8BAB998}
23+
SolutionGuid = {C44BF6D3-C25E-4D45-A56E-0E982BBCA87F}
3024
EndGlobalSection
3125
EndGlobal

src/BlazorPages/BlazorPages.csproj

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/BlazorPages/Components/App.razor

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/BlazorPages/Components/Pages/Error.razor

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)