Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions BlazorWebAssembly/Client/BlazorWebAssembly.Client.csproj
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<NuGetAuditMode>all</NuGetAuditMode>
<NuGetAuditLevel>low</NuGetAuditLevel>
<NuGetAudit>true</NuGetAudit>
<NoWarn>NU1903</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.5" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

Expand Down
1 change: 0 additions & 1 deletion BlazorWebAssembly/Client/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@functions {
protected override void OnAfterRender(bool firstRender)
{

JsRuntime.InvokeAsync<object>("renderDashboard");
}
}
2 changes: 1 addition & 1 deletion BlazorWebAssembly/Client/Shared/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
@Body
</article>
</main>
</div>
</div>
14 changes: 4 additions & 10 deletions BlazorWebAssembly/Client/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link href="css/app.css" rel="stylesheet" />
<link rel="icon" type="image/png" href="favicon.png" />
<link href="BlazorWebAssembly.Client.styles.css" rel="stylesheet" />
</head>

<body>
Expand Down Expand Up @@ -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();
}
</script>
</body>

</html>
</html>
5 changes: 3 additions & 2 deletions BlazorWebAssembly/Server/BlazorWebAssembly.Server.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<NuGetAuditMode>all</NuGetAuditMode>
<NuGetAuditLevel>low</NuGetAuditLevel>
<NuGetAudit>true</NuGetAudit>
<NoWarn>NU1903</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="7.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion BlazorWebAssembly/Shared/BlazorWebAssembly.Shared.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<NuGetAuditMode>all</NuGetAuditMode>
<NuGetAuditLevel>low</NuGetAuditLevel>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 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

![Dashboard View](/images/dashboard.png)

## 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

Expand Down