@mx-space/api-client 0.8.1 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adaptors/axios.ts +2 -0
- package/adaptors/umi-request.ts +1 -0
- package/build/index.cjs.js +11 -11
- package/build/index.cjs.js.map +1 -1
- package/build/index.cjs.min.js +1 -1
- package/build/index.cjs.min.js.map +1 -1
- package/build/index.esm.js +11 -11
- package/build/index.esm.js.map +1 -1
- package/build/index.esm.min.js +1 -1
- package/build/index.esm.min.js.map +1 -1
- package/build/index.umd.js +11 -11
- package/build/index.umd.js.map +1 -1
- package/build/index.umd.min.js +1 -1
- package/build/index.umd.min.js.map +1 -1
- package/controllers/aggregate.ts +2 -1
- package/controllers/base.ts +2 -1
- package/controllers/category.ts +10 -9
- package/controllers/comment.ts +3 -2
- package/controllers/link.ts +3 -2
- package/controllers/note.ts +2 -1
- package/controllers/page.ts +2 -1
- package/controllers/post.ts +2 -1
- package/controllers/project.ts +3 -2
- package/controllers/recently.ts +2 -1
- package/controllers/say.ts +3 -2
- package/controllers/search.ts +3 -2
- package/controllers/severless.ts +2 -1
- package/controllers/snippet.ts +5 -5
- package/controllers/user.ts +2 -1
- package/core/client.ts +5 -3
- package/coverage/coverage-final.json +5943 -31
- package/coverage/lcov-report/adaptors/axios.ts.html +71 -69
- package/coverage/lcov-report/adaptors/index.html +180 -115
- package/coverage/lcov-report/adaptors/umi-request.ts.html +71 -69
- package/coverage/lcov-report/auto-bind.ts.html +67 -68
- package/coverage/lcov-report/base.css +253 -123
- package/coverage/lcov-report/block-navigation.js +68 -70
- package/coverage/lcov-report/controllers/aggregate.ts.html +71 -69
- package/coverage/lcov-report/controllers/base.ts.html +71 -69
- package/coverage/lcov-report/controllers/category.ts.html +71 -69
- package/coverage/lcov-report/controllers/comment.ts.html +71 -69
- package/coverage/lcov-report/controllers/index.html +446 -311
- package/coverage/lcov-report/controllers/index.ts.html +71 -69
- package/coverage/lcov-report/controllers/link.ts.html +71 -69
- package/coverage/lcov-report/controllers/note.ts.html +71 -69
- package/coverage/lcov-report/controllers/page.ts.html +71 -69
- package/coverage/lcov-report/controllers/post.ts.html +71 -69
- package/coverage/lcov-report/controllers/project.ts.html +71 -69
- package/coverage/lcov-report/controllers/recently.ts.html +71 -69
- package/coverage/lcov-report/controllers/say.ts.html +71 -69
- package/coverage/lcov-report/controllers/search.ts.html +71 -69
- package/coverage/lcov-report/controllers/severless.ts.html +71 -69
- package/coverage/lcov-report/controllers/snippet.ts.html +71 -69
- package/coverage/lcov-report/controllers/user.ts.html +71 -69
- package/coverage/lcov-report/core/attach-request.ts.html +71 -69
- package/coverage/lcov-report/core/client.ts.html +71 -69
- package/coverage/lcov-report/core/error.ts.html +71 -69
- package/coverage/lcov-report/core/index.html +218 -143
- package/coverage/lcov-report/core/index.ts.html +71 -69
- package/coverage/lcov-report/index.html +256 -171
- package/coverage/lcov-report/index.ts.html +67 -68
- package/coverage/lcov-report/models/aggregate.ts.html +71 -69
- package/coverage/lcov-report/models/category.ts.html +71 -69
- package/coverage/lcov-report/models/index.html +180 -115
- package/coverage/lcov-report/prettify.css +101 -1
- package/coverage/lcov-report/prettify.js +1003 -1
- package/coverage/lcov-report/sorter.js +169 -174
- package/coverage/lcov-report/utils/auto-bind.ts.html +71 -69
- package/coverage/lcov-report/utils/index.html +199 -129
- package/coverage/lcov-report/utils/index.ts.html +71 -69
- package/coverage/lcov-report/utils/path.ts.html +71 -69
- package/esm/adaptors/axios.js.map +1 -1
- package/esm/adaptors/umi-request.js.map +1 -1
- package/esm/controllers/aggregate.d.ts +1 -1
- package/esm/controllers/aggregate.js.map +1 -1
- package/esm/controllers/base.d.ts +1 -1
- package/esm/controllers/base.js.map +1 -1
- package/esm/controllers/category.d.ts +6 -6
- package/esm/controllers/category.js +2 -2
- package/esm/controllers/category.js.map +1 -1
- package/esm/controllers/comment.d.ts +2 -2
- package/esm/controllers/comment.js.map +1 -1
- package/esm/controllers/link.d.ts +2 -2
- package/esm/controllers/link.js +1 -1
- package/esm/controllers/link.js.map +1 -1
- package/esm/controllers/note.d.ts +1 -1
- package/esm/controllers/note.js.map +1 -1
- package/esm/controllers/page.d.ts +1 -1
- package/esm/controllers/page.js.map +1 -1
- package/esm/controllers/post.d.ts +1 -1
- package/esm/controllers/post.js.map +1 -1
- package/esm/controllers/project.d.ts +2 -2
- package/esm/controllers/project.js +1 -1
- package/esm/controllers/project.js.map +1 -1
- package/esm/controllers/recently.d.ts +1 -1
- package/esm/controllers/recently.js.map +1 -1
- package/esm/controllers/say.d.ts +2 -2
- package/esm/controllers/say.js +1 -1
- package/esm/controllers/say.js.map +1 -1
- package/esm/controllers/search.d.ts +50 -50
- package/esm/controllers/search.js.map +1 -1
- package/esm/controllers/severless.d.ts +1 -1
- package/esm/controllers/severless.js.map +1 -1
- package/esm/controllers/snippet.d.ts +1 -10
- package/esm/controllers/snippet.js +3 -3
- package/esm/controllers/snippet.js.map +1 -1
- package/esm/controllers/user.d.ts +1 -1
- package/esm/controllers/user.js.map +1 -1
- package/esm/core/client.js +2 -2
- package/esm/core/client.js.map +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js.map +1 -1
- package/esm/models/aggregate.d.ts +1 -1
- package/esm/models/snippet.d.ts +1 -0
- package/esm/models/snippet.js +1 -1
- package/esm/models/snippet.js.map +1 -1
- package/esm/vitest.config.d.ts +2 -0
- package/esm/vitest.config.js +11 -0
- package/esm/vitest.config.js.map +1 -0
- package/index.ts +2 -3
- package/interfaces/adapter.ts +1 -0
- package/interfaces/request.ts +1 -0
- package/lib/adaptors/axios.js.map +1 -1
- package/lib/adaptors/umi-request.js.map +1 -1
- package/lib/controllers/aggregate.d.ts +1 -1
- package/lib/controllers/aggregate.js.map +1 -1
- package/lib/controllers/base.d.ts +1 -1
- package/lib/controllers/base.js.map +1 -1
- package/lib/controllers/category.d.ts +6 -6
- package/lib/controllers/category.js +2 -2
- package/lib/controllers/category.js.map +1 -1
- package/lib/controllers/comment.d.ts +2 -2
- package/lib/controllers/comment.js.map +1 -1
- package/lib/controllers/link.d.ts +2 -2
- package/lib/controllers/link.js +1 -1
- package/lib/controllers/link.js.map +1 -1
- package/lib/controllers/note.d.ts +1 -1
- package/lib/controllers/note.js.map +1 -1
- package/lib/controllers/page.d.ts +1 -1
- package/lib/controllers/page.js.map +1 -1
- package/lib/controllers/post.d.ts +1 -1
- package/lib/controllers/post.js.map +1 -1
- package/lib/controllers/project.d.ts +2 -2
- package/lib/controllers/project.js +1 -1
- package/lib/controllers/project.js.map +1 -1
- package/lib/controllers/recently.d.ts +1 -1
- package/lib/controllers/recently.js.map +1 -1
- package/lib/controllers/say.d.ts +2 -2
- package/lib/controllers/say.js +1 -1
- package/lib/controllers/say.js.map +1 -1
- package/lib/controllers/search.d.ts +50 -50
- package/lib/controllers/search.js.map +1 -1
- package/lib/controllers/severless.d.ts +1 -1
- package/lib/controllers/severless.js.map +1 -1
- package/lib/controllers/snippet.d.ts +1 -10
- package/lib/controllers/snippet.js +3 -3
- package/lib/controllers/snippet.js.map +1 -1
- package/lib/controllers/user.d.ts +1 -1
- package/lib/controllers/user.js.map +1 -1
- package/lib/core/client.js +2 -2
- package/lib/core/client.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js.map +1 -1
- package/lib/models/aggregate.d.ts +1 -1
- package/lib/models/snippet.d.ts +1 -0
- package/lib/models/snippet.js +1 -1
- package/lib/models/snippet.js.map +1 -1
- package/lib/vitest.config.d.ts +2 -0
- package/lib/vitest.config.js +16 -0
- package/lib/vitest.config.js.map +1 -0
- package/models/aggregate.ts +1 -1
- package/models/snippet.ts +2 -1
- package/package.json +4 -6
- package/readme.md +3 -4
- package/test.d.ts +3 -0
- package/tsconfig.build.json +2 -4
- package/tsconfig.cjs.json +1 -1
- package/tsconfig.json +4 -15
- package/tsconfig.types.json +2 -5
- package/types/controllers/aggregate.d.ts +1 -1
- package/types/controllers/base.d.ts +1 -1
- package/types/controllers/category.d.ts +6 -6
- package/types/controllers/comment.d.ts +2 -2
- package/types/controllers/link.d.ts +2 -2
- package/types/controllers/note.d.ts +1 -1
- package/types/controllers/page.d.ts +1 -1
- package/types/controllers/post.d.ts +1 -1
- package/types/controllers/project.d.ts +2 -2
- package/types/controllers/recently.d.ts +1 -1
- package/types/controllers/say.d.ts +2 -2
- package/types/controllers/search.d.ts +50 -50
- package/types/controllers/severless.d.ts +1 -1
- package/types/controllers/snippet.d.ts +1 -10
- package/types/controllers/user.d.ts +1 -1
- package/types/index.d.ts +1 -1
- package/types/models/aggregate.d.ts +1 -1
- package/types/models/snippet.d.ts +1 -0
- package/types/vitest.config.d.ts +2 -0
- package/vitest.config.ts +11 -0
- package/jest.config.js +0 -12
|
@@ -1,196 +1,191 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
var addSorting = (function() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// returns the summary table element
|
|
11
|
-
function getTable() {
|
|
12
|
-
return document.querySelector('.coverage-summary');
|
|
13
|
-
}
|
|
14
|
-
// returns the thead element of the summary table
|
|
15
|
-
function getTableHeader() {
|
|
16
|
-
return getTable().querySelector('thead tr');
|
|
17
|
-
}
|
|
18
|
-
// returns the tbody element of the summary table
|
|
19
|
-
function getTableBody() {
|
|
20
|
-
return getTable().querySelector('tbody');
|
|
21
|
-
}
|
|
22
|
-
// returns the th element for nth column
|
|
23
|
-
function getNthColumn(n) {
|
|
24
|
-
return getTableHeader().querySelectorAll('th')[n];
|
|
2
|
+
var addSorting = (function () {
|
|
3
|
+
'use strict'
|
|
4
|
+
var cols,
|
|
5
|
+
currentSort = {
|
|
6
|
+
index: 0,
|
|
7
|
+
desc: false,
|
|
25
8
|
}
|
|
26
9
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
10
|
+
// returns the summary table element
|
|
11
|
+
function getTable() {
|
|
12
|
+
return document.querySelector('.coverage-summary')
|
|
13
|
+
}
|
|
14
|
+
// returns the thead element of the summary table
|
|
15
|
+
function getTableHeader() {
|
|
16
|
+
return getTable().querySelector('thead tr')
|
|
17
|
+
}
|
|
18
|
+
// returns the tbody element of the summary table
|
|
19
|
+
function getTableBody() {
|
|
20
|
+
return getTable().querySelector('tbody')
|
|
21
|
+
}
|
|
22
|
+
// returns the th element for nth column
|
|
23
|
+
function getNthColumn(n) {
|
|
24
|
+
return getTableHeader().querySelectorAll('th')[n]
|
|
25
|
+
}
|
|
43
26
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
27
|
+
function onFilterInput() {
|
|
28
|
+
const searchValue = document.getElementById('fileSearch').value
|
|
29
|
+
const rows = document.getElementsByTagName('tbody')[0].children
|
|
30
|
+
for (let i = 0; i < rows.length; i++) {
|
|
31
|
+
const row = rows[i]
|
|
32
|
+
if (row.textContent.toLowerCase().includes(searchValue.toLowerCase())) {
|
|
33
|
+
row.style.display = ''
|
|
34
|
+
} else {
|
|
35
|
+
row.style.display = 'none'
|
|
36
|
+
}
|
|
50
37
|
}
|
|
38
|
+
}
|
|
51
39
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
40
|
+
// loads the search box
|
|
41
|
+
function addSearchBox() {
|
|
42
|
+
var template = document.getElementById('filterTemplate')
|
|
43
|
+
var templateClone = template.content.cloneNode(true)
|
|
44
|
+
templateClone.getElementById('fileSearch').oninput = onFilterInput
|
|
45
|
+
template.parentElement.appendChild(templateClone)
|
|
46
|
+
}
|
|
59
47
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
48
|
+
// loads all columns
|
|
49
|
+
function loadColumns() {
|
|
50
|
+
var colNodes = getTableHeader().querySelectorAll('th'),
|
|
51
|
+
colNode,
|
|
52
|
+
cols = [],
|
|
53
|
+
col,
|
|
54
|
+
i
|
|
55
|
+
|
|
56
|
+
for (i = 0; i < colNodes.length; i += 1) {
|
|
57
|
+
colNode = colNodes[i]
|
|
58
|
+
col = {
|
|
59
|
+
key: colNode.getAttribute('data-col'),
|
|
60
|
+
sortable: !colNode.getAttribute('data-nosort'),
|
|
61
|
+
type: colNode.getAttribute('data-type') || 'string',
|
|
62
|
+
}
|
|
63
|
+
cols.push(col)
|
|
64
|
+
if (col.sortable) {
|
|
65
|
+
col.defaultDescSort = col.type === 'number'
|
|
66
|
+
colNode.innerHTML = colNode.innerHTML + '<span class="sorter"></span>'
|
|
67
|
+
}
|
|
75
68
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
69
|
+
return cols
|
|
70
|
+
}
|
|
71
|
+
// attaches a data attribute to every tr element with an object
|
|
72
|
+
// of data values keyed by column name
|
|
73
|
+
function loadRowData(tableRow) {
|
|
74
|
+
var tableCols = tableRow.querySelectorAll('td'),
|
|
75
|
+
colNode,
|
|
76
|
+
col,
|
|
77
|
+
data = {},
|
|
78
|
+
i,
|
|
79
|
+
val
|
|
80
|
+
for (i = 0; i < tableCols.length; i += 1) {
|
|
81
|
+
colNode = tableCols[i]
|
|
82
|
+
col = cols[i]
|
|
83
|
+
val = colNode.getAttribute('data-value')
|
|
84
|
+
if (col.type === 'number') {
|
|
85
|
+
val = Number(val)
|
|
86
|
+
}
|
|
87
|
+
data[col.key] = val
|
|
95
88
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
89
|
+
return data
|
|
90
|
+
}
|
|
91
|
+
// loads all row data
|
|
92
|
+
function loadData() {
|
|
93
|
+
var rows = getTableBody().querySelectorAll('tr'),
|
|
94
|
+
i
|
|
100
95
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
96
|
+
for (i = 0; i < rows.length; i += 1) {
|
|
97
|
+
rows[i].data = loadRowData(rows[i])
|
|
104
98
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
99
|
+
}
|
|
100
|
+
// sorts the table using the data for the ith column
|
|
101
|
+
function sortByIndex(index, desc) {
|
|
102
|
+
var key = cols[index].key,
|
|
103
|
+
sorter = function (a, b) {
|
|
104
|
+
a = a.data[key]
|
|
105
|
+
b = b.data[key]
|
|
106
|
+
return a < b ? -1 : a > b ? 1 : 0
|
|
107
|
+
},
|
|
108
|
+
finalSorter = sorter,
|
|
109
|
+
tableBody = document.querySelector('.coverage-summary tbody'),
|
|
110
|
+
rowNodes = tableBody.querySelectorAll('tr'),
|
|
111
|
+
rows = [],
|
|
112
|
+
i
|
|
118
113
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
114
|
+
if (desc) {
|
|
115
|
+
finalSorter = function (a, b) {
|
|
116
|
+
return -1 * sorter(a, b)
|
|
117
|
+
}
|
|
118
|
+
}
|
|
124
119
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
120
|
+
for (i = 0; i < rowNodes.length; i += 1) {
|
|
121
|
+
rows.push(rowNodes[i])
|
|
122
|
+
tableBody.removeChild(rowNodes[i])
|
|
123
|
+
}
|
|
129
124
|
|
|
130
|
-
|
|
125
|
+
rows.sort(finalSorter)
|
|
131
126
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
127
|
+
for (i = 0; i < rows.length; i += 1) {
|
|
128
|
+
tableBody.appendChild(rows[i])
|
|
135
129
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
130
|
+
}
|
|
131
|
+
// removes sort indicators for current column being sorted
|
|
132
|
+
function removeSortIndicators() {
|
|
133
|
+
var col = getNthColumn(currentSort.index),
|
|
134
|
+
cls = col.className
|
|
140
135
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
136
|
+
cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '')
|
|
137
|
+
col.className = cls
|
|
138
|
+
}
|
|
139
|
+
// adds sort indicators for current column being sorted
|
|
140
|
+
function addSortIndicators() {
|
|
141
|
+
getNthColumn(currentSort.index).className += currentSort.desc
|
|
142
|
+
? ' sorted-desc'
|
|
143
|
+
: ' sorted'
|
|
144
|
+
}
|
|
145
|
+
// adds event listeners for all sorter widgets
|
|
146
|
+
function enableUI() {
|
|
147
|
+
var i,
|
|
148
|
+
el,
|
|
149
|
+
ithSorter = function ithSorter(i) {
|
|
150
|
+
var col = cols[i]
|
|
156
151
|
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
return function () {
|
|
153
|
+
var desc = col.defaultDescSort
|
|
159
154
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
for (i = 0; i < cols.length; i += 1) {
|
|
171
|
-
if (cols[i].sortable) {
|
|
172
|
-
// add the click event handler on the th so users
|
|
173
|
-
// dont have to click on those tiny arrows
|
|
174
|
-
el = getNthColumn(i).querySelector('.sorter').parentElement;
|
|
175
|
-
if (el.addEventListener) {
|
|
176
|
-
el.addEventListener('click', ithSorter(i));
|
|
177
|
-
} else {
|
|
178
|
-
el.attachEvent('onclick', ithSorter(i));
|
|
179
|
-
}
|
|
180
|
-
}
|
|
155
|
+
if (currentSort.index === i) {
|
|
156
|
+
desc = !currentSort.desc
|
|
157
|
+
}
|
|
158
|
+
sortByIndex(i, desc)
|
|
159
|
+
removeSortIndicators()
|
|
160
|
+
currentSort.index = i
|
|
161
|
+
currentSort.desc = desc
|
|
162
|
+
addSortIndicators()
|
|
181
163
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
164
|
+
}
|
|
165
|
+
for (i = 0; i < cols.length; i += 1) {
|
|
166
|
+
if (cols[i].sortable) {
|
|
167
|
+
// add the click event handler on the th so users
|
|
168
|
+
// dont have to click on those tiny arrows
|
|
169
|
+
el = getNthColumn(i).querySelector('.sorter').parentElement
|
|
170
|
+
if (el.addEventListener) {
|
|
171
|
+
el.addEventListener('click', ithSorter(i))
|
|
172
|
+
} else {
|
|
173
|
+
el.attachEvent('onclick', ithSorter(i))
|
|
187
174
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
// adds sorting functionality to the UI
|
|
179
|
+
return function () {
|
|
180
|
+
if (!getTable()) {
|
|
181
|
+
return
|
|
182
|
+
}
|
|
183
|
+
cols = loadColumns()
|
|
184
|
+
loadData()
|
|
185
|
+
addSearchBox()
|
|
186
|
+
addSortIndicators()
|
|
187
|
+
enableUI()
|
|
188
|
+
}
|
|
189
|
+
})()
|
|
195
190
|
|
|
196
|
-
window.addEventListener('load', addSorting)
|
|
191
|
+
window.addEventListener('load', addSorting)
|
|
@@ -1,68 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
1
|
+
<!DOCTYPE html>
|
|
3
2
|
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
3
|
+
<head>
|
|
6
4
|
<title>Code coverage report for utils/auto-bind.ts</title>
|
|
7
5
|
<meta charset="utf-8" />
|
|
8
6
|
<link rel="stylesheet" href="../prettify.css" />
|
|
9
7
|
<link rel="stylesheet" href="../base.css" />
|
|
10
8
|
<link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
|
|
11
9
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type=
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
<style type="text/css">
|
|
11
|
+
.coverage-summary .sorter {
|
|
12
|
+
background-image: url(../sort-arrow-sprite.png);
|
|
13
|
+
}
|
|
16
14
|
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class=
|
|
21
|
-
|
|
22
|
-
<h1
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
15
|
+
</head>
|
|
16
|
+
|
|
17
|
+
<body>
|
|
18
|
+
<div class="wrapper">
|
|
19
|
+
<div class="pad1">
|
|
20
|
+
<h1>
|
|
21
|
+
<a href="../index.html">All files</a> /
|
|
22
|
+
<a href="index.html">utils</a> auto-bind.ts
|
|
23
|
+
</h1>
|
|
24
|
+
<div class="clearfix">
|
|
25
|
+
<div class="fl pad1y space-right2">
|
|
26
|
+
<span class="strong">86.36% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class="fraction">19/22</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div class="fl pad1y space-right2">
|
|
32
|
+
<span class="strong">69.23% </span>
|
|
33
|
+
<span class="quiet">Branches</span>
|
|
34
|
+
<span class="fraction">9/13</span>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<div class="fl pad1y space-right2">
|
|
38
|
+
<span class="strong">75% </span>
|
|
39
|
+
<span class="quiet">Functions</span>
|
|
40
|
+
<span class="fraction">3/4</span>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div class="fl pad1y space-right2">
|
|
44
|
+
<span class="strong">86.36% </span>
|
|
45
|
+
<span class="quiet">Lines</span>
|
|
46
|
+
<span class="fraction">19/22</span>
|
|
47
|
+
</div>
|
|
53
48
|
</div>
|
|
54
49
|
<p class="quiet">
|
|
55
|
-
|
|
50
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block,
|
|
51
|
+
<em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
52
|
</p>
|
|
57
53
|
<template id="filterTemplate">
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
<div class="quiet">
|
|
55
|
+
Filter:
|
|
56
|
+
<input oninput="onInput()" type="search" id="fileSearch" />
|
|
57
|
+
</div>
|
|
62
58
|
</template>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
</div>
|
|
60
|
+
<div class="status-line high"></div>
|
|
61
|
+
<pre><table class="coverage">
|
|
66
62
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
63
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
64
|
<a name='L3'></a><a href='#L3'>3</a>
|
|
@@ -209,21 +205,27 @@ export function autoBind(self, { include, exclude } = {}) {
|
|
|
209
205
|
}
|
|
210
206
|
</pre></td></tr></table></pre>
|
|
211
207
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
208
|
+
<div class="push"></div>
|
|
209
|
+
<!-- for sticky footer -->
|
|
210
|
+
</div>
|
|
211
|
+
<!-- /wrapper -->
|
|
212
|
+
<div class="footer quiet pad2 space-top1 center small">
|
|
213
|
+
Code coverage generated by
|
|
214
|
+
<a
|
|
215
|
+
href="https://istanbul.js.org/"
|
|
216
|
+
target="_blank"
|
|
217
|
+
rel="noopener noreferrer"
|
|
218
|
+
>istanbul</a
|
|
219
|
+
>
|
|
220
|
+
at Sat Mar 19 2022 15:30:53 GMT+0800 (China Standard Time)
|
|
221
|
+
</div>
|
|
222
|
+
<script src="../prettify.js"></script>
|
|
223
|
+
<script>
|
|
224
|
+
window.onload = function () {
|
|
225
|
+
prettyPrint()
|
|
226
|
+
}
|
|
227
|
+
</script>
|
|
228
|
+
<script src="../sorter.js"></script>
|
|
229
|
+
<script src="../block-navigation.js"></script>
|
|
230
|
+
</body>
|
|
228
231
|
</html>
|
|
229
|
-
|