oxidized-web 0.13.1 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of oxidized-web might be problematic. Click here for more details.

Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/.github/PULL_REQUEST_TEMPLATE.md +12 -0
  3. data/.github/dependabot.yml +25 -0
  4. data/.github/workflows/codeql.yml +76 -0
  5. data/.github/workflows/ruby.yml +42 -0
  6. data/.github/workflows/stale.yml +18 -0
  7. data/.gitignore +3 -0
  8. data/.rubocop.yml +38 -3
  9. data/.rubocop_todo.yml +28 -207
  10. data/CHANGELOG.md +28 -0
  11. data/README.md +8 -5
  12. data/Rakefile +48 -5
  13. data/docs/development.md +170 -0
  14. data/lib/oxidized/web/mig.rb +37 -47
  15. data/lib/oxidized/web/public/css/oxidized.css +59 -0
  16. data/lib/oxidized/web/public/scripts/oxidized.js +1 -12
  17. data/lib/oxidized/web/public/weblibs/bootstrap-icons.css +2078 -0
  18. data/lib/oxidized/web/public/weblibs/bootstrap.bundle.js +6314 -0
  19. data/lib/oxidized/web/public/weblibs/bootstrap.bundle.js.map +1 -0
  20. data/lib/oxidized/web/public/weblibs/bootstrap.css +12057 -0
  21. data/lib/oxidized/web/public/weblibs/bootstrap.css.map +1 -0
  22. data/lib/oxidized/web/public/weblibs/bootstrap.js +4494 -0
  23. data/lib/oxidized/web/public/weblibs/bootstrap.js.map +1 -0
  24. data/lib/oxidized/web/public/weblibs/buttons.bootstrap5.css +398 -0
  25. data/lib/oxidized/web/public/weblibs/buttons.bootstrap5.js +117 -0
  26. data/lib/oxidized/web/public/weblibs/buttons.colVis.js +256 -0
  27. data/lib/oxidized/web/public/weblibs/dataTables.bootstrap5.css +487 -0
  28. data/lib/oxidized/web/public/weblibs/dataTables.bootstrap5.js +147 -0
  29. data/lib/oxidized/web/public/weblibs/dataTables.buttons.js +2820 -0
  30. data/lib/oxidized/web/public/weblibs/dataTables.js +13171 -0
  31. data/lib/oxidized/web/public/weblibs/fonts/bootstrap-icons.woff +0 -0
  32. data/lib/oxidized/web/public/weblibs/fonts/bootstrap-icons.woff2 +0 -0
  33. data/lib/oxidized/web/public/weblibs/jquery.js +10716 -0
  34. data/lib/oxidized/web/version.rb +7 -0
  35. data/lib/oxidized/web/views/conf_search.haml +14 -13
  36. data/lib/oxidized/web/views/diffs.haml +5 -5
  37. data/lib/oxidized/web/views/footer.haml +5 -4
  38. data/lib/oxidized/web/views/head.haml +21 -7
  39. data/lib/oxidized/web/views/layout.haml +29 -34
  40. data/lib/oxidized/web/views/migration.haml +7 -0
  41. data/lib/oxidized/web/views/node.haml +10 -8
  42. data/lib/oxidized/web/views/nodes.haml +45 -35
  43. data/lib/oxidized/web/views/stats.haml +32 -24
  44. data/lib/oxidized/web/views/version.haml +8 -6
  45. data/lib/oxidized/web/views/versions.haml +23 -24
  46. data/lib/oxidized/web/webapp.rb +106 -87
  47. data/lib/oxidized/web.rb +10 -7
  48. data/oxidized-web.gemspec +27 -14
  49. data/package-lock.json +104 -0
  50. data/package.json +21 -0
  51. data/spec/node_spec.rb +143 -0
  52. data/spec/root_spec.rb +18 -0
  53. data/spec/spec_helper.rb +8 -0
  54. data/spec/webapp_spec.rb +28 -0
  55. metadata +187 -73
  56. data/lib/oxidized/web/public/css/bootstrap.min.css +0 -5
  57. data/lib/oxidized/web/public/css/buttons.bootstrap.min.css +0 -1
  58. data/lib/oxidized/web/public/css/dataTables.bootstrap.css +0 -299
  59. data/lib/oxidized/web/public/css/dataTables.colVis.css +0 -171
  60. data/lib/oxidized/web/public/css/oxidized_custom.css +0 -19
  61. data/lib/oxidized/web/public/fonts/glyphicons-halflings-regular.eot +0 -0
  62. data/lib/oxidized/web/public/fonts/glyphicons-halflings-regular.svg +0 -229
  63. data/lib/oxidized/web/public/fonts/glyphicons-halflings-regular.ttf +0 -0
  64. data/lib/oxidized/web/public/fonts/glyphicons-halflings-regular.woff +0 -0
  65. data/lib/oxidized/web/public/images/diff_15x17.png +0 -0
  66. data/lib/oxidized/web/public/images/sort_asc.png +0 -0
  67. data/lib/oxidized/web/public/images/sort_asc_disabled.png +0 -0
  68. data/lib/oxidized/web/public/images/sort_both.png +0 -0
  69. data/lib/oxidized/web/public/images/sort_desc.png +0 -0
  70. data/lib/oxidized/web/public/images/sort_desc_disabled.png +0 -0
  71. data/lib/oxidized/web/public/images/versioning_18px.png +0 -0
  72. data/lib/oxidized/web/public/scripts/bootstrap.min.js +0 -6
  73. data/lib/oxidized/web/public/scripts/dataTables.bootstrap.js +0 -186
  74. data/lib/oxidized/web/public/scripts/dataTables.colVis.js +0 -1123
  75. data/lib/oxidized/web/public/scripts/jquery-2.1.1.min.js +0 -4
  76. data/lib/oxidized/web/public/scripts/jquery.dataTables.min.js +0 -157
  77. data/lib/oxidized/web/public/scripts/jquery.min.js +0 -6
  78. data/lib/oxidized/web/views/sass/oxidized.sass +0 -113
