34 lines
1.3 KiB
Markdown
34 lines
1.3 KiB
Markdown
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
|
|
|
|
* `hugo/dsnetreport.html`: A hugo shortcode for rendering a report.
|
|
|
|

|
|
|
|
# PHP template
|
|
See https://github.com/naggie/dsnet/issues/4#issuecomment-632928158 for background. Courtesy of [@Write](https://github.com/Write)
|
|
|
|
* `php/dsnetreport.php`: A php file to render a report.
|
|
|
|

|
|

|
|
|
|
# Clientside JavaScript
|
|
|
|
Courtesy of [@frillip](https://github.com/frillip/)
|
|
|
|
* `js/dsnetreport.html`: Basic HTML with a `div` to place the table in.
|
|
* `js/dsnetreport.js`: Fetches `dsnetreport.json` and renders table.
|
|
* `js/dsnetreport.css`: CSS to render the table as per screenshot.
|
|
|
|

|
|
|