@prose-reader/enhancer-search 1.21.0 → 1.27.0
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/.test/coverage/base.css +254 -124
- package/.test/coverage/block-navigation.js +58 -70
- package/.test/coverage/clover.xml +2 -2
- package/.test/coverage/index.html +79 -85
- package/.test/coverage/prettify.css +101 -1
- package/.test/coverage/prettify.js +891 -1
- package/.test/coverage/sorter.js +167 -174
- package/.test/coverage/tmp/coverage-6048-1675587508951-4.json +22238 -0
- package/.test/coverage/tmp/coverage-6048-1675587508952-2.json +22237 -0
- package/.test/coverage/tmp/coverage-6048-1675587508954-6.json +22231 -0
- package/.test/coverage/tmp/coverage-6048-1675587508954-7.json +22238 -0
- package/.test/coverage/tmp/coverage-6048-1675587508955-3.json +22230 -0
- package/.test/coverage/tmp/coverage-6048-1675587508955-5.json +22270 -0
- package/.test/coverage/tmp/coverage-6048-1675587508960-8.json +22233 -0
- package/.test/coverage/tmp/coverage-6048-1675587508963-9.json +22236 -0
- package/package.json +3 -3
package/.test/coverage/base.css
CHANGED
|
@@ -1,71 +1,121 @@
|
|
|
1
|
-
body,
|
|
2
|
-
|
|
1
|
+
body,
|
|
2
|
+
html {
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: 0;
|
|
3
5
|
height: 100%;
|
|
4
6
|
}
|
|
5
7
|
body {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
.small {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
font-family: Helvetica Neue, Helvetica, Arial;
|
|
9
|
+
font-size: 14px;
|
|
10
|
+
color: #333;
|
|
11
|
+
}
|
|
12
|
+
.small {
|
|
13
|
+
font-size: 12px;
|
|
14
|
+
}
|
|
15
|
+
*,
|
|
16
|
+
*:after,
|
|
17
|
+
*:before {
|
|
18
|
+
-webkit-box-sizing: border-box;
|
|
19
|
+
-moz-box-sizing: border-box;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
h1 {
|
|
23
|
+
font-size: 20px;
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
h2 {
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
}
|
|
18
29
|
pre {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
a {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
.space-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: 0;
|
|
33
|
+
-moz-tab-size: 2;
|
|
34
|
+
-o-tab-size: 2;
|
|
35
|
+
tab-size: 2;
|
|
36
|
+
}
|
|
37
|
+
a {
|
|
38
|
+
color: #0074d9;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
}
|
|
41
|
+
a:hover {
|
|
42
|
+
text-decoration: underline;
|
|
43
|
+
}
|
|
44
|
+
.strong {
|
|
45
|
+
font-weight: bold;
|
|
46
|
+
}
|
|
47
|
+
.space-top1 {
|
|
48
|
+
padding: 10px 0 0 0;
|
|
49
|
+
}
|
|
50
|
+
.pad2y {
|
|
51
|
+
padding: 20px 0;
|
|
52
|
+
}
|
|
53
|
+
.pad1y {
|
|
54
|
+
padding: 10px 0;
|
|
55
|
+
}
|
|
56
|
+
.pad2x {
|
|
57
|
+
padding: 0 20px;
|
|
58
|
+
}
|
|
59
|
+
.pad2 {
|
|
60
|
+
padding: 20px;
|
|
61
|
+
}
|
|
62
|
+
.pad1 {
|
|
63
|
+
padding: 10px;
|
|
64
|
+
}
|
|
65
|
+
.space-left2 {
|
|
66
|
+
padding-left: 55px;
|
|
67
|
+
}
|
|
68
|
+
.space-right2 {
|
|
69
|
+
padding-right: 20px;
|
|
70
|
+
}
|
|
71
|
+
.center {
|
|
72
|
+
text-align: center;
|
|
73
|
+
}
|
|
74
|
+
.clearfix {
|
|
75
|
+
display: block;
|
|
76
|
+
}
|
|
39
77
|
.clearfix:after {
|
|
40
|
-
content:
|
|
41
|
-
display:block;
|
|
42
|
-
height:0;
|
|
43
|
-
clear:both;
|
|
44
|
-
visibility:hidden;
|
|
78
|
+
content: "";
|
|
79
|
+
display: block;
|
|
80
|
+
height: 0;
|
|
81
|
+
clear: both;
|
|
82
|
+
visibility: hidden;
|
|
83
|
+
}
|
|
84
|
+
.fl {
|
|
85
|
+
float: left;
|
|
86
|
+
}
|
|
87
|
+
@media only screen and (max-width: 640px) {
|
|
88
|
+
.col3 {
|
|
89
|
+
width: 100%;
|
|
90
|
+
max-width: 100%;
|
|
91
|
+
}
|
|
92
|
+
.hide-mobile {
|
|
93
|
+
display: none !important;
|
|
45
94
|
}
|
|
46
|
-
.fl { float: left; }
|
|
47
|
-
@media only screen and (max-width:640px) {
|
|
48
|
-
.col3 { width:100%; max-width:100%; }
|
|
49
|
-
.hide-mobile { display:none!important; }
|
|
50
95
|
}
|
|
51
96
|
|
|
52
97
|
.quiet {
|
|
53
98
|
color: #7f7f7f;
|
|
54
|
-
color: rgba(0,0,0,0.5);
|
|
99
|
+
color: rgba(0, 0, 0, 0.5);
|
|
100
|
+
}
|
|
101
|
+
.quiet a {
|
|
102
|
+
opacity: 0.7;
|
|
55
103
|
}
|
|
56
|
-
.quiet a { opacity: 0.7; }
|
|
57
104
|
|
|
58
105
|
.fraction {
|
|
59
|
-
font-family: Consolas,
|
|
106
|
+
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
60
107
|
font-size: 10px;
|
|
61
108
|
color: #555;
|
|
62
|
-
background: #
|
|
109
|
+
background: #e8e8e8;
|
|
63
110
|
padding: 4px 5px;
|
|
64
111
|
border-radius: 3px;
|
|
65
112
|
vertical-align: middle;
|
|
66
113
|
}
|
|
67
114
|
|
|
68
|
-
div.path a:link,
|
|
115
|
+
div.path a:link,
|
|
116
|
+
div.path a:visited {
|
|
117
|
+
color: #333;
|
|
118
|
+
}
|
|
69
119
|
table.coverage {
|
|
70
120
|
border-collapse: collapse;
|
|
71
121
|
margin: 10px 0 0 0;
|
|
@@ -78,140 +128,219 @@ table.coverage td {
|
|
|
78
128
|
vertical-align: top;
|
|
79
129
|
}
|
|
80
130
|
table.coverage td.line-count {
|
|
81
|
-
|
|
82
|
-
|
|
131
|
+
text-align: right;
|
|
132
|
+
padding: 0 5px 0 20px;
|
|
83
133
|
}
|
|
84
134
|
table.coverage td.line-coverage {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
135
|
+
text-align: right;
|
|
136
|
+
padding-right: 10px;
|
|
137
|
+
min-width: 20px;
|
|
88
138
|
}
|
|
89
139
|
|
|
90
140
|
table.coverage td span.cline-any {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
141
|
+
display: inline-block;
|
|
142
|
+
padding: 0 5px;
|
|
143
|
+
width: 100%;
|
|
94
144
|
}
|
|
95
145
|
.missing-if-branch {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
146
|
+
display: inline-block;
|
|
147
|
+
margin-right: 5px;
|
|
148
|
+
border-radius: 3px;
|
|
149
|
+
position: relative;
|
|
150
|
+
padding: 0 4px;
|
|
151
|
+
background: #333;
|
|
152
|
+
color: yellow;
|
|
103
153
|
}
|
|
104
154
|
|
|
105
155
|
.skip-if-branch {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
156
|
+
display: none;
|
|
157
|
+
margin-right: 10px;
|
|
158
|
+
position: relative;
|
|
159
|
+
padding: 0 4px;
|
|
160
|
+
background: #ccc;
|
|
161
|
+
color: white;
|
|
112
162
|
}
|
|
113
|
-
.missing-if-branch .typ,
|
|
114
|
-
|
|
163
|
+
.missing-if-branch .typ,
|
|
164
|
+
.skip-if-branch .typ {
|
|
165
|
+
color: inherit !important;
|
|
115
166
|
}
|
|
116
167
|
.coverage-summary {
|
|
117
168
|
border-collapse: collapse;
|
|
118
169
|
width: 100%;
|
|
119
170
|
}
|
|
120
|
-
.coverage-summary tr {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
.
|
|
124
|
-
|
|
125
|
-
|
|
171
|
+
.coverage-summary tr {
|
|
172
|
+
border-bottom: 1px solid #bbb;
|
|
173
|
+
}
|
|
174
|
+
.keyline-all {
|
|
175
|
+
border: 1px solid #ddd;
|
|
176
|
+
}
|
|
177
|
+
.coverage-summary td,
|
|
178
|
+
.coverage-summary th {
|
|
179
|
+
padding: 10px;
|
|
180
|
+
}
|
|
181
|
+
.coverage-summary tbody {
|
|
182
|
+
border: 1px solid #bbb;
|
|
183
|
+
}
|
|
184
|
+
.coverage-summary td {
|
|
185
|
+
border-right: 1px solid #bbb;
|
|
186
|
+
}
|
|
187
|
+
.coverage-summary td:last-child {
|
|
188
|
+
border-right: none;
|
|
189
|
+
}
|
|
126
190
|
.coverage-summary th {
|
|
127
191
|
text-align: left;
|
|
128
192
|
font-weight: normal;
|
|
129
193
|
white-space: nowrap;
|
|
130
194
|
}
|
|
131
|
-
.coverage-summary th.file {
|
|
132
|
-
|
|
195
|
+
.coverage-summary th.file {
|
|
196
|
+
border-right: none !important;
|
|
197
|
+
}
|
|
198
|
+
.coverage-summary th.pct {
|
|
199
|
+
}
|
|
133
200
|
.coverage-summary th.pic,
|
|
134
201
|
.coverage-summary th.abs,
|
|
135
202
|
.coverage-summary td.pct,
|
|
136
|
-
.coverage-summary td.abs {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
.coverage-summary
|
|
203
|
+
.coverage-summary td.abs {
|
|
204
|
+
text-align: right;
|
|
205
|
+
}
|
|
206
|
+
.coverage-summary td.file {
|
|
207
|
+
white-space: nowrap;
|
|
208
|
+
}
|
|
209
|
+
.coverage-summary td.pic {
|
|
210
|
+
min-width: 120px !important;
|
|
211
|
+
}
|
|
212
|
+
.coverage-summary tfoot td {
|
|
213
|
+
}
|
|
140
214
|
|
|
141
215
|
.coverage-summary .sorter {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
216
|
+
height: 10px;
|
|
217
|
+
width: 7px;
|
|
218
|
+
display: inline-block;
|
|
219
|
+
margin-left: 0.5em;
|
|
220
|
+
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
|
|
147
221
|
}
|
|
148
222
|
.coverage-summary .sorted .sorter {
|
|
149
|
-
|
|
223
|
+
background-position: 0 -20px;
|
|
150
224
|
}
|
|
151
225
|
.coverage-summary .sorted-desc .sorter {
|
|
152
|
-
|
|
226
|
+
background-position: 0 -10px;
|
|
227
|
+
}
|
|
228
|
+
.status-line {
|
|
229
|
+
height: 10px;
|
|
153
230
|
}
|
|
154
|
-
.status-line { height: 10px; }
|
|
155
231
|
/* yellow */
|
|
156
|
-
.cbranch-no {
|
|
232
|
+
.cbranch-no {
|
|
233
|
+
background: yellow !important;
|
|
234
|
+
color: #111;
|
|
235
|
+
}
|
|
157
236
|
/* dark red */
|
|
158
|
-
.red.solid,
|
|
159
|
-
.low
|
|
237
|
+
.red.solid,
|
|
238
|
+
.status-line.low,
|
|
239
|
+
.low .cover-fill {
|
|
240
|
+
background: #c21f39;
|
|
241
|
+
}
|
|
242
|
+
.low .chart {
|
|
243
|
+
border: 1px solid #c21f39;
|
|
244
|
+
}
|
|
160
245
|
.highlighted,
|
|
161
|
-
.highlighted .cstat-no,
|
|
162
|
-
|
|
246
|
+
.highlighted .cstat-no,
|
|
247
|
+
.highlighted .fstat-no,
|
|
248
|
+
.highlighted .cbranch-no {
|
|
249
|
+
background: #c21f39 !important;
|
|
163
250
|
}
|
|
164
251
|
/* medium red */
|
|
165
|
-
.cstat-no,
|
|
252
|
+
.cstat-no,
|
|
253
|
+
.fstat-no,
|
|
254
|
+
.cbranch-no,
|
|
255
|
+
.cbranch-no {
|
|
256
|
+
background: #f6c6ce;
|
|
257
|
+
}
|
|
166
258
|
/* light red */
|
|
167
|
-
.low,
|
|
259
|
+
.low,
|
|
260
|
+
.cline-no {
|
|
261
|
+
background: #fce1e5;
|
|
262
|
+
}
|
|
168
263
|
/* light green */
|
|
169
|
-
.high,
|
|
264
|
+
.high,
|
|
265
|
+
.cline-yes {
|
|
266
|
+
background: rgb(230, 245, 208);
|
|
267
|
+
}
|
|
170
268
|
/* medium green */
|
|
171
|
-
.cstat-yes {
|
|
269
|
+
.cstat-yes {
|
|
270
|
+
background: rgb(161, 215, 106);
|
|
271
|
+
}
|
|
172
272
|
/* dark green */
|
|
173
|
-
.status-line.high,
|
|
174
|
-
.high .
|
|
273
|
+
.status-line.high,
|
|
274
|
+
.high .cover-fill {
|
|
275
|
+
background: rgb(77, 146, 33);
|
|
276
|
+
}
|
|
277
|
+
.high .chart {
|
|
278
|
+
border: 1px solid rgb(77, 146, 33);
|
|
279
|
+
}
|
|
175
280
|
/* dark yellow (gold) */
|
|
176
|
-
.status-line.medium,
|
|
177
|
-
.medium .
|
|
281
|
+
.status-line.medium,
|
|
282
|
+
.medium .cover-fill {
|
|
283
|
+
background: #f9cd0b;
|
|
284
|
+
}
|
|
285
|
+
.medium .chart {
|
|
286
|
+
border: 1px solid #f9cd0b;
|
|
287
|
+
}
|
|
178
288
|
/* light yellow */
|
|
179
|
-
.medium {
|
|
289
|
+
.medium {
|
|
290
|
+
background: #fff4c2;
|
|
291
|
+
}
|
|
180
292
|
|
|
181
|
-
.cstat-skip {
|
|
182
|
-
|
|
183
|
-
|
|
293
|
+
.cstat-skip {
|
|
294
|
+
background: #ddd;
|
|
295
|
+
color: #111;
|
|
296
|
+
}
|
|
297
|
+
.fstat-skip {
|
|
298
|
+
background: #ddd;
|
|
299
|
+
color: #111 !important;
|
|
300
|
+
}
|
|
301
|
+
.cbranch-skip {
|
|
302
|
+
background: #ddd !important;
|
|
303
|
+
color: #111;
|
|
304
|
+
}
|
|
184
305
|
|
|
185
|
-
span.cline-neutral {
|
|
306
|
+
span.cline-neutral {
|
|
307
|
+
background: #eaeaea;
|
|
308
|
+
}
|
|
186
309
|
|
|
187
310
|
.coverage-summary td.empty {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
311
|
+
opacity: 0.5;
|
|
312
|
+
padding-top: 4px;
|
|
313
|
+
padding-bottom: 4px;
|
|
314
|
+
line-height: 1;
|
|
315
|
+
color: #888;
|
|
193
316
|
}
|
|
194
317
|
|
|
195
|
-
.cover-fill,
|
|
196
|
-
|
|
318
|
+
.cover-fill,
|
|
319
|
+
.cover-empty {
|
|
320
|
+
display: inline-block;
|
|
197
321
|
height: 12px;
|
|
198
322
|
}
|
|
199
323
|
.chart {
|
|
200
324
|
line-height: 0;
|
|
201
325
|
}
|
|
202
326
|
.cover-empty {
|
|
203
|
-
|
|
327
|
+
background: white;
|
|
204
328
|
}
|
|
205
329
|
.cover-full {
|
|
206
|
-
|
|
330
|
+
border-right: none !important;
|
|
207
331
|
}
|
|
208
332
|
pre.prettyprint {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
333
|
+
border: none !important;
|
|
334
|
+
padding: 0 !important;
|
|
335
|
+
margin: 0 !important;
|
|
336
|
+
}
|
|
337
|
+
.com {
|
|
338
|
+
color: #999 !important;
|
|
339
|
+
}
|
|
340
|
+
.ignore-none {
|
|
341
|
+
color: #999;
|
|
342
|
+
font-weight: normal;
|
|
212
343
|
}
|
|
213
|
-
.com { color: #999 !important; }
|
|
214
|
-
.ignore-none { color: #999; font-weight: normal; }
|
|
215
344
|
|
|
216
345
|
.wrapper {
|
|
217
346
|
min-height: 100%;
|
|
@@ -219,6 +348,7 @@ pre.prettyprint {
|
|
|
219
348
|
height: 100%;
|
|
220
349
|
margin: 0 auto -48px;
|
|
221
350
|
}
|
|
222
|
-
.footer,
|
|
351
|
+
.footer,
|
|
352
|
+
.push {
|
|
223
353
|
height: 48px;
|
|
224
354
|
}
|
|
@@ -1,87 +1,75 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
var jumpToCode = (function init() {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
// Classes of code we would like to highlight in the file view
|
|
4
|
+
var missingCoverageClasses = [".cbranch-no", ".cstat-no", ".fstat-no"]
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// Elements to highlight in the file listing view
|
|
7
|
+
var fileListingElements = ["td.pct.low"]
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
// We don't want to select elements that are direct descendants of another match
|
|
10
|
+
var notSelector = ":not(" + missingCoverageClasses.join("):not(") + ") > " // becomes `:not(a):not(b) > `
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
fileListingElements.join(', ') +
|
|
15
|
-
', ' +
|
|
16
|
-
notSelector +
|
|
17
|
-
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
12
|
+
// Selecter that finds elements on the page to which we can jump
|
|
13
|
+
var selector = fileListingElements.join(", ") + ", " + notSelector + missingCoverageClasses.join(", " + notSelector) // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
// The NodeList of matching elements
|
|
16
|
+
var missingCoverageElements = document.querySelectorAll(selector)
|
|
21
17
|
|
|
22
|
-
|
|
18
|
+
var currentIndex
|
|
23
19
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
missingCoverageElements.item(index).classList.add('highlighted');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function makeCurrent(index) {
|
|
32
|
-
toggleClass(index);
|
|
33
|
-
currentIndex = index;
|
|
34
|
-
missingCoverageElements.item(index).scrollIntoView({
|
|
35
|
-
behavior: 'smooth',
|
|
36
|
-
block: 'center',
|
|
37
|
-
inline: 'center'
|
|
38
|
-
});
|
|
39
|
-
}
|
|
20
|
+
function toggleClass(index) {
|
|
21
|
+
missingCoverageElements.item(currentIndex).classList.remove("highlighted")
|
|
22
|
+
missingCoverageElements.item(index).classList.add("highlighted")
|
|
23
|
+
}
|
|
40
24
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
25
|
+
function makeCurrent(index) {
|
|
26
|
+
toggleClass(index)
|
|
27
|
+
currentIndex = index
|
|
28
|
+
missingCoverageElements.item(index).scrollIntoView({
|
|
29
|
+
behavior: "smooth",
|
|
30
|
+
block: "center",
|
|
31
|
+
inline: "center",
|
|
32
|
+
})
|
|
33
|
+
}
|
|
48
34
|
|
|
49
|
-
|
|
35
|
+
function goToPrevious() {
|
|
36
|
+
var nextIndex = 0
|
|
37
|
+
if (typeof currentIndex !== "number" || currentIndex === 0) {
|
|
38
|
+
nextIndex = missingCoverageElements.length - 1
|
|
39
|
+
} else if (missingCoverageElements.length > 1) {
|
|
40
|
+
nextIndex = currentIndex - 1
|
|
50
41
|
}
|
|
51
42
|
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
makeCurrent(nextIndex)
|
|
44
|
+
}
|
|
54
45
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
currentIndex < missingCoverageElements.length - 1
|
|
58
|
-
) {
|
|
59
|
-
nextIndex = currentIndex + 1;
|
|
60
|
-
}
|
|
46
|
+
function goToNext() {
|
|
47
|
+
var nextIndex = 0
|
|
61
48
|
|
|
62
|
-
|
|
49
|
+
if (typeof currentIndex === "number" && currentIndex < missingCoverageElements.length - 1) {
|
|
50
|
+
nextIndex = currentIndex + 1
|
|
63
51
|
}
|
|
64
52
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
document.getElementById('fileSearch') === document.activeElement &&
|
|
68
|
-
document.activeElement != null
|
|
69
|
-
) {
|
|
70
|
-
// if we're currently focused on the search input, we don't want to navigate
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
53
|
+
makeCurrent(nextIndex)
|
|
54
|
+
}
|
|
73
55
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
56
|
+
return function jump(event) {
|
|
57
|
+
if (document.getElementById("fileSearch") === document.activeElement && document.activeElement != null) {
|
|
58
|
+
// if we're currently focused on the search input, we don't want to navigate
|
|
59
|
+
return
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
switch (event.which) {
|
|
63
|
+
case 78: // n
|
|
64
|
+
case 74: // j
|
|
65
|
+
goToNext()
|
|
66
|
+
break
|
|
67
|
+
case 66: // b
|
|
68
|
+
case 75: // k
|
|
69
|
+
case 80: // p
|
|
70
|
+
goToPrevious()
|
|
71
|
+
break
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
})()
|
|
75
|
+
window.addEventListener("keydown", jumpToCode)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1675587508936" clover="3.2.0">
|
|
3
|
+
<project timestamp="1675587508936" name="All files">
|
|
4
4
|
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0" elements="0" coveredelements="0" complexity="0" loc="0" ncloc="0" packages="0" files="0" classes="0"/>
|
|
5
5
|
</project>
|
|
6
6
|
</coverage>
|