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.
- checksums.yaml +4 -4
- data/_config.yml +151 -0
- data/_data/base/footer.yml +32 -0
- data/_data/base/identity.yml +20 -0
- data/_data/base/navbar.yml +74 -0
- data/_data/base/navbar_absolute.yml +74 -0
- data/_data/base/navbar_component.yml +60 -0
- data/_data/download/cards.yml +148 -0
- data/_data/download/navbar.yml +48 -0
- data/_data/people/navbar.yml +34 -0
- data/_includes/base/announcements.html +6 -0
- data/_includes/base/breadcrumbs.html +13 -0
- data/_includes/base/footer.html +61 -0
- data/_includes/base/head.html +17 -0
- data/_includes/base/header.html +17 -0
- data/_includes/base/navbar.html +32 -0
- data/_includes/base/script.html +70 -0
- data/_includes/{toc-accordion.html → base/toc-accordion.html} +4 -4
- data/_includes/{toc.html → base/toc.html} +0 -0
- data/_includes/download/cards-body-convert.html +6 -8
- data/_includes/download/cards-body-doc.html +7 -4
- data/_includes/download/cards-body-eol.html +13 -4
- data/_includes/download/cards-body-screenshot.html +26 -0
- data/_includes/download/cards-body.html +6 -5
- data/_includes/download/cards-footer.html +0 -0
- data/_includes/download/cards-header-convert.html +7 -8
- data/_includes/download/cards-header-doc.html +7 -8
- data/_includes/download/cards-header-eol.html +7 -8
- data/_includes/download/cards-header-screenshot.html +8 -0
- data/_includes/download/cards-header.html +12 -10
- data/_includes/download/cards.html +54 -55
- data/_includes/home/header.html +1 -1
- data/_includes/home/planet.html +3 -6
- data/_includes/people/about.html +10 -10
- data/_includes/people/header.html +2 -2
- data/_includes/people/posts.html +10 -13
- data/_includes/people/projects.html +21 -17
- data/_includes/people/pubkeys.html +9 -7
- data/_includes/people/support.html +9 -9
- data/_layouts/base/default.html +31 -0
- data/_layouts/download/cards.html +7 -0
- data/_layouts/home.html +9 -11
- data/_layouts/people/default.html +20 -0
- data/_sass/base/_centos-lists.scss +132 -0
- data/_sass/base/_centos.scss +80 -0
- data/_sass/base/_variables.scss +24 -0
- data/_sass/bootstrap/_accordion.scss +9 -0
- data/_sass/bootstrap/_alert.scss +8 -11
- data/_sass/bootstrap/_button-group.scss +2 -2
- data/_sass/bootstrap/_buttons.scss +3 -3
- data/_sass/bootstrap/_card.scss +5 -0
- data/_sass/bootstrap/_carousel.scss +20 -2
- data/_sass/bootstrap/_close.scss +32 -9
- data/_sass/bootstrap/_dropdown.scss +1 -0
- data/_sass/bootstrap/_functions.scss +1 -1
- data/_sass/bootstrap/_grid.scss +6 -0
- data/_sass/bootstrap/_helpers.scss +2 -0
- data/_sass/bootstrap/_list-group.scss +12 -7
- data/_sass/bootstrap/_maps.scss +120 -0
- data/_sass/bootstrap/_mixins.scss +1 -2
- data/_sass/bootstrap/_nav.scss +40 -3
- data/_sass/bootstrap/_navbar.scss +15 -4
- data/_sass/bootstrap/_offcanvas.scss +4 -2
- data/_sass/bootstrap/_pagination.scss +1 -1
- data/_sass/bootstrap/_progress.scss +10 -1
- data/_sass/bootstrap/_reboot.scss +3 -3
- data/_sass/bootstrap/_root.scss +121 -10
- data/_sass/bootstrap/_tables.scss +18 -11
- data/_sass/bootstrap/_tooltip.scss +4 -5
- data/_sass/bootstrap/_utilities.scss +172 -13
- data/_sass/bootstrap/_variables-dark.scss +85 -0
- data/_sass/bootstrap/_variables.scss +262 -153
- data/_sass/bootstrap/bootstrap-grid.scss +1 -3
- data/_sass/bootstrap/bootstrap-reboot.scss +1 -0
- data/_sass/bootstrap/bootstrap-utilities.scss +1 -0
- data/_sass/bootstrap/bootstrap.scss +1 -0
- data/_sass/bootstrap/forms/_floating-labels.scss +22 -3
- data/_sass/bootstrap/forms/_form-check.scss +24 -11
- data/_sass/bootstrap/forms/_form-control.scss +23 -3
- data/_sass/bootstrap/forms/_form-select.scss +11 -2
- data/_sass/bootstrap/forms/_input-group.scss +1 -1
- data/_sass/bootstrap/helpers/_color-bg.scss +0 -2
- data/_sass/bootstrap/helpers/_colored-links.scss +20 -2
- data/_sass/bootstrap/helpers/_focus-ring.scss +5 -0
- data/_sass/bootstrap/helpers/_icon-link.scss +25 -0
- data/_sass/bootstrap/mixins/_alert.scss +4 -1
- data/_sass/bootstrap/mixins/_banner.scss +2 -4
- data/_sass/bootstrap/mixins/_caret.scss +30 -25
- data/_sass/bootstrap/mixins/_color-mode.scss +21 -0
- data/_sass/bootstrap/mixins/_forms.scss +8 -7
- data/_sass/bootstrap/mixins/_list-group.scss +2 -0
- data/_sass/bootstrap/mixins/_utilities.scss +1 -1
- data/_sass/bootstrap/mixins/_visually-hidden.scss +5 -1
- data/_sass/bootstrap/vendor/_rfs.scss +23 -29
- data/assets/css/dataTables.bootstrap5.css +19 -5
- data/assets/css/dataTables.bootstrap5.min.css +2 -2
- data/assets/css/stylesheet.min.scss +3 -17
- data/assets/icons/android-chrome-192.png +0 -0
- data/assets/icons/android-chrome-512.png +0 -0
- data/assets/icons/apple-touch-icon.png +0 -0
- data/assets/icons/favicon-16.png +0 -0
- data/assets/icons/favicon-32.png +0 -0
- data/assets/icons/favicon.ico +0 -0
- data/assets/icons/favicon.svg +1 -0
- data/assets/img/anaconda-symbolic.svg +0 -0
- data/assets/img/anaconda.svg +0 -0
- data/assets/img/centos-dynamicmsg-logo.svg +0 -0
- data/assets/img/centos-dynamicmsg-type.svg +0 -0
- data/assets/img/centos-dynamicmsg-whitelogo.svg +0 -0
- data/assets/img/centos-dynamicmsg-whitetype.svg +0 -0
- data/assets/img/centos-gdm-whitelogo.svg +0 -0
- data/assets/img/centos-ipa-whiteheader.svg +0 -0
- data/assets/img/centos-logo-2bits.svg +0 -0
- data/assets/img/centos-logo.svg +0 -0
- data/assets/img/centos-message-logo.svg +0 -0
- data/assets/img/centos-motif.png +0 -0
- data/assets/img/centos-poweredby-logo.svg +0 -0
- data/assets/img/centos-symbol-2bits.svg +0 -0
- data/assets/img/centos-symbol.svg +0 -0
- data/assets/img/centos-type.svg +0 -0
- data/assets/img/centos-vertical-logo.svg +0 -0
- data/assets/img/centos-vertical-message-logo.svg +0 -0
- data/assets/img/centos-whitelogo.svg +0 -0
- data/assets/img/download/centos-linux-7-2009-screenshot-n.png +0 -0
- data/assets/img/download/centos-stream-8-screenshot-n.png +0 -0
- data/assets/img/download/centos-stream-9-screenshot-n.png +0 -0
- data/assets/img/download/distribution-release-screenshot-n.png +0 -0
- data/assets/img/download/distribution-release-screenshot-n.svg +128 -0
- data/assets/img/people/YourUsername.svg +64 -0
- data/assets/img/people/screenshot.svg +135 -0
- data/assets/js/bootstrap.bundle.js +713 -1482
- data/assets/js/bootstrap.bundle.js.map +1 -1
- data/assets/js/bootstrap.bundle.min.js +3 -3
- data/assets/js/bootstrap.bundle.min.js.map +1 -1
- data/assets/js/bootstrap.esm.js +660 -1423
- data/assets/js/bootstrap.esm.js.map +1 -1
- data/assets/js/bootstrap.esm.min.js +3 -3
- data/assets/js/bootstrap.esm.min.js.map +1 -1
- data/assets/js/bootstrap.js +678 -1441
- data/assets/js/bootstrap.js.map +1 -1
- data/assets/js/bootstrap.min.js +3 -3
- data/assets/js/bootstrap.min.js.map +1 -1
- data/assets/js/dataTables.bootstrap5.min.js +1 -1
- data/assets/js/jquery.dataTables.min.js +4 -0
- data/assets/js/jquery.min.js +2 -2
- data/assets/js/jquery.slim.min.js +2 -2
- data/assets/js/vanilla-back-to-top.min.js +1 -0
- metadata +59 -192
- data/_data/aws-images.csv +0 -81
- data/_data/full-altarchlist.csv +0 -74
- data/_data/full-mirrorlist.csv +0 -609
- data/_includes/blog/header.html +0 -22
- data/_includes/breadcrumbs.html +0 -13
- data/_includes/default/alert-danger.html +0 -4
- data/_includes/default/alert-info.html +0 -4
- data/_includes/default/alert-success.html +0 -4
- data/_includes/default/alert-warning.html +0 -4
- data/_includes/default/figure.html +0 -3
- data/_includes/default/header.html +0 -10
- data/_includes/default/video.html +0 -3
- data/_includes/editbar.html +0 -43
- data/_includes/footer.html +0 -36
- data/_includes/head-datatables.html +0 -8
- data/_includes/head.html +0 -7
- data/_includes/header.html +0 -7
- data/_includes/navbar.html +0 -28
- data/_includes/post/header.html +0 -23
- data/_includes/search.html +0 -81
- data/_includes/top.html +0 -3
- data/_layouts/default-datatables.html +0 -35
- data/_layouts/default.html +0 -34
- data/_layouts/people.html +0 -59
- data/_sass/centos/_headings.scss +0 -17
- data/_sass/centos/_links.scss +0 -11
- data/_sass/centos/_sponsors.scss +0 -112
- data/_sass/centos/_variables.scss +0 -23
- data/_sass/fontawesome-free/_animated.scss +0 -153
- data/_sass/fontawesome-free/_bordered-pulled.scss +0 -20
- data/_sass/fontawesome-free/_core.scss +0 -43
- data/_sass/fontawesome-free/_fixed-width.scss +0 -7
- data/_sass/fontawesome-free/_functions.scss +0 -57
- data/_sass/fontawesome-free/_icons.scss +0 -9
- data/_sass/fontawesome-free/_list.scss +0 -18
- data/_sass/fontawesome-free/_mixins.scss +0 -75
- data/_sass/fontawesome-free/_rotated-flipped.scss +0 -31
- data/_sass/fontawesome-free/_screen-reader.scss +0 -14
- data/_sass/fontawesome-free/_shims.scss +0 -2042
- data/_sass/fontawesome-free/_sizing.scss +0 -16
- data/_sass/fontawesome-free/_stacked.scss +0 -32
- data/_sass/fontawesome-free/_variables.scss +0 -4957
- data/_sass/fontawesome-free/brands.scss +0 -30
- data/_sass/fontawesome-free/fontawesome.scss +0 -21
- data/_sass/fontawesome-free/regular.scss +0 -26
- data/_sass/fontawesome-free/solid.scss +0 -26
- data/_sass/fontawesome-free/v4-shims.scss +0 -11
- data/_sass/montserrat/_montserrat.scss +0 -79
- data/_sass/overpass-mono/_overpass-mono.scss +0 -33
- data/assets/img/people/username.png +0 -0
- data/assets/js/clipboard.js +0 -890
- data/assets/js/dataTables.bootstrap5.js +0 -200
- data/assets/js/dataTables.bootstrap5.min.mjs +0 -4
- data/assets/js/dataTables.bootstrap5.mjs +0 -164
- data/assets/js/jquery.js +0 -10993
- data/assets/js/jquery.min.map +0 -1
- data/assets/js/jquery.slim.js +0 -8894
- data/assets/js/jquery.slim.min.map +0 -1
- data/assets/webfonts/Montserrat-Black.woff +0 -0
- data/assets/webfonts/Montserrat-Black.woff2 +0 -0
- data/assets/webfonts/Montserrat-BlackItalic.woff +0 -0
- data/assets/webfonts/Montserrat-BlackItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-Bold.woff +0 -0
- data/assets/webfonts/Montserrat-Bold.woff2 +0 -0
- data/assets/webfonts/Montserrat-BoldItalic.woff +0 -0
- data/assets/webfonts/Montserrat-BoldItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-ExtraBold.woff +0 -0
- data/assets/webfonts/Montserrat-ExtraBold.woff2 +0 -0
- data/assets/webfonts/Montserrat-ExtraBoldItalic.woff +0 -0
- data/assets/webfonts/Montserrat-ExtraBoldItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-ExtraLight.woff +0 -0
- data/assets/webfonts/Montserrat-ExtraLight.woff2 +0 -0
- data/assets/webfonts/Montserrat-ExtraLightItalic.woff +0 -0
- data/assets/webfonts/Montserrat-ExtraLightItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-Italic.woff +0 -0
- data/assets/webfonts/Montserrat-Italic.woff2 +0 -0
- data/assets/webfonts/Montserrat-Light.woff +0 -0
- data/assets/webfonts/Montserrat-Light.woff2 +0 -0
- data/assets/webfonts/Montserrat-LightItalic.woff +0 -0
- data/assets/webfonts/Montserrat-LightItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-Medium.woff +0 -0
- data/assets/webfonts/Montserrat-Medium.woff2 +0 -0
- data/assets/webfonts/Montserrat-MediumItalic.woff +0 -0
- data/assets/webfonts/Montserrat-MediumItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-Regular.woff +0 -0
- data/assets/webfonts/Montserrat-Regular.woff2 +0 -0
- data/assets/webfonts/Montserrat-SemiBold.woff +0 -0
- data/assets/webfonts/Montserrat-SemiBold.woff2 +0 -0
- data/assets/webfonts/Montserrat-SemiBoldItalic.woff +0 -0
- data/assets/webfonts/Montserrat-SemiBoldItalic.woff2 +0 -0
- data/assets/webfonts/Montserrat-Thin.woff +0 -0
- data/assets/webfonts/Montserrat-Thin.woff2 +0 -0
- data/assets/webfonts/Montserrat-ThinItalic.woff +0 -0
- data/assets/webfonts/Montserrat-ThinItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Black.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Black.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-BlackItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-BlackItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Bold.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Bold.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-BoldItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-BoldItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraBold.woff +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraBold.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraBoldItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraBoldItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraLight.woff +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraLight.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraLightItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-ExtraLightItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Italic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Italic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Light.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Light.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-LightItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-LightItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Medium.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Medium.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-MediumItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-MediumItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Regular.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Regular.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-SemiBold.woff +0 -0
- data/assets/webfonts/MontserratAlternates-SemiBold.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-SemiBoldItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-SemiBoldItalic.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-Thin.woff +0 -0
- data/assets/webfonts/MontserratAlternates-Thin.woff2 +0 -0
- data/assets/webfonts/MontserratAlternates-ThinItalic.woff +0 -0
- data/assets/webfonts/MontserratAlternates-ThinItalic.woff2 +0 -0
- data/assets/webfonts/fa-brands-400.ttf +0 -0
- data/assets/webfonts/fa-brands-400.woff2 +0 -0
- data/assets/webfonts/fa-regular-400.ttf +0 -0
- data/assets/webfonts/fa-regular-400.woff2 +0 -0
- data/assets/webfonts/fa-solid-900.ttf +0 -0
- data/assets/webfonts/fa-solid-900.woff2 +0 -0
- data/assets/webfonts/fa-v4compatibility.ttf +0 -0
- data/assets/webfonts/fa-v4compatibility.woff2 +0 -0
- data/assets/webfonts/overpass-mono-bold.woff +0 -0
- data/assets/webfonts/overpass-mono-bold.woff2 +0 -0
- data/assets/webfonts/overpass-mono-light.woff +0 -0
- data/assets/webfonts/overpass-mono-light.woff2 +0 -0
- data/assets/webfonts/overpass-mono-regular.woff +0 -0
- data/assets/webfonts/overpass-mono-regular.woff2 +0 -0
- data/assets/webfonts/overpass-mono-semibold.woff +0 -0
- data/assets/webfonts/overpass-mono-semibold.woff2 +0 -0
- data/default.md +0 -165
- data/index.md +0 -9
- 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 = '…';
|
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="…",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 = '…';
|
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;
|