diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor index f571a08c49..ca42112e97 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor @@ -101,12 +101,11 @@ {
To install .NET 8 SDK on Linux(Ubuntu) run the following commands:
- wget https://download.visualstudio.microsoft.com/download/pr/1ebffeb0-f090-4001-9f13-69f112936a70/5dbc249b375cca13ec4d97d48ea93b28/dotnet-sdk-8.0.402-linux-x64.tar.gz -O $HOME/dotnet.tar.gz + wget https://download.visualstudio.microsoft.com/download/pr/ca6cd525-677e-4d3a-b66c-11348a6f920a/ec395f498f89d0ca4d67d903892af82d/dotnet-sdk-8.0.403-linux-x64.tar.gz -O $HOME/dotnet.tar.gz mkdir -p $HOME/.dotnet tar zxf $HOME/dotnet.tar.gz -C "$HOME/.dotnet" echo 'PATH=$HOME/.dotnet:$HOME/.dotnet/tools:$PATH' >> ~/.bashrc export PATH=$HOME/.dotnet:$HOME/.dotnet/tools:$PATH -dotnet dev-certs https --trust rm $HOME/dotnet.tar.gz
} diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates04ProjectStructurePage.razor b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates04ProjectStructurePage.razor index 928e698a8c..a75580c989 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates04ProjectStructurePage.razor +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates04ProjectStructurePage.razor @@ -149,24 +149,17 @@ Additionally, it features an auto-update capability.

- If you set BlazorWebAssemblyStandalone to true in the Directory.Build.props file, the Client.Web project can be published as a + Client.Web project can be published as a Blazor WebAssembly Standalone application on platforms such as Cloudflare Pages, Azure Static Web Apps, GitHub Pages, and others, without requiring ASP.NET Core. -
-
- We recommend keeping BlazorWebAssemblyStandalone set to false during development and only enabling it during the publishing process. - To do this, use the following command: -
- dotnet publish MyFirstProject.Client.Web -c Release -p:BlazorWebAssemblyStandalone=true
Test Project - A sample test project is provided to demonstrate how to add integration tests to your project in a way that replicates the real - behavior of a server, such as using SignalR. Additionally, it offers guidance on using dependency injection to mock server behavior and logic when needed. + A sample test project is provided to demonstrate how to add integration and UI tests to your project.
diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor index dca4e7b97a..ee1441e3cf 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor @@ -217,7 +217,7 @@ Warning: It is advisable to use this option only when necessary, as integrating Entity Framework Core can increase application size and potentially reduce startup performance. - +
Server Database @@ -278,6 +278,18 @@ } + +
+ Push Notification (Native and Web Push) + +
+
+ + @GetNotificationCommand() + + Setting this parameter to True enables native push notification using firebase and APN for Androiod, iOS and macOS apps alongside with Web Push for Web Browsers. +
+
API diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.cs b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.cs index c136de7780..fb60cba0f9 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.cs +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.cs @@ -23,6 +23,12 @@ public partial class Templates05CreateProjectPage Value = false, Default = false, }; + + private Parameter notification = new() + { + Value = false, + Default = false, + }; private Parameter appInsight = new() { @@ -152,6 +158,11 @@ private string GetFinalCommand() finalCommand.Append(GetOfflineDbCommand()); } + if (notification.IsModified) + { + finalCommand.Append(GetNotificationCommand()); + } + if (appInsight.IsModified) { finalCommand.Append(GetAppInsightsCommand()); @@ -215,6 +226,11 @@ private string GetOfflineDbCommand() return $"--offlineDb {offlineDb.Value.ToString().ToLowerInvariant()} "; } + private string GetNotificationCommand() + { + return $"--notification {notification.Value.ToString().ToLowerInvariant()} "; + } + private string GetAppInsightsCommand() { return $"--appInsights {appInsight.Value.ToString().ToLowerInvariant()} "; diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates06RunProjectPage.razor b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates06RunProjectPage.razor index 75857c41d8..fbe6c60812 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates06RunProjectPage.razor +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates06RunProjectPage.razor @@ -73,8 +73,7 @@

Running in Blazor WebAssembly Standalone Mode - To run the project in Blazor WebAssembly Standalone mode, set BlazorWebAssemblyStandalone to true in the Directory.Build.props file. - Additionally, run Client.Web in addition to server project. + To run the project in Blazor WebAssembly Standalone mode, run Client.Web in addition to server project.