Selaa lähdekoodia

HUE-9283 [ui] Fix issue with missing source map slowing down initial render

Johan Ahlen 5 vuotta sitten
vanhempi
commit
0cbe8b945b

+ 0 - 1
apps/beeswax/src/beeswax/templates/execute.mako

@@ -795,7 +795,6 @@ ${ commonshare() | n,unicode }
 %if ENABLE_QUERY_BUILDER.get():
 <!-- For query builder -->
 <link rel="stylesheet" href="${ static('desktop/ext/css/jquery.contextMenu.min.css') }">
-<script src="${ static('desktop/ext/js/jquery/plugins/jquery.contextMenu.min.js') }"></script>
 <script src="${ static('desktop/js/queryBuilder.js') }"></script>
 <script>
   // query-builder-menu is the class to use

+ 1 - 0
desktop/core/src/desktop/js/jquery/jquery.common.js

@@ -17,6 +17,7 @@
 import $ from 'jquery';
 import 'jquery/jquery.migration';
 
+import 'jquery-contextmenu'; // TODO: Remove, it's only used for "old" query builder
 import 'jquery.cookie';
 import 'jquery-form';
 import 'jquery/plugins/jquery.selectize';

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
desktop/core/src/desktop/static/desktop/ext/js/jquery/plugins/jquery.contextMenu.min.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
desktop/core/src/desktop/static/desktop/ext/js/jquery/plugins/jquery.contextMenu.min.js.map


+ 0 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -54,7 +54,6 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
 %if ENABLE_QUERY_BUILDER.get():
 <!-- For query builder -->
 <link rel="stylesheet" href="${ static('desktop/ext/css/jquery.contextMenu.min.css') }">
-<script src="${ static('desktop/ext/js/jquery/plugins/jquery.contextMenu.min.js') }"></script>
 <script src="${ static('desktop/js/queryBuilder.js') }"></script>
 <script>
 

+ 0 - 1
desktop/libs/notebook/src/notebook/templates/editor_components2.mako

@@ -54,7 +54,6 @@
   %if ENABLE_QUERY_BUILDER.get():
     <!-- For query builder -->
     <link rel="stylesheet" href="${ static('desktop/ext/css/jquery.contextMenu.min.css') }">
-    <script src="${ static('desktop/ext/js/jquery/plugins/jquery.contextMenu.min.js') }"></script>
     <script src="${ static('desktop/js/queryBuilder.js') }"></script>
     <script>
 

+ 1 - 1
ext/thirdparty/README.md

@@ -145,7 +145,7 @@ Frontend third party dependencies (some checked in and some via npm)
 |jqCron|?|MIT|https://github.com/arnapou/jqcron|
 |jQuery|2.2.4+3.3.1|MIT|https://github.com/jquery/jquery|
 |jQuery Basic Table|?|MIT|https://github.com/jerrylow/basictable|
-|jQuery contextMenu|?|MIT|https://github.com/swisnl/jQuery-contextMenu|
+|jQuery contextMenu|2.9.0|MIT|https://github.com/swisnl/jQuery-contextMenu|
 |jQuery Cookie|1.4.1|MIT|https://github.com/carhartl/jquery-cookie|
 |jQuery curvedArrow|?|None|https://github.com/csytan/jquery-curvedarrow|
 |jQuery dataTables|1.8.2|BSD|http://www.datatables.net|

+ 5 - 0
package-lock.json

@@ -10098,6 +10098,11 @@
       "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.4.1.tgz",
       "integrity": "sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw=="
     },
+    "jquery-contextmenu": {
+      "version": "2.9.0",
+      "resolved": "https://registry.npmjs.org/jquery-contextmenu/-/jquery-contextmenu-2.9.0.tgz",
+      "integrity": "sha512-sn0eyBNeIa7AOdU+j3lP2YZ0bbtkrTCtkp3S7UwRf8lurPVKI/3uyOV3h/pMyJclfmO6ps5shObQTfzJiaN/OQ=="
+    },
     "jquery-form": {
       "version": "4.2.2",
       "resolved": "https://registry.npmjs.org/jquery-form/-/jquery-form-4.2.2.tgz",

+ 1 - 0
package.json

@@ -39,6 +39,7 @@
     "jquery-mousewheel": "3.1.13",
     "jquery-ui": "1.12.1",
     "jquery.cookie": "1.4.1",
+    "jquery-contextmenu": "^2.9.0",
     "knockout": "3.5.1",
     "knockout-sortable": "1.2.0",
     "knockout-switch-case": "2.1.0",

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä