Skip to content

Commit

Permalink
deploy: 1cf641f
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Apr 10, 2024
1 parent c3d4e31 commit c3da08e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main/coverage-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<head>
<meta charset="utf-8"/>
<style>body{background-color:white;}</style>
<link href="lib/htmltools-fill-0.5.8.1/fill.css" rel="stylesheet" />
<script src="lib/htmlwidgets-1.6.4/htmlwidgets.js"></script>
<link href="lib/datatables-css-0.0.0/datatables-crosstalk.css" rel="stylesheet" />
<script src="lib/datatables-binding-0.32/datatables.js"></script>
<script src="lib/datatables-binding-0.33/datatables.js"></script>
<script src="lib/jquery-3.6.0/jquery-3.6.0.min.js"></script>
<link href="lib/dt-core-1.13.6/css/jquery.dataTables.min.css" rel="stylesheet" />
<link href="lib/dt-core-1.13.6/css/jquery.dataTables.extra.css" rel="stylesheet" />
Expand Down Expand Up @@ -106,8 +107,8 @@ <h2>teal.modules.general coverage - 3.42%</h2>
</ul>
<div class="tab-content" data-tabsetid="covr">
<div class="tab-pane active" title="Files" data-value="Files" id="tab-covr-1">
<div class="datatables html-widget html-fill-item" id="htmlwidget-06270ed41b87c8de3691" style="width:100%;height:500px;"></div>
<script type="application/json" data-for="htmlwidget-06270ed41b87c8de3691">{"x":{"filter":"none","vertical":false,"fillContainer":false,"data":[["<a href=\"#\">R/tm_g_distribution.R<\/a>","<a href=\"#\">R/tm_missing_data.R<\/a>","<a href=\"#\">R/tm_outliers.R<\/a>","<a href=\"#\">R/tm_a_pca.R<\/a>","<a href=\"#\">R/tm_a_regression.R<\/a>","<a href=\"#\">R/tm_g_scatterplot.R<\/a>","<a href=\"#\">R/tm_g_response.R<\/a>","<a href=\"#\">R/tm_g_association.R<\/a>","<a href=\"#\">R/tm_t_crosstable.R<\/a>","<a href=\"#\">R/tm_data_table.R<\/a>","<a href=\"#\">R/tm_file_viewer.R<\/a>","<a href=\"#\">R/zzz.R<\/a>","<a href=\"#\">R/tm_variable_browser.R<\/a>","<a href=\"#\">R/utils.R<\/a>","<a href=\"#\">R/tm_g_scatterplotmatrix.R<\/a>","<a href=\"#\">R/tm_front_page.R<\/a>","<a href=\"#\">R/tm_g_bivariate.R<\/a>"],[1318,1312,1270,1075,1043,1060,580,544,447,331,251,7,1290,280,555,244,1071],[828,826,760,647,598,567,284,270,200,142,128,2,674,82,229,104,558],[0,0,0,0,0,0,0,0,0,0,0,0,5,3,17,9,231],[828,826,760,647,598,567,284,270,200,142,128,2,669,79,212,95,327],["0","0","0","0","0","0","0","0","0","0","0","0","0","3","0","0","6"],["0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.74%","3.66%","7.42%","8.65%","41.40%"]],"container":"<table class=\"row-border\">\n <thead>\n <tr>\n <th>File<\/th>\n <th>Lines<\/th>\n <th>Relevant<\/th>\n <th>Covered<\/th>\n <th>Missed<\/th>\n <th>Hits / Line<\/th>\n <th>Coverage<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"searching":false,"dom":"t","paging":false,"columnDefs":[{"targets":6,"createdCell":"function(td, cellData, rowData, row, col) {\n var percent = cellData.replace(\"%\", \"\");\n if (percent > 90) {\n var grad = \"linear-gradient(90deg, #edfde7 \" + cellData + \", white \" + cellData + \")\";\n } else if (percent > 75) {\n var grad = \"linear-gradient(90deg, #f9ffe5 \" + cellData + \", white \" + cellData + \")\";\n } else {\n var grad = \"linear-gradient(90deg, #fcece9 \" + cellData + \", white \" + cellData + \")\";\n }\n $(td).css(\"background\", grad);\n}\n"},{"className":"dt-right","targets":[1,2,3,4]},{"name":"File","targets":0},{"name":"Lines","targets":1},{"name":"Relevant","targets":2},{"name":"Covered","targets":3},{"name":"Missed","targets":4},{"name":"Hits / Line","targets":5},{"name":"Coverage","targets":6}],"order":[],"autoWidth":false,"orderClasses":false},"callback":"function(table) {\ntable.on('click.dt', 'a', function() {\n files = $('div#files div');\n files.not('div.hidden').addClass('hidden');\n id = $(this).text();\n files.filter('div[id=\\'' + id + '\\']').removeClass('hidden');\n $('ul.nav a[data-value=Source]').text(id).tab('show');\n});\n}","selection":{"mode":"multiple","selected":null,"target":"row","selectable":null}},"evals":["options.columnDefs.0.createdCell","callback"],"jsHooks":[]}</script>
<div class="datatables html-widget html-fill-item" id="htmlwidget-3eefaf8bc383cef3b546" style="width:100%;height:500px;"></div>
<script type="application/json" data-for="htmlwidget-3eefaf8bc383cef3b546">{"x":{"filter":"none","vertical":false,"fillContainer":false,"data":[["<a href=\"#\">R/tm_g_distribution.R<\/a>","<a href=\"#\">R/tm_missing_data.R<\/a>","<a href=\"#\">R/tm_outliers.R<\/a>","<a href=\"#\">R/tm_a_pca.R<\/a>","<a href=\"#\">R/tm_a_regression.R<\/a>","<a href=\"#\">R/tm_g_scatterplot.R<\/a>","<a href=\"#\">R/tm_g_response.R<\/a>","<a href=\"#\">R/tm_g_association.R<\/a>","<a href=\"#\">R/tm_t_crosstable.R<\/a>","<a href=\"#\">R/tm_data_table.R<\/a>","<a href=\"#\">R/tm_file_viewer.R<\/a>","<a href=\"#\">R/zzz.R<\/a>","<a href=\"#\">R/tm_variable_browser.R<\/a>","<a href=\"#\">R/utils.R<\/a>","<a href=\"#\">R/tm_g_scatterplotmatrix.R<\/a>","<a href=\"#\">R/tm_front_page.R<\/a>","<a href=\"#\">R/tm_g_bivariate.R<\/a>"],[1318,1312,1270,1075,1043,1060,580,544,447,331,251,7,1290,280,555,244,1071],[828,826,760,647,598,567,284,270,200,142,128,2,674,82,229,104,558],[0,0,0,0,0,0,0,0,0,0,0,0,5,3,17,9,231],[828,826,760,647,598,567,284,270,200,142,128,2,669,79,212,95,327],["0","0","0","0","0","0","0","0","0","0","0","0","0","3","0","0","6"],["0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.00%","0.74%","3.66%","7.42%","8.65%","41.40%"]],"container":"<table class=\"row-border\">\n <thead>\n <tr>\n <th>File<\/th>\n <th>Lines<\/th>\n <th>Relevant<\/th>\n <th>Covered<\/th>\n <th>Missed<\/th>\n <th>Hits / Line<\/th>\n <th>Coverage<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"searching":false,"dom":"t","paging":false,"columnDefs":[{"targets":6,"createdCell":"function(td, cellData, rowData, row, col) {\n var percent = cellData.replace(\"%\", \"\");\n if (percent > 90) {\n var grad = \"linear-gradient(90deg, #edfde7 \" + cellData + \", white \" + cellData + \")\";\n } else if (percent > 75) {\n var grad = \"linear-gradient(90deg, #f9ffe5 \" + cellData + \", white \" + cellData + \")\";\n } else {\n var grad = \"linear-gradient(90deg, #fcece9 \" + cellData + \", white \" + cellData + \")\";\n }\n $(td).css(\"background\", grad);\n}\n"},{"className":"dt-right","targets":[1,2,3,4]},{"name":"File","targets":0},{"name":"Lines","targets":1},{"name":"Relevant","targets":2},{"name":"Covered","targets":3},{"name":"Missed","targets":4},{"name":"Hits / Line","targets":5},{"name":"Coverage","targets":6}],"order":[],"autoWidth":false,"orderClasses":false},"callback":"function(table) {\ntable.on('click.dt', 'a', function() {\n files = $('div#files div');\n files.not('div.hidden').addClass('hidden');\n id = $(this).text();\n files.filter('div[id=\\'' + id + '\\']').removeClass('hidden');\n $('ul.nav a[data-value=Source]').text(id).tab('show');\n});\n}","selection":{"mode":"multiple","selected":null,"target":"row","selectable":null}},"evals":["options.columnDefs.0.createdCell","callback"],"jsHooks":[]}</script>
</div>
<div class="tab-pane" title="Source" data-value="Source" id="tab-covr-2">
<div id="files">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,9 @@ HTMLWidgets.widget({
updateColsSelected();
updateCellsSelected();
})
updateRowsSelected();
updateColsSelected();
updateCellsSelected();
}

var selMode = data.selection.mode, selTarget = data.selection.target;
Expand Down
21 changes: 21 additions & 0 deletions main/coverage-report/lib/htmltools-fill-0.5.8.1/fill.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@layer htmltools {
.html-fill-container {
display: flex;
flex-direction: column;
/* Prevent the container from expanding vertically or horizontally beyond its
parent's constraints. */
min-height: 0;
min-width: 0;
}
.html-fill-container > .html-fill-item {
/* Fill items can grow and shrink freely within
available vertical space in fillable container */
flex: 1 1 auto;
min-height: 0;
min-width: 0;
}
.html-fill-container > :not(.html-fill-item) {
/* Prevent shrinking or growing of non-fill items */
flex: 0 0 auto;
}
}

0 comments on commit c3da08e

Please sign in to comment.