Remove jQuery SVG JS dependency

Removed by https://github.com/phpmyadmin/phpmyadmin/pull/17041.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2022-04-24 20:08:40 -03:00
parent b17700dd09
commit 5d80594341
7 changed files with 2 additions and 1368 deletions

View File

@ -96,9 +96,7 @@ function loadJSAndGISEditor (value, field, type, inputName) {
var script;
// Loads a set of small JS file needed for the GIS editor
var smallScripts = ['js/vendor/jquery/jquery.svg.js',
'js/vendor/jquery/jquery.mousewheel.js',
'js/dist/table/gis_visualization.js'];
var smallScripts = ['js/vendor/jquery/jquery.mousewheel.js', 'js/dist/table/gis_visualization.js'];
for (var i = 0; i < smallScripts.length; i++) {
script = document.createElement('script');

View File

@ -2,7 +2,6 @@
* @fileoverview functions used for visualizing GIS data
*
* @requires jquery
* @requires vendor/jquery/jquery.svg.js
* @requires vendor/jquery/jquery.mousewheel.js
*/

File diff suppressed because it is too large Load Diff

View File

@ -135,11 +135,7 @@ final class GisVisualizationController extends AbstractController
return;
}
$this->addScriptFiles([
'vendor/openlayers/OpenLayers.js',
'vendor/jquery/jquery.svg.js',
'table/gis_visualization.js',
]);
$this->addScriptFiles(['vendor/openlayers/OpenLayers.js', 'table/gis_visualization.js']);
// If all the rows contain SRID, use OpenStreetMaps on the initial loading.
if (! isset($_POST['displayVisualization'])) {

View File

@ -27,7 +27,6 @@
"jquery-uitablefilter": "^1.0.0",
"jquery-validation": "1.19.3",
"js-cookie": "2.2.1",
"kbwood-jquery-svg": "https://github.com/kbwood/svg/archive/1.5.0.tar.gz",
"locutus.sprintf": "^2.0.14-code-lts.2",
"ol": "6.9.0",
"popper.js": "^1.16.1",

View File

@ -59,8 +59,6 @@ echo 'Updating stickyfill'
cp ./node_modules/stickyfilljs/dist/stickyfill.min.js js/vendor/stickyfill.min.js
echo 'Updating blueimp-md5'
cp ./node_modules/blueimp-md5/js/md5.js ./js/vendor/jquery/jquery.md5.js
echo 'Updating jquery.svg.js'
cp ./node_modules/kbwood-jquery-svg/jquery.svg.js ./js/vendor/jquery/jquery.svg.js
echo 'Updating jquery-hashchange'
cp ./node_modules/jquery-hashchange/jquery.ba-hashchange.js ./js/vendor/jquery/jquery.ba-hashchange-2.0.js
echo 'Updating jquery-uitablefilter'

View File

@ -3840,10 +3840,6 @@ json5@^2.1.2:
dependencies:
minimist "^1.2.5"
"kbwood-jquery-svg@https://github.com/kbwood/svg/archive/1.5.0.tar.gz":
version "0.0.0"
resolved "https://github.com/kbwood/svg/archive/1.5.0.tar.gz#6acaad88192320fa3e498a345ca1c52b7334cb1e"
kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0:
version "3.2.2"
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"