@appdirect/sfb-toolkit 3.0.6 → 4.0.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.
Files changed (61) hide show
  1. package/.babelrc +8 -13
  2. package/Dockerfile +2 -2
  3. package/bin/index.js +0 -14
  4. package/coverage/clover.xml +2 -2
  5. package/coverage/coverage-final.json +8 -8
  6. package/coverage/lcov-report/block-navigation.js +8 -0
  7. package/coverage/lcov-report/constants/customUserAttributesMock.js.html +8 -3
  8. package/coverage/lcov-report/constants/index.html +8 -3
  9. package/coverage/lcov-report/constants/pageUrls.js.html +8 -3
  10. package/coverage/lcov-report/constants/userMock.js.html +8 -3
  11. package/coverage/lcov-report/controllers/controllers-utils/assetsUtils.js.html +8 -3
  12. package/coverage/lcov-report/controllers/controllers-utils/index.html +8 -3
  13. package/coverage/lcov-report/controllers/data-filters/bootstrap-data-filter.js.html +9 -4
  14. package/coverage/lcov-report/controllers/data-filters/call-to-actions-filter.js.html +8 -3
  15. package/coverage/lcov-report/controllers/data-filters/index.html +12 -7
  16. package/coverage/lcov-report/controllers/index.html +8 -3
  17. package/coverage/lcov-report/controllers/index.js.html +11 -6
  18. package/coverage/lcov-report/favicon.png +0 -0
  19. package/coverage/lcov-report/front-end-utils/src/components/base/ResultItem.js.html +12 -7
  20. package/coverage/lcov-report/front-end-utils/src/components/base/SearchBar.js.html +9 -4
  21. package/coverage/lcov-report/front-end-utils/src/components/base/index.html +13 -8
  22. package/coverage/lcov-report/front-end-utils/src/components/base/item.js.html +9 -4
  23. package/coverage/lcov-report/front-end-utils/src/components/container.js.html +11 -6
  24. package/coverage/lcov-report/front-end-utils/src/components/data-view.js.html +10 -5
  25. package/coverage/lcov-report/front-end-utils/src/components/header-view.js.html +10 -5
  26. package/coverage/lcov-report/front-end-utils/src/components/index.html +17 -12
  27. package/coverage/lcov-report/front-end-utils/src/components/search.js.html +11 -6
  28. package/coverage/lcov-report/front-end-utils/src/constants/index.html +8 -3
  29. package/coverage/lcov-report/front-end-utils/src/constants/pageUrl.js.html +8 -3
  30. package/coverage/lcov-report/front-end-utils/src/constants/roleType.js.html +8 -3
  31. package/coverage/lcov-report/front-end-utils/src/constants/searchType.js.html +8 -3
  32. package/coverage/lcov-report/front-end-utils/src/utils/debounce.js.html +8 -3
  33. package/coverage/lcov-report/front-end-utils/src/utils/index.html +8 -3
  34. package/coverage/lcov-report/index.html +18 -13
  35. package/coverage/lcov-report/middlewares/config.js.html +8 -3
  36. package/coverage/lcov-report/middlewares/index.html +8 -3
  37. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  38. package/coverage/lcov-report/sorter.js +26 -0
  39. package/index.js +14 -8
  40. package/npm-shrinkwrap.json +34935 -7401
  41. package/package.json +99 -80
  42. package/readme.md +13 -6
  43. package/src/controllers/index.js +1 -1
  44. package/src/front-end-utils/dist/toolbar.bundle.js +2 -49
  45. package/src/front-end-utils/dist/toolbar.bundle.js.LICENSE.txt +52 -0
  46. package/src/front-end-utils/src/components/base/ResultItem.js +2 -2
  47. package/src/front-end-utils/src/components/base/SearchBar.js +1 -1
  48. package/src/front-end-utils/src/components/container.js +1 -1
  49. package/src/front-end-utils/src/components/data-view.js +1 -1
  50. package/src/front-end-utils/src/components/header-view.js +1 -1
  51. package/src/front-end-utils/src/components/search.js +1 -1
  52. package/src/tools/compiler-components-prod.js +1 -1
  53. package/src/tools/gulp-tasks.js +2 -2
  54. package/src/tools/toolkit-common-fun.js +1 -1
  55. package/src/tools/toolkit-common-vars.js +1 -1
  56. package/src/tools/toolkit-package.js +1 -2
  57. package/src/tools/toolkit-storybook.js +5 -5
  58. package/{webpack-components.config.js → webpack-components.config.cjs} +1 -3
  59. package/{webpack-components.config.prod.js → webpack-components.config.prod.cjs} +1 -3
  60. package/{webpack.config.js → webpack.config.cjs} +8 -5
  61. package/src/tools/toolkit-tests.js +0 -99
