diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 10d527376b..9b4b1dca61 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -3,7 +3,7 @@
"hostRequirements": {
"cpus": 4
},
- "onCreateCommand": "wget https://download.visualstudio.microsoft.com/download/pr/5226a5fa-8c0b-474f-b79a-8984ad7c5beb/3113ccbf789c9fd29972835f0f334b7a/dotnet-sdk-8.0.100-linux-x64.tar.gz -O $HOME/dotnet.tar.gz && export DOTNET_ROOT=$HOME/.dotnet && mkdir -p \"$DOTNET_ROOT\" && tar zxf $HOME/dotnet.tar.gz -C \"$DOTNET_ROOT\" && export PATH=$DOTNET_ROOT:$DOTNET_ROOT/tools:$PATH && dotnet dev-certs https --trust && dotnet build src/BlazorUI/Demo/Client/Web/Bit.BlazorUI.Demo.Client.Web.csproj && dotnet build src/Websites/Platform/src/Bit.Websites.Platform.Client/Bit.Websites.Platform.Client.csproj -t:BeforeBuildTasks --no-restore && dotnet build src/Websites/Sales/src/Bit.Websites.Sales.Web/Bit.Websites.Sales.Web.csproj -t:BeforeBuildTasks --no-restore && dotnet build src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Core/Boilerplate.Client.Core.csproj -t:BeforeBuildTasks --no-restore",
+ "onCreateCommand": "wget https://download.visualstudio.microsoft.com/download/pr/5226a5fa-8c0b-474f-b79a-8984ad7c5beb/3113ccbf789c9fd29972835f0f334b7a/dotnet-sdk-8.0.100-linux-x64.tar.gz -O $HOME/dotnet.tar.gz && export DOTNET_ROOT=$HOME/.dotnet && mkdir -p \"$DOTNET_ROOT\" && tar zxf $HOME/dotnet.tar.gz -C \"$DOTNET_ROOT\" && export PATH=$DOTNET_ROOT:$DOTNET_ROOT/tools:$PATH && dotnet dev-certs https --trust && dotnet build src/BlazorUI/Demo/Client/Web/Bit.BlazorUI.Demo.Client.Web.csproj && dotnet build src/Websites/Platform/src/Bit.Websites.Platform.Client/Bit.Websites.Platform.Client.csproj -t:BeforeBuildTasks --no-restore && dotnet build src/Websites/Sales/src/Bit.Websites.Sales.Client/Bit.Websites.Sales.Client.csproj -t:BeforeBuildTasks --no-restore && dotnet build src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Core/Boilerplate.Client.Core.csproj -t:BeforeBuildTasks --no-restore",
"waitFor": "onCreateCommand",
"customizations": {
"codespaces": {
diff --git a/.github/workflows/sales.website.cd.yml b/.github/workflows/sales.website.cd.yml
index 193a69ad20..1e9c8737d9 100644
--- a/.github/workflows/sales.website.cd.yml
+++ b/.github/workflows/sales.website.cd.yml
@@ -1,7 +1,6 @@
name: Sales Website CD
env:
- WEB_APP_DEPLOYMENT_TYPE: 'SSR'
APP_SERVICE_NAME: 'bitservices'
on:
@@ -14,8 +13,8 @@ permissions:
jobs:
- build_blazor_api_wasm:
- name: build blazor api + web assembly
+ build_api_blazor:
+ name: build api + blazor
runs-on: ubuntu-22.04
steps:
@@ -27,25 +26,15 @@ jobs:
uses: actions/setup-dotnet@v3
with:
global-json-file: src/global.json
-
- - name: Switch to blazor web assembly
- run: sed -i 's/Microsoft.NET.Sdk.Web/Microsoft.NET.Sdk.BlazorWebAssembly/g' src/Websites/Sales/src/Bit.Websites.Sales.Web/Bit.Websites.Sales.Web.csproj
-
+
- name: Install wasm
run: cd src && dotnet workload install wasm-tools wasm-experimental
-
- - name: Update appsettings.json api server address
- uses: microsoft/variable-substitution@v1
- with:
- files: 'src/Websites/Sales/src/Bit.Websites.Sales.Web/appsettings.json'
- env:
- ApiServerAddress: 'api/'
- name: Generate CSS/JS files
- run: dotnet build src/Websites/Sales/src/Bit.Websites.Sales.Web/Bit.Websites.Sales.Web.csproj -t:BeforeBuildTasks --no-restore
+ run: dotnet build src/Websites/Sales/src/Bit.Websites.Sales.Client/Bit.Websites.Sales.Client.csproj -t:BeforeBuildTasks --no-restore
- name: Publish
- run: dotnet publish src/Websites/Sales/src/Bit.Websites.Sales.Api/Bit.Websites.Sales.Api.csproj -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" -p:Configuration=Release --self-contained -r linux-x64 -o api-web
+ run: dotnet publish src/Websites/Sales/src/Bit.Websites.Sales.Server/Bit.Websites.Sales.Server.csproj -p:Configuration=Release --self-contained -r linux-x64 -o api-web
- name: Upload api-web artifact
uses: actions/upload-artifact@v3
@@ -53,9 +42,9 @@ jobs:
name: api-web-bundle
path: api-web
- deploy_blazor_api_wasm:
- name: deploy blazor api + web assembly
- needs: build_blazor_api_wasm
+ deploy_api_blazor:
+ name: deploy api + blazor
+ needs: build_api_blazor
runs-on: ubuntu-22.04
environment:
name: 'production'
diff --git a/src/Bit-CI.sln b/src/Bit-CI.sln
index 8ed2c2c2f5..f206464eb3 100644
--- a/src/Bit-CI.sln
+++ b/src/Bit-CI.sln
@@ -139,11 +139,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.BlazorUI.Assets", "Blaz
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.BlazorUI.Icons", "BlazorUI\Bit.BlazorUI.Icons\Bit.BlazorUI.Icons.csproj", "{6B5C3E91-47F9-4DEE-B74B-20ED2D24585A}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.Websites.Sales.Api", "Websites\Sales\src\Bit.Websites.Sales.Api\Bit.Websites.Sales.Api.csproj", "{090DDD5F-6BB9-46C2-B81E-E9DF384721A5}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.Websites.Sales.Server", "Websites\Sales\src\Bit.Websites.Sales.Server\Bit.Websites.Sales.Server.csproj", "{090DDD5F-6BB9-46C2-B81E-E9DF384721A5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.Websites.Sales.Shared", "Websites\Sales\src\Bit.Websites.Sales.Shared\Bit.Websites.Sales.Shared.csproj", "{01078AA6-DE42-46A4-B541-E019DDAE54AD}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.Websites.Sales.Web", "Websites\Sales\src\Bit.Websites.Sales.Web\Bit.Websites.Sales.Web.csproj", "{756CB468-1026-43D6-B58C-4234A77EAD7A}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.Websites.Sales.Client", "Websites\Sales\src\Bit.Websites.Sales.Client\Bit.Websites.Sales.Client.csproj", "{756CB468-1026-43D6-B58C-4234A77EAD7A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.Websites.Platform.Shared", "Websites\Platform\src\Bit.Websites.Platform.Shared\Bit.Websites.Platform.Shared.csproj", "{32C64C9A-2A6A-4C87-9307-DC370BCD695C}"
EndProject
diff --git a/src/Templates/BlazorWeb/Bit.BlazorWeb/src/BlazorWeb.Server/Components/App.razor b/src/Templates/BlazorWeb/Bit.BlazorWeb/src/BlazorWeb.Server/Components/App.razor
index 556e08e8ae..650f871437 100644
--- a/src/Templates/BlazorWeb/Bit.BlazorWeb/src/BlazorWeb.Server/Components/App.razor
+++ b/src/Templates/BlazorWeb/Bit.BlazorWeb/src/BlazorWeb.Server/Components/App.razor
@@ -1,6 +1,5 @@
@*+:cnd:noEmit*@
@using BlazorWeb.Client.Services
-@attribute [StreamRendering(true)]
@@ -29,12 +28,15 @@
-
-
-
- @*#if (sample == "AdminPanel")*@
-
- @*#endif*@
+ @if (HttpContext.Request.IsCrawlerClient() is false)
+ {
+
+
+
+ @*#if (sample == "AdminPanel")*@
+
+ @*#endif*@
+ }