Expand description
Contains the methods to create a HTML file with statistics from a list of time logs.
StructsΒ§
- Extracted
Chart πJs - The JavaScript extracted from the Charming-generated HTML files.
- File
Html πWriter - Default implementation that writes to actual files
EnumsΒ§
- Html
Error - Errors that can occur during HTML file creation.
TraitsΒ§
- Html
Writer π - Contains the method to abstract the writing of HTML files
FunctionsΒ§
- create_
chart_ πdivs - Creates a string with
indexnumber of<div>tags for each chart. - create_
html - Creates a HTML file that contains statistics and charts about the given time logs. Returns the path of the created HTML file.
- create_
html_ πstring - Creates an HTML string from the given time logs and the HTML template which then is used to create the HTML page.
- create_
html_ πwith_ writer - Implementation of
create_html()that takes aHtmlWriterto write the file. - create_
table_ πtimelogs_ by_ milestone - Creates a Table that shows the time spent per milestone.
- create_
table_ πtimelogs_ in_ timeframes_ by_ user - Creates the Table that shows the time spent per user in the last N days.
- create_
table_ πtodays_ timelogs - Creates a table showing the time logs from todayβs date. If there are no time logs,
Noneis returned. - create_
table_ πtotal_ time_ by_ label - Creates the Table that shows the time spent per label.
- create_
timestamp π - Creates a string with the current timestamp in the ISO 8601 format.
- extract_
charming_ πchart_ js - Extracts the content of the last
<script>tag from an HTML string. - extract_
js_ πfrom_ html_ files - Extracts the content of the last
<script>tag from an HTML file. - wrap_
column_ πin_ span - Wraps the given column index in a
<span class='timestamp'>tag. The JS in the dashboard will then convert them to the userβs locale.