mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-24 18:59:21 -07:00
Update crates, web-vault, js, workflows (#6749)
- Updated all crates - Updated web-vault to v2025.12.2 - Updated all JavaScript files - Updated all GitHub Action Workflows Also added the `concurrency` option to all workflows. Signed-off-by: BlackDex <black.dex@gmail.com>
This commit is contained in:
committed by
GitHub
parent
4737192853
commit
cc80f689ed
82
src/static/scripts/datatables.js
vendored
82
src/static/scripts/datatables.js
vendored
@@ -4,13 +4,13 @@
|
||||
*
|
||||
* To rebuild or modify this file with the latest versions of the included
|
||||
* software please visit:
|
||||
* https://datatables.net/download/#bs5/dt-2.3.5
|
||||
* https://datatables.net/download/#bs5/dt-2.3.6
|
||||
*
|
||||
* Included libraries:
|
||||
* DataTables 2.3.5
|
||||
* DataTables 2.3.6
|
||||
*/
|
||||
|
||||
/*! DataTables 2.3.5
|
||||
/*! DataTables 2.3.6
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
"sDestroyWidth": $this[0].style.width,
|
||||
"sInstance": sId,
|
||||
"sTableId": sId,
|
||||
colgroup: $('<colgroup>').prependTo(this),
|
||||
colgroup: $('<colgroup>'),
|
||||
fastData: function (row, column, type) {
|
||||
return _fnGetCellData(oSettings, row, column, type);
|
||||
}
|
||||
@@ -259,6 +259,7 @@
|
||||
"orderHandler",
|
||||
"titleRow",
|
||||
"typeDetect",
|
||||
"columnTitleTag",
|
||||
[ "iCookieDuration", "iStateDuration" ], // backwards compat
|
||||
[ "oSearch", "oPreviousSearch" ],
|
||||
[ "aoSearchCols", "aoPreSearchCols" ],
|
||||
@@ -423,7 +424,7 @@
|
||||
|
||||
if ( oSettings.caption ) {
|
||||
if ( caption.length === 0 ) {
|
||||
caption = $('<caption/>').appendTo( $this );
|
||||
caption = $('<caption/>').prependTo( $this );
|
||||
}
|
||||
|
||||
caption.html( oSettings.caption );
|
||||
@@ -436,6 +437,14 @@
|
||||
oSettings.captionNode = caption[0];
|
||||
}
|
||||
|
||||
// Place the colgroup element in the correct location for the HTML structure
|
||||
if (caption.length) {
|
||||
oSettings.colgroup.insertAfter(caption);
|
||||
}
|
||||
else {
|
||||
oSettings.colgroup.prependTo(oSettings.nTable);
|
||||
}
|
||||
|
||||
if ( thead.length === 0 ) {
|
||||
thead = $('<thead/>').appendTo($this);
|
||||
}
|
||||
@@ -451,7 +460,7 @@
|
||||
if ( tfoot.length === 0 ) {
|
||||
// If we are a scrolling table, and no footer has been given, then we need to create
|
||||
// a tfoot element for the caption element to be appended to
|
||||
tfoot = $('<tfoot/>').appendTo($this);
|
||||
tfoot = $('<tfoot/>').insertAfter(thead);
|
||||
}
|
||||
oSettings.nTFoot = tfoot[0];
|
||||
|
||||
@@ -516,7 +525,7 @@
|
||||
*
|
||||
* @type string
|
||||
*/
|
||||
builder: "bs5/dt-2.3.5",
|
||||
builder: "bs5/dt-2.3.6",
|
||||
|
||||
/**
|
||||
* Buttons. For use with the Buttons extension for DataTables. This is
|
||||
@@ -1292,7 +1301,7 @@
|
||||
};
|
||||
|
||||
// Replaceable function in api.util
|
||||
var _stripHtml = function (input) {
|
||||
var _stripHtml = function (input, replacement) {
|
||||
if (! input || typeof input !== 'string') {
|
||||
return input;
|
||||
}
|
||||
@@ -1304,7 +1313,7 @@
|
||||
|
||||
var previous;
|
||||
|
||||
input = input.replace(_re_html, ''); // Complete tags
|
||||
input = input.replace(_re_html, replacement || ''); // Complete tags
|
||||
|
||||
// Safety for incomplete script tag - use do / while to ensure that
|
||||
// we get all instances
|
||||
@@ -1769,7 +1778,7 @@
|
||||
}
|
||||
},
|
||||
|
||||
stripHtml: function (mixed) {
|
||||
stripHtml: function (mixed, replacement) {
|
||||
var type = typeof mixed;
|
||||
|
||||
if (type === 'function') {
|
||||
@@ -1777,7 +1786,7 @@
|
||||
return;
|
||||
}
|
||||
else if (type === 'string') {
|
||||
return _stripHtml(mixed);
|
||||
return _stripHtml(mixed, replacement);
|
||||
}
|
||||
return mixed;
|
||||
},
|
||||
@@ -3379,7 +3388,7 @@
|
||||
colspan++;
|
||||
}
|
||||
|
||||
var titleSpan = $('span.dt-column-title', cell);
|
||||
var titleSpan = $('.dt-column-title', cell);
|
||||
|
||||
structure[row][column] = {
|
||||
cell: cell,
|
||||
@@ -4093,8 +4102,8 @@
|
||||
}
|
||||
|
||||
// Wrap the column title so we can write to it in future
|
||||
if ( $('span.dt-column-title', cell).length === 0) {
|
||||
$('<span>')
|
||||
if ( $('.dt-column-title', cell).length === 0) {
|
||||
$(document.createElement(settings.columnTitleTag))
|
||||
.addClass('dt-column-title')
|
||||
.append(cell.childNodes)
|
||||
.appendTo(cell);
|
||||
@@ -4105,9 +4114,9 @@
|
||||
isHeader &&
|
||||
jqCell.filter(':not([data-dt-order=disable])').length !== 0 &&
|
||||
jqCell.parent(':not([data-dt-order=disable])').length !== 0 &&
|
||||
$('span.dt-column-order', cell).length === 0
|
||||
$('.dt-column-order', cell).length === 0
|
||||
) {
|
||||
$('<span>')
|
||||
$(document.createElement(settings.columnTitleTag))
|
||||
.addClass('dt-column-order')
|
||||
.appendTo(cell);
|
||||
}
|
||||
@@ -4116,7 +4125,7 @@
|
||||
// layout for those elements
|
||||
var headerFooter = isHeader ? 'header' : 'footer';
|
||||
|
||||
if ( $('span.dt-column-' + headerFooter, cell).length === 0) {
|
||||
if ( $('div.dt-column-' + headerFooter, cell).length === 0) {
|
||||
$('<div>')
|
||||
.addClass('dt-column-' + headerFooter)
|
||||
.append(cell.childNodes)
|
||||
@@ -4273,6 +4282,10 @@
|
||||
// Custom Ajax option to submit the parameters as a JSON string
|
||||
if (baseAjax.submitAs === 'json' && typeof data === 'object') {
|
||||
baseAjax.data = JSON.stringify(data);
|
||||
|
||||
if (!baseAjax.contentType) {
|
||||
baseAjax.contentType = 'application/json; charset=utf-8';
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof ajax === 'function') {
|
||||
@@ -5531,7 +5544,7 @@
|
||||
var autoClass = _ext.type.className[column.sType];
|
||||
var padding = column.sContentPadding || (scrollX ? '-' : '');
|
||||
var text = longest + padding;
|
||||
var insert = longest.indexOf('<') === -1
|
||||
var insert = longest.indexOf('<') === -1 && longest.indexOf('&') === -1
|
||||
? document.createTextNode(text)
|
||||
: text
|
||||
|
||||
@@ -5719,15 +5732,20 @@
|
||||
.replace(/id=".*?"/g, '')
|
||||
.replace(/name=".*?"/g, '');
|
||||
|
||||
var s = _stripHtml(cellString)
|
||||
// Don't want Javascript at all in these calculation cells.
|
||||
cellString = cellString.replace(/<script.*?<\/script>/gi, ' ');
|
||||
|
||||
var noHtml = _stripHtml(cellString, ' ')
|
||||
.replace( / /g, ' ' );
|
||||
|
||||
// The length is calculated on the text only, but we keep the HTML
|
||||
// in the string so it can be used in the calculation table
|
||||
collection.push({
|
||||
str: s,
|
||||
len: s.length
|
||||
str: cellString,
|
||||
len: noHtml.length
|
||||
});
|
||||
|
||||
allStrings.push(s);
|
||||
allStrings.push(noHtml);
|
||||
}
|
||||
|
||||
// Order and then cut down to the size we need
|
||||
@@ -8782,7 +8800,7 @@
|
||||
// Automatic - find the _last_ unique cell from the top that is not empty (last for
|
||||
// backwards compatibility)
|
||||
for (var i=0 ; i<header.length ; i++) {
|
||||
if (header[i][column].unique && $('span.dt-column-title', header[i][column].cell).text()) {
|
||||
if (header[i][column].unique && $('.dt-column-title', header[i][column].cell).text()) {
|
||||
target = i;
|
||||
}
|
||||
}
|
||||
@@ -9089,7 +9107,7 @@
|
||||
title = undefined;
|
||||
}
|
||||
|
||||
var span = $('span.dt-column-title', this.column(column).header(row));
|
||||
var span = $('.dt-column-title', this.column(column).header(row));
|
||||
|
||||
if (title !== undefined) {
|
||||
span.html(title);
|
||||
@@ -10263,8 +10281,8 @@
|
||||
|
||||
// Needed for header and footer, so pulled into its own function
|
||||
function cleanHeader(node, className) {
|
||||
$(node).find('span.dt-column-order').remove();
|
||||
$(node).find('span.dt-column-title').each(function () {
|
||||
$(node).find('.dt-column-order').remove();
|
||||
$(node).find('.dt-column-title').each(function () {
|
||||
var title = $(this).html();
|
||||
$(this).parent().parent().append(title);
|
||||
$(this).remove();
|
||||
@@ -10282,7 +10300,7 @@
|
||||
* @type string
|
||||
* @default Version number
|
||||
*/
|
||||
DataTable.version = "2.3.5";
|
||||
DataTable.version = "2.3.6";
|
||||
|
||||
/**
|
||||
* Private data store, containing all of the settings objects that are
|
||||
@@ -11450,7 +11468,10 @@
|
||||
iDeferLoading: null,
|
||||
|
||||
/** Event listeners */
|
||||
on: null
|
||||
on: null,
|
||||
|
||||
/** Title wrapper element type */
|
||||
columnTitleTag: 'span'
|
||||
};
|
||||
|
||||
_fnHungarianMap( DataTable.defaults );
|
||||
@@ -12414,7 +12435,10 @@
|
||||
orderHandler: true,
|
||||
|
||||
/** Title row indicator */
|
||||
titleRow: null
|
||||
titleRow: null,
|
||||
|
||||
/** Title wrapper element type */
|
||||
columnTitleTag: 'span'
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user