@@ -0,0 +1,487 @@
1
+ @charset "UTF-8";
2
+ :root {
3
+ --dt-row-selected: 13, 110, 253;
4
+ --dt-row-selected-text: 255, 255, 255;
5
+ --dt-row-selected-link: 9, 10, 11;
6
+ --dt-row-stripe: 0, 0, 0;
7
+ --dt-row-hover: 0, 0, 0;
8
+ --dt-column-ordering: 0, 0, 0;
9
+ --dt-html-background: white;
10
+ }
11
+ :root.dark {
12
+ --dt-html-background: rgb(33, 37, 41);
13
+ }
14
+
15
+ table.dataTable td.dt-control {
16
+ text-align: center;
17
+ cursor: pointer;
18
+ }
19
+ table.dataTable td.dt-control:before {
20
+ display: inline-block;
21
+ box-sizing: border-box;
22
+ content: "";
23
+ border-top: 5px solid transparent;
24
+ border-left: 10px solid rgba(0, 0, 0, 0.5);
25
+ border-bottom: 5px solid transparent;
26
+ border-right: 0px solid transparent;
27
+ }
28
+ table.dataTable tr.dt-hasChild td.dt-control:before {
29
+ border-top: 10px solid rgba(0, 0, 0, 0.5);
30
+ border-left: 5px solid transparent;
31
+ border-bottom: 0px solid transparent;
32
+ border-right: 5px solid transparent;
33
+ }
34
+
35
+ html.dark table.dataTable td.dt-control:before,
36
+ :root[data-bs-theme=dark] table.dataTable td.dt-control:before {
37
+ border-left-color: rgba(255, 255, 255, 0.5);
38
+ }
39
+ html.dark table.dataTable tr.dt-hasChild td.dt-control:before,
40
+ :root[data-bs-theme=dark] table.dataTable tr.dt-hasChild td.dt-control:before {
41
+ border-top-color: rgba(255, 255, 255, 0.5);
42
+ border-left-color: transparent;
43
+ }
44
+
45
+ div.dt-scroll-body thead tr,
46
+ div.dt-scroll-body tfoot tr {
47
+ height: 0;
48
+ }
49
+ div.dt-scroll-body thead tr th, div.dt-scroll-body thead tr td,
50
+ div.dt-scroll-body tfoot tr th,
51
+ div.dt-scroll-body tfoot tr td {
52
+ height: 0 !important;
53
+ padding-top: 0px !important;
54
+ padding-bottom: 0px !important;
55
+ border-top-width: 0px !important;
56
+ border-bottom-width: 0px !important;
57
+ }
58
+ div.dt-scroll-body thead tr th div.dt-scroll-sizing, div.dt-scroll-body thead tr td div.dt-scroll-sizing,
59
+ div.dt-scroll-body tfoot tr th div.dt-scroll-sizing,
60
+ div.dt-scroll-body tfoot tr td div.dt-scroll-sizing {
61
+ height: 0 !important;
62
+ overflow: hidden !important;
63
+ }
64
+
65
+ table.dataTable thead > tr > th:active,
66
+ table.dataTable thead > tr > td:active {
67
+ outline: none;
68
+ }
69
+ table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order:before, table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order:before,
70
+ table.dataTable thead > tr > td.dt-orderable-asc span.dt-column-order:before,
71
+ table.dataTable thead > tr > td.dt-ordering-asc span.dt-column-order:before {
72
+ position: absolute;
73
+ display: block;
74
+ bottom: 50%;
75
+ content: "▲";
76
+ content: "▲"/"";
77
+ }
78
+ table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order:after, table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order:after,
79
+ table.dataTable thead > tr > td.dt-orderable-desc span.dt-column-order:after,
80
+ table.dataTable thead > tr > td.dt-ordering-desc span.dt-column-order:after {
81
+ position: absolute;
82
+ display: block;
83
+ top: 50%;
84
+ content: "▼";
85
+ content: "▼"/"";
86
+ }
87
+ table.dataTable thead > tr > th.dt-orderable-asc, table.dataTable thead > tr > th.dt-orderable-desc, table.dataTable thead > tr > th.dt-ordering-asc, table.dataTable thead > tr > th.dt-ordering-desc,
88
+ table.dataTable thead > tr > td.dt-orderable-asc,
89
+ table.dataTable thead > tr > td.dt-orderable-desc,
90
+ table.dataTable thead > tr > td.dt-ordering-asc,
91
+ table.dataTable thead > tr > td.dt-ordering-desc {
92
+ position: relative;
93
+ padding-right: 30px;
94
+ }
95
+ table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order, table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order, table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order, table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order,
96
+ table.dataTable thead > tr > td.dt-orderable-asc span.dt-column-order,
97
+ table.dataTable thead > tr > td.dt-orderable-desc span.dt-column-order,
98
+ table.dataTable thead > tr > td.dt-ordering-asc span.dt-column-order,
99
+ table.dataTable thead > tr > td.dt-ordering-desc span.dt-column-order {
100
+ position: absolute;
101
+ right: 12px;
102
+ top: 0;
103
+ bottom: 0;
104
+ width: 12px;
105
+ }
106
+ table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order:before, table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order:after, table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order:before, table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order:after, table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order:before, table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order:after, table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order:before, table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order:after,
107
+ table.dataTable thead > tr > td.dt-orderable-asc span.dt-column-order:before,
108
+ table.dataTable thead > tr > td.dt-orderable-asc span.dt-column-order:after,
109
+ table.dataTable thead > tr > td.dt-orderable-desc span.dt-column-order:before,
110
+ table.dataTable thead > tr > td.dt-orderable-desc span.dt-column-order:after,
111
+ table.dataTable thead > tr > td.dt-ordering-asc span.dt-column-order:before,
112
+ table.dataTable thead > tr > td.dt-ordering-asc span.dt-column-order:after,
113
+ table.dataTable thead > tr > td.dt-ordering-desc span.dt-column-order:before,
114
+ table.dataTable thead > tr > td.dt-ordering-desc span.dt-column-order:after {
115
+ left: 0;
116
+ opacity: 0.125;
117
+ line-height: 9px;
118
+ font-size: 0.8em;
119
+ }
120
+ table.dataTable thead > tr > th.dt-orderable-asc, table.dataTable thead > tr > th.dt-orderable-desc,
121
+ table.dataTable thead > tr > td.dt-orderable-asc,
122
+ table.dataTable thead > tr > td.dt-orderable-desc {
123
+ cursor: pointer;
124
+ }
125
+ table.dataTable thead > tr > th.dt-orderable-asc:hover, table.dataTable thead > tr > th.dt-orderable-desc:hover,
126
+ table.dataTable thead > tr > td.dt-orderable-asc:hover,
127
+ table.dataTable thead > tr > td.dt-orderable-desc:hover {
128
+ outline: 2px solid rgba(0, 0, 0, 0.05);
129
+ outline-offset: -2px;
130
+ }
131
+ table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order:before, table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order:after,
132
+ table.dataTable thead > tr > td.dt-ordering-asc span.dt-column-order:before,
133
+ table.dataTable thead > tr > td.dt-ordering-desc span.dt-column-order:after {
134
+ opacity: 0.6;
135
+ }
136
+ table.dataTable thead > tr > th.sorting_desc_disabled span.dt-column-order:after, table.dataTable thead > tr > th.sorting_asc_disabled span.dt-column-order:before,
137
+ table.dataTable thead > tr > td.sorting_desc_disabled span.dt-column-order:after,
138
+ table.dataTable thead > tr > td.sorting_asc_disabled span.dt-column-order:before {
139
+ display: none;
140
+ }
141
+ table.dataTable thead > tr > th:active,
142
+ table.dataTable thead > tr > td:active {
143
+ outline: none;
144
+ }
145
+
146
+ div.dt-scroll-body > table.dataTable > thead > tr > th,
147
+ div.dt-scroll-body > table.dataTable > thead > tr > td {
148
+ overflow: hidden;
149
+ }
150
+
151
+ :root.dark table.dataTable thead > tr > th.dt-orderable-asc:hover, :root.dark table.dataTable thead > tr > th.dt-orderable-desc:hover,
152
+ :root.dark table.dataTable thead > tr > td.dt-orderable-asc:hover,
153
+ :root.dark table.dataTable thead > tr > td.dt-orderable-desc:hover,
154
+ :root[data-bs-theme=dark] table.dataTable thead > tr > th.dt-orderable-asc:hover,
155
+ :root[data-bs-theme=dark] table.dataTable thead > tr > th.dt-orderable-desc:hover,
156
+ :root[data-bs-theme=dark] table.dataTable thead > tr > td.dt-orderable-asc:hover,
157
+ :root[data-bs-theme=dark] table.dataTable thead > tr > td.dt-orderable-desc:hover {
158
+ outline: 2px solid rgba(255, 255, 255, 0.05);
159
+ }
160
+
161
+ div.dt-processing {
162
+ position: absolute;
163
+ top: 50%;
164
+ left: 50%;
165
+ width: 200px;
166
+ margin-left: -100px;
167
+ margin-top: -22px;
168
+ text-align: center;
169
+ padding: 2px;
170
+ z-index: 10;
171
+ }
172
+ div.dt-processing > div:last-child {
173
+ position: relative;
174
+ width: 80px;
175
+ height: 15px;
176
+ margin: 1em auto;
177
+ }
178
+ div.dt-processing > div:last-child > div {
179
+ position: absolute;
180
+ top: 0;
181
+ width: 13px;
182
+ height: 13px;
183
+ border-radius: 50%;
184
+ background: rgb(13, 110, 253);
185
+ background: rgb(var(--dt-row-selected));
186
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
187
+ }
188
+ div.dt-processing > div:last-child > div:nth-child(1) {
189
+ left: 8px;
190
+ animation: datatables-loader-1 0.6s infinite;
191
+ }
192
+ div.dt-processing > div:last-child > div:nth-child(2) {
193
+ left: 8px;
194
+ animation: datatables-loader-2 0.6s infinite;
195
+ }
196
+ div.dt-processing > div:last-child > div:nth-child(3) {
197
+ left: 32px;
198
+ animation: datatables-loader-2 0.6s infinite;
199
+ }
200
+ div.dt-processing > div:last-child > div:nth-child(4) {
201
+ left: 56px;
202
+ animation: datatables-loader-3 0.6s infinite;
203
+ }
204
+
205
+ @keyframes datatables-loader-1 {
206
+ 0% {
207
+ transform: scale(0);
208
+ }
209
+ 100% {
210
+ transform: scale(1);
211
+ }
212
+ }
213
+ @keyframes datatables-loader-3 {
214
+ 0% {
215
+ transform: scale(1);
216
+ }
217
+ 100% {
218
+ transform: scale(0);
219
+ }
220
+ }
221
+ @keyframes datatables-loader-2 {
222
+ 0% {
223
+ transform: translate(0, 0);
224
+ }
225
+ 100% {
226
+ transform: translate(24px, 0);
227
+ }
228
+ }
229
+ table.dataTable.nowrap th, table.dataTable.nowrap td {
230
+ white-space: nowrap;
231
+ }
232
+ table.dataTable th,
233
+ table.dataTable td {
234
+ box-sizing: border-box;
235
+ }
236
+ table.dataTable th.dt-left,
237
+ table.dataTable td.dt-left {
238
+ text-align: left;
239
+ }
240
+ table.dataTable th.dt-center,
241
+ table.dataTable td.dt-center {
242
+ text-align: center;
243
+ }
244
+ table.dataTable th.dt-right,
245
+ table.dataTable td.dt-right {
246
+ text-align: right;
247
+ }
248
+ table.dataTable th.dt-justify,
249
+ table.dataTable td.dt-justify {
250
+ text-align: justify;
251
+ }
252
+ table.dataTable th.dt-nowrap,
253
+ table.dataTable td.dt-nowrap {
254
+ white-space: nowrap;
255
+ }
256
+ table.dataTable th.dt-empty,
257
+ table.dataTable td.dt-empty {
258
+ text-align: center;
259
+ vertical-align: top;
260
+ }
261
+ table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date,
262
+ table.dataTable td.dt-type-numeric,
263
+ table.dataTable td.dt-type-date {
264
+ text-align: right;
265
+ }
266
+ table.dataTable thead th,
267
+ table.dataTable thead td,
268
+ table.dataTable tfoot th,
269
+ table.dataTable tfoot td {
270
+ text-align: left;
271
+ }
272
+ table.dataTable thead th.dt-head-left,
273
+ table.dataTable thead td.dt-head-left,
274
+ table.dataTable tfoot th.dt-head-left,
275
+ table.dataTable tfoot td.dt-head-left {
276
+ text-align: left;
277
+ }
278
+ table.dataTable thead th.dt-head-center,
279
+ table.dataTable thead td.dt-head-center,
280
+ table.dataTable tfoot th.dt-head-center,
281
+ table.dataTable tfoot td.dt-head-center {
282
+ text-align: center;
283
+ }
284
+ table.dataTable thead th.dt-head-right,
285
+ table.dataTable thead td.dt-head-right,
286
+ table.dataTable tfoot th.dt-head-right,
287
+ table.dataTable tfoot td.dt-head-right {
288
+ text-align: right;
289
+ }
290
+ table.dataTable thead th.dt-head-justify,
291
+ table.dataTable thead td.dt-head-justify,
292
+ table.dataTable tfoot th.dt-head-justify,
293
+ table.dataTable tfoot td.dt-head-justify {
294
+ text-align: justify;
295
+ }
296
+ table.dataTable thead th.dt-head-nowrap,
297
+ table.dataTable thead td.dt-head-nowrap,
298
+ table.dataTable tfoot th.dt-head-nowrap,
299
+ table.dataTable tfoot td.dt-head-nowrap {
300
+ white-space: nowrap;
301
+ }
302
+ table.dataTable tbody th.dt-body-left,
303
+ table.dataTable tbody td.dt-body-left {
304
+ text-align: left;
305
+ }
306
+ table.dataTable tbody th.dt-body-center,
307
+ table.dataTable tbody td.dt-body-center {
308
+ text-align: center;
309
+ }
310
+ table.dataTable tbody th.dt-body-right,
311
+ table.dataTable tbody td.dt-body-right {
312
+ text-align: right;
313
+ }
314
+ table.dataTable tbody th.dt-body-justify,
315
+ table.dataTable tbody td.dt-body-justify {
316
+ text-align: justify;
317
+ }
318
+ table.dataTable tbody th.dt-body-nowrap,
319
+ table.dataTable tbody td.dt-body-nowrap {
320
+ white-space: nowrap;
321
+ }
322
+
323
+ /*! Bootstrap 5 integration for DataTables
324
+ *
325
+ * ©2020 SpryMedia Ltd, all rights reserved.
326
+ * License: MIT datatables.net/license/mit
327
+ */
328
+ table.table.dataTable {
329
+ clear: both;
330
+ margin-bottom: 0;
331
+ max-width: none;
332
+ border-spacing: 0;
333
+ }
334
+ table.table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1) > * {
335
+ box-shadow: none;
336
+ }
337
+ table.table.dataTable > :not(caption) > * > * {
338
+ background-color: var(--bs-table-bg);
339
+ }
340
+ table.table.dataTable > tbody > tr {
341
+ background-color: transparent;
342
+ }
343
+ table.table.dataTable > tbody > tr.selected > * {
344
+ box-shadow: inset 0 0 0 9999px rgb(13, 110, 253);
345
+ box-shadow: inset 0 0 0 9999px rgb(var(--dt-row-selected));
346
+ color: rgb(255, 255, 255);
347
+ color: rgb(var(--dt-row-selected-text));
348
+ }
349
+ table.table.dataTable > tbody > tr.selected a {
350
+ color: rgb(9, 10, 11);
351
+ color: rgb(var(--dt-row-selected-link));
352
+ }
353
+ table.table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1) > * {
354
+ box-shadow: inset 0 0 0 9999px rgba(var(--dt-row-stripe), 0.05);
355
+ }
356
+ table.table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1).selected > * {
357
+ box-shadow: inset 0 0 0 9999px rgba(13, 110, 253, 0.95);
358
+ box-shadow: inset 0 0 0 9999px rgba(var(--dt-row-selected), 0.95);
359
+ }
360
+ table.table.dataTable.table-hover > tbody > tr:hover > * {
361
+ box-shadow: inset 0 0 0 9999px rgba(var(--dt-row-hover), 0.075);
362
+ }
363
+ table.table.dataTable.table-hover > tbody > tr.selected:hover > * {
364
+ box-shadow: inset 0 0 0 9999px rgba(13, 110, 253, 0.975);
365
+ box-shadow: inset 0 0 0 9999px rgba(var(--dt-row-selected), 0.975);
366
+ }
367
+
368
+ div.dt-container div.dt-length label {
369
+ font-weight: normal;
370
+ text-align: left;
371
+ white-space: nowrap;
372
+ }
373
+ div.dt-container div.dt-length select {
374
+ width: auto;
375
+ display: inline-block;
376
+ margin-right: 0.5em;
377
+ }
378
+ div.dt-container div.dt-search {
379
+ text-align: right;
380
+ }
381
+ div.dt-container div.dt-search label {
382
+ font-weight: normal;
383
+ white-space: nowrap;
384
+ text-align: left;
385
+ }
386
+ div.dt-container div.dt-search input {
387
+ margin-left: 0.5em;
388
+ display: inline-block;
389
+ width: auto;
390
+ }
391
+ div.dt-container div.dt-info {
392
+ padding-top: 0.85em;
393
+ }
394
+ div.dt-container div.dt-paging {
395
+ margin: 0;
396
+ }
397
+ div.dt-container div.dt-paging ul.pagination {
398
+ margin: 2px 0;
399
+ flex-wrap: wrap;
400
+ }
401
+ div.dt-container div.dt-row {
402
+ position: relative;
403
+ }
404
+
405
+ div.dt-scroll-head table.dataTable {
406
+ margin-bottom: 0 !important;
407
+ }
408
+
409
+ div.dt-scroll-body {
410
+ border-bottom-color: var(--bs-border-color);
411
+ border-bottom-width: var(--bs-border-width);
412
+ border-bottom-style: solid;
413
+ }
414
+ div.dt-scroll-body > table {
415
+ border-top: none;
416
+ margin-top: 0 !important;
417
+ margin-bottom: 0 !important;
418
+ }
419
+ div.dt-scroll-body > table > tbody > tr:first-child {
420
+ border-top-width: 0;
421
+ }
422
+ div.dt-scroll-body > table > thead > tr {
423
+ border-width: 0 !important;
424
+ }
425
+ div.dt-scroll-body > table > tbody > tr:last-child > * {
426
+ border-bottom: none;
427
+ }
428
+
429
+ div.dt-scroll-foot > .dt-scroll-footInner {
430
+ box-sizing: content-box;
431
+ }
432
+ div.dt-scroll-foot > .dt-scroll-footInner > table {
433
+ margin-top: 0 !important;
434
+ border-top: none;
435
+ }
436
+ div.dt-scroll-foot > .dt-scroll-footInner > table > tfoot > tr:first-child {
437
+ border-top-width: 0 !important;
438
+ }
439
+
440
+ @media screen and (max-width: 767px) {
441
+ div.dt-container div.dt-length,
442
+ div.dt-container div.dt-search,
443
+ div.dt-container div.dt-info,
444
+ div.dt-container div.dt-paging {
445
+ text-align: center;
446
+ }
447
+ div.dt-container .row {
448
+ --bs-gutter-y: 0.5rem;
449
+ }
450
+ div.dt-container div.dt-paging ul.pagination {
451
+ justify-content: center !important;
452
+ }
453
+ }
454
+ table.dataTable.table-sm > thead > tr th.dt-orderable-asc, table.dataTable.table-sm > thead > tr th.dt-orderable-desc, table.dataTable.table-sm > thead > tr th.dt-ordering-asc, table.dataTable.table-sm > thead > tr th.dt-ordering-desc,
455
+ table.dataTable.table-sm > thead > tr td.dt-orderable-asc,
456
+ table.dataTable.table-sm > thead > tr td.dt-orderable-desc,
457
+ table.dataTable.table-sm > thead > tr td.dt-ordering-asc,
458
+ table.dataTable.table-sm > thead > tr td.dt-ordering-desc {
459
+ padding-right: 20px;
460
+ }
461
+ table.dataTable.table-sm > thead > tr th.dt-orderable-asc span.dt-column-order, table.dataTable.table-sm > thead > tr th.dt-orderable-desc span.dt-column-order, table.dataTable.table-sm > thead > tr th.dt-ordering-asc span.dt-column-order, table.dataTable.table-sm > thead > tr th.dt-ordering-desc span.dt-column-order,
462
+ table.dataTable.table-sm > thead > tr td.dt-orderable-asc span.dt-column-order,
463
+ table.dataTable.table-sm > thead > tr td.dt-orderable-desc span.dt-column-order,
464
+ table.dataTable.table-sm > thead > tr td.dt-ordering-asc span.dt-column-order,
465
+ table.dataTable.table-sm > thead > tr td.dt-ordering-desc span.dt-column-order {
466
+ right: 5px;
467
+ }
468
+
469
+ div.dt-scroll-head table.table-bordered {
470
+ border-bottom-width: 0;
471
+ }
472
+
473
+ div.table-responsive > div.dt-container > div.row {
474
+ margin: 0;
475
+ }
476
+ div.table-responsive > div.dt-container > div.row > div[class^=col-]:first-child {
477
+ padding-left: 0;
478
+ }
479
+ div.table-responsive > div.dt-container > div.row > div[class^=col-]:last-child {
480
+ padding-right: 0;
481
+ }
482
+
483
+ :root[data-bs-theme=dark] {
484
+ --dt-row-hover: 255, 255, 255;
485
+ --dt-row-stripe: 255, 255, 255;
486
+ --dt-column-ordering: 255, 255, 255;
487
+ }
@@ -0,0 +1,147 @@
1
+ /*! DataTables Bootstrap 5 integration
2
+ * © SpryMedia Ltd - datatables.net/license
3
+ */
4
+
5
+ (function( factory ){
6
+ if ( typeof define === 'function' && define.amd ) {
7
+ // AMD
8
+ define( ['jquery', 'datatables.net'], function ( $ ) {
9
+ return factory( $, window, document );
10
+ } );
11
+ }
12
+ else if ( typeof exports === 'object' ) {
13
+ // CommonJS
14
+ var jq = require('jquery');
15
+ var cjsRequires = function (root, $) {
16
+ if ( ! $.fn.dataTable ) {
17
+ require('datatables.net')(root, $);
18
+ }
19
+ };
20
+
21
+ if (typeof window === 'undefined') {
22
+ module.exports = function (root, $) {
23
+ if ( ! root ) {
24
+ // CommonJS environments without a window global must pass a
25
+ // root. This will give an error otherwise
26
+ root = window;
27
+ }
28
+
29
+ if ( ! $ ) {
30
+ $ = jq( root );
31
+ }
32
+
33
+ cjsRequires( root, $ );
34
+ return factory( $, root, root.document );
35
+ };
36
+ }
37
+ else {
38
+ cjsRequires( window, jq );
39
+ module.exports = factory( jq, window, window.document );
40
+ }
41
+ }
42
+ else {
43
+ // Browser
44
+ factory( jQuery, window, document );
45
+ }
46
+ }(function( $, window, document ) {
47
+ 'use strict';
48
+ var DataTable = $.fn.dataTable;
49
+
50
+
51
+
52
+ /**
53
+ * DataTables integration for Bootstrap 5.
54
+ *
55
+ * This file sets the defaults and adds options to DataTables to style its
56
+ * controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
57
+ * for further information.
58
+ */
59
+
60
+ /* Set the defaults for DataTables initialisation */
61
+ $.extend( true, DataTable.defaults, {
62
+ renderer: 'bootstrap'
63
+ } );
64
+
65
+
66
+ /* Default class modification */
67
+ $.extend( true, DataTable.ext.classes, {
68
+ container: "dt-container dt-bootstrap5",
69
+ search: {
70
+ input: "form-control form-control-sm"
71
+ },
72
+ length: {
73
+ select: "form-select form-select-sm"
74
+ },
75
+ processing: {
76
+ container: "dt-processing card"
77
+ }
78
+ } );
79
+
80
+
81
+ /* Bootstrap paging button renderer */
82
+ DataTable.ext.renderer.pagingButton.bootstrap = function (settings, buttonType, content, active, disabled) {
83
+ var btnClasses = ['dt-paging-button', 'page-item'];
84
+
85
+ if (active) {
86
+ btnClasses.push('active');
87
+ }
88
+
89
+ if (disabled) {
90
+ btnClasses.push('disabled')
91
+ }
92
+
93
+ var li = $('<li>').addClass(btnClasses.join(' '));
94
+ var a = $('<a>', {
95
+ 'href': disabled ? null : '#',
96
+ 'class': 'page-link'
97
+ })
98
+ .html(content)
99
+ .appendTo(li);
100
+
101
+ return {
102
+ display: li,
103
+ clicker: a
104
+ };
105
+ };
106
+
107
+ DataTable.ext.renderer.pagingContainer.bootstrap = function (settings, buttonEls) {
108
+ return $('<ul/>').addClass('pagination').append(buttonEls);
109
+ };
110
+
111
+ DataTable.ext.renderer.layout.bootstrap = function ( settings, container, items ) {
112
+ var row = $( '<div/>', {
113
+ "class": items.full ?
114
+ 'row mt-2 justify-content-md-center' :
115
+ 'row mt-2 justify-content-between'
116
+ } )
117
+ .appendTo( container );
118
+
119
+ $.each( items, function (key, val) {
120
+ var klass;
121
+
122
+ // Apply start / end (left / right when ltr) margins
123
+ if (val.table) {
124
+ klass = 'col-12';
125
+ }
126
+ else if (key === 'start') {
127
+ klass = 'col-md-auto me-auto';
128
+ }
129
+ else if (key === 'end') {
130
+ klass = 'col-md-auto ms-auto';
131
+ }
132
+ else {
133
+ klass = 'col-md';
134
+ }
135
+
136
+ $( '<div/>', {
137
+ id: val.id || null,
138
+ "class": klass + ' ' + (val.className || '')
139
+ } )
140
+ .append( val.contents )
141
+ .appendTo( row );
142
+ } );
143
+ };
144
+
145
+
146
+ return DataTable;
147
+ }));