jekyll-theme-centos 2.2.1 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (297) hide show
  1. checksums.yaml +4 -4
  2. data/_config.yml +151 -0
  3. data/_data/base/footer.yml +32 -0
  4. data/_data/base/identity.yml +20 -0
  5. data/_data/base/navbar.yml +74 -0
  6. data/_data/base/navbar_absolute.yml +74 -0
  7. data/_data/base/navbar_component.yml +60 -0
  8. data/_data/download/cards.yml +148 -0
  9. data/_data/download/navbar.yml +48 -0
  10. data/_data/people/navbar.yml +34 -0
  11. data/_includes/base/announcements.html +6 -0
  12. data/_includes/base/breadcrumbs.html +13 -0
  13. data/_includes/base/footer.html +61 -0
  14. data/_includes/base/head.html +17 -0
  15. data/_includes/base/header.html +17 -0
  16. data/_includes/base/navbar.html +32 -0
  17. data/_includes/base/script.html +70 -0
  18. data/_includes/{toc-accordion.html → base/toc-accordion.html} +4 -4
  19. data/_includes/{toc.html → base/toc.html} +0 -0
  20. data/_includes/download/cards-body-convert.html +6 -8
  21. data/_includes/download/cards-body-doc.html +7 -4
  22. data/_includes/download/cards-body-eol.html +13 -4
  23. data/_includes/download/cards-body-screenshot.html +26 -0
  24. data/_includes/download/cards-body.html +6 -5
  25. data/_includes/download/cards-footer.html +0 -0
  26. data/_includes/download/cards-header-convert.html +7 -8
  27. data/_includes/download/cards-header-doc.html +7 -8
  28. data/_includes/download/cards-header-eol.html +7 -8
  29. data/_includes/download/cards-header-screenshot.html +8 -0
  30. data/_includes/download/cards-header.html +12 -10
  31. data/_includes/download/cards.html +54 -55
  32. data/_includes/home/header.html +1 -1
  33. data/_includes/home/planet.html +3 -6
  34. data/_includes/people/about.html +10 -10
  35. data/_includes/people/header.html +2 -2
  36. data/_includes/people/posts.html +10 -13
  37. data/_includes/people/projects.html +21 -17
  38. data/_includes/people/pubkeys.html +9 -7
  39. data/_includes/people/support.html +9 -9
  40. data/_layouts/base/default.html +31 -0
  41. data/_layouts/download/cards.html +7 -0
  42. data/_layouts/home.html +9 -11
  43. data/_layouts/people/default.html +20 -0
  44. data/_sass/base/_centos-lists.scss +132 -0
  45. data/_sass/base/_centos.scss +80 -0
  46. data/_sass/base/_variables.scss +24 -0
  47. data/_sass/bootstrap/_accordion.scss +9 -0
  48. data/_sass/bootstrap/_alert.scss +8 -11
  49. data/_sass/bootstrap/_button-group.scss +2 -2
  50. data/_sass/bootstrap/_buttons.scss +3 -3
  51. data/_sass/bootstrap/_card.scss +5 -0
  52. data/_sass/bootstrap/_carousel.scss +20 -2
  53. data/_sass/bootstrap/_close.scss +32 -9
  54. data/_sass/bootstrap/_dropdown.scss +1 -0
  55. data/_sass/bootstrap/_functions.scss +1 -1
  56. data/_sass/bootstrap/_grid.scss +6 -0
  57. data/_sass/bootstrap/_helpers.scss +2 -0
  58. data/_sass/bootstrap/_list-group.scss +12 -7
  59. data/_sass/bootstrap/_maps.scss +120 -0
  60. data/_sass/bootstrap/_mixins.scss +1 -2
  61. data/_sass/bootstrap/_nav.scss +40 -3
  62. data/_sass/bootstrap/_navbar.scss +15 -4
  63. data/_sass/bootstrap/_offcanvas.scss +4 -2
  64. data/_sass/bootstrap/_pagination.scss +1 -1
  65. data/_sass/bootstrap/_progress.scss +10 -1
  66. data/_sass/bootstrap/_reboot.scss +3 -3
  67. data/_sass/bootstrap/_root.scss +121 -10
  68. data/_sass/bootstrap/_tables.scss +18 -11
  69. data/_sass/bootstrap/_tooltip.scss +4 -5
  70. data/_sass/bootstrap/_utilities.scss +172 -13
  71. data/_sass/bootstrap/_variables-dark.scss +85 -0
  72. data/_sass/bootstrap/_variables.scss +262 -153
  73. data/_sass/bootstrap/bootstrap-grid.scss +1 -3
  74. data/_sass/bootstrap/bootstrap-reboot.scss +1 -0
  75. data/_sass/bootstrap/bootstrap-utilities.scss +1 -0
  76. data/_sass/bootstrap/bootstrap.scss +1 -0
  77. data/_sass/bootstrap/forms/_floating-labels.scss +22 -3
  78. data/_sass/bootstrap/forms/_form-check.scss +24 -11
  79. data/_sass/bootstrap/forms/_form-control.scss +23 -3
  80. data/_sass/bootstrap/forms/_form-select.scss +11 -2
  81. data/_sass/bootstrap/forms/_input-group.scss +1 -1
  82. data/_sass/bootstrap/helpers/_color-bg.scss +0 -2
  83. data/_sass/bootstrap/helpers/_colored-links.scss +20 -2
  84. data/_sass/bootstrap/helpers/_focus-ring.scss +5 -0
  85. data/_sass/bootstrap/helpers/_icon-link.scss +25 -0
  86. data/_sass/bootstrap/mixins/_alert.scss +4 -1
  87. data/_sass/bootstrap/mixins/_banner.scss +2 -4
  88. data/_sass/bootstrap/mixins/_caret.scss +30 -25
  89. data/_sass/bootstrap/mixins/_color-mode.scss +21 -0
  90. data/_sass/bootstrap/mixins/_forms.scss +8 -7
  91. data/_sass/bootstrap/mixins/_list-group.scss +2 -0
  92. data/_sass/bootstrap/mixins/_utilities.scss +1 -1
  93. data/_sass/bootstrap/mixins/_visually-hidden.scss +5 -1
  94. data/_sass/bootstrap/vendor/_rfs.scss +23 -29
  95. data/assets/css/dataTables.bootstrap5.css +19 -5
  96. data/assets/css/dataTables.bootstrap5.min.css +2 -2
  97. data/assets/css/stylesheet.min.scss +3 -17
  98. data/assets/icons/android-chrome-192.png +0 -0
  99. data/assets/icons/android-chrome-512.png +0 -0
  100. data/assets/icons/apple-touch-icon.png +0 -0
  101. data/assets/icons/favicon-16.png +0 -0
  102. data/assets/icons/favicon-32.png +0 -0
  103. data/assets/icons/favicon.ico +0 -0
  104. data/assets/icons/favicon.svg +1 -0
  105. data/assets/img/anaconda-symbolic.svg +0 -0
  106. data/assets/img/anaconda.svg +0 -0
  107. data/assets/img/centos-dynamicmsg-logo.svg +0 -0
  108. data/assets/img/centos-dynamicmsg-type.svg +0 -0
  109. data/assets/img/centos-dynamicmsg-whitelogo.svg +0 -0
  110. data/assets/img/centos-dynamicmsg-whitetype.svg +0 -0
  111. data/assets/img/centos-gdm-whitelogo.svg +0 -0
  112. data/assets/img/centos-ipa-whiteheader.svg +0 -0
  113. data/assets/img/centos-logo-2bits.svg +0 -0
  114. data/assets/img/centos-logo.svg +0 -0
  115. data/assets/img/centos-message-logo.svg +0 -0
  116. data/assets/img/centos-motif.png +0 -0
  117. data/assets/img/centos-poweredby-logo.svg +0 -0
  118. data/assets/img/centos-symbol-2bits.svg +0 -0
  119. data/assets/img/centos-symbol.svg +0 -0
  120. data/assets/img/centos-type.svg +0 -0
  121. data/assets/img/centos-vertical-logo.svg +0 -0
  122. data/assets/img/centos-vertical-message-logo.svg +0 -0
  123. data/assets/img/centos-whitelogo.svg +0 -0
  124. data/assets/img/download/centos-linux-7-2009-screenshot-n.png +0 -0
  125. data/assets/img/download/centos-stream-8-screenshot-n.png +0 -0
  126. data/assets/img/download/centos-stream-9-screenshot-n.png +0 -0
  127. data/assets/img/download/distribution-release-screenshot-n.png +0 -0
  128. data/assets/img/download/distribution-release-screenshot-n.svg +128 -0
  129. data/assets/img/people/YourUsername.svg +64 -0
  130. data/assets/img/people/screenshot.svg +135 -0
  131. data/assets/js/bootstrap.bundle.js +713 -1482
  132. data/assets/js/bootstrap.bundle.js.map +1 -1
  133. data/assets/js/bootstrap.bundle.min.js +3 -3
  134. data/assets/js/bootstrap.bundle.min.js.map +1 -1
  135. data/assets/js/bootstrap.esm.js +660 -1423
  136. data/assets/js/bootstrap.esm.js.map +1 -1
  137. data/assets/js/bootstrap.esm.min.js +3 -3
  138. data/assets/js/bootstrap.esm.min.js.map +1 -1
  139. data/assets/js/bootstrap.js +678 -1441
  140. data/assets/js/bootstrap.js.map +1 -1
  141. data/assets/js/bootstrap.min.js +3 -3
  142. data/assets/js/bootstrap.min.js.map +1 -1
  143. data/assets/js/dataTables.bootstrap5.min.js +1 -1
  144. data/assets/js/jquery.dataTables.min.js +4 -0
  145. data/assets/js/jquery.min.js +2 -2
  146. data/assets/js/jquery.slim.min.js +2 -2
  147. data/assets/js/vanilla-back-to-top.min.js +1 -0
  148. metadata +59 -192
  149. data/_data/aws-images.csv +0 -81
  150. data/_data/full-altarchlist.csv +0 -74
  151. data/_data/full-mirrorlist.csv +0 -609
  152. data/_includes/blog/header.html +0 -22
  153. data/_includes/breadcrumbs.html +0 -13
  154. data/_includes/default/alert-danger.html +0 -4
  155. data/_includes/default/alert-info.html +0 -4
  156. data/_includes/default/alert-success.html +0 -4
  157. data/_includes/default/alert-warning.html +0 -4
  158. data/_includes/default/figure.html +0 -3
  159. data/_includes/default/header.html +0 -10
  160. data/_includes/default/video.html +0 -3
  161. data/_includes/editbar.html +0 -43
  162. data/_includes/footer.html +0 -36
  163. data/_includes/head-datatables.html +0 -8
  164. data/_includes/head.html +0 -7
  165. data/_includes/header.html +0 -7
  166. data/_includes/navbar.html +0 -28
  167. data/_includes/post/header.html +0 -23
  168. data/_includes/search.html +0 -81
  169. data/_includes/top.html +0 -3
  170. data/_layouts/default-datatables.html +0 -35
  171. data/_layouts/default.html +0 -34
  172. data/_layouts/people.html +0 -59
  173. data/_sass/centos/_headings.scss +0 -17
  174. data/_sass/centos/_links.scss +0 -11
  175. data/_sass/centos/_sponsors.scss +0 -112
  176. data/_sass/centos/_variables.scss +0 -23
  177. data/_sass/fontawesome-free/_animated.scss +0 -153
  178. data/_sass/fontawesome-free/_bordered-pulled.scss +0 -20
  179. data/_sass/fontawesome-free/_core.scss +0 -43
  180. data/_sass/fontawesome-free/_fixed-width.scss +0 -7
  181. data/_sass/fontawesome-free/_functions.scss +0 -57
  182. data/_sass/fontawesome-free/_icons.scss +0 -9
  183. data/_sass/fontawesome-free/_list.scss +0 -18
  184. data/_sass/fontawesome-free/_mixins.scss +0 -75
  185. data/_sass/fontawesome-free/_rotated-flipped.scss +0 -31
  186. data/_sass/fontawesome-free/_screen-reader.scss +0 -14
  187. data/_sass/fontawesome-free/_shims.scss +0 -2042
  188. data/_sass/fontawesome-free/_sizing.scss +0 -16
  189. data/_sass/fontawesome-free/_stacked.scss +0 -32
  190. data/_sass/fontawesome-free/_variables.scss +0 -4957
  191. data/_sass/fontawesome-free/brands.scss +0 -30
  192. data/_sass/fontawesome-free/fontawesome.scss +0 -21
  193. data/_sass/fontawesome-free/regular.scss +0 -26
  194. data/_sass/fontawesome-free/solid.scss +0 -26
  195. data/_sass/fontawesome-free/v4-shims.scss +0 -11
  196. data/_sass/montserrat/_montserrat.scss +0 -79
  197. data/_sass/overpass-mono/_overpass-mono.scss +0 -33
  198. data/assets/img/people/username.png +0 -0
  199. data/assets/js/clipboard.js +0 -890
  200. data/assets/js/dataTables.bootstrap5.js +0 -200
  201. data/assets/js/dataTables.bootstrap5.min.mjs +0 -4
  202. data/assets/js/dataTables.bootstrap5.mjs +0 -164
  203. data/assets/js/jquery.js +0 -10993
  204. data/assets/js/jquery.min.map +0 -1
  205. data/assets/js/jquery.slim.js +0 -8894
  206. data/assets/js/jquery.slim.min.map +0 -1
  207. data/assets/webfonts/Montserrat-Black.woff +0 -0
  208. data/assets/webfonts/Montserrat-Black.woff2 +0 -0
  209. data/assets/webfonts/Montserrat-BlackItalic.woff +0 -0
  210. data/assets/webfonts/Montserrat-BlackItalic.woff2 +0 -0
  211. data/assets/webfonts/Montserrat-Bold.woff +0 -0
  212. data/assets/webfonts/Montserrat-Bold.woff2 +0 -0
  213. data/assets/webfonts/Montserrat-BoldItalic.woff +0 -0
  214. data/assets/webfonts/Montserrat-BoldItalic.woff2 +0 -0
  215. data/assets/webfonts/Montserrat-ExtraBold.woff +0 -0
  216. data/assets/webfonts/Montserrat-ExtraBold.woff2 +0 -0
  217. data/assets/webfonts/Montserrat-ExtraBoldItalic.woff +0 -0
  218. data/assets/webfonts/Montserrat-ExtraBoldItalic.woff2 +0 -0
  219. data/assets/webfonts/Montserrat-ExtraLight.woff +0 -0
  220. data/assets/webfonts/Montserrat-ExtraLight.woff2 +0 -0
  221. data/assets/webfonts/Montserrat-ExtraLightItalic.woff +0 -0
  222. data/assets/webfonts/Montserrat-ExtraLightItalic.woff2 +0 -0
  223. data/assets/webfonts/Montserrat-Italic.woff +0 -0
  224. data/assets/webfonts/Montserrat-Italic.woff2 +0 -0
  225. data/assets/webfonts/Montserrat-Light.woff +0 -0
  226. data/assets/webfonts/Montserrat-Light.woff2 +0 -0
  227. data/assets/webfonts/Montserrat-LightItalic.woff +0 -0
  228. data/assets/webfonts/Montserrat-LightItalic.woff2 +0 -0
  229. data/assets/webfonts/Montserrat-Medium.woff +0 -0
  230. data/assets/webfonts/Montserrat-Medium.woff2 +0 -0
  231. data/assets/webfonts/Montserrat-MediumItalic.woff +0 -0
  232. data/assets/webfonts/Montserrat-MediumItalic.woff2 +0 -0
  233. data/assets/webfonts/Montserrat-Regular.woff +0 -0
  234. data/assets/webfonts/Montserrat-Regular.woff2 +0 -0
  235. data/assets/webfonts/Montserrat-SemiBold.woff +0 -0
  236. data/assets/webfonts/Montserrat-SemiBold.woff2 +0 -0
  237. data/assets/webfonts/Montserrat-SemiBoldItalic.woff +0 -0
  238. data/assets/webfonts/Montserrat-SemiBoldItalic.woff2 +0 -0
  239. data/assets/webfonts/Montserrat-Thin.woff +0 -0
  240. data/assets/webfonts/Montserrat-Thin.woff2 +0 -0
  241. data/assets/webfonts/Montserrat-ThinItalic.woff +0 -0
  242. data/assets/webfonts/Montserrat-ThinItalic.woff2 +0 -0
  243. data/assets/webfonts/MontserratAlternates-Black.woff +0 -0
  244. data/assets/webfonts/MontserratAlternates-Black.woff2 +0 -0
  245. data/assets/webfonts/MontserratAlternates-BlackItalic.woff +0 -0
  246. data/assets/webfonts/MontserratAlternates-BlackItalic.woff2 +0 -0
  247. data/assets/webfonts/MontserratAlternates-Bold.woff +0 -0
  248. data/assets/webfonts/MontserratAlternates-Bold.woff2 +0 -0
  249. data/assets/webfonts/MontserratAlternates-BoldItalic.woff +0 -0
  250. data/assets/webfonts/MontserratAlternates-BoldItalic.woff2 +0 -0
  251. data/assets/webfonts/MontserratAlternates-ExtraBold.woff +0 -0
  252. data/assets/webfonts/MontserratAlternates-ExtraBold.woff2 +0 -0
  253. data/assets/webfonts/MontserratAlternates-ExtraBoldItalic.woff +0 -0
  254. data/assets/webfonts/MontserratAlternates-ExtraBoldItalic.woff2 +0 -0
  255. data/assets/webfonts/MontserratAlternates-ExtraLight.woff +0 -0
  256. data/assets/webfonts/MontserratAlternates-ExtraLight.woff2 +0 -0
  257. data/assets/webfonts/MontserratAlternates-ExtraLightItalic.woff +0 -0
  258. data/assets/webfonts/MontserratAlternates-ExtraLightItalic.woff2 +0 -0
  259. data/assets/webfonts/MontserratAlternates-Italic.woff +0 -0
  260. data/assets/webfonts/MontserratAlternates-Italic.woff2 +0 -0
  261. data/assets/webfonts/MontserratAlternates-Light.woff +0 -0
  262. data/assets/webfonts/MontserratAlternates-Light.woff2 +0 -0
  263. data/assets/webfonts/MontserratAlternates-LightItalic.woff +0 -0
  264. data/assets/webfonts/MontserratAlternates-LightItalic.woff2 +0 -0
  265. data/assets/webfonts/MontserratAlternates-Medium.woff +0 -0
  266. data/assets/webfonts/MontserratAlternates-Medium.woff2 +0 -0
  267. data/assets/webfonts/MontserratAlternates-MediumItalic.woff +0 -0
  268. data/assets/webfonts/MontserratAlternates-MediumItalic.woff2 +0 -0
  269. data/assets/webfonts/MontserratAlternates-Regular.woff +0 -0
  270. data/assets/webfonts/MontserratAlternates-Regular.woff2 +0 -0
  271. data/assets/webfonts/MontserratAlternates-SemiBold.woff +0 -0
  272. data/assets/webfonts/MontserratAlternates-SemiBold.woff2 +0 -0
  273. data/assets/webfonts/MontserratAlternates-SemiBoldItalic.woff +0 -0
  274. data/assets/webfonts/MontserratAlternates-SemiBoldItalic.woff2 +0 -0
  275. data/assets/webfonts/MontserratAlternates-Thin.woff +0 -0
  276. data/assets/webfonts/MontserratAlternates-Thin.woff2 +0 -0
  277. data/assets/webfonts/MontserratAlternates-ThinItalic.woff +0 -0
  278. data/assets/webfonts/MontserratAlternates-ThinItalic.woff2 +0 -0
  279. data/assets/webfonts/fa-brands-400.ttf +0 -0
  280. data/assets/webfonts/fa-brands-400.woff2 +0 -0
  281. data/assets/webfonts/fa-regular-400.ttf +0 -0
  282. data/assets/webfonts/fa-regular-400.woff2 +0 -0
  283. data/assets/webfonts/fa-solid-900.ttf +0 -0
  284. data/assets/webfonts/fa-solid-900.woff2 +0 -0
  285. data/assets/webfonts/fa-v4compatibility.ttf +0 -0
  286. data/assets/webfonts/fa-v4compatibility.woff2 +0 -0
  287. data/assets/webfonts/overpass-mono-bold.woff +0 -0
  288. data/assets/webfonts/overpass-mono-bold.woff2 +0 -0
  289. data/assets/webfonts/overpass-mono-light.woff +0 -0
  290. data/assets/webfonts/overpass-mono-light.woff2 +0 -0
  291. data/assets/webfonts/overpass-mono-regular.woff +0 -0
  292. data/assets/webfonts/overpass-mono-regular.woff2 +0 -0
  293. data/assets/webfonts/overpass-mono-semibold.woff +0 -0
  294. data/assets/webfonts/overpass-mono-semibold.woff2 +0 -0
  295. data/default.md +0 -165
  296. data/index.md +0 -9
  297. data/people.md +0 -63
