Skip to content

Commit b9f2b1c

Browse files
Remove PWA option. See #49798
1 parent d3c1e36 commit b9f2b1c

File tree

10 files changed

+1
-132
lines changed

10 files changed

+1
-132
lines changed

src/ProjectTemplates/Web.ProjectTemplates/BlazorWeb-CSharp.WebAssembly.csproj.in

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,10 @@
44
<TargetFramework>${DefaultNetCoreTargetFramework}</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7-
<!--#if (PWA) -->
8-
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
9-
<!--#endif -->
107
</PropertyGroup>
118

129
<ItemGroup>
1310
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="${MicrosoftAspNetCoreComponentsWebAssemblyVersion}" />
1411
</ItemGroup>
15-
<!--#if (PWA) -->
16-
17-
<ItemGroup>
18-
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
19-
</ItemGroup>
20-
<!--#endif -->
2112

2213
</Project>

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/.template.config/dotnetcli.host.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
"longName": "no-restore",
66
"shortName": ""
77
},
8-
"PWA": {
9-
"longName": "pwa",
10-
"isHidden": true
11-
},
128
"UseServer": {
139
"longName": "use-server"
1410
},

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/.template.config/ide.host.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
"isVisible": true,
1515
"persistenceScope": "templateGroup"
1616
},
17-
{
18-
"id": "PWA",
19-
"isVisible": false,
20-
"persistenceScope": "templateGroup"
21-
},
2217
{
2318
"id": "UseProgramMain",
2419
"isVisible": true,

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/.template.config/template.json

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"classifications": [
55
"Web",
66
"Blazor",
7-
"WebAssembly",
8-
"PWA"
7+
"WebAssembly"
98
],
109
"name": "Blazor Web App",
1110
"defaultName": "BlazorApp",
@@ -51,14 +50,6 @@
5150
"**/wwwroot/css/bootstrap/**"
5251
],
5352
"modifiers": [
54-
{
55-
"condition": "!PWA",
56-
"exclude": [
57-
"BlazorWeb-CSharp.WebAssembly/wwwroot/service-worker*.js",
58-
"BlazorWeb-CSharp.WebAssembly/wwwroot/manifest.webmanifest",
59-
"BlazorWeb-CSharp.WebAssembly/wwwroot/icon-*.png"
60-
]
61-
},
6253
{
6354
"condition": "(!UseWebAssembly)",
6455
"exclude": [
@@ -229,13 +220,6 @@
229220
"displayName": "_Use interactive server components",
230221
"description": "Configures whether to support rendering components interactively on the server via a SignalR WebSocket connection. The default value is true."
231222
},
232-
"PWA": {
233-
"type": "parameter",
234-
"datatype": "bool",
235-
"defaultValue": "false",
236-
"displayName": "_Progressive Web Application",
237-
"description": "If specified, produces a Progressive Web Application (PWA) supporting installation and offline use."
238-
},
239223
"RequiresHttps": {
240224
"type": "computed",
241225
"value": "(OrganizationalAuth || IndividualAuth)"

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp.WebAssembly/wwwroot/manifest.webmanifest

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

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp.WebAssembly/wwwroot/service-worker.js

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

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp.WebAssembly/wwwroot/service-worker.published.js

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

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/AppHost.razor

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,11 @@
88
<link rel="stylesheet" href="css/app.css" />
99
<link rel="icon" type="image/png" href="favicon.png" />
1010
<HeadOutlet />
11-
@*#if (UseWebAssembly && PWA) -->
12-
<link href="manifest.webmanifest" rel="manifest" />
13-
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" />
14-
<link rel="apple-touch-icon" sizes="192x192" href="icon-192.png" />
15-
##endif*@
1611
</head>
1712

1813
<body>
1914
<App />
2015
<script src="_framework/blazor.web.js"></script>
21-
@*#if (UseWebAssembly && PWA) -->
22-
<script>
23-
navigator.serviceWorker.register("service-worker.js");
24-
</script>
25-
##endif*@
2616
</body>
2717

2818
</html>

0 commit comments

Comments
 (0)