Please send Good – Bootstrap 5 Admin Dashboard Template running blazor sample
Can you please send us Good – Bootstrap 5 Admin Dashboard Template running blazor sample.
Good does not have running Blazor sample at the moment, however it is in our roadmap for 2022. Stay tuned to get free updates.
Please feel free to ask if we can assist yo further.
Our Blazor integration doc currently has some errors, we will release the fix for these errors in the next update as soon as possible. In the meantime, you can follow the below instructions to fix it on your end.
The easiest way to get started with Good + Blazor is to reuse webpack.config.js from the /theme/tools folder.
You can copy the/theme folder and place it into a root directory of your Blazor project.
By default, all bundled assets will be placed inside a /dist folder, but in the Blazor app we need to place them in the /wwwroot directory, to achieve this you can update the distPath variable in /theme/tools/webpack.config.js.
const distPath = demoPath + '../../wwwroot';
Now we are ready to bundle our assets, open the tools folder in your command line and execute the commands below.
To install dependencies:
To build the theme assets:
npm run build
[ as a result of this command you should have assets folder in /wwwroot ]
Copy all link tags from /theme/dist/index.html head tag and paste them into a head tag in file /Pages/_Layout.cshtml.
@inject IJSRuntime JS
@inject NavigationManager MyNavigationManager
protected override async Task OnAfterRenderAsync(bool firstRender)
await JS.InvokeAsync<IJSObjectReference>("import", MyNavigationManager.ToAbsoluteUri("assets/plugins/global/plugins.bundle.js"));
await JS.InvokeAsync<IJSObjectReference>("import", MyNavigationManager.ToAbsoluteUri("assets/js/scripts.bundle.js"));
Let me know if you will have any problems or questions regarding this integration.
If you somehow get a chance to rate Good Admin on Getbootstrap Market, it would help us a lot.