dsnet/report_rendering
2020-06-02 22:14:50 +01:00
..
hugo Added javascript renderer for dsnetreport.js. Organised renderers better 2020-06-02 21:36:37 +01:00
js Added javascript renderer for dsnetreport.js. Organised renderers better 2020-06-02 21:36:37 +01:00
php Added javascript renderer for dsnetreport.js. Organised renderers better 2020-06-02 21:36:37 +01:00
README.md Updated screenshot for js in README£ 2020-06-02 22:14:50 +01:00

This directory contains scripts and templates that can be used to render /var/lib/dsnetreport.json. They are useful for integrating a peer overview into an existing website or web application.

Most are contributions from other users. If you have a useful addition, please do a PR.

Most look something like this:

Hugo shortcode template

PHP template

  • php/dsnetreport.php: A php file to render a report. dsnet report table dsnet report table

Clientside JavaScript

  • js/dsnetreport.html: Basic HTML with a div for our table, nothing fancy.
  • js/dsnetreport.js: The brains of the operation. Fetches dsnetreport.json and turns it into a HTML table.
  • js/dsnetreport.css: The beauty of the operation. Makes the table look rather dapper. dsnet report table