Skip to content

Commit 11e752d

Browse files
authored
Merge pull request #8274 from bitfoundation/develop
Version 8.10.0 (#8256)
2 parents 4e13d1f + ba38d89 commit 11e752d

File tree

1,414 files changed

+42723
-39609
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,414 files changed

+42723
-39609
lines changed

.devcontainer/devcontainer.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"hostRequirements": {
44
"cpus": 4
55
},
6-
"onCreateCommand": "wget https://download.visualstudio.microsoft.com/download/pr/86497c4f-3dc8-4ee7-9f6a-9e0464059427/293d074c28bbfd9410f4db8e021fa290/dotnet-sdk-8.0.301-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 && sudo dotnet workload install wasm-tools wasm-experimental && dotnet dev-certs https --trust && dotnet build src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Bit.BlazorUI.Demo.Client.Core.csproj -t:InstallNodejsDependencies,BeforeBuildTasks --no-restore && dotnet build src/Websites/Platform/src/Bit.Websites.Platform.Client/Bit.Websites.Platform.Client.csproj -t:InstallNodejsDependencies,BeforeBuildTasks --no-restore && dotnet build src/Websites/Sales/src/Bit.Websites.Sales.Client/Bit.Websites.Sales.Client.csproj -t:InstallNodejsDependencies,BeforeBuildTasks --no-restore && dotnet build src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Boilerplate.Client.Core.csproj -t:InstallNodejsDependencies,BeforeBuildTasks --no-restore",
6+
"onCreateCommand": "wget https://download.visualstudio.microsoft.com/download/pr/60218cc4-13eb-41d5-aa0b-5fd5a3fb03b8/6c42bee7c3651b1317b709a27a741362/dotnet-sdk-8.0.303-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 && find . -type f -name '*.csproj' -exec sed -i 's/Microsoft.NET.Sdk.BlazorWebAssembly/Microsoft.NET.Sdk.Web/g' {} \\;",
77
"waitFor": "onCreateCommand",
88
"customizations": {
99
"codespaces": {
@@ -13,9 +13,6 @@
1313
},
1414
"vscode": {
1515
"extensions": [
16-
"ms-dotnettools.vscode-dotnet-runtime",
17-
"kevin-chatham.aspnetcorerazor-html-css-class-completion",
18-
"ms-dotnettools.csharp",
1916
"glenn2223.live-sass"
2017
]
2118
}

.github/workflows/admin-sample.cd.yml

+44-37
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Admin Sample CD
33
# Project templates come equipped with CI/CD for both Azure DevOps and GitHub, providing you with a hassle-free way to get started with your new project. It is important to note that you should not depend on the contents of this file. More info at https://bitplatform.dev/templates/dev-ops
44

55
env:
6-
API_SERVER_ADDRESS: 'https://adminpanel.bitplatform.dev/'
6+
API_SERVER_ADDRESS: 'https://adminpanel-api.bitplatform.dev'
7+
WEB_SERVER_ADDRESS: 'https://adminpanel.bitplatform.dev'
78
APP_SERVICE_NAME: 'bit-adminpanel'
89

910
on:
@@ -35,14 +36,14 @@ jobs:
3536
cd src/Templates/Boilerplate && dotnet build -c Release
3637
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
3738
dotnet new install Bit.Boilerplate.0.0.0.nupkg
38-
cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin --appInsights --serverUrl adminpanel.bitplatform.dev
39+
cd ../../../ && dotnet new bit-bp --name AdminPanel --database PostgreSQL --sample Admin --appInsights --serverUrl ${{ env.WEB_SERVER_ADDRESS }} --filesStorage AzureBlobStorage --api Standalone
3940
40-
- name: Update appsettings.json api server address
41+
- name: Update core appsettings.json
4142
uses: devops-actions/[email protected]
4243
with:
43-
files: 'AdminPanel/src/Client/AdminPanel.Client.Core/appsettings.json'
44+
files: 'AdminPanel/src/Client/AdminPanel.Client.Core/appsettings.json, AdminPanel/src/Shared/appsettings.json'
4445
env:
45-
ApiServerAddress: ${{ env.API_SERVER_ADDRESS }}
46+
ServerAddress: ${{ env.API_SERVER_ADDRESS }}
4647
ApplicationInsights.ConnectionString: ${{ secrets.APPLICATION_INSIGHTS_CONNECTION_STRING }}
4748

4849
- uses: actions/setup-node@v4
@@ -55,24 +56,30 @@ jobs:
5556
- name: Configure app render mode
5657
run: |
5758
sed -i 's/Auto;/BlazorWebAssembly;/g' AdminPanel/src/Client/AdminPanel.Client.Core/Services/AppRenderMode.cs
58-
59-
- name: Configure bswup
60-
run: |
61-
sed -i 's/self.noPrerenderQuery/\/\/ self.noPrerenderQuery/g' AdminPanel/src/Client/AdminPanel.Client.Web/wwwroot/service-worker.js
62-
sed -i 's/self.isPassive = self.disablePassiveFirstBoot = true;/self.isPassive = self.disablePassiveFirstBoot = false;/g' AdminPanel/src/Client/AdminPanel.Client.Web/wwwroot/service-worker.js
6359
6460
- name: Generate CSS/JS files
65-
run: dotnet build AdminPanel/src/Client/AdminPanel.Client.Core/AdminPanel.Client.Core.csproj -t:InstallNodejsDependencies,BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore
66-
61+
run: dotnet build AdminPanel/src/Client/AdminPanel.Client.Core/AdminPanel.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore -c Release
62+
6763
- name: Publish
68-
run: dotnet publish AdminPanel/src/AdminPanel.Server/AdminPanel.Server.csproj -c Release -p:PwaEnabled=true --self-contained -r linux-x64 -o ${{env.DOTNET_ROOT}}/server -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}"
64+
run: dotnet publish AdminPanel/src/Server/AdminPanel.Server.Api/AdminPanel.Server.Api.csproj -c Release -p:PwaEnabled=true -p:PublishTrimmed=true -p:TrimMode=partial -p:JsonSerializerIsReflectionEnabledByDefault=true --self-contained -r linux-x64 -o ${{env.DOTNET_ROOT}}/server -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}"
6965

7066
- name: Upload server artifact
7167
uses: actions/upload-artifact@v4
7268
with:
7369
name: server-bundle
7470
path: ${{env.DOTNET_ROOT}}/server
7571

72+
- name: Publish adminpanel blazor wasm standalone
73+
run: |
74+
sed -i 's/adminpanel.bitplatform.dev/adminpanel-api.bitplatform.dev/g' AdminPanel/src/Client/AdminPanel.Client.Web/wwwroot/index.html
75+
dotnet publish AdminPanel/src/Client/AdminPanel.Client.Web/AdminPanel.Client.Web.csproj -c Release -p:BlazorWebAssemblyStandalone=true -o ${{env.DOTNET_ROOT}}/static
76+
77+
- name: Upload static artifact
78+
uses: actions/upload-artifact@v4
79+
with:
80+
name: static-bundle
81+
path: ${{env.DOTNET_ROOT}}/static
82+
7683
deploy_api_blazor:
7784
name: deploy api + blazor
7885
needs: build_api_blazor
@@ -88,16 +95,16 @@ jobs:
8895
with:
8996
name: server-bundle
9097

91-
- name: Delete IdentityCertificate.pfx
98+
- name: Delete DataProtectionCertificate.pfx
9299
run: |
93-
rm IdentityCertificate.pfx
100+
rm DataProtectionCertificate.pfx
94101
95102
- name: Extract identity certificate from env
96103
uses: timheuer/[email protected]
97104
with:
98105
fileDir: './'
99-
fileName: 'IdentityCertificate.pfx'
100-
encodedString: ${{ secrets.API_IDENTITY_CERTIFICATE_FILE_BASE64 }}
106+
fileName: 'DataProtectionCertificate.pfx'
107+
encodedString: ${{ secrets.API_DATA_PROTECTION_CERTIFICATE_FILE_BASE64 }}
101108

102109
- name: Deploy to Azure Web App
103110
id: deploy-to-webapp
@@ -109,7 +116,7 @@ jobs:
109116
package: .
110117

111118
- name: Purge cache
112-
uses: jakejarvis/cloudflare-purge-action@master
119+
uses: jakejarvis/cloudflare-purge-action@v0.3.0
113120
env:
114121
CLOUDFLARE_ZONE: ${{ secrets.BITPLATFORM_DEV_CLOUDFLARE_ZONE }}
115122
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
@@ -137,19 +144,19 @@ jobs:
137144
cd src\Templates\Boilerplate && dotnet build -c Release
138145
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
139146
dotnet new install Bit.Boilerplate.0.0.0.nupkg
140-
cd ..\..\..\ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin --windows --appInsights --appCenter --serverUrl adminpanel.bitplatform.dev
147+
cd ..\..\..\ && dotnet new bit-bp --name AdminPanel --database PostgreSQL --sample Admin --windows --appInsights --appCenter --serverUrl ${{ env.WEB_SERVER_ADDRESS }} --filesStorage AzureBlobStorage
141148
142-
- name: Update appsettings.json api server address
149+
- name: Update core appsettings.json
143150
uses: devops-actions/[email protected]
144151
with:
145-
files: 'AdminPanel\src\Client\AdminPanel.Client.Core\appsettings.json'
152+
files: 'AdminPanel\src\Client\AdminPanel.Client.Core\appsettings.json, AdminPanel\src\Shared\appsettings.json'
146153
env:
147-
ApiServerAddress: ${{ env.API_SERVER_ADDRESS }}
154+
ServerAddress: ${{ env.API_SERVER_ADDRESS }}
148155
WindowsUpdateSettings.FilesUrl: https://windows-adminpanel.bitplatform.dev
149156
ApplicationInsights.ConnectionString: ${{ secrets.APPLICATION_INSIGHTS_CONNECTION_STRING }}
150157

