a
This commit is contained in:
224
backend/node_modules/kareem/coverage/lcov-report/base.css
generated
vendored
Normal file
224
backend/node_modules/kareem/coverage/lcov-report/base.css
generated
vendored
Normal file
@@ -0,0 +1,224 @@
|
||||
body, html {
|
||||
margin:0; padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
body {
|
||||
font-family: Helvetica Neue, Helvetica, Arial;
|
||||
font-size: 14px;
|
||||
color:#333;
|
||||
}
|
||||
.small { font-size: 12px; }
|
||||
*, *:after, *:before {
|
||||
-webkit-box-sizing:border-box;
|
||||
-moz-box-sizing:border-box;
|
||||
box-sizing:border-box;
|
||||
}
|
||||
h1 { font-size: 20px; margin: 0;}
|
||||
h2 { font-size: 14px; }
|
||||
pre {
|
||||
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-moz-tab-size: 2;
|
||||
-o-tab-size: 2;
|
||||
tab-size: 2;
|
||||
}
|
||||
a { color:#0074D9; text-decoration:none; }
|
||||
a:hover { text-decoration:underline; }
|
||||
.strong { font-weight: bold; }
|
||||
.space-top1 { padding: 10px 0 0 0; }
|
||||
.pad2y { padding: 20px 0; }
|
||||
.pad1y { padding: 10px 0; }
|
||||
.pad2x { padding: 0 20px; }
|
||||
.pad2 { padding: 20px; }
|
||||
.pad1 { padding: 10px; }
|
||||
.space-left2 { padding-left:55px; }
|
||||
.space-right2 { padding-right:20px; }
|
||||
.center { text-align:center; }
|
||||
.clearfix { display:block; }
|
||||
.clearfix:after {
|
||||
content:'';
|
||||
display:block;
|
||||
height:0;
|
||||
clear:both;
|
||||
visibility:hidden;
|
||||
}
|
||||
.fl { float: left; }
|
||||
@media only screen and (max-width:640px) {
|
||||
.col3 { width:100%; max-width:100%; }
|
||||
.hide-mobile { display:none!important; }
|
||||
}
|
||||
|
||||
.quiet {
|
||||
color: #7f7f7f;
|
||||
color: rgba(0,0,0,0.5);
|
||||
}
|
||||
.quiet a { opacity: 0.7; }
|
||||
|
||||
.fraction {
|
||||
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
||||
font-size: 10px;
|
||||
color: #555;
|
||||
background: #E8E8E8;
|
||||
padding: 4px 5px;
|
||||
border-radius: 3px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
div.path a:link, div.path a:visited { color: #333; }
|
||||
table.coverage {
|
||||
border-collapse: collapse;
|
||||
margin: 10px 0 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
table.coverage td {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
table.coverage td.line-count {
|
||||
text-align: right;
|
||||
padding: 0 5px 0 20px;
|
||||
}
|
||||
table.coverage td.line-coverage {
|
||||
text-align: right;
|
||||
padding-right: 10px;
|
||||
min-width:20px;
|
||||
}
|
||||
|
||||
table.coverage td span.cline-any {
|
||||
display: inline-block;
|
||||
padding: 0 5px;
|
||||
width: 100%;
|
||||
}
|
||||
.missing-if-branch {
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
border-radius: 3px;
|
||||
position: relative;
|
||||
padding: 0 4px;
|
||||
background: #333;
|
||||
color: yellow;
|
||||
}
|
||||
|
||||
.skip-if-branch {
|
||||
display: none;
|
||||
margin-right: 10px;
|
||||
position: relative;
|
||||
padding: 0 4px;
|
||||
background: #ccc;
|
||||
color: white;
|
||||
}
|
||||
.missing-if-branch .typ, .skip-if-branch .typ {
|
||||
color: inherit !important;
|
||||
}
|
||||
.coverage-summary {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
.coverage-summary tr { border-bottom: 1px solid #bbb; }
|
||||
.keyline-all { border: 1px solid #ddd; }
|
||||
.coverage-summary td, .coverage-summary th { padding: 10px; }
|
||||
.coverage-summary tbody { border: 1px solid #bbb; }
|
||||
.coverage-summary td { border-right: 1px solid #bbb; }
|
||||
.coverage-summary td:last-child { border-right: none; }
|
||||
.coverage-summary th {
|
||||
text-align: left;
|
||||
font-weight: normal;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.coverage-summary th.file { border-right: none !important; }
|
||||
.coverage-summary th.pct { }
|
||||
.coverage-summary th.pic,
|
||||
.coverage-summary th.abs,
|
||||
.coverage-summary td.pct,
|
||||
.coverage-summary td.abs { text-align: right; }
|
||||
.coverage-summary td.file { white-space: nowrap; }
|
||||
.coverage-summary td.pic { min-width: 120px !important; }
|
||||
.coverage-summary tfoot td { }
|
||||
|
||||
.coverage-summary .sorter {
|
||||
height: 10px;
|
||||
width: 7px;
|
||||
display: inline-block;
|
||||
margin-left: 0.5em;
|
||||
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
|
||||
}
|
||||
.coverage-summary .sorted .sorter {
|
||||
background-position: 0 -20px;
|
||||
}
|
||||
.coverage-summary .sorted-desc .sorter {
|
||||
background-position: 0 -10px;
|
||||
}
|
||||
.status-line { height: 10px; }
|
||||
/* yellow */
|
||||
.cbranch-no { background: yellow !important; color: #111; }
|
||||
/* dark red */
|
||||
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
|
||||
.low .chart { border:1px solid #C21F39 }
|
||||
.highlighted,
|
||||
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
|
||||
background: #C21F39 !important;
|
||||
}
|
||||
/* medium red */
|
||||
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
|
||||
/* light red */
|
||||
.low, .cline-no { background:#FCE1E5 }
|
||||
/* light green */
|
||||
.high, .cline-yes { background:rgb(230,245,208) }
|
||||
/* medium green */
|
||||
.cstat-yes { background:rgb(161,215,106) }
|
||||
/* dark green */
|
||||
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
|
||||
.high .chart { border:1px solid rgb(77,146,33) }
|
||||
/* dark yellow (gold) */
|
||||
.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
|
||||
.medium .chart { border:1px solid #f9cd0b; }
|
||||
/* light yellow */
|
||||
.medium { background: #fff4c2; }
|
||||
|
||||
.cstat-skip { background: #ddd; color: #111; }
|
||||
.fstat-skip { background: #ddd; color: #111 !important; }
|
||||
.cbranch-skip { background: #ddd !important; color: #111; }
|
||||
|
||||
span.cline-neutral { background: #eaeaea; }
|
||||
|
||||
.coverage-summary td.empty {
|
||||
opacity: .5;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
line-height: 1;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.cover-fill, .cover-empty {
|
||||
display:inline-block;
|
||||
height: 12px;
|
||||
}
|
||||
.chart {
|
||||
line-height: 0;
|
||||
}
|
||||
.cover-empty {
|
||||
background: white;
|
||||
}
|
||||
.cover-full {
|
||||
border-right: none !important;
|
||||
}
|
||||
pre.prettyprint {
|
||||
border: none !important;
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
.com { color: #999 !important; }
|
||||
.ignore-none { color: #999; font-weight: normal; }
|
||||
|
||||
.wrapper {
|
||||
min-height: 100%;
|
||||
height: auto !important;
|
||||
height: 100%;
|
||||
margin: 0 auto -48px;
|
||||
}
|
||||
.footer, .push {
|
||||
height: 48px;
|
||||
}
|
||||
87
backend/node_modules/kareem/coverage/lcov-report/block-navigation.js
generated
vendored
Normal file
87
backend/node_modules/kareem/coverage/lcov-report/block-navigation.js
generated
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
/* eslint-disable */
|
||||
var jumpToCode = (function init() {
|
||||
// Classes of code we would like to highlight in the file view
|
||||
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
||||
|
||||
// Elements to highlight in the file listing view
|
||||
var fileListingElements = ['td.pct.low'];
|
||||
|
||||
// We don't want to select elements that are direct descendants of another match
|
||||
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
||||
|
||||
// Selecter that finds elements on the page to which we can jump
|
||||
var selector =
|
||||
fileListingElements.join(', ') +
|
||||
', ' +
|
||||
notSelector +
|
||||
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
||||
|
||||
// The NodeList of matching elements
|
||||
var missingCoverageElements = document.querySelectorAll(selector);
|
||||
|
||||
var currentIndex;
|
||||
|
||||
function toggleClass(index) {
|
||||
missingCoverageElements
|
||||
.item(currentIndex)
|
||||
.classList.remove('highlighted');
|
||||
missingCoverageElements.item(index).classList.add('highlighted');
|
||||
}
|
||||
|
||||
function makeCurrent(index) {
|
||||
toggleClass(index);
|
||||
currentIndex = index;
|
||||
missingCoverageElements.item(index).scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'center',
|
||||
inline: 'center'
|
||||
});
|
||||
}
|
||||
|
||||
function goToPrevious() {
|
||||
var nextIndex = 0;
|
||||
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
||||
nextIndex = missingCoverageElements.length - 1;
|
||||
} else if (missingCoverageElements.length > 1) {
|
||||
nextIndex = currentIndex - 1;
|
||||
}
|
||||
|
||||
makeCurrent(nextIndex);
|
||||
}
|
||||
|
||||
function goToNext() {
|
||||
var nextIndex = 0;
|
||||
|
||||
if (
|
||||
typeof currentIndex === 'number' &&
|
||||
currentIndex < missingCoverageElements.length - 1
|
||||
) {
|
||||
nextIndex = currentIndex + 1;
|
||||
}
|
||||
|
||||
makeCurrent(nextIndex);
|
||||
}
|
||||
|
||||
return function jump(event) {
|
||||
if (
|
||||
document.getElementById('fileSearch') === document.activeElement &&
|
||||
document.activeElement != null
|
||||
) {
|
||||
// if we're currently focused on the search input, we don't want to navigate
|
||||
return;
|
||||
}
|
||||
|
||||
switch (event.which) {
|
||||
case 78: // n
|
||||
case 74: // j
|
||||
goToNext();
|
||||
break;
|
||||
case 66: // b
|
||||
case 75: // k
|
||||
case 80: // p
|
||||
goToPrevious();
|
||||
break;
|
||||
}
|
||||
};
|
||||
})();
|
||||
window.addEventListener('keydown', jumpToCode);
|
||||
BIN
backend/node_modules/kareem/coverage/lcov-report/favicon.png
generated
vendored
Normal file
BIN
backend/node_modules/kareem/coverage/lcov-report/favicon.png
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 445 B |
116
backend/node_modules/kareem/coverage/lcov-report/index.html
generated
vendored
Normal file
116
backend/node_modules/kareem/coverage/lcov-report/index.html
generated
vendored
Normal file
@@ -0,0 +1,116 @@
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>Code coverage report for All files</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="prettify.css" />
|
||||
<link rel="stylesheet" href="base.css" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<style type='text/css'>
|
||||
.coverage-summary .sorter {
|
||||
background-image: url(sort-arrow-sprite.png);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class='wrapper'>
|
||||
<div class='pad1'>
|
||||
<h1>All files</h1>
|
||||
<div class='clearfix'>
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">96.66% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>232/240</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">90.08% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>109/121</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>30/30</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">96.56% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>225/233</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<p class="quiet">
|
||||
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
||||
</p>
|
||||
<template id="filterTemplate">
|
||||
<div class="quiet">
|
||||
Filter:
|
||||
<input type="search" id="fileSearch">
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
<div class='status-line high'></div>
|
||||
<div class="pad1">
|
||||
<table class="coverage-summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
||||
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
||||
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
||||
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
||||
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
||||
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
||||
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr>
|
||||
<td class="file high" data-value="index.js"><a href="index.js.html">index.js</a></td>
|
||||
<td data-value="96.66" class="pic high">
|
||||
<div class="chart"><div class="cover-fill" style="width: 96%"></div><div class="cover-empty" style="width: 4%"></div></div>
|
||||
</td>
|
||||
<td data-value="96.66" class="pct high">96.66%</td>
|
||||
<td data-value="240" class="abs high">232/240</td>
|
||||
<td data-value="90.08" class="pct high">90.08%</td>
|
||||
<td data-value="121" class="abs high">109/121</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="30" class="abs high">30/30</td>
|
||||
<td data-value="96.56" class="pct high">96.56%</td>
|
||||
<td data-value="233" class="abs high">225/233</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class='push'></div><!-- for sticky footer -->
|
||||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
||||
at 2025-08-25T20:16:45.952Z
|
||||
</div>
|
||||
<script src="prettify.js"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
prettyPrint();
|
||||
};
|
||||
</script>
|
||||
<script src="sorter.js"></script>
|
||||
<script src="block-navigation.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
1603
backend/node_modules/kareem/coverage/lcov-report/index.js.html
generated
vendored
Normal file
1603
backend/node_modules/kareem/coverage/lcov-report/index.js.html
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/kareem/coverage/lcov-report/prettify.css
generated
vendored
Normal file
1
backend/node_modules/kareem/coverage/lcov-report/prettify.css
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
|
||||
2
backend/node_modules/kareem/coverage/lcov-report/prettify.js
generated
vendored
Normal file
2
backend/node_modules/kareem/coverage/lcov-report/prettify.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
backend/node_modules/kareem/coverage/lcov-report/sort-arrow-sprite.png
generated
vendored
Normal file
BIN
backend/node_modules/kareem/coverage/lcov-report/sort-arrow-sprite.png
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 138 B |
196
backend/node_modules/kareem/coverage/lcov-report/sorter.js
generated
vendored
Normal file
196
backend/node_modules/kareem/coverage/lcov-report/sorter.js
generated
vendored
Normal file
@@ -0,0 +1,196 @@
|
||||
/* eslint-disable */
|
||||
var addSorting = (function() {
|
||||
'use strict';
|
||||
var cols,
|
||||
currentSort = {
|
||||
index: 0,
|
||||
desc: false
|
||||
};
|
||||
|
||||
// returns the summary table element
|
||||
function getTable() {
|
||||
return document.querySelector('.coverage-summary');
|
||||
}
|
||||
// returns the thead element of the summary table
|
||||
function getTableHeader() {
|
||||
return getTable().querySelector('thead tr');
|
||||
}
|
||||
// returns the tbody element of the summary table
|
||||
function getTableBody() {
|
||||
return getTable().querySelector('tbody');
|
||||
}
|
||||
// returns the th element for nth column
|
||||
function getNthColumn(n) {
|
||||
return getTableHeader().querySelectorAll('th')[n];
|
||||
}
|
||||
|
||||
function onFilterInput() {
|
||||
const searchValue = document.getElementById('fileSearch').value;
|
||||
const rows = document.getElementsByTagName('tbody')[0].children;
|
||||
for (let i = 0; i < rows.length; i++) {
|
||||
const row = rows[i];
|
||||
if (
|
||||
row.textContent
|
||||
.toLowerCase()
|
||||
.includes(searchValue.toLowerCase())
|
||||
) {
|
||||
row.style.display = '';
|
||||
} else {
|
||||
row.style.display = 'none';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// loads the search box
|
||||
function addSearchBox() {
|
||||
var template = document.getElementById('filterTemplate');
|
||||
var templateClone = template.content.cloneNode(true);
|
||||
templateClone.getElementById('fileSearch').oninput = onFilterInput;
|
||||
template.parentElement.appendChild(templateClone);
|
||||
}
|
||||
|
||||
// loads all columns
|
||||
function loadColumns() {
|
||||
var colNodes = getTableHeader().querySelectorAll('th'),
|
||||
colNode,
|
||||
cols = [],
|
||||
col,
|
||||
i;
|
||||
|
||||
for (i = 0; i < colNodes.length; i += 1) {
|
||||
colNode = colNodes[i];
|
||||
col = {
|
||||
key: colNode.getAttribute('data-col'),
|
||||
sortable: !colNode.getAttribute('data-nosort'),
|
||||
type: colNode.getAttribute('data-type') || 'string'
|
||||
};
|
||||
cols.push(col);
|
||||
if (col.sortable) {
|
||||
col.defaultDescSort = col.type === 'number';
|
||||
colNode.innerHTML =
|
||||
colNode.innerHTML + '<span class="sorter"></span>';
|
||||
}
|
||||
}
|
||||
return cols;
|
||||
}
|
||||
// attaches a data attribute to every tr element with an object
|
||||
// of data values keyed by column name
|
||||
function loadRowData(tableRow) {
|
||||
var tableCols = tableRow.querySelectorAll('td'),
|
||||
colNode,
|
||||
col,
|
||||
data = {},
|
||||
i,
|
||||
val;
|
||||
for (i = 0; i < tableCols.length; i += 1) {
|
||||
colNode = tableCols[i];
|
||||
col = cols[i];
|
||||
val = colNode.getAttribute('data-value');
|
||||
if (col.type === 'number') {
|
||||
val = Number(val);
|
||||
}
|
||||
data[col.key] = val;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
// loads all row data
|
||||
function loadData() {
|
||||
var rows = getTableBody().querySelectorAll('tr'),
|
||||
i;
|
||||
|
||||
for (i = 0; i < rows.length; i += 1) {
|
||||
rows[i].data = loadRowData(rows[i]);
|
||||
}
|
||||
}
|
||||
// sorts the table using the data for the ith column
|
||||
function sortByIndex(index, desc) {
|
||||
var key = cols[index].key,
|
||||
sorter = function(a, b) {
|
||||
a = a.data[key];
|
||||
b = b.data[key];
|
||||
return a < b ? -1 : a > b ? 1 : 0;
|
||||
},
|
||||
finalSorter = sorter,
|
||||
tableBody = document.querySelector('.coverage-summary tbody'),
|
||||
rowNodes = tableBody.querySelectorAll('tr'),
|
||||
rows = [],
|
||||
i;
|
||||
|
||||
if (desc) {
|
||||
finalSorter = function(a, b) {
|
||||
return -1 * sorter(a, b);
|
||||
};
|
||||
}
|
||||
|
||||
for (i = 0; i < rowNodes.length; i += 1) {
|
||||
rows.push(rowNodes[i]);
|
||||
tableBody.removeChild(rowNodes[i]);
|
||||
}
|
||||
|
||||
rows.sort(finalSorter);
|
||||
|
||||
for (i = 0; i < rows.length; i += 1) {
|
||||
tableBody.appendChild(rows[i]);
|
||||
}
|
||||
}
|
||||
// removes sort indicators for current column being sorted
|
||||
function removeSortIndicators() {
|
||||
var col = getNthColumn(currentSort.index),
|
||||
cls = col.className;
|
||||
|
||||
cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
|
||||
col.className = cls;
|
||||
}
|
||||
// adds sort indicators for current column being sorted
|
||||
function addSortIndicators() {
|
||||
getNthColumn(currentSort.index).className += currentSort.desc
|
||||
? ' sorted-desc'
|
||||
: ' sorted';
|
||||
}
|
||||
// adds event listeners for all sorter widgets
|
||||
function enableUI() {
|
||||
var i,
|
||||
el,
|
||||
ithSorter = function ithSorter(i) {
|
||||
var col = cols[i];
|
||||
|
||||
return function() {
|
||||
var desc = col.defaultDescSort;
|
||||
|
||||
if (currentSort.index === i) {
|
||||
desc = !currentSort.desc;
|
||||
}
|
||||
sortByIndex(i, desc);
|
||||
removeSortIndicators();
|
||||
currentSort.index = i;
|
||||
currentSort.desc = desc;
|
||||
addSortIndicators();
|
||||
};
|
||||
};
|
||||
for (i = 0; i < cols.length; i += 1) {
|
||||
if (cols[i].sortable) {
|
||||
// add the click event handler on the th so users
|
||||
// dont have to click on those tiny arrows
|
||||
el = getNthColumn(i).querySelector('.sorter').parentElement;
|
||||
if (el.addEventListener) {
|
||||
el.addEventListener('click', ithSorter(i));
|
||||
} else {
|
||||
el.attachEvent('onclick', ithSorter(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// adds sorting functionality to the UI
|
||||
return function() {
|
||||
if (!getTable()) {
|
||||
return;
|
||||
}
|
||||
cols = loadColumns();
|
||||
loadData();
|
||||
addSearchBox();
|
||||
addSortIndicators();
|
||||
enableUI();
|
||||
};
|
||||
})();
|
||||
|
||||
window.addEventListener('load', addSorting);
|
||||
423
backend/node_modules/kareem/coverage/lcov.info
generated
vendored
Normal file
423
backend/node_modules/kareem/coverage/lcov.info
generated
vendored
Normal file
@@ -0,0 +1,423 @@
|
||||
TN:
|
||||
SF:index.js
|
||||
FN:6,Kareem
|
||||
FN:11,skipWrappedFunction
|
||||
FN:19,overwriteResult
|
||||
FN:34,execPre
|
||||
FN:49,(anonymous_4)
|
||||
FN:53,(anonymous_5)
|
||||
FN:103,(anonymous_6)
|
||||
FN:120,execPost
|
||||
FN:157,(anonymous_8)
|
||||
FN:161,nextCallback
|
||||
FN:234,(anonymous_10)
|
||||
FN:254,(anonymous_11)
|
||||
FN:256,syncWrapper
|
||||
FN:276,wrap
|
||||
FN:304,(anonymous_14)
|
||||
FN:310,(anonymous_15)
|
||||
FN:324,(anonymous_16)
|
||||
FN:343,(anonymous_17)
|
||||
FN:355,(anonymous_18)
|
||||
FN:361,kareemWrappedFunction
|
||||
FN:376,(anonymous_20)
|
||||
FN:409,(anonymous_21)
|
||||
FN:440,postError
|
||||
FN:453,(anonymous_23)
|
||||
FN:473,(anonymous_24)
|
||||
FN:481,(anonymous_25)
|
||||
FN:481,(anonymous_26)
|
||||
FN:488,(anonymous_27)
|
||||
FN:495,isPromiseLike
|
||||
FN:499,isErrorHandlingMiddleware
|
||||
FNF:30
|
||||
FNH:30
|
||||
FNDA:62,Kareem
|
||||
FNDA:6,skipWrappedFunction
|
||||
FNDA:12,overwriteResult
|
||||
FNDA:27,execPre
|
||||
FNDA:27,(anonymous_4)
|
||||
FNDA:27,(anonymous_5)
|
||||
FNDA:4,(anonymous_6)
|
||||
FNDA:27,execPost
|
||||
FNDA:41,(anonymous_8)
|
||||
FNDA:24,nextCallback
|
||||
FNDA:5,(anonymous_10)
|
||||
FNDA:2,(anonymous_11)
|
||||
FNDA:2,syncWrapper
|
||||
FNDA:17,wrap
|
||||
FNDA:2,(anonymous_14)
|
||||
FNDA:6,(anonymous_15)
|
||||
FNDA:6,(anonymous_16)
|
||||
FNDA:2,(anonymous_17)
|
||||
FNDA:1,(anonymous_18)
|
||||
FNDA:1,kareemWrappedFunction
|
||||
FNDA:51,(anonymous_20)
|
||||
FNDA:60,(anonymous_21)
|
||||
FNDA:1,postError
|
||||
FNDA:4,(anonymous_23)
|
||||
FNDA:1,(anonymous_24)
|
||||
FNDA:1,(anonymous_25)
|
||||
FNDA:1,(anonymous_26)
|
||||
FNDA:1,(anonymous_27)
|
||||
FNDA:61,isPromiseLike
|
||||
FNDA:41,isErrorHandlingMiddleware
|
||||
DA:7,62
|
||||
DA:8,62
|
||||
DA:11,1
|
||||
DA:12,6
|
||||
DA:13,3
|
||||
DA:16,3
|
||||
DA:19,1
|
||||
DA:20,12
|
||||
DA:21,6
|
||||
DA:24,6
|
||||
DA:34,1
|
||||
DA:35,27
|
||||
DA:36,27
|
||||
DA:37,27
|
||||
DA:38,27
|
||||
DA:40,27
|
||||
DA:41,3
|
||||
DA:44,24
|
||||
DA:45,24
|
||||
DA:46,33
|
||||
DA:47,27
|
||||
DA:48,27
|
||||
DA:49,27
|
||||
DA:50,27
|
||||
DA:51,27
|
||||
DA:53,27
|
||||
DA:54,27
|
||||
DA:55,27
|
||||
DA:56,19
|
||||
DA:57,0
|
||||
DA:59,19
|
||||
DA:62,27
|
||||
DA:63,27
|
||||
DA:64,27
|
||||
DA:65,0
|
||||
DA:67,27
|
||||
DA:70,9
|
||||
DA:71,3
|
||||
DA:72,3
|
||||
DA:74,6
|
||||
DA:77,6
|
||||
DA:78,6
|
||||
DA:80,2
|
||||
DA:81,0
|
||||
DA:82,0
|
||||
DA:84,2
|
||||
DA:89,16
|
||||
DA:91,16
|
||||
DA:92,3
|
||||
DA:103,1
|
||||
DA:104,4
|
||||
DA:105,4
|
||||
DA:107,4
|
||||
DA:108,4
|
||||
DA:120,1
|
||||
DA:121,27
|
||||
DA:122,27
|
||||
DA:124,27
|
||||
DA:125,27
|
||||
DA:126,6
|
||||
DA:129,27
|
||||
DA:130,1
|
||||
DA:131,0
|
||||
DA:133,1
|
||||
DA:136,26
|
||||
DA:137,41
|
||||
DA:138,41
|
||||
DA:139,41
|
||||
DA:140,41
|
||||
DA:141,41
|
||||
DA:142,40
|
||||
DA:143,40
|
||||
DA:144,40
|
||||
DA:148,41
|
||||
DA:149,1
|
||||
DA:150,1
|
||||
DA:151,1
|
||||
DA:157,41
|
||||
DA:158,41
|
||||
DA:159,41
|
||||
DA:161,41
|
||||
DA:162,24
|
||||
DA:163,12
|
||||
DA:165,12
|
||||
DA:169,41
|
||||
DA:170,14
|
||||
DA:171,8
|
||||
DA:172,8
|
||||
DA:173,8
|
||||
DA:174,1
|
||||
DA:175,7
|
||||
DA:177,6
|
||||
DA:180,5
|
||||
DA:181,0
|
||||
DA:182,0
|
||||
DA:184,5
|
||||
DA:187,6
|
||||
DA:190,27
|
||||
DA:192,1
|
||||
DA:194,26
|
||||
DA:195,26
|
||||
DA:196,26
|
||||
DA:197,26
|
||||
DA:198,3
|
||||
DA:199,23
|
||||
DA:201,18
|
||||
DA:204,7
|
||||
DA:205,2
|
||||
DA:206,2
|
||||
DA:208,5
|
||||
DA:209,5
|
||||
DA:212,19
|
||||
DA:213,2
|
||||
DA:214,2
|
||||
DA:220,26
|
||||
DA:221,11
|
||||
DA:224,15
|
||||
DA:234,1
|
||||
DA:235,5
|
||||
DA:236,5
|
||||
DA:238,5
|
||||
DA:239,6
|
||||
DA:240,6
|
||||
DA:241,2
|
||||
DA:245,5
|
||||
DA:254,1
|
||||
DA:255,2
|
||||
DA:256,2
|
||||
DA:257,2
|
||||
DA:259,2
|
||||
DA:261,2
|
||||
DA:263,2
|
||||
DA:276,1
|
||||
DA:278,17
|
||||
DA:279,17
|
||||
DA:280,17
|
||||
DA:282,7
|
||||
DA:283,2
|
||||
DA:284,2
|
||||
DA:286,5
|
||||
DA:290,12
|
||||
DA:291,10
|
||||
DA:294,9
|
||||
DA:296,7
|
||||
DA:304,1
|
||||
DA:305,2
|
||||
DA:307,2
|
||||
DA:308,2
|
||||
DA:309,4
|
||||
DA:310,6
|
||||
DA:313,4
|
||||
DA:314,1
|
||||
DA:315,1
|
||||
DA:318,3
|
||||
DA:321,2
|
||||
DA:322,2
|
||||
DA:323,4
|
||||
DA:324,6
|
||||
DA:327,4
|
||||
DA:328,1
|
||||
DA:329,1
|
||||
DA:332,3
|
||||
DA:335,2
|
||||
DA:343,1
|
||||
DA:344,2
|
||||
DA:355,1
|
||||
DA:356,1
|
||||
DA:357,1
|
||||
DA:359,0
|
||||
DA:361,1
|
||||
DA:362,1
|
||||
DA:363,1
|
||||
DA:376,1
|
||||
DA:377,51
|
||||
DA:378,43
|
||||
DA:379,43
|
||||
DA:380,8
|
||||
DA:381,1
|
||||
DA:384,51
|
||||
DA:385,51
|
||||
DA:387,51
|
||||
DA:388,1
|
||||
DA:391,50
|
||||
DA:392,2
|
||||
DA:394,48
|
||||
DA:397,50
|
||||
DA:409,1
|
||||
DA:410,60
|
||||
DA:412,60
|
||||
DA:413,52
|
||||
DA:414,52
|
||||
DA:415,52
|
||||
DA:418,60
|
||||
DA:419,1
|
||||
DA:422,59
|
||||
DA:423,2
|
||||
DA:425,57
|
||||
DA:427,59
|
||||
DA:428,59
|
||||
DA:440,1
|
||||
DA:441,1
|
||||
DA:442,1
|
||||
DA:443,1
|
||||
DA:444,1
|
||||
DA:446,1
|
||||
DA:453,1
|
||||
DA:454,4
|
||||
DA:456,4
|
||||
DA:457,6
|
||||
DA:458,6
|
||||
DA:460,4
|
||||
DA:461,5
|
||||
DA:464,4
|
||||
DA:473,1
|
||||
DA:474,1
|
||||
DA:475,1
|
||||
DA:477,1
|
||||
DA:478,1
|
||||
DA:479,1
|
||||
DA:481,1
|
||||
DA:482,1
|
||||
DA:483,1
|
||||
DA:485,1
|
||||
DA:486,1
|
||||
DA:487,1
|
||||
DA:488,1
|
||||
DA:489,1
|
||||
DA:492,1
|
||||
DA:496,61
|
||||
DA:500,41
|
||||
DA:501,2
|
||||
DA:503,39
|
||||
DA:506,1
|
||||
LF:233
|
||||
LH:225
|
||||
BRDA:12,0,0,3
|
||||
BRDA:12,0,1,3
|
||||
BRDA:20,1,0,6
|
||||
BRDA:20,1,1,6
|
||||
BRDA:35,2,0,27
|
||||
BRDA:35,2,1,3
|
||||
BRDA:40,3,0,3
|
||||
BRDA:40,3,1,24
|
||||
BRDA:46,4,0,27
|
||||
BRDA:46,4,1,6
|
||||
BRDA:53,5,0,9
|
||||
BRDA:53,5,1,18
|
||||
BRDA:56,6,0,0
|
||||
BRDA:56,6,1,19
|
||||
BRDA:56,7,0,19
|
||||
BRDA:56,7,1,19
|
||||
BRDA:64,8,0,0
|
||||
BRDA:64,8,1,27
|
||||
BRDA:70,9,0,3
|
||||
BRDA:70,9,1,6
|
||||
BRDA:80,10,0,0
|
||||
BRDA:80,10,1,2
|
||||
BRDA:91,11,0,3
|
||||
BRDA:91,11,1,13
|
||||
BRDA:104,12,0,4
|
||||
BRDA:104,12,1,1
|
||||
BRDA:108,13,0,4
|
||||
BRDA:108,13,1,2
|
||||
BRDA:121,14,0,27
|
||||
BRDA:121,14,1,1
|
||||
BRDA:125,15,0,6
|
||||
BRDA:125,15,1,21
|
||||
BRDA:125,16,0,27
|
||||
BRDA:125,16,1,10
|
||||
BRDA:129,17,0,1
|
||||
BRDA:129,17,1,26
|
||||
BRDA:130,18,0,0
|
||||
BRDA:130,18,1,1
|
||||
BRDA:142,19,0,40
|
||||
BRDA:142,19,1,0
|
||||
BRDA:142,20,0,40
|
||||
BRDA:142,20,1,37
|
||||
BRDA:148,21,0,1
|
||||
BRDA:148,21,1,40
|
||||
BRDA:162,22,0,12
|
||||
BRDA:162,22,1,12
|
||||
BRDA:169,23,0,14
|
||||
BRDA:169,23,1,27
|
||||
BRDA:170,24,0,8
|
||||
BRDA:170,24,1,6
|
||||
BRDA:173,25,0,1
|
||||
BRDA:173,25,1,7
|
||||
BRDA:175,26,0,6
|
||||
BRDA:175,26,1,1
|
||||
BRDA:180,27,0,0
|
||||
BRDA:180,27,1,5
|
||||
BRDA:190,28,0,1
|
||||
BRDA:190,28,1,26
|
||||
BRDA:197,29,0,3
|
||||
BRDA:197,29,1,23
|
||||
BRDA:199,30,0,18
|
||||
BRDA:199,30,1,5
|
||||
BRDA:204,31,0,2
|
||||
BRDA:204,31,1,5
|
||||
BRDA:212,32,0,2
|
||||
BRDA:212,32,1,17
|
||||
BRDA:220,33,0,11
|
||||
BRDA:220,33,1,15
|
||||
BRDA:235,34,0,5
|
||||
BRDA:235,34,1,1
|
||||
BRDA:239,35,0,6
|
||||
BRDA:239,35,1,2
|
||||
BRDA:240,36,0,2
|
||||
BRDA:240,36,1,4
|
||||
BRDA:282,37,0,2
|
||||
BRDA:282,37,1,5
|
||||
BRDA:290,38,0,10
|
||||
BRDA:290,38,1,2
|
||||
BRDA:313,39,0,1
|
||||
BRDA:313,39,1,3
|
||||
BRDA:327,40,0,1
|
||||
BRDA:327,40,1,3
|
||||
BRDA:344,41,0,2
|
||||
BRDA:344,41,1,1
|
||||
BRDA:357,42,0,0
|
||||
BRDA:357,42,1,1
|
||||
BRDA:362,43,0,1
|
||||
BRDA:362,43,1,0
|
||||
BRDA:377,44,0,43
|
||||
BRDA:377,44,1,8
|
||||
BRDA:380,45,0,1
|
||||
BRDA:380,45,1,7
|
||||
BRDA:384,46,0,51
|
||||
BRDA:384,46,1,35
|
||||
BRDA:387,47,0,1
|
||||
BRDA:387,47,1,50
|
||||
BRDA:391,48,0,2
|
||||
BRDA:391,48,1,48
|
||||
BRDA:410,49,0,60
|
||||
BRDA:410,49,1,40
|
||||
BRDA:412,50,0,52
|
||||
BRDA:412,50,1,8
|
||||
BRDA:418,51,0,1
|
||||
BRDA:418,51,1,59
|
||||
BRDA:422,52,0,2
|
||||
BRDA:422,52,1,57
|
||||
BRDA:441,53,0,1
|
||||
BRDA:441,53,1,0
|
||||
BRDA:474,54,0,1
|
||||
BRDA:474,54,1,0
|
||||
BRDA:475,55,0,1
|
||||
BRDA:475,55,1,0
|
||||
BRDA:478,56,0,1
|
||||
BRDA:478,56,1,0
|
||||
BRDA:486,57,0,1
|
||||
BRDA:486,57,1,1
|
||||
BRDA:496,58,0,61
|
||||
BRDA:496,58,1,5
|
||||
BRDA:496,58,2,5
|
||||
BRDA:500,59,0,2
|
||||
BRDA:500,59,1,39
|
||||
BRF:121
|
||||
BRH:109
|
||||
end_of_record
|
||||
Reference in New Issue
Block a user