Skip to content
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

Blazor GUI Interface #2

Open
scovetta opened this issue Oct 10, 2019 · 5 comments
Open

Blazor GUI Interface #2

scovetta opened this issue Oct 10, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request hackathon

Comments

@scovetta
Copy link
Member

Is your feature request related to a problem? Please describe.
The local HTML file can get very large; architecturally, embedding everything in it may not be the best solution.

Describe the solution you'd like
Instead of generating a static HTML file, use a local web-server that serves the content. The advantage of this is that for large reports, we don't need to create a large HTML file, and can instead stream the results as needed, and potentially perform operations on the "server" instead of within the browser.

Describe alternatives you've considered
n/a

Additional context
n/a

@guyacosta
Copy link
Contributor

It's true with a large source to scan the output.html may become quite large -have only seen once but it is bound to happen for some users.
These are some possibilities I'm looking into including:
http://nancyfx.org/ (also see https://github.com/aspnet/AspNetKatana/)
https://github.com/aspnet/AspNetKatana/

We'll be prioritizing this alongside other goals for our General Audience release -TBD.

@guyacosta guyacosta removed the Future label Dec 7, 2019
@guyacosta guyacosta added the enhancement New feature or request label Jan 17, 2020
@gfs
Copy link
Contributor

gfs commented Jul 10, 2020

Consider a rewrite using Blazor. You could do what ASA does and have an appinspector gui command that pops up your GUI with a scan button and then transition into results saved from a cache (maybe write the results to a DB if you want. Or just cache them in memory)

https://dotnet.microsoft.com/apps/aspnet/web-apps/blazor

@guyacosta guyacosta self-assigned this Jul 13, 2020
@gfs gfs changed the title Consider a local web-server for serving content instead of static HTML Blazor GUI Interface May 5, 2021
@gfs
Copy link
Contributor

gfs commented May 5, 2021

If we rewrite this in blazor we will could also host a live webassembly version

@gfs
Copy link
Contributor

gfs commented May 24, 2021

We should create a new blazor UX that allows the user to load/save a JSON report and view it either via running the command line via "appinspector gui" or by visiting our hosted WASM on github pages.

The GUI should have the ability to:
Run the Analyze Command on a Path, optionally with custom rules
Run the Get Tags command on a Path, optionally with custom rules
Show the results of either the Get Tags or Analyze Command
Save the results of the Get Tags or Analyze command as JSON
Load the saved JSON result for Get Tags or Analyze commands
List all the tags found
Show the lighted feature boxes like the current UI
Show the full list of files scanned and their statuses
Show all the files which matched a tag, click on a file to see the snippet
Show all the tags which matched a file, click on a tag to view the tag view with all files the tags applied to
Show the general metadata gathered
Show the rules used

@gfs
Copy link
Contributor

gfs commented Aug 31, 2022

.net 6.0 now allows using a blazor interface with maui. Maybe worth checking that out - create a blazor report viewer that can be distributed as a standalone app with maui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hackathon
Projects
None yet
Development

No branches or pull requests

5 participants