151158
- name: Generate CSS/JS files
152-
run: dotnet build AdminPanel\src\Client\AdminPanel.Client.Core\AdminPanel.Client.Core.csproj -t:InstallNodejsDependencies,BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore
159+
run: dotnet build AdminPanel\src\Client\AdminPanel.Client.Core\AdminPanel.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore -c Release
153160

154161
- name: Set app center secret
155162
run: (Get-Content AdminPanel\src\Client\AdminPanel.Client.Windows\Program.cs) -Replace 'appCenterSecret = null;', 'appCenterSecret = "a9ed2257-fb82-496a-ba10-78c2d9ef33a6";' | Out-File -Encoding utf8 AdminPanel\src\Client\AdminPanel.Client.Windows\Program.cs
@@ -171,7 +178,7 @@ jobs:
171178
echo A | xcopy .\bin\publish-x64 .\publish-result /s /e /h
172179
echo A | xcopy .\bin\publish .\publish-result /s /e /h
173180
dotnet tool restore
174-
dotnet vpk pack -u AdminPanel.Client.Windows -v "${{ vars.APPLICATION_DISPLAY_VERSION }}" -p .\publish-result -e AdminPanel.Client.Windows-x86.exe -r win-x86 --framework net8.0.6-x86-desktop,net8.0.6-x86-aspnetcore,webview2 --icon .\wwwroot\favicon.ico --packTitle 'AdminPanel'
181+
dotnet vpk pack -u AdminPanel.Client.Windows -v "${{ vars.APPLICATION_DISPLAY_VERSION }}" -p .\publish-result -e AdminPanel.Client.Windows-x86.exe -r win-x86 --framework net8.0.7-x86-desktop,webview2 --icon .\wwwroot\favicon.ico --packTitle 'AdminPanel'
175182
176183
- name: Upload artifact
177184
uses: actions/upload-artifact@v4
@@ -198,7 +205,7 @@ jobs:
198205
cd src/Templates/Boilerplate && dotnet build -c Release
199206
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
200207
dotnet new install Bit.Boilerplate.0.0.0.nupkg
201-
cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin --appInsights --appCenter --serverUrl adminpanel.bitplatform.dev
208+
cd ../../../ && dotnet new bit-bp --name AdminPanel --database PostgreSQL --sample Admin --appInsights --appCenter --serverUrl ${{ env.WEB_SERVER_ADDRESS }} --filesStorage AzureBlobStorage
202209
203210
- uses: actions/setup-node@v4
204211
with:
@@ -211,12 +218,12 @@ jobs:
211218
fileName: 'AdminPanel.keystore'
212219
encodedString: ${{ secrets.ANDROID_RELEASE_KEYSTORE_FILE_BASE64 }}
213220

214-
- name: Update appsettings.json api server address
221+
- name: Update core appsettings.json
215222
uses: devops-actions/[email protected]
216223
with:
217-
files: 'AdminPanel/src/Client/AdminPanel.Client.Core/appsettings.json'
224+
files: 'AdminPanel/src/Client/AdminPanel.Client.Core/appsettings.json, AdminPanel/src/Shared/appsettings.json'
218225
env:
219-
ApiServerAddress: ${{ env.API_SERVER_ADDRESS }}
226+
ServerAddress: ${{ env.API_SERVER_ADDRESS }}
220227
ApplicationInsights.ConnectionString: ${{ secrets.APPLICATION_INSIGHTS_CONNECTION_STRING }}
221228

222229
- name: Set app center secret
@@ -231,8 +238,8 @@ jobs:
231238

232239
- name: Generate CSS/JS files
233240
run: |
234-
dotnet build AdminPanel/src/Client/AdminPanel.Client.Core/AdminPanel.Client.Core.csproj -t:InstallNodejsDependencies,BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore
235-
dotnet build AdminPanel/src/Client/AdminPanel.Client.Maui/AdminPanel.Client.Maui.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore
241+
dotnet build AdminPanel/src/Client/AdminPanel.Client.Core/AdminPanel.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore -c Release
242+
dotnet build AdminPanel/src/Client/AdminPanel.Client.Maui/AdminPanel.Client.Maui.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore -c Release
236243
237244
- name: Build aab
238245
run: dotnet build AdminPanel/src/Client/AdminPanel.Client.Maui/AdminPanel.Client.Maui.csproj -c Release -p:AndroidPackageFormat=aab -p:AndroidKeyStore=true -p:AndroidSigningKeyStore="AdminPanel.keystore" -p:AndroidSigningKeyAlias=bitplatform -p:AndroidSigningKeyPass="${{ secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD }}" -p:AndroidSigningStorePass="${{ secrets.ANDROID_RELEASE_SIGNING_PASSWORD }}" -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" -p:ApplicationTitle="AdminPanel" -p:ApplicationId="com.bitplatform.AdminPanel.Template" -f net8.0-android
@@ -259,7 +266,7 @@ jobs:
259266

