Skip to content

Commit

Permalink
#4852 Update outdated JS packages: filepond
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Trofimov committed Jan 6, 2025
1 parent 94f6fa3 commit 7ee4a6b
Show file tree
Hide file tree
Showing 41 changed files with 90 additions and 509 deletions.
2 changes: 2 additions & 0 deletions inc/classes/BxDolTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -2437,6 +2437,8 @@ function _minifyJs($s)
*/
function _wrapInTagJs($sFile)
{
if ('.mjs' === mb_substr($sFile, -4))
return "<script type=\"module\" src=\"" . $sFile . "\"></script>";
return "<script language=\"javascript\" src=\"" . $sFile . "\"></script>";
}

Expand Down
4 changes: 3 additions & 1 deletion inc/js/classes/BxDolUploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,9 @@ function BxDolUploaderHTML5 (sUploaderObject, sStorageObject, sUniqId, options)
document.querySelector('#' + this._sDivId),
$.extend({}, _options, o)
);
this._uploader.setOptions(glFilepondLocale);

if (typeof(glFilepondLocale) !== 'undefined');
this._uploader.setOptions(glFilepondLocale);

// need to be activated if catch paste needed
//this.initPasteEditor();
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

240 changes: 0 additions & 240 deletions plugins_public/filepond/filepond-plugin-file-validate-type.js

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions plugins_public/filepond/filepond-plugin-image-preview.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions plugins_public/filepond/filepond.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions plugins_public/filepond/filepond.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins_public/filepond/locale/ar-ar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
glFilepondLocale = {
export default {
labelIdle: 'اسحب و ادرج ملفاتك أو <span class="filepond--label-action"> تصفح </span>',
labelInvalidField: 'الحقل يحتوي على ملفات غير صالحة',
labelFileWaitingForSize: 'بانتظار الحجم',
Expand Down
8 changes: 0 additions & 8 deletions plugins_public/filepond/locale/cmd.sh

This file was deleted.

2 changes: 1 addition & 1 deletion plugins_public/filepond/locale/cs-cz.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
glFilepondLocale = {
export default {
labelIdle: 'Přetáhněte soubor sem (drag&drop) nebo <span class="filepond--label-action"> Vyhledat </span>',
labelInvalidField: 'Pole obsahuje chybné soubory',
labelFileWaitingForSize: 'Zjišťuje se velikost',
Expand Down
2 changes: 1 addition & 1 deletion plugins_public/filepond/locale/da-dk.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
glFilepondLocale = {
export default {
labelIdle:
'Træk & slip filer eller <span class = "filepond - label-action"> Gennemse </span>',
labelInvalidField: 'Felt indeholder ugyldige filer',
Expand Down
2 changes: 1 addition & 1 deletion plugins_public/filepond/locale/de-de.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
glFilepondLocale = {
export default {
labelIdle: 'Dateien ablegen oder <span class="filepond--label-action"> auswählen </span>',
labelInvalidField: 'Feld beinhaltet ungültige Dateien',
labelFileWaitingForSize: 'Dateigröße berechnen',
Expand Down
2 changes: 1 addition & 1 deletion plugins_public/filepond/locale/el-el.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
glFilepondLocale = {
export default {
labelIdle: 'Σύρετε τα αρχεία σας στο πλαίσιο ή <span class="filepond--label-action"> Επιλέξτε </span>',
labelInvalidField: 'Το πεδίο περιέχει μη έγκυρα αρχεία',
labelFileWaitingForSize: 'Σε αναμονή για το μέγεθος',
Expand Down
2 changes: 1 addition & 1 deletion plugins_public/filepond/locale/en-en.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
glFilepondLocale = {
export default {
labelIdle: 'Drag & Drop your files or <span class="filepond--label-action"> Browse </span>',
labelInvalidField: 'Field contains invalid files',
labelFileWaitingForSize: 'Waiting for size',
Expand Down
28 changes: 14 additions & 14 deletions plugins_public/filepond/locale/es-es.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
glFilepondLocale = {
labelIdle: 'Arrastra y suelta tus archivos o <span class = "filepond--label-action"> Examinar <span>',
export default {
labelIdle: 'Arrastra y suelta tus archivos o <span class = "filepond--label-action"> Examina <span>',
labelInvalidField: "El campo contiene archivos inválidos",
labelFileWaitingForSize: "Esperando tamaño",
labelFileSizeNotAvailable: "Tamaño no disponible",
labelFileLoading: "Cargando",
labelFileLoadError: "Error durante la carga",
labelFileProcessing: "Cargando",
labelFileProcessingComplete: "Carga completa",
labelFileProcessingAborted: "Carga cancelada",
labelFileProcessingError: "Error durante la carga",
labelFileProcessing: "Subiendo",
labelFileProcessingComplete: "Subida completa",
labelFileProcessingAborted: "Subida cancelada",
labelFileProcessingError: "Error durante la subida",
labelFileProcessingRevertError: "Error durante la reversión",
labelFileRemoveError: "Error durante la eliminación",
labelTapToCancel: "toca para cancelar",
labelTapToRetry: "tocar para volver a intentar",
labelTapToRetry: "tocar para reintentar",
labelTapToUndo: "tocar para deshacer",
labelButtonRemoveItem: "Eliminar",
labelButtonAbortItemLoad: "Abortar",
labelButtonAbortItemLoad: "Cancelar",
labelButtonRetryItemLoad: "Reintentar",
labelButtonAbortItemProcessing: "Cancelar",
labelButtonUndoItemProcessing: "Deshacer",
labelButtonRetryItemProcessing: "Reintentar",
labelButtonProcessItem: "Cargar",
labelButtonProcessItem: "Subir",
labelMaxFileSizeExceeded: "El archivo es demasiado grande",
labelMaxFileSize: "El tamaño máximo del archivo es {filesize}",
labelMaxTotalFileSizeExceeded: "Tamaño total máximo excedido",
labelMaxTotalFileSize: "El tamaño total máximo del archivo es {filesize}",
labelFileTypeNotAllowed: "Archivo de tipo no válido",
labelFileTypeNotAllowed: "Archivo de tipo inválido",
fileValidateTypeLabelExpectedTypes: "Espera {allButLastType} o {lastType}",
imageValidateSizeLabelFormatError: "Tipo de imagen no compatible",
imageValidateSizeLabelFormatError: "Tipo de imagen no soportada",
imageValidateSizeLabelImageSizeTooSmall: "La imagen es demasiado pequeña",
imageValidateSizeLabelImageSizeTooBig: "La imagen es demasiado grande",
imageValidateSizeLabelExpectedMinSize: "El tamaño mínimo es {minWidth} × {minHeight}",
imageValidateSizeLabelExpectedMaxSize: "El tamaño máximo es {maxWidth} × {maxHeight}",
imageValidateSizeLabelExpectedMinSize: "El tamaño mínimo es {minWidth} x {minHeight}",
imageValidateSizeLabelExpectedMaxSize: "El tamaño máximo es {maxWidth} x {maxHeight}",
imageValidateSizeLabelImageResolutionTooLow: "La resolución es demasiado baja",
imageValidateSizeLabelImageResolutionTooHigh: "La resolución es demasiado alta",
imageValidateSizeLabelExpectedMinResolution: "La resolución mínima es {minResolution}",
imageValidateSizeLabelExpectedMaxResolution: "La resolución máxima es {maxResolution}",
};
};
Loading

0 comments on commit 7ee4a6b

Please sign in to comment.