@prosopo/datasets-fs 3.0.8 → 3.0.34

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.
Files changed (112) hide show
  1. package/CHANGELOG.md +289 -0
  2. package/coverage/base.css +224 -0
  3. package/coverage/block-navigation.js +87 -0
  4. package/coverage/clover.xml +1397 -0
  5. package/coverage/coverage-final.json +18 -0
  6. package/coverage/favicon.png +0 -0
  7. package/coverage/index.html +161 -0
  8. package/coverage/prettify.css +1 -0
  9. package/coverage/prettify.js +2 -0
  10. package/coverage/sort-arrow-sprite.png +0 -0
  11. package/coverage/sorter.js +210 -0
  12. package/coverage/src/cli/cli.ts.html +334 -0
  13. package/coverage/src/cli/cliCommand.ts.html +289 -0
  14. package/coverage/src/cli/cliCommandComposite.ts.html +247 -0
  15. package/coverage/src/cli/index.html +146 -0
  16. package/coverage/src/cli.ts.html +235 -0
  17. package/coverage/src/commands/flatten.ts.html +547 -0
  18. package/coverage/src/commands/generate.ts.html +739 -0
  19. package/coverage/src/commands/generateV1.ts.html +904 -0
  20. package/coverage/src/commands/generateV2.ts.html +952 -0
  21. package/coverage/src/commands/get.ts.html +430 -0
  22. package/coverage/src/commands/index.html +221 -0
  23. package/coverage/src/commands/labels.ts.html +319 -0
  24. package/coverage/src/commands/relocate.ts.html +412 -0
  25. package/coverage/src/commands/resize.ts.html +598 -0
  26. package/coverage/src/dummy.ts.html +241 -0
  27. package/coverage/src/index.html +146 -0
  28. package/coverage/src/index.ts.html +127 -0
  29. package/coverage/src/utils/index.html +146 -0
  30. package/coverage/src/utils/input.ts.html +259 -0
  31. package/coverage/src/utils/inputOutput.ts.html +172 -0
  32. package/coverage/src/utils/output.ts.html +343 -0
  33. package/dist/cjs/cli/cli.cjs +2 -1
  34. package/dist/cli/cli.d.ts +9 -0
  35. package/dist/cli/cli.d.ts.map +1 -0
  36. package/dist/cli/cli.js.map +1 -0
  37. package/dist/cli/cliCommand.d.ts +17 -0
  38. package/dist/cli/cliCommand.d.ts.map +1 -0
  39. package/dist/cli/cliCommand.js +31 -0
  40. package/dist/cli/cliCommand.js.map +1 -0
  41. package/dist/cli/cliCommandComposite.d.ts +14 -0
  42. package/dist/cli/cliCommandComposite.d.ts.map +1 -0
  43. package/dist/cli/cliCommandComposite.js +32 -0
  44. package/dist/cli/cliCommandComposite.js.map +1 -0
  45. package/dist/cli.d.ts +2 -0
  46. package/dist/cli.d.ts.map +1 -0
  47. package/dist/cli.js +34 -0
  48. package/dist/cli.js.map +1 -0
  49. package/dist/commands/flatten.d.ts +59 -0
  50. package/dist/commands/flatten.d.ts.map +1 -0
  51. package/dist/commands/flatten.js +97 -0
  52. package/dist/commands/flatten.js.map +1 -0
  53. package/dist/commands/generate.d.ts +115 -0
  54. package/dist/commands/generate.d.ts.map +1 -0
  55. package/dist/commands/generate.js +150 -0
  56. package/dist/commands/generate.js.map +1 -0
  57. package/dist/commands/generateV1.d.ts +179 -0
  58. package/dist/commands/generateV1.d.ts.map +1 -0
  59. package/dist/commands/generateV1.js +169 -0
  60. package/dist/commands/generateV1.js.map +1 -0
  61. package/dist/commands/generateV2.d.ts +189 -0
  62. package/dist/commands/generateV2.d.ts.map +1 -0
  63. package/dist/commands/generateV2.js +200 -0
  64. package/dist/commands/generateV2.js.map +1 -0
  65. package/dist/commands/get.d.ts +35 -0
  66. package/dist/commands/get.d.ts.map +1 -0
  67. package/dist/commands/get.js +92 -0
  68. package/dist/commands/get.js.map +1 -0
  69. package/dist/commands/labels.d.ts +47 -0
  70. package/dist/commands/labels.d.ts.map +1 -0
  71. package/dist/commands/labels.js +48 -0
  72. package/dist/commands/labels.js.map +1 -0
  73. package/dist/commands/relocate.d.ts +71 -0
  74. package/dist/commands/relocate.d.ts.map +1 -0
  75. package/dist/commands/relocate.js +81 -0
  76. package/dist/commands/relocate.js.map +1 -0
  77. package/dist/commands/resize.d.ts +69 -0
  78. package/dist/commands/resize.d.ts.map +1 -0
  79. package/dist/commands/resize.js +112 -0
  80. package/dist/commands/resize.js.map +1 -0
  81. package/dist/dummy.d.ts +2 -0
  82. package/dist/dummy.d.ts.map +1 -0
  83. package/dist/dummy.js +28 -0
  84. package/dist/dummy.js.map +1 -0
  85. package/dist/index.d.ts +2 -0
  86. package/dist/index.d.ts.map +1 -0
  87. package/dist/index.js.map +1 -0
  88. package/dist/tests/lodash.unit.test.d.ts +2 -0
  89. package/dist/tests/lodash.unit.test.d.ts.map +1 -0
  90. package/dist/tests/lodash.unit.test.js +29 -0
  91. package/dist/tests/lodash.unit.test.js.map +1 -0
  92. package/dist/tests/mocked.unit.test.d.ts +2 -0
  93. package/dist/tests/mocked.unit.test.d.ts.map +1 -0
  94. package/dist/tests/mocked.unit.test.js +253 -0
  95. package/dist/tests/mocked.unit.test.js.map +1 -0
  96. package/dist/tests/utils.d.ts +35 -0
  97. package/dist/tests/utils.d.ts.map +1 -0
  98. package/dist/tests/utils.js +101 -0
  99. package/dist/tests/utils.js.map +1 -0
  100. package/dist/utils/input.d.ts +24 -0
  101. package/dist/utils/input.d.ts.map +1 -0
  102. package/dist/utils/input.js +35 -0
  103. package/dist/utils/input.js.map +1 -0
  104. package/dist/utils/inputOutput.d.ts +21 -0
  105. package/dist/utils/inputOutput.d.ts.map +1 -0
  106. package/dist/utils/inputOutput.js +10 -0
  107. package/dist/utils/inputOutput.js.map +1 -0
  108. package/dist/utils/output.d.ts +36 -0
  109. package/dist/utils/output.d.ts.map +1 -0
  110. package/dist/utils/output.js +62 -0
  111. package/dist/utils/output.js.map +1 -0
  112. package/package.json +16 -20