260267
- uses: maxim-lobanov/[email protected]
261268
with:
262-
xcode-version: '15.3'
269+
xcode-version: '15.4'
263270

264271
- uses: actions/setup-node@v4
265272
with:
@@ -270,14 +277,14 @@ jobs:
270277
cd src/Templates/Boilerplate && dotnet build -c Release
271278
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
272279
dotnet new install Bit.Boilerplate.0.0.0.nupkg
273-
cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin --appInsights --appCenter --serverUrl adminpanel.bitplatform.dev
280+
cd ../../../ && dotnet new bit-bp --name AdminPanel --database PostgreSQL --sample Admin --appInsights --appCenter --serverUrl ${{ env.WEB_SERVER_ADDRESS }} --filesStorage AzureBlobStorage
274281
275-
- name: Update appsettings.json api server address
282+
- name: Update core appsettings.json
276283
uses: devops-actions/[email protected]
277284
with:
278-
files: 'AdminPanel/src/Client/AdminPanel.Client.Core/appsettings.json'
285+
files: 'AdminPanel/src/Client/AdminPanel.Client.Core/appsettings.json, AdminPanel/src/Shared/appsettings.json'
279286
env:
280-
ApiServerAddress: ${{ env.API_SERVER_ADDRESS }}
287+
ServerAddress: ${{ env.API_SERVER_ADDRESS }}
281288
ApplicationInsights.ConnectionString: ${{ secrets.APPLICATION_INSIGHTS_CONNECTION_STRING }}
282289

283290
- name: Set app center secret
@@ -303,8 +310,8 @@ jobs:
303310

304311
- name: Generate CSS/JS files
305312
run: |
306-
dotnet build AdminPanel/src/Client/AdminPanel.Client.Core/AdminPanel.Client.Core.csproj -t:InstallNodejsDependencies,BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore
307-
dotnet build AdminPanel/src/Client/AdminPanel.Client.Maui/AdminPanel.Client.Maui.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore
313+
dotnet build AdminPanel/src/Client/AdminPanel.Client.Core/AdminPanel.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore -c Release
314+
dotnet build AdminPanel/src/Client/AdminPanel.Client.Maui/AdminPanel.Client.Maui.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore -c Release
308315
309316
- name: Build ipa
310317
run: dotnet publish AdminPanel/src/Client/AdminPanel.Client.Maui/AdminPanel.Client.Maui.csproj -p:RuntimeIdentifier=ios-arm64 -c Release -p:ArchiveOnBuild=true -p:CodesignKey="iPhone Distribution" -p:CodesignProvision="AdminPanel" -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" -p:ApplicationTitle="AdminPanel" -p:ApplicationId="com.bitplatform.AdminPanel.Template" -f net8.0-ios

.github/workflows/bit.ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
- name: Install wasm and maui
2828
run: cd src && dotnet workload install maui-android wasm-tools wasm-experimental
2929

30-
- name: Install Nodejs dependencies
31-
continue-on-error: true # Error MSB4057, not all csproj files have InstallNodejsDependencies target.
32-
run: dotnet build src/Bit-CI-release.sln -t:InstallNodejsDependencies -m:1
30+
- name: Run BeforeBuildTasks
31+
continue-on-error: true # Error MSB4057, not all csproj files have BeforeBuildTasks target.
32+
run: dotnet build src/Bit-CI-release.sln -t:BeforeBuildTasks -m:1
3333

3434
- name: MSBuild prerelease
3535
run: dotnet build src/Bit-CI-release.sln
@@ -62,9 +62,9 @@ jobs:
6262
- name: Install Android Sdk platform tools
6363
run: ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools"
6464

65-
- name: Install Nodejs dependencies
66-
continue-on-error: true # Error MSB4057, not all csproj files have InstallNodejsDependencies target.
67-
run: dotnet build src/Bit-CI.sln -t:InstallNodejsDependencies -m:1
65+
- name: Run BeforeBuildTasks
66+
continue-on-error: true # Error MSB4057, not all csproj files have BeforeBuildTasks target.
67+
run: dotnet build src/Bit-CI.sln -t:BeforeBuildTasks -m:1
6868

6969
- name: Build
7070
run: dotnet build src/Bit-CI.sln -p:WarningLevel=0 -p:RunCodeAnalysis=false

0 commit comments

Comments
 (0)