diff --git a/Dimodi.Telerik.Blazor.Templates.csproj b/Dimodi.Telerik.Blazor.Templates.csproj index ef89008..02b0e8d 100644 --- a/Dimodi.Telerik.Blazor.Templates.csproj +++ b/Dimodi.Telerik.Blazor.Templates.csproj @@ -16,7 +16,9 @@ README.md NEW -* Add support for Telerik UI for Blazor 11.1.0. +* Add support for Progressive Web Applications (PWA) in the WebAssembly Standalone template. +* Add compatibility with .NET 10 RC1. +* Add support for Telerik UI for Blazor 11.1.1. false Telerik;Blazor;dotnet-new;templates @@ -24,7 +26,7 @@ NEW https://github.com/dimodi/project-templates netstandard2.0 Telerik Blazor Project and Item Templates - 6.2.1 + 6.3.0 diff --git a/Projects/Net8/TelerikBlazorWasmStandalone/.template.config/dotnetcli.host.json b/Projects/Net8/TelerikBlazorWasmStandalone/.template.config/dotnetcli.host.json index d49e353..eac3cbc 100644 --- a/Projects/Net8/TelerikBlazorWasmStandalone/.template.config/dotnetcli.host.json +++ b/Projects/Net8/TelerikBlazorWasmStandalone/.template.config/dotnetcli.host.json @@ -4,6 +4,9 @@ "Framework": { "longName": "framework" }, + "PWA": { + "longName": "pwa" + }, "TelerikVersion": { "longName": "telerik-version" }, diff --git a/Projects/Net8/TelerikBlazorWasmStandalone/.template.config/ide.host.json b/Projects/Net8/TelerikBlazorWasmStandalone/.template.config/ide.host.json index 021b33d..274aa3d 100644 --- a/Projects/Net8/TelerikBlazorWasmStandalone/.template.config/ide.host.json +++ b/Projects/Net8/TelerikBlazorWasmStandalone/.template.config/ide.host.json @@ -2,6 +2,13 @@ "$schema": "http://json.schemastore.org/vs-2017.3.host", "icon": "progress-logo.png", "symbolInfo": [ + { + "id": "PWA", + "name": { + "text": "Progressive Web Application" + }, + "isVisible": true + }, { "id": "TelerikVersion", "name": { diff --git a/Projects/Net8/TelerikBlazorWasmStandalone/.template.config/template.json b/Projects/Net8/TelerikBlazorWasmStandalone/.template.config/template.json index ba929a5..28bc189 100644 --- a/Projects/Net8/TelerikBlazorWasmStandalone/.template.config/template.json +++ b/Projects/Net8/TelerikBlazorWasmStandalone/.template.config/template.json @@ -4,7 +4,8 @@ "classifications": [ "Web", "Blazor", - "WebAssembly" + "WebAssembly", + "PWA" ], "identity": "Dimodi.Telerik.Blazor.WebAssembly.Standalone", "name": "Telerik Blazor WebAssembly Standalone App", @@ -81,10 +82,17 @@ }, "replaces": "{TVAR_NETSUFFIX}" }, + "PWA": { + "type": "parameter", + "datatype": "bool", + "defaultValue": "false", + "description": "Add support for a Progressive Web Application.", + "displayName": "Progressive Web Application" + }, "TelerikVersion": { "type": "parameter", "datatype": "choice", - "defaultValue": "11.1.0", + "defaultValue": "11.1.1", "description": "Select the Telerik UI for Blazor version.", "displayName": "Telerik UI for Blazor version", "choices": [ @@ -93,8 +101,8 @@ "displayName": "Latest as wildcard (no CDN)" }, { - "choice": "11.1.0", - "displayName": "11.1.0" + "choice": "11.1.1", + "displayName": "11.1.1" }, { "choice": "10.0.0", @@ -282,6 +290,15 @@ "**/Services/**" ] }, + { + "condition": "(!PWA)", + "exclude": [ + "wwwroot/service-worker*.js", + "wwwroot/manifest.webmanifest", + "wwwroot/icon-192.png", + "wwwroot/icon-512.png" + ] + }, { "rename": { "dockerignore.dockerignore": ".dockerignore" diff --git a/Projects/Net8/TelerikBlazorWasmStandalone/TelerikBlazorWasmStandalone.csproj b/Projects/Net8/TelerikBlazorWasmStandalone/TelerikBlazorWasmStandalone.csproj index 2d74754..3d7ddd0 100644 --- a/Projects/Net8/TelerikBlazorWasmStandalone/TelerikBlazorWasmStandalone.csproj +++ b/Projects/Net8/TelerikBlazorWasmStandalone/TelerikBlazorWasmStandalone.csproj @@ -13,6 +13,9 @@ {TVAR_DOCKERUSERSECRETSID} Linux + + + service-worker-assets.js @@ -57,5 +60,11 @@ + + + + + + \ No newline at end of file diff --git a/Projects/Net8/TelerikBlazorWasmStandalone/wwwroot/icon-512.png b/Projects/Net8/TelerikBlazorWasmStandalone/wwwroot/icon-512.png new file mode 100644 index 0000000..c2dd484 Binary files /dev/null and b/Projects/Net8/TelerikBlazorWasmStandalone/wwwroot/icon-512.png differ diff --git a/Projects/Net8/TelerikBlazorWasmStandalone/wwwroot/index.html b/Projects/Net8/TelerikBlazorWasmStandalone/wwwroot/index.html index 6f5f4fa..33b0e2e 100644 --- a/Projects/Net8/TelerikBlazorWasmStandalone/wwwroot/index.html +++ b/Projects/Net8/TelerikBlazorWasmStandalone/wwwroot/index.html @@ -37,6 +37,11 @@ + + + + + @@ -61,6 +66,9 @@ + + +