package/CHANGELOG.md CHANGED
@@ -1,5 +1,294 @@
1
1
  # @prosopo/datasets-fs
2
2
 
3
+ ## 3.0.34
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [8f1773a]
7
+ - @prosopo/types@3.5.11
8
+
9
+ ## 3.0.33
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies [cb8ab85]
13
+ - @prosopo/types@3.5.10
14
+
15
+ ## 3.0.32
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [43907e8]
19
+ - Updated dependencies [005ce66]
20
+ - Updated dependencies [7101036]
21
+ - @prosopo/types@3.5.9
22
+ - @prosopo/util@3.1.7
23
+
24
+ ## 3.0.31
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [e5c259d]
28
+ - @prosopo/types@3.5.8
29
+
30
+ ## 3.0.30
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [c9d8fdf]
34
+ - Updated dependencies [b8185a4]
35
+ - @prosopo/common@3.1.21
36
+ - @prosopo/config@3.1.21
37
+ - @prosopo/workspace@3.1.14
38
+ - @prosopo/types@3.5.7
39
+ - @prosopo/util@3.1.6
40
+ - @prosopo/util-crypto@13.5.23
41
+
42
+ ## 3.0.29
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies [5d11a81]
46
+ - @prosopo/types@3.5.6
47
+
48
+ ## 3.0.28
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [494c5a8]
52
+ - @prosopo/types@3.5.5
53
+
54
+ ## 3.0.27
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [08ff50f]
58
+ - @prosopo/types@3.5.4
59
+
60
+ ## 3.0.26
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies [1e3a838]
64
+ - @prosopo/config@3.1.20
65
+ - @prosopo/workspace@3.1.13
66
+ - @prosopo/common@3.1.20
67
+ - @prosopo/types@3.5.3
68
+ - @prosopo/util@3.1.5
69
+ - @prosopo/util-crypto@13.5.22
70
+
71
+ ## 3.0.25
72
+ ### Patch Changes
73
+
74
+ - 5659b24: Release 3.4.4
75
+ - Updated dependencies [f912439]
76
+ - Updated dependencies [5659b24]
77
+ - @prosopo/common@3.1.19
78
+ - @prosopo/util-crypto@13.5.21
79
+ - @prosopo/types@3.5.2
80
+ - @prosopo/workspace@3.1.12
81
+ - @prosopo/util@3.1.4
82
+ - @prosopo/config@3.1.19
83
+
84
+ ## 3.0.24
85
+ ### Patch Changes
86
+
87
+ - 50c4120: Release 3.4.3
88
+ - Updated dependencies [52cd544]
89
+ - Updated dependencies [b117ba3]
90
+ - Updated dependencies [50c4120]
91
+ - @prosopo/types@3.5.1
92
+ - @prosopo/util-crypto@13.5.20
93
+ - @prosopo/common@3.1.18
94
+ - @prosopo/workspace@3.1.11
95
+ - @prosopo/util@3.1.3
96
+ - @prosopo/config@3.1.18
97
+
98
+ ## 3.0.23
99
+ ### Patch Changes
100
+
101
+ - 618703f: Release 3.4.2
102
+ - Updated dependencies [618703f]
103
+ - Updated dependencies [e20ad6b]
104
+ - @prosopo/util-crypto@13.5.19
105
+ - @prosopo/common@3.1.17
106
+ - @prosopo/types@3.5.0
107
+ - @prosopo/workspace@3.1.10
108
+ - @prosopo/util@3.1.2
109
+ - @prosopo/config@3.1.17
110
+
111
+ ## 3.0.22
112
+ ### Patch Changes
113
+
114
+ - 11303d9: Release 3.4.0
115
+ - 18cb28b: Release 3.4.1
116
+ - Updated dependencies [11303d9]
117
+ - Updated dependencies [18cb28b]
118
+ - Updated dependencies [11303d9]
119
+ - @prosopo/util-crypto@13.5.18
120
+ - @prosopo/common@3.1.16
121
+ - @prosopo/types@3.4.1
122
+ - @prosopo/workspace@3.1.9
123
+ - @prosopo/util@3.1.1
124
+ - @prosopo/config@3.1.16
125
+
126
+ ## 3.0.21
127
+ ### Patch Changes
128
+
129
+ - f3f7aec: Release 3.4.0
130
+ - Updated dependencies [f3f7aec]
131
+ - Updated dependencies [6768f14]
132
+ - @prosopo/util-crypto@13.5.17
133
+ - @prosopo/common@3.1.15
134
+ - @prosopo/types@3.4.0
135
+ - @prosopo/workspace@3.1.8
136
+ - @prosopo/util@3.1.0
137
+ - @prosopo/config@3.1.15
138
+
139
+ ## 3.0.20
140
+ ### Patch Changes
141
+
142
+ - Release 3.3.1
143
+ - 0824221: Release 3.2.4
144
+ - Allow zero unlabelled images in the dataset
145
+ - Updated dependencies [97edf3f]
146
+ - Updated dependencies
147
+ - Updated dependencies [0824221]
148
+ - @prosopo/types@3.3.0
149
+ - @prosopo/util-crypto@13.5.16
150
+ - @prosopo/common@3.1.14
151
+ - @prosopo/workspace@3.1.7
152
+ - @prosopo/util@3.0.17
153
+ - @prosopo/config@3.1.14
154
+
155
+ ## 3.0.19
156
+ ### Patch Changes
157
+
158
+ - 008d112: Release 3.3.0
159
+ - Updated dependencies [509be28]
160
+ - Updated dependencies [008d112]
161
+ - @prosopo/types@3.2.1
162
+ - @prosopo/util-crypto@13.5.15
163
+ - @prosopo/common@3.1.13
164
+ - @prosopo/workspace@3.1.6
165
+ - @prosopo/util@3.0.16
166
+ - @prosopo/config@3.1.13
167
+
168
+ ## 3.0.18
169
+ ### Patch Changes
170
+
171
+ - 0824221: Release 3.2.4
172
+ - Updated dependencies [cf48565]
173
+ - Updated dependencies [0824221]
174
+ - @prosopo/types@3.2.0
175
+ - @prosopo/util-crypto@13.5.14
176
+ - @prosopo/common@3.1.12
177
+ - @prosopo/workspace@3.1.5
178
+ - @prosopo/util@3.0.15
179
+ - @prosopo/config@3.1.12
180
+
181
+ ## 3.0.17
182
+ ### Patch Changes
183
+
184
+ - 1a23649: Release 3.2.3
185
+ - Updated dependencies [0d1a33e]
186
+ - Updated dependencies [0d1a33e]
187
+ - Updated dependencies [1a23649]
188
+ - @prosopo/types@3.1.4
189
+ - @prosopo/util-crypto@13.5.13
190
+ - @prosopo/common@3.1.11
191
+ - @prosopo/workspace@3.1.4
192
+ - @prosopo/util@3.0.14
193
+ - @prosopo/config@3.1.11
194
+
195
+ ## 3.0.16
196
+ ### Patch Changes
197
+
198
+ - 657a827: Release 3.2.2
199
+ - Updated dependencies [657a827]
200
+ - @prosopo/util-crypto@13.5.12
201
+ - @prosopo/common@3.1.10
202
+ - @prosopo/types@3.1.3
203
+ - @prosopo/workspace@3.1.3
204
+ - @prosopo/util@3.0.13
205
+ - @prosopo/config@3.1.10
206
+
207
+ ## 3.0.15
208
+ ### Patch Changes
209
+
210
+ - 4440947: fix type-only tsc compilation
211
+ - 7bdaca6: Release 3.2.1
212
+ - Updated dependencies [4440947]
213
+ - Updated dependencies [7bdaca6]
214
+ - Updated dependencies [809b984]
215
+ - Updated dependencies [1249ce0]
216
+ - Updated dependencies [809b984]
217
+ - @prosopo/util-crypto@13.5.11
218
+ - @prosopo/common@3.1.9
219
+ - @prosopo/types@3.1.2
220
+ - @prosopo/workspace@3.1.2
221
+ - @prosopo/util@3.0.12
222
+ - @prosopo/config@3.1.9
223
+
224
+ ## 3.0.14
225
+ ### Patch Changes
226
+
227
+ - 6fe8570: Release 3.2.0
228
+ - Updated dependencies [1f980c4]
229
+ - Updated dependencies [6fe8570]
230
+ - @prosopo/types@3.1.1
231
+ - @prosopo/util-crypto@13.5.10
232
+ - @prosopo/common@3.1.8
233
+ - @prosopo/workspace@3.1.1
234
+ - @prosopo/util@3.0.11
235
+ - @prosopo/config@3.1.8
236
+
237
+ ## 3.0.13
238
+ ### Patch Changes
239
+
240
+ - f304be9: Release 3.1.13
241
+ - Updated dependencies [f304be9]
242
+ - Updated dependencies [8bdc7f0]
243
+ - @prosopo/util-crypto@13.5.9
244
+ - @prosopo/common@3.1.7
245
+ - @prosopo/types@3.1.0
246
+ - @prosopo/workspace@3.1.0
247
+ - @prosopo/util@3.0.10
248
+ - @prosopo/config@3.1.7
249
+
250
+ ## 3.0.12
251
+ ### Patch Changes
252
+
253
+ - Updated dependencies [9eed772]
254
+ - Updated dependencies [ebb0168]
255
+ - @prosopo/config@3.1.6
256
+ - @prosopo/util@3.0.9
257
+ - @prosopo/workspace@3.0.7
258
+ - @prosopo/common@3.1.6
259
+ - @prosopo/types@3.0.10
260
+ - @prosopo/util-crypto@13.5.8
261
+
262
+ ## 3.0.11
263
+ ### Patch Changes
264
+
265
+ - 6960643: lint detect missing and unneccessary imports
266
+ - Updated dependencies [6960643]
267
+ - @prosopo/util-crypto@13.5.7
268
+ - @prosopo/common@3.1.5
269
+ - @prosopo/types@3.0.9
270
+ - @prosopo/workspace@3.0.6
271
+ - @prosopo/util@3.0.8
272
+
273
+ ## 3.0.10
274
+ ### Patch Changes
275
+
276
+ - Updated dependencies [30e7d4d]
277
+ - @prosopo/config@3.1.5
278
+ - @prosopo/common@3.1.4
279
+ - @prosopo/types@3.0.8
280
+ - @prosopo/util@3.0.7
281
+
282
+ ## 3.0.9
283
+ ### Patch Changes
284
+
285
+ - Updated dependencies [44ffda2]
286
+ - Updated dependencies [a49b538]
287
+ - @prosopo/config@3.1.4
288
+ - @prosopo/common@3.1.3
289
+ - @prosopo/types@3.0.7
290
+ - @prosopo/util@3.0.6
291
+
3
292
  ## 3.0.8
