Use a node package to install jquery-fileupload

Although the gem is called jquery-fileupload-rails, the node package is
called blueimp-file-upload.

Note we're using the same version as provided by the gem.

The jquery-fileupload gem provided a `basic.js` file (which we were
requiring), which had the following content:

```
//= require jquery-fileupload/vendor/jquery.ui.widget
//= require jquery-fileupload/jquery.iframe-transport
//= require jquery-fileupload/jquery.fileupload
``

This file isn't available in the Node.js package, so we're adapting its
contents in our application.js file. Since we're already requiring
jQuery UI widget, we're omitting that line.
This commit is contained in:
Javi Martín
2024-03-25 04:11:20 +01:00
parent 27e38dc735
commit bee00db34f
5 changed files with 9 additions and 7 deletions

View File

@@ -282,10 +282,6 @@ GEM
railties (>= 3.1, < 7.0)
invisible_captcha (2.3.0)
rails (>= 5.2)
jquery-fileupload-rails (1.0.0)
actionpack (>= 3.1)
railties (>= 3.1)
sassc
json (2.7.1)
jwt (2.7.1)
kaminari (1.2.2)
@@ -728,7 +724,6 @@ DEPENDENCIES
image_processing (~> 1.12.2)
initialjs-rails (~> 0.2.0.9)
invisible_captcha (~> 2.3.0)
jquery-fileupload-rails
kaminari (~> 1.2.2)
knapsack_pro (~> 7.0.1)
launchy (~> 2.5.2)