Dependency updates

Updated several dependencies and switch to different totp library.

- Switch oath with totp-lite
  oauth hasn't been updated in a long while and some dependencies could not be updated any more
  It now also validates a preseeding 0, as the previous library returned an int instead of a str which stripped a leading 0
- Updated rust to the current latest nightly (including build image)
- Updated bootstrap css and js
- Updated hadolint to latest version
- Updated default rust image from v1.53 to v1.54
- Updated new nightly build/clippy messages
This commit is contained in:
BlackDex
2021-08-22 13:46:48 +02:00
parent c666497130
commit 89b5f7c98d
14 changed files with 753 additions and 427 deletions

View File

@@ -1,5 +1,5 @@
/*!
* Native JavaScript for Bootstrap v4.0.2 (https://thednp.github.io/bootstrap.native/)
* Native JavaScript for Bootstrap v4.0.4 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2021 © dnp_theme
* Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)
*/
@@ -933,14 +933,14 @@
const self = this;
// initialization element
const { element } = self;
const { element, options } = self;
// set triggering elements
self.triggers = Array.from(document.querySelectorAll(collapseToggleSelector))
.filter((btn) => getTargetElement(btn) === element);
// set parent accordion
self.parent = queryElement(self.options.parent);
self.parent = queryElement(options.parent);
const { parent } = self;
// set initial state
@@ -1067,6 +1067,7 @@
const {
element, menu, originalClass, menuEnd, options,
} = self;
const { offset } = options;
const parent = element.parentElement;
// reset menu offset and position
@@ -1075,14 +1076,16 @@
removeClass(parent, 'position-static');
if (!show) {
const menuEndNow = hasClass(menu, dropdownMenuEndClass);
parent.className = originalClass.join(' ');
const menuAction = menuEnd && !hasClass(menu, dropdownMenuEndClass) ? addClass : removeClass;
menuAction(menu, dropdownMenuEndClass);
if (menuEndNow && !menuEnd) removeClass(menu, dropdownMenuEndClass);
else if (!menuEndNow && menuEnd) addClass(menu, dropdownMenuEndClass);
return;
}
const { offset } = options;
let positionClass = dropdownMenuClasses.find((c) => originalClass.includes(c));
// set initial position class
// take into account .btn-group parent as .dropdown
let positionClass = dropdownMenuClasses.find((c) => originalClass.includes(c)) || dropdownString;
let dropdownMargin = {
dropdown: [offset, 0, 0],
@@ -1125,8 +1128,6 @@
// dropup
const topExceed = targetBCR.top - menuDimensions.h < 0;
const btnGroup = parent.parentNode.closest('.btn-group,.btn-group-vertical');
// recompute position
if (horizontalClass.includes(positionClass) && leftFullExceed && rightFullExceed) {
positionClass = dropdownString;
@@ -1162,10 +1163,8 @@
// update dropdown / dropup to handle parent btn-group element
// as well as the dropdown-menu-end utility class
if (verticalClass.includes(positionClass)) {
const menuEndAction = rightExceed ? addClass : removeClass;
if (!btnGroup) menuEndAction(menu, dropdownMenuEndClass);
else if (leftExceed) addClass(parent, 'position-static');
if (!menuEnd && rightExceed) addClass(menu, dropdownMenuEndClass);
else if (menuEnd && leftExceed) removeClass(menu, dropdownMenuEndClass);
if (hasClass(menu, dropdownMenuEndClass)) {
Object.keys(dropdownPosition.menuEnd).forEach((p) => {
@@ -1185,6 +1184,7 @@
document[action]('focus', dropdownDismissHandler);
document[action]('keydown', dropdownPreventScroll);
document[action]('keyup', dropdownKeyHandler);
if (self.options.display === 'dynamic') {
window[action]('scroll', dropdownLayoutHandler, passiveHandler);
window[action]('resize', dropdownLayoutHandler, passiveHandler);
@@ -1197,7 +1197,7 @@
}
function getCurrentOpenDropdown() {
const currentParent = dropdownMenuClasses
const currentParent = dropdownMenuClasses.concat('btn-group')
.map((c) => document.getElementsByClassName(`${c} ${showClass}`))
.find((x) => x.length);
@@ -1333,7 +1333,7 @@
show(related) {
const self = this;
const currentParent = queryElement(dropdownMenuClasses.map((c) => `.${c}.${showClass}`).join(','));
const currentParent = queryElement(dropdownMenuClasses.concat('btn-group').map((c) => `.${c}.${showClass}`).join(','));
const currentElement = currentParent && queryElement(dropdownSelector, currentParent);
if (currentElement) currentElement[dropdownComponent].hide();
@@ -3169,9 +3169,8 @@
if (hideToastEvent.defaultPrevented) return;
clearTimeout(self.timer);
self.timer = setTimeout(() => closeToast(self), // Bugfix by BlackDex to get autohide with a delay working.
noTimer ? 10 : options.delay,
);
self.timer = setTimeout(() => closeToast(self),
noTimer ? 10 : options.delay);
}
}
@@ -3484,7 +3483,7 @@
constructor: Tooltip,
};
var version = "4.0.2";
var version = "4.0.4";
// import { alertInit } from '../components/alert-native.js';
// import { buttonInit } from '../components/button-native.js';

File diff suppressed because it is too large Load Diff