diff --git a/BlazorWebAssembly/Client/BlazorWebAssembly.Client.csproj b/BlazorWebAssembly/Client/BlazorWebAssembly.Client.csproj index f3df199..8e3cfbf 100644 --- a/BlazorWebAssembly/Client/BlazorWebAssembly.Client.csproj +++ b/BlazorWebAssembly/Client/BlazorWebAssembly.Client.csproj @@ -1,16 +1,17 @@  - net7.0 + net8.0 enable all low true + NU1903 - - + + diff --git a/BlazorWebAssembly/Client/Pages/Index.razor b/BlazorWebAssembly/Client/Pages/Index.razor index 8665eeb..c9ea91f 100644 --- a/BlazorWebAssembly/Client/Pages/Index.razor +++ b/BlazorWebAssembly/Client/Pages/Index.razor @@ -6,7 +6,6 @@ @functions { protected override void OnAfterRender(bool firstRender) { - JsRuntime.InvokeAsync("renderDashboard"); } } diff --git a/BlazorWebAssembly/Client/Shared/MainLayout.razor b/BlazorWebAssembly/Client/Shared/MainLayout.razor index 9e95d42..2b5e753 100644 --- a/BlazorWebAssembly/Client/Shared/MainLayout.razor +++ b/BlazorWebAssembly/Client/Shared/MainLayout.razor @@ -6,4 +6,4 @@ @Body - + \ No newline at end of file diff --git a/BlazorWebAssembly/Client/wwwroot/index.html b/BlazorWebAssembly/Client/wwwroot/index.html index b0559ea..ba2f17e 100644 --- a/BlazorWebAssembly/Client/wwwroot/index.html +++ b/BlazorWebAssembly/Client/wwwroot/index.html @@ -8,7 +8,6 @@ - @@ -53,21 +52,16 @@ function renderDashboard() { this.dashboard = BoldBI.create({ serverUrl: data.ServerUrl + "/" + data.SiteIdentifier, - dashboardId: data.DashboardId, // Provide the item id here to render the dashboard in design mode or to create dashboard don't initialize this property + dashboardId: data.DashboardId, embedContainerId: "dashboard", - embedType: data.EmbedType, - environment: data.Environment, - mode: BoldBI.Mode.View, width: "100%", - height: window.innerHeight -3 + "px", - expirationTime: 100000, + height: window.innerHeight + "px", authorizationServer: { url: authorizationServerUrl - }, + } }); this.dashboard.loadDashboard(); } - - + \ No newline at end of file diff --git a/BlazorWebAssembly/Server/BlazorWebAssembly.Server.csproj b/BlazorWebAssembly/Server/BlazorWebAssembly.Server.csproj index eeeb6b5..f4928eb 100644 --- a/BlazorWebAssembly/Server/BlazorWebAssembly.Server.csproj +++ b/BlazorWebAssembly/Server/BlazorWebAssembly.Server.csproj @@ -1,15 +1,16 @@ - net7.0 + net8.0 enable all low true + NU1903 - + diff --git a/BlazorWebAssembly/Shared/BlazorWebAssembly.Shared.csproj b/BlazorWebAssembly/Shared/BlazorWebAssembly.Shared.csproj index eb10433..937f762 100644 --- a/BlazorWebAssembly/Shared/BlazorWebAssembly.Shared.csproj +++ b/BlazorWebAssembly/Shared/BlazorWebAssembly.Shared.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable all low diff --git a/README.md b/README.md index 1549f6b..cff25a9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Bold BI Embedded Sample in Blazor WebAssembly -This project was created using ASP.NET Core 7.0. This application aims to demonstrate how to render the dashboard available on your Bold BI server. +This project was created using ASP.NET Core 8.0. This application aims to demonstrate how to render the dashboard available on your Bold BI server. ## Dashboard view @@ -8,7 +8,7 @@ This project was created using ASP.NET Core 7.0. This application aims to demons ## Requirements/Prerequisites -* [.NET Core 7.0](https://dotnet.microsoft.com/download/dotnet-core) +* [.NET Core 8.0](https://dotnet.microsoft.com/download/dotnet-core) ### Supported browsers