@hitchy/plugin-auth 0.3.4 → 0.3.5

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 (30) hide show
  1. package/coverage/block-navigation.js +8 -0
  2. package/coverage/index.html +8 -3
  3. package/coverage/plugin-auth/api/controller/index.html +8 -3
  4. package/coverage/plugin-auth/api/controller/user.js.html +8 -3
  5. package/coverage/plugin-auth/api/model/authorization/index.html +8 -3
  6. package/coverage/plugin-auth/api/model/authorization/rule.js.html +8 -3
  7. package/coverage/plugin-auth/api/model/index.html +8 -3
  8. package/coverage/plugin-auth/api/model/role.js.html +8 -3
  9. package/coverage/plugin-auth/api/model/user-to-role.js.html +8 -3
  10. package/coverage/plugin-auth/api/model/user.js.html +8 -3
  11. package/coverage/plugin-auth/api/policy/authentication.js.html +8 -3
  12. package/coverage/plugin-auth/api/policy/authorization.js.html +8 -3
  13. package/coverage/plugin-auth/api/policy/index.html +8 -3
  14. package/coverage/plugin-auth/api/policy/user.js.html +8 -3
  15. package/coverage/plugin-auth/api/service/auth/index.html +8 -3
  16. package/coverage/plugin-auth/api/service/auth/manager.js.html +8 -3
  17. package/coverage/plugin-auth/api/service/authentication/index.html +8 -3
  18. package/coverage/plugin-auth/api/service/authentication/passport.js.html +8 -3
  19. package/coverage/plugin-auth/api/service/authentication/strategies.js.html +8 -3
  20. package/coverage/plugin-auth/api/service/authorization/index.html +8 -3
  21. package/coverage/plugin-auth/api/service/authorization/node.js.html +8 -3
  22. package/coverage/plugin-auth/api/service/authorization/policy-generator.js.html +8 -3
  23. package/coverage/plugin-auth/api/service/authorization/tree.js.html +8 -3
  24. package/coverage/plugin-auth/config/auth.js.html +8 -3
  25. package/coverage/plugin-auth/config/index.html +8 -3
  26. package/coverage/plugin-auth/index.html +8 -3
  27. package/coverage/plugin-auth/index.js.html +8 -3
  28. package/coverage/sorter.js +26 -0
  29. package/coverage/tmp/coverage-2884-1653923449663-0.json +1 -0
  30. package/package.json +11 -11
@@ -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">
@@ -123,10 +129,9 @@ module.exports = function() {
123
129
  </div><!-- /wrapper -->
124
130
  <div class='footer quiet pad2 space-top1 center small'>
125
131
  Code coverage generated by
126
- <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
127
- at Mon Mar 28 2022 22:26:49 GMT+0200 (Mitteleuropäische Sommerzeit)
132
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
133
+ at Mon May 30 2022 17:10:50 GMT+0200 (Mitteleuropäische Sommerzeit)
128
134
  </div>
129
- </div>
130
135
  <script src="../../prettify.js"></script>
131
136
  <script>
132
137
  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 Mon Mar 28 2022 22:26:49 GMT+0200 (Mitteleuropäische Sommerzeit)
103
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
+ at Mon May 30 2022 17:10:50 GMT+0200 (Mitteleuropäische Sommerzeit)
99
105
  </div>
100
- </div>
101
106
  <script src="../../prettify.js"></script>
102
107
  <script>
103
108
  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 Mon Mar 28 2022 22:26:49 GMT+0200 (Mitteleuropäische Sommerzeit)
103
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
+ at Mon May 30 2022 17:10:50 GMT+0200 (Mitteleuropäische Sommerzeit)
99
105
  </div>
100
- </div>
101
106
  <script src="../prettify.js"></script>
102
107
  <script>
103
108
  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">
@@ -366,10 +372,9 @@ module.exports = function( options, plugins ) {
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 Mon Mar 28 2022 22:26:49 GMT+0200 (Mitteleuropäische Sommerzeit)
375
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
376
+ at Mon May 30 2022 17:10:50 GMT+0200 (Mitteleuropäische Sommerzeit)
371
377
  </div>
372
- </div>
373
378
  <script src="../prettify.js"></script>
374
379
  <script>
375
380
  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
  };