New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace razor Dashboard to Vue #880
Conversation
* refactor: move blazor.server.js to the end * feat: add BootstrapBlazor service * chore: upgrade package of BB to latest * docs: add link for side menu
…into dashboard-blazor # Conflicts: # samples/Sample.Dashboard.Blazor/Pages/_Host.cshtml # src/DotNetCore.CAP.UI/Shared/MainLayout.razor # src/DotNetCore.CAP.UI/Shared/MainLayout.razor.cs
I'm just curious why we don't build the dashboard with a Razor Class Library instead of vue js. I believe the old dashboard can be converted to an RCL project, |
Hello @MahmoudSamir101 , The main reason for not using Blazor or RCL is that they all need to add additional configuration items in the Mvc or WebApi framework, and cannot simply complete all the configuration work in For example, in RCL, we need to add
|
What sbout using RCL as MVC Paradigm not razor pages, the configuration of controllers and views are already registered with in the startup class, does this solve it ? |
I have not investigated whether this is possible, but Vue seems to be simpler. As a beginner, I refactored the dashboard in only a week of free time. |
Motivation
The old dashboard originally came from Hangfire. It used Razor page compilation technology to compile
.razor
into classes. Since this method requires the help of a third-party visual studio plug-in to generate ( .generated.cs ), it does not seem to be particularly convenient now, and the plug-in no longer maintained at present, so we need to use more modern technology to rewrite dashbaordBehavior
Use vue to build the front-end page, then embed the published page file into the assembly, use the StaticFile middleware to intercept the request and output it to the page
Use middleware to provide a sample web api interface for front-end page call
Usage
Unimplemented