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

HTML files #19

Open
Lackoftactics opened this issue Apr 30, 2018 · 5 comments
Open

HTML files #19

Lackoftactics opened this issue Apr 30, 2018 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@Lackoftactics
Copy link
Owner

What do you think about adding html output? That would be much readable for all humans. Also in the future we could add real charts but for now creating some simple html would be great. Inside this html we could also add some sharing buttons, so people could also post it on social media and share they results.

I am also thinking about adding github page but that's for later.

@northcott-j @MetricMike thanks again for great work on repo. Any of you to tackle this task?

@Lackoftactics Lackoftactics added the help wanted Extra attention is needed label Apr 30, 2018
@marzann
Copy link
Contributor

marzann commented Apr 30, 2018

@Lackoftactics: excellent ideas. IMHO, a page will scale this awesome app a lot.
I created a simple html output. No formatting or sharing buttons yet. Running the app now outputs both xls and html.
Interested to hear other contributors' ideas / approaches on this.

@northcott-j
Copy link
Contributor

@marzann @Lackoftactics - I agree! A web interface would would be a great addition. If a simple HTML view is the goal, I can look into adding some CSS and the share buttons to @marzann's contribution when it's merged.

Another option is to create some kind of json export of all of the information and leverage some frontend JS framework to create charts and different breakdowns.

@Lackoftactics
Copy link
Owner Author

I am really +1 on creating those charts from created json

@northcott-j
Copy link
Contributor

@Lackoftactics - ok! I'll look into generating an HTML view from a JSON file. My initial thought is to make a new Ruby class e.g. a ViewModel and implement one for each HTML page.

That JSON will contain a section tables that will be a Hash of table_DOM_id to Array(Array(Values)) which will be used to recreate the Excel tables (or show any other kind of info in an HTML table).

It will also contain a section charts that will be a Hash of chart_DOM_id to a Hash of config info (I'll probably use Chart.js).

I'll probably try to use vanilla JS/JQuery to load the JSON, target the relevant DOM ID in the HTML doc, and inject the rows or load the Charts.

Then there will be an index.html that can have an intro to the project, how sharing works, and links to all of the different breakdowns.

-- I'll try to find some time to work on this implementation, but if anyone has a different approach or is interested in taking this on - they're more than welcome

@thnukid
Copy link
Contributor

thnukid commented May 10, 2018

@northcott-j you could make use of nokogiri in order to create the html markup.

  spec.add_dependency 'nokogiri', '~> 1.8.2' # parser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants