Skip to content

Commit

Permalink
deploy: 252b36c
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Dec 13, 2023
1 parent 0d93d07 commit 4836fc2
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 20 deletions.
18 changes: 9 additions & 9 deletions main/coverage-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<head>
<meta charset="utf-8"/>
<style>body{background-color:white;}</style>
<script src="lib/htmlwidgets-1.6.2/htmlwidgets.js"></script>
<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.28/datatables.js"></script>
<script src="lib/datatables-binding-0.31/datatables.js"></script>
<script src="lib/jquery-3.6.0/jquery-3.6.0.min.js"></script>
<link href="lib/dt-core-1.13.4/css/jquery.dataTables.min.css" rel="stylesheet" />
<link href="lib/dt-core-1.13.4/css/jquery.dataTables.extra.css" rel="stylesheet" />
<script src="lib/dt-core-1.13.4/js/jquery.dataTables.min.js"></script>
<link href="lib/crosstalk-1.2.0/css/crosstalk.min.css" rel="stylesheet" />
<script src="lib/crosstalk-1.2.0/js/crosstalk.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" />
<script src="lib/dt-core-1.13.6/js/jquery.dataTables.min.js"></script>
<link href="lib/crosstalk-1.2.1/css/crosstalk.min.css" rel="stylesheet" />
<script src="lib/crosstalk-1.2.1/js/crosstalk.min.js"></script>
<link href="lib/highlight.js-6.2/rstudio.css" rel="stylesheet" />
<script src="lib/highlight.js-6.2/highlight.pack.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand Down Expand Up @@ -106,8 +106,8 @@ <h2>random.cdisc.data coverage - 98.85%</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-overflow-hidden html-fill-item" id="htmlwidget-9049ec44b22e188c7cd4" style="width:100%;height:500px;"></div>
<script type="application/json" data-for="htmlwidget-9049ec44b22e188c7cd4">{"x":{"filter":"none","vertical":false,"fillContainer":false,"data":[["<a href=\"#\">R/utils.R<\/a>","<a href=\"#\">R/radrs.R<\/a>","<a href=\"#\">R/radmh.R<\/a>","<a href=\"#\">R/raddv.R<\/a>","<a href=\"#\">R/radaette.R<\/a>","<a href=\"#\">R/radtte.R<\/a>","<a href=\"#\">R/radae.R<\/a>","<a href=\"#\">R/radsub.R<\/a>","<a href=\"#\">R/radcm.R<\/a>","<a href=\"#\">R/radpp.R<\/a>","<a href=\"#\">R/radpc.R<\/a>","<a href=\"#\">R/radqs.R<\/a>","<a href=\"#\">R/radhy.R<\/a>","<a href=\"#\">R/radqlqc.R<\/a>","<a href=\"#\">R/radsl.R<\/a>","<a href=\"#\">R/radvs.R<\/a>","<a href=\"#\">R/radex.R<\/a>","<a href=\"#\">R/radeg.R<\/a>","<a href=\"#\">R/radab.R<\/a>","<a href=\"#\">R/radlb.R<\/a>","<a href=\"#\">R/radtr.R<\/a>","<a href=\"#\">R/radsaftte.R<\/a>"],[466,191,142,145,268,287,292,250,212,157,138,193,246,1280,270,259,331,378,402,435,176,25],[135,105,80,82,170,170,170,119,133,73,74,101,116,817,155,155,198,221,263,279,109,1],[126,102,78,80,166,166,167,117,131,72,73,100,115,811,154,154,197,220,262,278,109,1],[9,3,2,2,4,4,3,2,2,1,1,1,1,6,1,1,1,1,1,1,0,0],["509","30","5","5","43","15","4","3","23","3","6","6","3","129","26","5","21","4","3","4","3","2"],["93.33%","97.14%","97.50%","97.56%","97.65%","97.65%","98.24%","98.32%","98.50%","98.63%","98.65%","99.01%","99.14%","99.27%","99.35%","99.35%","99.49%","99.55%","99.62%","99.64%","100.00%","100.00%"]],"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]}],"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}"},"evals":["options.columnDefs.0.createdCell","callback"],"jsHooks":[]}</script>
<div class="datatables html-widget html-fill-item" id="htmlwidget-42aac725c48b79087fc7" style="width:100%;height:500px;"></div>
<script type="application/json" data-for="htmlwidget-42aac725c48b79087fc7">{"x":{"filter":"none","vertical":false,"fillContainer":false,"data":[["<a href=\"#\">R/utils.R<\/a>","<a href=\"#\">R/radrs.R<\/a>","<a href=\"#\">R/radmh.R<\/a>","<a href=\"#\">R/raddv.R<\/a>","<a href=\"#\">R/radaette.R<\/a>","<a href=\"#\">R/radtte.R<\/a>","<a href=\"#\">R/radae.R<\/a>","<a href=\"#\">R/radsub.R<\/a>","<a href=\"#\">R/radcm.R<\/a>","<a href=\"#\">R/radpp.R<\/a>","<a href=\"#\">R/radpc.R<\/a>","<a href=\"#\">R/radqs.R<\/a>","<a href=\"#\">R/radhy.R<\/a>","<a href=\"#\">R/radqlqc.R<\/a>","<a href=\"#\">R/radsl.R<\/a>","<a href=\"#\">R/radvs.R<\/a>","<a href=\"#\">R/radex.R<\/a>","<a href=\"#\">R/radeg.R<\/a>","<a href=\"#\">R/radab.R<\/a>","<a href=\"#\">R/radlb.R<\/a>","<a href=\"#\">R/radtr.R<\/a>","<a href=\"#\">R/radsaftte.R<\/a>"],[466,191,142,145,268,287,292,250,212,157,138,193,246,1280,270,259,331,378,402,435,176,25],[135,105,80,82,170,170,170,119,133,73,74,101,116,817,155,155,198,221,263,279,109,1],[126,102,78,80,166,166,167,117,131,72,73,100,115,811,154,154,197,220,262,278,109,1],[9,3,2,2,4,4,3,2,2,1,1,1,1,6,1,1,1,1,1,1,0,0],["509","30","5","5","43","15","4","3","23","3","6","6","3","129","26","5","21","4","3","4","3","2"],["93.33%","97.14%","97.50%","97.56%","97.65%","97.65%","98.24%","98.32%","98.50%","98.63%","98.65%","99.01%","99.14%","99.27%","99.35%","99.35%","99.49%","99.55%","99.62%","99.64%","100.00%","100.00%"]],"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}"},"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 @@ -2,7 +2,7 @@

// some helper functions: using a global object DTWidget so that it can be used
// in JS() code, e.g. datatable(options = list(foo = JS('code'))); unlike R's
// dynamic scoping, when 'code' is eval()'ed, JavaScript does not know objects
// dynamic scoping, when 'code' is eval'ed, JavaScript does not know objects
// from the "parent frame", e.g. JS('DTWidget') will not work unless it was made
// a global object
var DTWidget = {};
Expand Down Expand Up @@ -432,6 +432,8 @@ HTMLWidgets.widget({
regex = options.search.regex,
ci = options.search.caseInsensitive !== false;
}
// need to transpose the column index when colReorder is enabled
if (table.colReorder) i = table.colReorder.transpose(i);
return table.column(i).search(value, regex, !regex, ci);
};

Expand Down Expand Up @@ -493,7 +495,9 @@ HTMLWidgets.widget({
$input.parent().hide(); $x.show().trigger('show'); filter[0].selectize.focus();
},
input: function() {
if ($input.val() === '') filter[0].selectize.setValue([]);
var v1 = JSON.stringify(filter[0].selectize.getValue()), v2 = $input.val();
if (v1 === '[]') v1 = '';
if (v1 !== v2) filter[0].selectize.setValue(v2 === '' ? [] : JSON.parse(v2));
}
});
var $input2 = $x.children('select');
Expand All @@ -509,7 +513,7 @@ HTMLWidgets.widget({
if (value.length) $input.trigger('input');
$input.attr('title', $input.val());
if (server) {
table.column(i).search(value.length ? JSON.stringify(value) : '').draw();
searchColumn(i, value.length ? JSON.stringify(value) : '').draw();
return;
}
// turn off filter if nothing selected
Expand Down Expand Up @@ -680,7 +684,7 @@ HTMLWidgets.widget({
updateSliderText(val[0], val[1]);
if (e.type === 'slide') return; // no searching when sliding only
if (server) {
table.column(i).search($td.data('filter') ? ival : '').draw();
searchColumn(i, $td.data('filter') ? ival : '').draw();
return;
}
table.draw();
Expand Down Expand Up @@ -1370,7 +1374,7 @@ HTMLWidgets.widget({
changeInput('cell_clicked', {});

// do not trigger table selection when clicking on links unless they have classes
table.on('click.dt', 'tbody td a', function(e) {
table.on('mousedown.dt', 'tbody td a', function(e) {
if (this.className === '') e.stopPropagation();
});

Expand Down Expand Up @@ -1398,7 +1402,7 @@ HTMLWidgets.widget({
console.log('The search keyword for column ' + i + ' is undefined')
return;
}
$(td).find('input').first().val(v);
$(td).find('input').first().val(v).trigger('input');
searchColumn(i, v);
});
table.draw();
Expand Down

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 4836fc2

Please sign in to comment.