@@ -1,200 +0,0 @@
1
- /*! DataTables Bootstrap 5 integration
2
- * 2020 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
- module.exports = function (root, $) {
15
- if ( ! root ) {
16
- // CommonJS environments without a window global must pass a
17
- // root. This will give an error otherwise
18
- root = window;
19
- }
20
-
21
- if ( ! $ ) {
22
- $ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window
23
- require('jquery') :
24
- require('jquery')( root );
25
- }
26
-
27
- if ( ! $.fn.dataTable ) {
28
- require('datatables.net')(root, $);
29
- }
30
-
31
-
32
- return factory( $, root, root.document );
33
- };
34
- }
35
- else {
36
- // Browser
37
- factory( jQuery, window, document );
38
- }
39
- }(function( $, window, document, undefined ) {
40
- 'use strict';
41
- var DataTable = $.fn.dataTable;
42
-
43
-
44
-
45
- /**
46
- * DataTables integration for Bootstrap 5. This requires Bootstrap 5 and
47
- * DataTables 1.10 or newer.
48
- *
49
- * This file sets the defaults and adds options to DataTables to style its
50
- * controls using Bootstrap. See http://datatables.net/manual/styling/bootstrap
51
- * for further information.
52
- */
53
-
54
- /* Set the defaults for DataTables initialisation */
55
- $.extend( true, DataTable.defaults, {
56
- dom:
57
- "<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>>" +
58
- "<'row dt-row'<'col-sm-12'tr>>" +
59
- "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
60
- renderer: 'bootstrap'
61
- } );
62
-
63
-
64
- /* Default class modification */
65
- $.extend( DataTable.ext.classes, {
66
- sWrapper: "dataTables_wrapper dt-bootstrap5",
67
- sFilterInput: "form-control form-control-sm",
68
- sLengthSelect: "form-select form-select-sm",
69
- sProcessing: "dataTables_processing card",
70
- sPageButton: "paginate_button page-item"
71
- } );
72
-
73
-
74
- /* Bootstrap paging button renderer */
75
- DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, buttons, page, pages ) {
76
- var api = new DataTable.Api( settings );
77
- var classes = settings.oClasses;
78
- var lang = settings.oLanguage.oPaginate;
79
- var aria = settings.oLanguage.oAria.paginate || {};
80
- var btnDisplay, btnClass;
81
-
82
- var attach = function( container, buttons ) {
83
- var i, ien, node, button;
84
- var clickHandler = function ( e ) {
85
- e.preventDefault();
86
- if ( !$(e.currentTarget).hasClass('disabled') && api.page() != e.data.action ) {
87
- api.page( e.data.action ).draw( 'page' );
88
- }
89
- };
90
-
91
- for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
92
- button = buttons[i];
93
-
94
- if ( Array.isArray( button ) ) {
95
- attach( container, button );
96
- }
97
- else {
98
- btnDisplay = '';
99
- btnClass = '';
100
-
101
- switch ( button ) {
102
- case 'ellipsis':
103
- btnDisplay = '&#x2026;';
104
- btnClass = 'disabled';
105
- break;
106
-
107
- case 'first':
108
- btnDisplay = lang.sFirst;
109
- btnClass = button + (page > 0 ?
110
- '' : ' disabled');
111
- break;
112
-
113
- case 'previous':
114
- btnDisplay = lang.sPrevious;
115
- btnClass = button + (page > 0 ?
116
- '' : ' disabled');
117
- break;
118
-
119
- case 'next':
120
- btnDisplay = lang.sNext;
121
- btnClass = button + (page < pages-1 ?
122
- '' : ' disabled');
123
- break;
124
-
125
- case 'last':
126
- btnDisplay = lang.sLast;
127
- btnClass = button + (page < pages-1 ?
128
- '' : ' disabled');
129
- break;
130
-
131
- default:
132
- btnDisplay = button + 1;
133
- btnClass = page === button ?
134
- 'active' : '';
135
- break;
136
- }
137
-
138
- if ( btnDisplay ) {
139
- node = $('<li>', {
140
- 'class': classes.sPageButton+' '+btnClass,
141
- 'id': idx === 0 && typeof button === 'string' ?
142
- settings.sTableId +'_'+ button :
143
- null
144
- } )
145
- .append( $('<a>', {
146
- 'href': '#',
147
- 'aria-controls': settings.sTableId,
148
- 'aria-label': aria[ button ],
149
- 'data-dt-idx': button,
150
- 'tabindex': settings.iTabIndex,
151
- 'class': 'page-link'
152
- } )
153
- .html( btnDisplay )
154
- )
155
- .appendTo( container );
156
-
157
- settings.oApi._fnBindAction(
158
- node, {action: button}, clickHandler
159
- );
160
- }
161
- }
162
- }
163
- };
164
-
165
- var hostEl = $(host);
166
- // IE9 throws an 'unknown error' if document.activeElement is used
167
- // inside an iframe or frame.
168
- var activeEl;
169
-
170
- try {
171
- // Because this approach is destroying and recreating the paging
172
- // elements, focus is lost on the select button which is bad for
173
- // accessibility. So we want to restore focus once the draw has
174
- // completed
175
- activeEl = hostEl.find(document.activeElement).data('dt-idx');
176
- }
177
- catch (e) {}
178
-
179
- var paginationEl = hostEl.children('ul.pagination');
180
-
181
- if (paginationEl.length) {
182
- paginationEl.empty();
183
- }
184
- else {
185
- paginationEl = hostEl.html('<ul/>').children('ul').addClass('pagination');
186
- }
187
-
188
- attach(
189
- paginationEl,
190
- buttons
191
- );
192
-
193
- if ( activeEl !== undefined ) {
194
- hostEl.find('[data-dt-idx='+activeEl+']').trigger('focus');
195
- }
196
- };
197
-
198
-
199
- return DataTable;
200
- }));
@@ -1,4 +0,0 @@
1
- /*! DataTables Bootstrap 5 integration
2
- * 2020 SpryMedia Ltd - datatables.net/license
3
- */
4
- import $ from"jquery";import DataTable from"datatables.net";$.extend(!0,DataTable.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row dt-row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),$.extend(DataTable.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap5",sFilterInput:"form-control form-control-sm",sLengthSelect:"form-select form-select-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),DataTable.ext.renderer.pageButton.bootstrap=function(i,a,d,e,n,c){function p(a,e){function t(a){a.preventDefault(),$(a.currentTarget).hasClass("disabled")||m.page()==a.data.action||m.page(a.data.action).draw("page")}for(var s,r,l=0,o=e.length;l<o;l++)if(r=e[l],Array.isArray(r))p(a,r);else{switch(g=b="",r){case"ellipsis":b="&#x2026;",g="disabled";break;case"first":b=f.sFirst,g=r+(0<n?"":" disabled");break;case"previous":b=f.sPrevious,g=r+(0<n?"":" disabled");break;case"next":b=f.sNext,g=r+(n<c-1?"":" disabled");break;case"last":b=f.sLast,g=r+(n<c-1?"":" disabled");break;default:b=r+1,g=n===r?"active":""}b&&(s=$("<li>",{class:u.sPageButton+" "+g,id:0===d&&"string"==typeof r?i.sTableId+"_"+r:null}).append($("<a>",{href:"#","aria-controls":i.sTableId,"aria-label":x[r],"data-dt-idx":r,tabindex:i.iTabIndex,class:"page-link"}).html(b)).appendTo(a),i.oApi._fnBindAction(s,{action:r},t))}}var b,g,t,m=new DataTable.Api(i),u=i.oClasses,f=i.oLanguage.oPaginate,x=i.oLanguage.oAria.paginate||{},a=$(a);try{t=a.find(document.activeElement).data("dt-idx")}catch(a){}var s=a.children("ul.pagination");s.length?s.empty():s=a.html("<ul/>").children("ul").addClass("pagination"),p(s,e),void 0!==t&&a.find("[data-dt-idx="+t+"]").trigger("focus")};export default DataTable;
@@ -1,164 +0,0 @@
1
- /*! DataTables Bootstrap 5 integration
2
- * 2020 SpryMedia Ltd - datatables.net/license
3
- */
4
-
5
- import $ from 'jquery';
6
- import DataTable from 'datatables.net';
7
-
8
-
9
-
10
- /**
11
- * DataTables integration for Bootstrap 5. This requires Bootstrap 5 and
12
- * DataTables 1.10 or newer.
13
- *
14
- * This file sets the defaults and adds options to DataTables to style its
15
- * controls using Bootstrap. See http://datatables.net/manual/styling/bootstrap
16
- * for further information.
17
- */
18
-
19
- /* Set the defaults for DataTables initialisation */
20
- $.extend( true, DataTable.defaults, {
21
- dom:
22
- "<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>>" +
23
- "<'row dt-row'<'col-sm-12'tr>>" +
24
- "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
25
- renderer: 'bootstrap'
26
- } );
27
-
28
-
29
- /* Default class modification */
30
- $.extend( DataTable.ext.classes, {
31
- sWrapper: "dataTables_wrapper dt-bootstrap5",
32
- sFilterInput: "form-control form-control-sm",
33
- sLengthSelect: "form-select form-select-sm",
34
- sProcessing: "dataTables_processing card",
35
- sPageButton: "paginate_button page-item"
36
- } );
37
-
38
-
39
- /* Bootstrap paging button renderer */
40
- DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, buttons, page, pages ) {
41
- var api = new DataTable.Api( settings );
42
- var classes = settings.oClasses;
43
- var lang = settings.oLanguage.oPaginate;
44
- var aria = settings.oLanguage.oAria.paginate || {};
45
- var btnDisplay, btnClass;
46
-
47
- var attach = function( container, buttons ) {
48
- var i, ien, node, button;
49
- var clickHandler = function ( e ) {
50
- e.preventDefault();
51
- if ( !$(e.currentTarget).hasClass('disabled') && api.page() != e.data.action ) {
52
- api.page( e.data.action ).draw( 'page' );
53
- }
54
- };
55
-
56
- for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
57
- button = buttons[i];
58
-
59
- if ( Array.isArray( button ) ) {
60
- attach( container, button );
61
- }
62
- else {
63
- btnDisplay = '';
64
- btnClass = '';
65
-
66
- switch ( button ) {
67
- case 'ellipsis':
68
- btnDisplay = '&#x2026;';
69
- btnClass = 'disabled';
70
- break;
71
-
72
- case 'first':
73
- btnDisplay = lang.sFirst;
74
- btnClass = button + (page > 0 ?
75
- '' : ' disabled');
76
- break;
77
-
78
- case 'previous':
79
- btnDisplay = lang.sPrevious;
80
- btnClass = button + (page > 0 ?
81
- '' : ' disabled');
82
- break;
83
-
84
- case 'next':
85
- btnDisplay = lang.sNext;
86
- btnClass = button + (page < pages-1 ?
87
- '' : ' disabled');
88
- break;
89
-
90
- case 'last':
91
- btnDisplay = lang.sLast;
92
- btnClass = button + (page < pages-1 ?
93
- '' : ' disabled');
94
- break;
95
-
96
- default:
97
- btnDisplay = button + 1;
98
- btnClass = page === button ?
99
- 'active' : '';
100
- break;
101
- }
102
-
103
- if ( btnDisplay ) {
104
- node = $('<li>', {
105
- 'class': classes.sPageButton+' '+btnClass,
106
- 'id': idx === 0 && typeof button === 'string' ?
107
- settings.sTableId +'_'+ button :
108
- null
109
- } )
110
- .append( $('<a>', {
111
- 'href': '#',
112
- 'aria-controls': settings.sTableId,
113
- 'aria-label': aria[ button ],
114
- 'data-dt-idx': button,
115
- 'tabindex': settings.iTabIndex,
116
- 'class': 'page-link'
117
- } )
118
- .html( btnDisplay )
119
- )
120
- .appendTo( container );
121
-
122
- settings.oApi._fnBindAction(
123
- node, {action: button}, clickHandler
124
- );
125
- }
126
- }
127
- }
128
- };
129
-
130
- var hostEl = $(host);
131
- // IE9 throws an 'unknown error' if document.activeElement is used
132
- // inside an iframe or frame.
133
- var activeEl;
134
-
135
- try {
136
- // Because this approach is destroying and recreating the paging
137
- // elements, focus is lost on the select button which is bad for
138
- // accessibility. So we want to restore focus once the draw has
139
- // completed
140
- activeEl = hostEl.find(document.activeElement).data('dt-idx');
141
- }
142
- catch (e) {}
143
-
144
- var paginationEl = hostEl.children('ul.pagination');
145
-
146
- if (paginationEl.length) {
147
- paginationEl.empty();
148
- }
149
- else {
150
- paginationEl = hostEl.html('<ul/>').children('ul').addClass('pagination');
151
- }
152
-
153
- attach(
154
- paginationEl,
155
- buttons
156
- );
157
-
158
- if ( activeEl !== undefined ) {
159
- hostEl.find('[data-dt-idx='+activeEl+']').trigger('focus');
160
- }
161
- };
162
-
163
-
164
- export default DataTable;