Allow to customize the theme for report export
When exporting a report (home > generate report) it could be cool to be able to select the theme by adding a new checkbox or something like that (light by default or dark).
You need to provide the data to the API and update the http endpoint here: https://github.com/NodeSecure/cli/blob/master/src/http-server/endpoints/report.js
hey @fraxken , can you please elaborate this more?
@ankiiisharma The report (https://github.com/NodeSecure/report) project we use to generate the report can take a light or dark theme.
Current static config use the light one by default https://github.com/NodeSecure/cli/blob/537e9987f4b3dc2c8ae7782cc8808c618dce1a41/src/http-server/endpoints/report.js#L14
In the Web UI we want to add an option to choose between light or dark theme
This popup is generated when you click "generate report" in the home view
@fraxken so you want a toggle there so that user can switch their theme. Am i right?
Yes (since we only have two right now no need to go with something complicated). A boolean is enough.