4
293
  ### Patch Changes
5
294
 
@@ -0,0 +1,224 @@
1
+ body, html {
2
+ margin:0; padding: 0;
3
+ height: 100%;
4
+ }
5
+ body {
6
+ font-family: Helvetica Neue, Helvetica, Arial;
7
+ font-size: 14px;
8
+ color:#333;
9
+ }
10
+ .small { font-size: 12px; }
11
+ *, *:after, *:before {
12
+ -webkit-box-sizing:border-box;
13
+ -moz-box-sizing:border-box;
14
+ box-sizing:border-box;
15
+ }
16
+ h1 { font-size: 20px; margin: 0;}
17
+ h2 { font-size: 14px; }
18
+ pre {
19
+ font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
20
+ margin: 0;
21
+ padding: 0;
22
+ -moz-tab-size: 2;
23
+ -o-tab-size: 2;
24
+ tab-size: 2;
25
+ }
26
+ a { color:#0074D9; text-decoration:none; }
27
+ a:hover { text-decoration:underline; }
28
+ .strong { font-weight: bold; }
29
+ .space-top1 { padding: 10px 0 0 0; }
30
+ .pad2y { padding: 20px 0; }
31
+ .pad1y { padding: 10px 0; }
32
+ .pad2x { padding: 0 20px; }
33
+ .pad2 { padding: 20px; }
34
+ .pad1 { padding: 10px; }
35
+ .space-left2 { padding-left:55px; }
36
+ .space-right2 { padding-right:20px; }
37
+ .center { text-align:center; }
38
+ .clearfix { display:block; }
39
+ .clearfix:after {
40
+ content:'';
41
+ display:block;
42
+ height:0;
43
+ clear:both;
44
+ visibility:hidden;
45
+ }
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
+ }
51
+
52
+ .quiet {
53
+ color: #7f7f7f;
54
+ color: rgba(0,0,0,0.5);
55
+ }
56
+ .quiet a { opacity: 0.7; }
57
+
58
+ .fraction {
59
+ font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
60
+ font-size: 10px;
61
+ color: #555;
62
+ background: #E8E8E8;
63
+ padding: 4px 5px;
64
+ border-radius: 3px;
65
+ vertical-align: middle;
66
+ }
67
+
68
+ div.path a:link, div.path a:visited { color: #333; }
69
+ table.coverage {
70
+ border-collapse: collapse;
71
+ margin: 10px 0 0 0;
72
+ padding: 0;
73
+ }
74
+
75
+ table.coverage td {
76
+ margin: 0;
77
+ padding: 0;
78
+ vertical-align: top;
79
+ }
80
+ table.coverage td.line-count {
81
+ text-align: right;
82
+ padding: 0 5px 0 20px;
83
+ }
84
+ table.coverage td.line-coverage {
85
+ text-align: right;
86
+ padding-right: 10px;
87
+ min-width:20px;
88
+ }
89
+
90
+ table.coverage td span.cline-any {
91
+ display: inline-block;
92
+ padding: 0 5px;
93
+ width: 100%;
94
+ }
95
+ .missing-if-branch {
96
+ display: inline-block;
97
+ margin-right: 5px;
98
+ border-radius: 3px;
99
+ position: relative;
100
+ padding: 0 4px;
101
+ background: #333;
102
+ color: yellow;
103
+ }
104
+
105
+ .skip-if-branch {
106
+ display: none;
107
+ margin-right: 10px;
108
+ position: relative;
109
+ padding: 0 4px;
110
+ background: #ccc;
111
+ color: white;
112
+ }
113
+ .missing-if-branch .typ, .skip-if-branch .typ {
114
+ color: inherit !important;
115
+ }
116
+ .coverage-summary {
117
+ border-collapse: collapse;
118
+ width: 100%;
119
+ }
120
+ .coverage-summary tr { border-bottom: 1px solid #bbb; }
121
+ .keyline-all { border: 1px solid #ddd; }
122
+ .coverage-summary td, .coverage-summary th { padding: 10px; }
123
+ .coverage-summary tbody { border: 1px solid #bbb; }
124
+ .coverage-summary td { border-right: 1px solid #bbb; }
125
+ .coverage-summary td:last-child { border-right: none; }
126
+ .coverage-summary th {
127
+ text-align: left;
128
+ font-weight: normal;
129
+ white-space: nowrap;
130
+ }
131
+ .coverage-summary th.file { border-right: none !important; }
132
+ .coverage-summary th.pct { }
133
+ .coverage-summary th.pic,
134
+ .coverage-summary th.abs,
135
+ .coverage-summary td.pct,
136
+ .coverage-summary td.abs { text-align: right; }
137
+ .coverage-summary td.file { white-space: nowrap; }
138
+ .coverage-summary td.pic { min-width: 120px !important; }
139
+ .coverage-summary tfoot td { }
140
+
141
+ .coverage-summary .sorter {
142
+ height: 10px;
143
+ width: 7px;
144
+ display: inline-block;
145
+ margin-left: 0.5em;
146
+ background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
147
+ }
148
+ .coverage-summary .sorted .sorter {
149
+ background-position: 0 -20px;
150
+ }
151
+ .coverage-summary .sorted-desc .sorter {
152
+ background-position: 0 -10px;
153
+ }
154
+ .status-line { height: 10px; }
155
+ /* yellow */
156
+ .cbranch-no { background: yellow !important; color: #111; }
157
+ /* dark red */
158
+ .red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
159
+ .low .chart { border:1px solid #C21F39 }
160
+ .highlighted,
161
+ .highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
162
+ background: #C21F39 !important;
163
+ }
164
+ /* medium red */
165
+ .cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
166
+ /* light red */
167
+ .low, .cline-no { background:#FCE1E5 }
168
+ /* light green */
169
+ .high, .cline-yes { background:rgb(230,245,208) }
170
+ /* medium green */
171
+ .cstat-yes { background:rgb(161,215,106) }
172
+ /* dark green */
173
+ .status-line.high, .high .cover-fill { background:rgb(77,146,33) }
174
+ .high .chart { border:1px solid rgb(77,146,33) }
175
+ /* dark yellow (gold) */
176
+ .status-line.medium, .medium .cover-fill { background: #f9cd0b; }
177
+ .medium .chart { border:1px solid #f9cd0b; }
178
+ /* light yellow */
179
+ .medium { background: #fff4c2; }
180
+
181
+ .cstat-skip { background: #ddd; color: #111; }
182
+ .fstat-skip { background: #ddd; color: #111 !important; }
183
+ .cbranch-skip { background: #ddd !important; color: #111; }
184
+
185
+ span.cline-neutral { background: #eaeaea; }
186
+
187
+ .coverage-summary td.empty {
188
+ opacity: .5;
189
+ padding-top: 4px;
190
+ padding-bottom: 4px;
191
+ line-height: 1;
192
+ color: #888;
193
+ }
194
+
195
+ .cover-fill, .cover-empty {
196
+ display:inline-block;
197
+ height: 12px;
198
+ }
199
+ .chart {
200
+ line-height: 0;
201
+ }
202
+ .cover-empty {
203
+ background: white;
204
+ }
205
+ .cover-full {
206
+ border-right: none !important;
207
+ }
208
+ pre.prettyprint {
209
+ border: none !important;
210
+ padding: 0 !important;
211
+ margin: 0 !important;
212
+ }
213
+ .com { color: #999 !important; }
214
+ .ignore-none { color: #999; font-weight: normal; }
215
+
216
+ .wrapper {
217
+ min-height: 100%;
218
+ height: auto !important;
219
+ height: 100%;
220
+ margin: 0 auto -48px;
221
+ }
222
+ .footer, .push {
223
+ height: 48px;
224
+ }
@@ -0,0 +1,87 @@
1
+ /* eslint-disable */
2
+ var jumpToCode = (function init() {
3
+ // Classes of code we would like to highlight in the file view
4
+ var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
5
+
6
+ // Elements to highlight in the file listing view
7
+ var fileListingElements = ['td.pct.low'];
8
+
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
+
12
+ // Selector that finds elements on the page to which we can jump
13
+ var selector =
14
+ fileListingElements.join(', ') +
15
+ ', ' +
16
+ notSelector +
17
+ missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
18
+
19
+ // The NodeList of matching elements
20
+ var missingCoverageElements = document.querySelectorAll(selector);
21
+
22
+ var currentIndex;
23
+
24
+ function toggleClass(index) {
25
+ missingCoverageElements
26
+ .item(currentIndex)
27
+ .classList.remove('highlighted');
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
+ }
40
+
41
+ function goToPrevious() {
42
+ var nextIndex = 0;
43
+ if (typeof currentIndex !== 'number' || currentIndex === 0) {
44
+ nextIndex = missingCoverageElements.length - 1;
45
+ } else if (missingCoverageElements.length > 1) {
46
+ nextIndex = currentIndex - 1;
47
+ }
48
+
49
+ makeCurrent(nextIndex);
50
+ }
51
+
52
+ function goToNext() {
53
+ var nextIndex = 0;
54
+
55
+ if (
56
+ typeof currentIndex === 'number' &&
57
+ currentIndex < missingCoverageElements.length - 1
58
+ ) {
59
+ nextIndex = currentIndex + 1;
60
+ }
61
+
62
+ makeCurrent(nextIndex);
63
+ }
64
+
65
+ return function jump(event) {
66
+ if (
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
+ }
73
+
74
+ switch (event.which) {
75
+ case 78: // n
76
+ case 74: // j
77
+ goToNext();
78
+ break;
79
+ case 66: // b
80
+ case 75: // k
81
+ case 80: // p
82
+ goToPrevious();
83
+ break;
84
+ }
85
+ };
86
+ })();
87
+ window.addEventListener('keydown', jumpToCode);