@@ -37,7 +37,7 @@
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
- <span class="strong">71.43% </span>
40
+ <span class="strong">71.42% </span>
41
41
  <span class="quiet">Functions</span>
42
42
  <span class='fraction'>5/7</span>
43
43
  </div>
@@ -54,6 +54,12 @@
54
54
  <p class="quiet">
55
55
  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.
56
56
  </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
57
63
  </div>
58
64
  <div class='status-line low'></div>
59
65
  <pre><table class="coverage">
@@ -262,7 +268,7 @@
262
268
  <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React from "react"
263
269
  import PropTypes from "prop-types"
264
270
  import styled from "styled-components"
265
- import FontAwesomeIcon from "@fortawesome/react-fontawesome"
271
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
266
272
  import ReactJson from "react-json-view"
267
273
  import { faDatabase } from "@fortawesome/free-solid-svg-icons"
268
274
  &nbsp;
@@ -366,10 +372,9 @@ export default class DataView extends React.Component {
366
372
  </div><!-- /wrapper -->
367
373
  <div class='footer quiet pad2 space-top1 center small'>
368
374
  Code coverage generated by
369
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
370
- at Fri Aug 26 2022 19:37:35 GMT+0000 (Coordinated Universal Time)
375
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
376
+ at 2022-10-14T16:57:32.013Z
371
377
  </div>
372
- </div>
373
378
  <script src="../../../prettify.js"></script>
374
379
  <script>
375
380
  window.onload = function () {
@@ -44,7 +44,7 @@
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">86.96% </span>
47
+ <span class="strong">86.95% </span>
48
48
  <span class="quiet">Lines</span>
49
49
  <span class='fraction'>40/46</span>
50
50
  </div>
@@ -54,6 +54,12 @@
54
54
  <p class="quiet">
55
55
  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.
56
56
  </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
57
63
  </div>
58
64
  <div class='status-line high'></div>
59
65
  <pre><table class="coverage">
@@ -543,7 +549,7 @@
543
549
  import Cookies from "js-cookie"
544
550
  import PropTypes from "prop-types"
545
551
  import styled from "styled-components"
546
- import FontAwesomeIcon from "@fortawesome/react-fontawesome"
552
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
547
553
  import { NO_ROLE, MARKETPLACE_MANAGER, USER } from '../constants/roleType'
548
554
  import { HOME_PAGE_URL, MOCK_ADMIN_PAGE_URL } from '../constants/pageUrl'
549
555
  &nbsp;
@@ -786,10 +792,9 @@ export default class HeaderView extends React.Component {
786
792
  </div><!-- /wrapper -->
787
793
  <div class='footer quiet pad2 space-top1 center small'>
788
794
  Code coverage generated by
789
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
790
- at Fri Aug 26 2022 19:37:35 GMT+0000 (Coordinated Universal Time)
795
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
796
+ at 2022-10-14T16:57:32.013Z
791
797
  </div>
792
- </div>
793
798
  <script src="../../../prettify.js"></script>
794
799
  <script>
795
800
  window.onload = function () {
@@ -30,14 +30,14 @@
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">86.54% </span>
33
+ <span class="strong">86.53% </span>
34
34
  <span class="quiet">Branches</span>
35
35
  <span class='fraction'>90/104</span>
36
36
  </div>
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
- <span class="strong">83.93% </span>
40
+ <span class="strong">83.92% </span>
41
41
  <span class="quiet">Functions</span>
42
42
  <span class='fraction'>47/56</span>
43
43
  </div>
@@ -54,6 +54,12 @@
54
54
  <p class="quiet">
55
55
  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.
56
56
  </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
57
63
  </div>
58
64
  <div class='status-line high'></div>
59
65
  <div class="pad1">
@@ -74,16 +80,16 @@
74
80
  </thead>
75
81
  <tbody><tr>
76
82
  <td class="file high" data-value="container.js"><a href="container.js.html">container.js</a></td>
77
- <td data-value="92.31" class="pic high">
83
+ <td data-value="92.3" class="pic high">
78
84
  <div class="chart"><div class="cover-fill" style="width: 92%"></div><div class="cover-empty" style="width: 8%"></div></div>
79
85
  </td>
80
- <td data-value="92.31" class="pct high">92.31%</td>
86
+ <td data-value="92.3" class="pct high">92.3%</td>
81
87
  <td data-value="26" class="abs high">24/26</td>
82
88
  <td data-value="75" class="pct medium">75%</td>
83
89
  <td data-value="16" class="abs medium">12/16</td>
84
90
  <td data-value="75" class="pct medium">75%</td>
85
91
  <td data-value="8" class="abs medium">6/8</td>
86
- <td data-value="91.67" class="pct high">91.67%</td>
92
+ <td data-value="91.66" class="pct high">91.66%</td>
87
93
  <td data-value="24" class="abs high">22/24</td>
88
94
  </tr>
89
95
 
@@ -96,7 +102,7 @@
96
102
  <td data-value="31" class="abs low">14/31</td>
97
103
  <td data-value="100" class="pct high">100%</td>
98
104
  <td data-value="10" class="abs high">10/10</td>
99
- <td data-value="71.43" class="pct medium">71.43%</td>
105
+ <td data-value="71.42" class="pct medium">71.42%</td>
100
106
  <td data-value="7" class="abs medium">5/7</td>
101
107
  <td data-value="45.16" class="pct low">45.16%</td>
102
108
  <td data-value="31" class="abs low">14/31</td>
@@ -113,7 +119,7 @@
113
119
  <td data-value="21" class="abs high">21/21</td>
114
120
  <td data-value="70" class="pct medium">70%</td>
115
121
  <td data-value="10" class="abs medium">7/10</td>
116
- <td data-value="86.96" class="pct high">86.96%</td>
122
+ <td data-value="86.95" class="pct high">86.95%</td>
117
123
  <td data-value="46" class="abs high">40/46</td>
118
124
  </tr>
119
125
 
@@ -124,9 +130,9 @@
124
130
  </td>
125
131
  <td data-value="96.1" class="pct high">96.1%</td>
126
132
  <td data-value="77" class="abs high">74/77</td>
127
- <td data-value="82.46" class="pct high">82.46%</td>
133
+ <td data-value="82.45" class="pct high">82.45%</td>
128
134
  <td data-value="57" class="abs high">47/57</td>
129
- <td data-value="93.55" class="pct high">93.55%</td>
135
+ <td data-value="93.54" class="pct high">93.54%</td>
130
136
  <td data-value="31" class="abs high">29/31</td>
131
137
  <td data-value="96.05" class="pct high">96.05%</td>
132
138
  <td data-value="76" class="abs high">73/76</td>
@@ -139,10 +145,9 @@
139
145
  </div><!-- /wrapper -->
140
146
  <div class='footer quiet pad2 space-top1 center small'>
141
147
  Code coverage generated by
142
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
143
- at Fri Aug 26 2022 19:37:35 GMT+0000 (Coordinated Universal Time)
148
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
149
+ at 2022-10-14T16:57:32.013Z
144
150
  </div>
145
- </div>
146
151
  <script src="../../../prettify.js"></script>
147
152
  <script>
148
153
  window.onload = function () {
@@ -30,14 +30,14 @@
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">82.46% </span>
33
+ <span class="strong">82.45% </span>
34
34
  <span class="quiet">Branches</span>
35
35
  <span class='fraction'>47/57</span>
36
36
  </div>
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
- <span class="strong">93.55% </span>
40
+ <span class="strong">93.54% </span>
41
41
  <span class="quiet">Functions</span>
42
42
  <span class='fraction'>29/31</span>
43
43
  </div>
@@ -54,6 +54,12 @@
54
54
  <p class="quiet">
55
55
  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.
56
56
  </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
57
63
  </div>
58
64
  <div class='status-line high'></div>
59
65
  <pre><table class="coverage">
@@ -658,7 +664,7 @@
658
664
  <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React from "react"
659
665
  import PropTypes from "prop-types"
660
666
  import styled from "styled-components"
661
- import FontAwesomeIcon from "@fortawesome/react-fontawesome"
667
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
662
668
  import { faSearch, faTimes } from "@fortawesome/free-solid-svg-icons"
663
669
  &nbsp;
664
670
  import debounce from "../utils/debounce"
@@ -960,10 +966,9 @@ export default class SearchTool extends React.Component {
960
966
  </div><!-- /wrapper -->
961
967
  <div class='footer quiet pad2 space-top1 center small'>
962
968
  Code coverage generated by
963
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
964
- at Fri Aug 26 2022 19:37:35 GMT+0000 (Coordinated Universal Time)
969
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
970
+ at 2022-10-14T16:57:32.013Z
965
971
  </div>
966
- </div>
967
972
  <script src="../../../prettify.js"></script>
968
973
  <script>
969
974
  window.onload = function () {
@@ -54,6 +54,12 @@
54
54
  <p class="quiet">
55
55
  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.
56
56
  </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
57
63
  </div>
58
64
  <div class='status-line high'></div>
59
65
  <div class="pad1">
@@ -124,10 +130,9 @@
124
130
  </div><!-- /wrapper -->
125
131
  <div class='footer quiet pad2 space-top1 center small'>
126
132
  Code coverage generated by
127
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
128
- at Fri Aug 26 2022 19:37:35 GMT+0000 (Coordinated Universal Time)
133
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
134
+ at 2022-10-14T16:57:32.013Z
129
135
  </div>
130
- </div>
131
136
  <script src="../../../prettify.js"></script>
132
137
  <script>
133
138
  window.onload = function () {
@@ -54,6 +54,12 @@
54
54
  <p class="quiet">
55
55
  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.
56
56
  </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
57
63
  </div>
58
64
  <div class='status-line high'></div>
59
65
  <pre><table class="coverage">
@@ -69,10 +75,9 @@ export const MOCK_ADMIN_PAGE_URL = `${BASE_URL}/admin`;</pre></td></tr></table><
69
75
  </div><!-- /wrapper -->
70
76
  <div class='footer quiet pad2 space-top1 center small'>
71
77
  Code coverage generated by
72
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
73
- at Fri Aug 26 2022 19:37:35 GMT+0000 (Coordinated Universal Time)
78
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
79
+ at 2022-10-14T16:57:32.013Z
74
80
  </div>
75
- </div>
76
81
  <script src="../../../prettify.js"></script>
77
82
  <script>
78
83
  window.onload = function () {
@@ -54,6 +54,12 @@
54
54
  <p class="quiet">
55
55
  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.
56
56
  </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
57
63
  </div>
58
64
  <div class='status-line high'></div>
59
65
  <pre><table class="coverage">
@@ -75,10 +81,9 @@ export const NO_ROLE = "NO_ROLE";
75
81
  </div><!-- /wrapper -->
76
82
  <div class='footer quiet pad2 space-top1 center small'>
77
83
  Code coverage generated by
78
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
79
- at Fri Aug 26 2022 19:37:35 GMT+0000 (Coordinated Universal Time)
84
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
85
+ at 2022-10-14T16:57:32.013Z
80
86
  </div>
81
- </div>
82
87
  <script src="../../../prettify.js"></script>
83
88
  <script>
84
89
  window.onload = function () {
@@ -54,6 +54,12 @@
54
54
  <p class="quiet">
55
55
  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.
56
56
  </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
57
63
  </div>
58
64
  <div class='status-line high'></div>
59
65
  <pre><table class="coverage">
@@ -147,10 +153,9 @@ export const SEARCH_TYPES = [
147
153
  </div><!-- /wrapper -->
148
154
  <div class='footer quiet pad2 space-top1 center small'>
149
155
  Code coverage generated by
150
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
151
- at Fri Aug 26 2022 19:37:35 GMT+0000 (Coordinated Universal Time)
156
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
157
+ at 2022-10-14T16:57:32.013Z
152
158
  </div>
153
- </div>
154
159
  <script src="../../../prettify.js"></script>
155
160
  <script>
156
161
  window.onload = function () {
@@ -54,6 +54,12 @@
54
54
  <p class="quiet">
55
55
  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.
56
56
  </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
57
63
  </div>
58
64
  <div class='status-line high'></div>
59
65
  <pre><table class="coverage">
@@ -99,10 +105,9 @@
99
105
  </div><!-- /wrapper -->
100
106
  <div class='footer quiet pad2 space-top1 center small'>
101
107
  Code coverage generated by
102
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
103
- at Fri Aug 26 2022 19:37:35 GMT+0000 (Coordinated Universal Time)
108
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
109
+ at 2022-10-14T16:57:32.013Z
104
110
  </div>
105
- </div>
106
111
  <script src="../../../prettify.js"></script>
107
112
  <script>
108
113
  window.onload = function () {
@@ -54,6 +54,12 @@
54
54
  <p class="quiet">
55
55
  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.
56
56
  </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
57
63
  </div>
58
64
  <div class='status-line high'></div>
59
65
  <div class="pad1">
@@ -94,10 +100,9 @@
94
100
  </div><!-- /wrapper -->
95
101
  <div class='footer quiet pad2 space-top1 center small'>
96
102
  Code coverage generated by
97
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
98
- at Fri Aug 26 2022 19:37:35 GMT+0000 (Coordinated Universal Time)
103
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
+ at 2022-10-14T16:57:32.013Z
99
105
  </div>
100
- </div>
101
106
  <script src="../../../prettify.js"></script>
102
107
  <script>
103
108
  window.onload = function () {
@@ -30,14 +30,14 @@
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">71.13% </span>
33
+ <span class="strong">71.12% </span>
34
34
  <span class="quiet">Branches</span>
35
35
  <span class='fraction'>170/239</span>
36
36
  </div>
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
- <span class="strong">79.39% </span>
40
+ <span class="strong">79.38% </span>
41
41
  <span class="quiet">Functions</span>
42
42
  <span class='fraction'>104/131</span>
43
43
  </div>
@@ -54,6 +54,12 @@
54
54
  <p class="quiet">
55
55
  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.
56
56
  </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
57
63
  </div>
58
64
  <div class='status-line high'></div>
59
65
  <div class="pad1">
@@ -119,16 +125,16 @@
119
125
 
120
126
  <tr>
121
127
  <td class="file high" data-value="controllers/data-filters"><a href="controllers/data-filters/index.html">controllers/data-filters</a></td>
122
- <td data-value="84.62" class="pic high">
128
+ <td data-value="84.61" class="pic high">
123
129
  <div class="chart"><div class="cover-fill" style="width: 84%"></div><div class="cover-empty" style="width: 16%"></div></div>
124
130
  </td>
125
- <td data-value="84.62" class="pct high">84.62%</td>
131
+ <td data-value="84.61" class="pct high">84.61%</td>
126
132
  <td data-value="39" class="abs high">33/39</td>
127
133
  <td data-value="60" class="pct medium">60%</td>
128
134
  <td data-value="15" class="abs medium">9/15</td>
129
- <td data-value="88.89" class="pct high">88.89%</td>
135
+ <td data-value="88.88" class="pct high">88.88%</td>
130
136
  <td data-value="9" class="abs high">8/9</td>
131
- <td data-value="84.62" class="pct high">84.62%</td>
137
+ <td data-value="84.61" class="pct high">84.61%</td>
132
138
  <td data-value="39" class="abs high">33/39</td>
133
139
  </tr>
134
140
 
@@ -139,9 +145,9 @@
139
145
  </td>
140
146
  <td data-value="84.53" class="pct high">84.53%</td>
141
147
  <td data-value="181" class="abs high">153/181</td>
142
- <td data-value="86.54" class="pct high">86.54%</td>
148
+ <td data-value="86.53" class="pct high">86.53%</td>
143
149
  <td data-value="104" class="abs high">90/104</td>
144
- <td data-value="83.93" class="pct high">83.93%</td>
150
+ <td data-value="83.92" class="pct high">83.92%</td>
145
151
  <td data-value="56" class="abs high">47/56</td>
146
152
  <td data-value="84.18" class="pct high">84.18%</td>
147
153
  <td data-value="177" class="abs high">149/177</td>
@@ -149,10 +155,10 @@
149
155
 
150
156
  <tr>
151
157
  <td class="file high" data-value="front-end-utils/src/components/base"><a href="front-end-utils/src/components/base/index.html">front-end-utils/src/components/base</a></td>
152
- <td data-value="84.13" class="pic high">
158
+ <td data-value="84.12" class="pic high">
153
159
  <div class="chart"><div class="cover-fill" style="width: 84%"></div><div class="cover-empty" style="width: 16%"></div></div>
154
160
  </td>
155
- <td data-value="84.13" class="pct high">84.13%</td>
161
+ <td data-value="84.12" class="pct high">84.12%</td>
156
162
  <td data-value="63" class="abs high">53/63</td>
157
163
  <td data-value="65.85" class="pct medium">65.85%</td>
158
164
  <td data-value="41" class="abs medium">27/41</td>
@@ -214,10 +220,9 @@
214
220
  </div><!-- /wrapper -->
215
221
  <div class='footer quiet pad2 space-top1 center small'>
216
222
  Code coverage generated by
217
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
218
- at Fri Aug 26 2022 19:37:35 GMT+0000 (Coordinated Universal Time)
223
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
224
+ at 2022-10-14T16:57:32.013Z
219
225
  </div>
220
- </div>
221
226
  <script src="prettify.js"></script>
222
227
  <script>
223
228
  window.onload = function () {
@@ -54,6 +54,12 @@
54
54
  <p class="quiet">
55
55
  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.
56
56
  </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
57
63
  </div>
58
64
  <div class='status-line high'></div>
59
65
  <pre><table class="coverage">
@@ -171,10 +177,9 @@ module.exports = (req, res, next) =&gt; {
171
177
  </div><!-- /wrapper -->
172
178
  <div class='footer quiet pad2 space-top1 center small'>
173
179
  Code coverage generated by
174
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
175
- at Fri Aug 26 2022 19:37:35 GMT+0000 (Coordinated Universal Time)
180
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
181
+ at 2022-10-14T16:57:32.013Z
176
182
  </div>
177
- </div>
178
183
  <script src="../prettify.js"></script>
179
184
  <script>
180
185
  window.onload = function () {
@@ -54,6 +54,12 @@
54
54
  <p class="quiet">
55
55
  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.
56
56
  </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
57
63
  </div>
58
64
  <div class='status-line high'></div>
59
65
  <div class="pad1">
@@ -94,10 +100,9 @@
94
100
  </div><!-- /wrapper -->
95
101
  <div class='footer quiet pad2 space-top1 center small'>
96
102
  Code coverage generated by
97
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
98
- at Fri Aug 26 2022 19:37:35 GMT+0000 (Coordinated Universal Time)
103
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
+ at 2022-10-14T16:57:32.013Z
99
105
  </div>
100
- </div>
101
106
  <script src="../prettify.js"></script>
102
107
  <script>
103
108
  window.onload = function () {
@@ -24,6 +24,31 @@ var addSorting = (function() {
24
24
  return getTableHeader().querySelectorAll('th')[n];
25
25
  }
26
26
 
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 (
33
+ row.textContent
34
+ .toLowerCase()
35
+ .includes(searchValue.toLowerCase())
36
+ ) {
37
+ row.style.display = '';
38
+ } else {
39
+ row.style.display = 'none';
40
+ }
41
+ }
42
+ }
43
+
44
+ // loads the search box
45
+ function addSearchBox() {
46
+ var template = document.getElementById('filterTemplate');
47
+ var templateClone = template.content.cloneNode(true);
48
+ templateClone.getElementById('fileSearch').oninput = onFilterInput;
49
+ template.parentElement.appendChild(templateClone);
50
+ }
51
+
27
52
  // loads all columns
28
53
  function loadColumns() {
29
54
  var colNodes = getTableHeader().querySelectorAll('th'),
@@ -162,6 +187,7 @@ var addSorting = (function() {
162
187
  }
163
188
  cols = loadColumns();
164
189
  loadData();
190
+ addSearchBox();
165
191
  addSortIndicators();
166
192
  enableUI();
167
193
  };
package/index.js CHANGED
@@ -5,10 +5,12 @@ const webpackDevMiddleware = require("webpack-dev-middleware")
5
5
  const webpackHotMiddleware = require("webpack-hot-middleware")
6
6
  const bodyParser = require("body-parser")
7
7
  const cookieParser = require("cookie-parser")
8
- const configWebpack = require("./webpack.config")
8
+ const { sep } = require("path")
9
+ const { pathToFileURL } = require("url")
10
+ const configWebpack = require("./webpack.config.cjs")
9
11
  const routes = require("./src/routes")
10
12
  const configMiddleware = require("./src/middlewares/config")
11
- const getConfigComponentsWebpack = require("./webpack-components.config")
13
+ const getConfigComponentsWebpack = require("./webpack-components.config.cjs")
12
14
 
13
15
  const {
14
16
  toolkitAssetsPath,
@@ -30,6 +32,15 @@ if (process.env.RUN_ENV === "dev") {
30
32
  }
31
33
 
32
34
  if (fs.existsSync(`${currentPath}/themes/${config.theme}/customComponents`)) {
35
+ // This is a workaround for SASS bug:
36
+ // https://github.com/dart-lang/sdk/issues/27979
37
+ // which manifests itself sometimes when webpack dev middleware is used
38
+ // (in dev mode), and app modules are imported in some unfortunate ways.
39
+ if (!global.location) {
40
+ global.location = {
41
+ href: `${pathToFileURL(process.cwd()).href}${sep}`
42
+ }
43
+ }
33
44
  const configComponentsWebpackAsset = getConfigComponentsWebpack(
34
45
  currentPath,
35
46
  config,
@@ -38,11 +49,8 @@ if (fs.existsSync(`${currentPath}/themes/${config.theme}/customComponents`)) {
38
49
  const compilerComponentsAsset = webpack(configComponentsWebpackAsset)
39
50
  app.use(
40
51
  webpackDevMiddleware(compilerComponentsAsset, {
41
- hot: true,
42
- filename: "sfb-components.js",
43
52
  publicPath: configComponentsWebpackAsset.output.publicPath,
44
53
  writeToDisk: true,
45
- logLevel: "error",
46
54
  stats: { colors: true }
47
55
  })
48
56
  )
@@ -85,9 +93,7 @@ server.on("error", err => {
85
93
  switch (err.errno) {
86
94
  case "EADDRINUSE":
87
95
  return console.log(
88
- `Error (${
89
- err.errno
90
- }):\n Port 3555 is already in use.\n The previous server instance might not have been terminated correctly.\n Make sure the previous sfb-toolkit instance is properly terminated and enter \`rs\` to restart the current instance.`
96
+ `Error (${err.errno}):\n Port 3555 is already in use.\n The previous server instance might not have been terminated correctly.\n Make sure the previous sfb-toolkit instance is properly terminated and enter \`rs\` to restart the current instance.`
91
97
  .red
92
98
  )
93
99
  default: