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 at
paththat contains statistics and charts about the given time logs. - 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_ ๐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.