Skip to content

Commit

Permalink
#257 - Remove BlazorPWA dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Mar 18, 2020
1 parent 71cfc2a commit 9d8fd36
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 329 deletions.
25 changes: 0 additions & 25 deletions src/Money.UI.Blazor/Money.UI.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,7 @@
</RestoreAdditionalProjectSources>
</PropertyGroup>

<PropertyGroup>
<ManifestShortName>Money</ManifestShortName>
<ManifestLongName>Money by Neptuo</ManifestLongName>

<ServiceWorkerFileName>service-worker.js</ServiceWorkerFileName>
<ServiceWorkerRegisterFileName>service-worker-register.js</ServiceWorkerRegisterFileName>
<ServiceWorkerForce>true</ServiceWorkerForce>
<ServiceWorkerCacheVersion Condition="'$(Configuration)' == 'Debug'">0.0.$([System.DateTime]::Now.Ticks)</ServiceWorkerCacheVersion>
<ServiceWorkerCacheVersion Condition="'$(Configuration)' == 'Release'">$(Version)</ServiceWorkerCacheVersion>
<ServiceWorkerRegisterInstallableType>installable-blazor</ServiceWorkerRegisterInstallableType>
<ServiceWorkerBlazorInstallMethod>Pwa.Installable</ServiceWorkerBlazorInstallMethod>
<ServiceWorkerRegisterUpdateType>update-blazor</ServiceWorkerRegisterUpdateType>
</PropertyGroup>

<Target Name="PWACustomise" BeforeTargets="CreatePWA">
<PropertyGroup>
<ServiceWorkerPreCacheExcludeFiles>
$(WWWRoot)**\*.scss;
$(WWWRoot)**\*.svg;
</ServiceWorkerPreCacheExcludeFiles>
</PropertyGroup>
<Message Importance="high" Text="Removing: $(ServiceWorkerPreCacheExcludeFiles)" />
</Target>

<ItemGroup>
<PackageReference Include="BlazorPWA.MSBuild" Version="1.0.2" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.2.0-preview2.20160.5" />
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="3.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="3.2.0-preview2.20160.5" />
Expand Down
1 change: 1 addition & 0 deletions src/Money.UI.Blazor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ private static void ConfigureServices(IServiceCollection services)
#endif
})
.AddAuthorizationCore()
.AddBaseAddressHttpClient()
.AddSingleton<ApiAuthenticationStateProvider>()
.AddSingleton<AuthenticationStateProvider>(provider => provider.GetRequiredService<ApiAuthenticationStateProvider>())
.AddSingleton<SignalRListener>()
Expand Down
2 changes: 0 additions & 2 deletions src/Money.UI.Blazor/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

<title>Money</title>
<base href="/" />
<link href="/manifest.json" rel="manifest" />
<link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
<link href="css/site.min.css" rel="stylesheet" />
<link href="lib/fontawesome/css/all.min.css" rel="stylesheet" />
Expand Down Expand Up @@ -40,6 +39,5 @@ <h2>Neptuo</h2>
<script src="lib/signalr/signalr.min.js"></script>
<script src="_framework/blazor.webassembly.js"></script>
<script src="js/site.js"></script>
<script src="/service-worker-register.js"></script>
</body>
</html>
18 changes: 0 additions & 18 deletions src/Money.UI.Blazor/wwwroot/manifest.json

This file was deleted.

62 changes: 0 additions & 62 deletions src/Money.UI.Blazor/wwwroot/service-worker-register.js

This file was deleted.

222 changes: 0 additions & 222 deletions src/Money.UI.Blazor/wwwroot/service-worker.js

This file was deleted.

0 comments on commit 9d8fd36

Please sign in to comment.