Переглянути джерело

HUE-9088 [frontend] Fix no default export warning after ko upgrade

Johan Ahlen 6 роки тому
батько
коміт
f0cf0df20c
100 змінених файлів з 102 додано та 102 видалено
  1. 1 1
      desktop/core/src/desktop/js/api/apiHelper.js
  2. 1 1
      desktop/core/src/desktop/js/apps/notebook/aceAutocompleteWrapper.test.js
  3. 1 1
      desktop/core/src/desktop/js/apps/notebook/app.js
  4. 1 1
      desktop/core/src/desktop/js/apps/notebook/editorViewModel.js
  5. 1 1
      desktop/core/src/desktop/js/apps/notebook/notebook.js
  6. 1 1
      desktop/core/src/desktop/js/apps/notebook/result.js
  7. 1 1
      desktop/core/src/desktop/js/apps/notebook/session.js
  8. 1 1
      desktop/core/src/desktop/js/apps/notebook/snippet.js
  9. 1 1
      desktop/core/src/desktop/js/apps/notebook2/app.js
  10. 1 1
      desktop/core/src/desktop/js/apps/notebook2/components/ko.executableActions.js
  11. 1 1
      desktop/core/src/desktop/js/apps/notebook2/components/ko.executableLogs.js
  12. 1 1
      desktop/core/src/desktop/js/apps/notebook2/components/ko.executableProgressBar.js
  13. 1 1
      desktop/core/src/desktop/js/apps/notebook2/components/ko.snippetEditorActions.js
  14. 1 1
      desktop/core/src/desktop/js/apps/notebook2/components/ko.snippetResults.js
  15. 1 1
      desktop/core/src/desktop/js/apps/notebook2/components/resultChart/ko.resultChart.js
  16. 1 1
      desktop/core/src/desktop/js/apps/notebook2/components/resultGrid/ko.resultDownloadActions.js
  17. 1 1
      desktop/core/src/desktop/js/apps/notebook2/components/resultGrid/ko.resultDownloadModal.js
  18. 1 1
      desktop/core/src/desktop/js/apps/notebook2/components/resultGrid/ko.resultGrid.js
  19. 1 1
      desktop/core/src/desktop/js/apps/notebook2/editorViewModel.js
  20. 1 1
      desktop/core/src/desktop/js/apps/notebook2/notebook.js
  21. 1 1
      desktop/core/src/desktop/js/apps/notebook2/snippet.js
  22. 1 1
      desktop/core/src/desktop/js/apps/table_browser/app.js
  23. 1 1
      desktop/core/src/desktop/js/apps/table_browser/metastoreColumn.js
  24. 1 1
      desktop/core/src/desktop/js/apps/table_browser/metastoreDatabase.js
  25. 1 1
      desktop/core/src/desktop/js/apps/table_browser/metastoreNamespace.js
  26. 1 1
      desktop/core/src/desktop/js/apps/table_browser/metastoreSource.js
  27. 1 1
      desktop/core/src/desktop/js/apps/table_browser/metastoreTable.js
  28. 1 1
      desktop/core/src/desktop/js/apps/table_browser/metastoreTablePartitions.js
  29. 1 1
      desktop/core/src/desktop/js/apps/table_browser/metastoreTableSamples.js
  30. 1 1
      desktop/core/src/desktop/js/apps/table_browser/metastoreViewModel.js
  31. 1 1
      desktop/core/src/desktop/js/catalog/dataCatalogEntry.js
  32. 1 1
      desktop/core/src/desktop/js/doc/hueDocument.js
  33. 1 1
      desktop/core/src/desktop/js/doc/hueFileEntry.js
  34. 2 2
      desktop/core/src/desktop/js/ext/ko.editable.custom.js
  35. 2 2
      desktop/core/src/desktop/js/ext/ko.selectize.custom.js
  36. 1 1
      desktop/core/src/desktop/js/jest/jest.init.js
  37. 1 1
      desktop/core/src/desktop/js/jest/koTestUtils.js
  38. 1 1
      desktop/core/src/desktop/js/jquery/plugins/jquery.filechooser.js
  39. 1 1
      desktop/core/src/desktop/js/ko/bindings/ace/ko.aceEditor.js
  40. 1 1
      desktop/core/src/desktop/js/ko/bindings/ace/ko.aceResizer.js
  41. 1 1
      desktop/core/src/desktop/js/ko/bindings/charts/ko.barChart.js
  42. 1 1
      desktop/core/src/desktop/js/ko/bindings/charts/ko.leafletMapChart.js
  43. 1 1
      desktop/core/src/desktop/js/ko/bindings/charts/ko.lineChart.js
  44. 1 1
      desktop/core/src/desktop/js/ko/bindings/charts/ko.partitionChart.js
  45. 1 1
      desktop/core/src/desktop/js/ko/bindings/charts/ko.pieChart.js
  46. 1 1
      desktop/core/src/desktop/js/ko/bindings/charts/ko.scatterChart.js
  47. 1 1
      desktop/core/src/desktop/js/ko/bindings/charts/ko.timelineChart.js
  48. 1 1
      desktop/core/src/desktop/js/ko/bindings/charts/mapchart/ko.mapChart.js
  49. 1 1
      desktop/core/src/desktop/js/ko/bindings/charts/plotly/ko.plotly.js
  50. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.appAwareTemplateContextMenu.js
  51. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.assistFileDraggable.js
  52. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.assistFileDroppable.js
  53. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.assistVerticalResizer.js
  54. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.attachViewModelToElementData.js
  55. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.augmentHtml.js
  56. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.autocomplete.js
  57. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.autogrowInput.js
  58. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.blurHide.js
  59. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.bytesize.js
  60. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.chosen.js
  61. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.clearable.js
  62. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.clickForAceFocus.js
  63. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.clickToCopy.js
  64. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.clipboard.js
  65. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.codemirror.js
  66. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.contextMenu.js
  67. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.contextSubMenu.js
  68. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.datalist.js
  69. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.dateRangePicker.js
  70. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.datepicker.js
  71. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.dblClick.js
  72. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.delayedOverflow.js
  73. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.dockable.js
  74. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.documentChooser.js
  75. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.documentContextPopover.js
  76. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.draggableText.js
  77. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.dropdown.js
  78. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.dropzone.js
  79. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.duration.js
  80. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.ellipsis.js
  81. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.fadeVisible.js
  82. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.fetchMore.js
  83. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.fileChooser.js
  84. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.foreachVisible.js
  85. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.fresherEditor.js
  86. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.hdfsAutocomplete.js
  87. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.hdfsTree.js
  88. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.highlight.js
  89. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.hiveChooser.js
  90. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.html.js
  91. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.hueAppIcon.js
  92. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.hueCheckAll.js
  93. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.hueCheckbox.js
  94. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.hueChecked.js
  95. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.hueLink.js
  96. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.hueSpinner.js
  97. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.hueach.js
  98. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.impalaDagre.js
  99. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.jHueRowSelector.js
  100. 1 1
      desktop/core/src/desktop/js/ko/bindings/ko.logResizer.js

+ 1 - 1
desktop/core/src/desktop/js/api/apiHelper.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import apiQueueManager from 'api/apiQueueManager';
 import CancellablePromise from 'api/cancellablePromise';

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook/aceAutocompleteWrapper.test.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import AceAutocompleteWrapper from './aceAutocompleteWrapper';
 

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook/app.js

@@ -17,7 +17,7 @@
 import $ from 'jquery';
 import Clipboard from 'clipboard';
 import 'jquery-mousewheel';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import 'ext/bootstrap-datepicker.min';
 import 'ext/jquery.hotkeys';
 import 'jquery/plugins/jquery.hdfstree';

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook/editorViewModel.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import komapping from 'knockout.mapping';
 
 import apiHelper from 'api/apiHelper';

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook/notebook.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import komapping from 'knockout.mapping';
 
 import apiHelper from 'api/apiHelper';

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook/result.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import hueUtils from 'utils/hueUtils';
 

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook/session.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import komapping from 'knockout.mapping';
 
 class Session {

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook/snippet.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import komapping from 'knockout.mapping';
 import { markdown } from 'markdown';
 

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/app.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 import $ from 'jquery';
 import Clipboard from 'clipboard';
 import 'jquery-mousewheel';

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/components/ko.executableActions.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import componentUtils from 'ko/components/componentUtils';
 import I18n from 'utils/i18n';

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/components/ko.executableLogs.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import 'ko/bindings/ko.publish';
 

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/components/ko.executableProgressBar.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import 'ko/bindings/ko.publish';
 

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/components/ko.snippetEditorActions.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import 'ko/bindings/ko.publish';
 

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/components/ko.snippetResults.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import componentUtils from 'ko/components/componentUtils';
 import DisposableComponent from 'ko/components/DisposableComponent';

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/components/resultChart/ko.resultChart.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import componentUtils from 'ko/components/componentUtils';
 import DisposableComponent from 'ko/components/DisposableComponent';

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/components/resultGrid/ko.resultDownloadActions.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import componentUtils from 'ko/components/componentUtils';
 import DisposableComponent from 'ko/components/DisposableComponent';

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/components/resultGrid/ko.resultDownloadModal.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import componentUtils from 'ko/components/componentUtils';
 import huePubSub from 'utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/components/resultGrid/ko.resultGrid.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import './ko.resultDownloadActions';
 

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/editorViewModel.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import komapping from 'knockout.mapping';
 
 import apiHelper from 'api/apiHelper';

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/notebook.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import komapping from 'knockout.mapping';
 
 import apiHelper from 'api/apiHelper';

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/snippet.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import komapping from 'knockout.mapping';
 import { markdown } from 'markdown';
 

+ 1 - 1
desktop/core/src/desktop/js/apps/table_browser/app.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import dataCatalog from 'catalog/dataCatalog';
 import huePubSub from 'utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/apps/table_browser/metastoreColumn.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 

+ 1 - 1
desktop/core/src/desktop/js/apps/table_browser/metastoreDatabase.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 import huePubSub from 'utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/apps/table_browser/metastoreNamespace.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 import dataCatalog from 'catalog/dataCatalog';

+ 1 - 1
desktop/core/src/desktop/js/apps/table_browser/metastoreSource.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 import contextCatalog from 'catalog/contextCatalog';

+ 1 - 1
desktop/core/src/desktop/js/apps/table_browser/metastoreTable.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 import huePubSub from 'utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/apps/table_browser/metastoreTablePartitions.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import komapping from 'knockout.mapping';
 
 import huePubSub from 'utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/apps/table_browser/metastoreTableSamples.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 class MetastoreTableSamples {
   /**

+ 1 - 1
desktop/core/src/desktop/js/apps/table_browser/metastoreViewModel.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 import huePubSub from 'utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/catalog/dataCatalogEntry.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 import CancellablePromise from 'api/cancellablePromise';

+ 1 - 1
desktop/core/src/desktop/js/doc/hueDocument.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 import hueUtils from 'utils/hueUtils';

+ 1 - 1
desktop/core/src/desktop/js/doc/hueFileEntry.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 import huePubSub from 'utils/huePubSub';

+ 2 - 2
desktop/core/src/desktop/js/ext/ko.editable.custom.js

@@ -17,7 +17,7 @@
 // based on the original https://github.com/brianchance/knockout-x-editable
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.editable = {
   init: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
@@ -254,4 +254,4 @@ ko.bindingHandlers.editable = {
       });
     }
   }
-};
+};

+ 2 - 2
desktop/core/src/desktop/js/ext/ko.selectize.custom.js

@@ -17,7 +17,7 @@
 // Based on https://gist.githubusercontent.com/xtranophilist/8001624/raw/ko_selectize.js
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import I18n from 'utils/i18n';
 
@@ -221,4 +221,4 @@ ko.bindingHandlers.selectize = {
       })[0]);
     }
   }
-}
+}

+ 1 - 1
desktop/core/src/desktop/js/jest/jest.init.js

@@ -22,7 +22,7 @@ import 'apps/notebook2/execution/sessionManager';
 import './jquery.setup';
 import './sqlTestUtils';
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 import komapping from 'knockout.mapping';
 
 ko.mapping = komapping;

+ 1 - 1
desktop/core/src/desktop/js/jest/koTestUtils.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 export const koSetup = () => {
   let originalLoadTemplate;

+ 1 - 1
desktop/core/src/desktop/js/jquery/plugins/jquery.filechooser.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import qq from 'ext/fileuploader.custom';
 
 import huePubSub from '../../utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ace/ko.aceEditor.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 import AceLocationHandler from 'ko/bindings/ace/aceLocationHandler';

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ace/ko.aceResizer.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/charts/ko.barChart.js

@@ -16,7 +16,7 @@
 
 import $ from 'jquery';
 import d3v3 from 'd3v3';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import nv from 'ext/nv.d3.1.1.15b.custom';
 
 import I18n from 'utils/i18n';

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/charts/ko.leafletMapChart.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import 'ext/leaflet/leaflet';
 import 'ext/leaflet/leaflet.markercluster';
 import 'ext/leaflet/leaflet.heat';

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/charts/ko.lineChart.js

@@ -16,7 +16,7 @@
 
 import $ from 'jquery';
 import d3v3 from 'd3v3';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import I18n from 'utils/i18n';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/charts/ko.partitionChart.js

@@ -16,7 +16,7 @@
 
 import $ from 'jquery';
 import d3v3 from 'd3v3';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import HueColors from 'utils/hueColors';
 import huePubSub from 'utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/charts/ko.pieChart.js

@@ -16,7 +16,7 @@
 
 import $ from 'jquery';
 import d3v3 from 'd3v3';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import nv from 'ext/nv.d3.1.1.15b.custom';
 
 import huePubSub from 'utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/charts/ko.scatterChart.js

@@ -16,7 +16,7 @@
 
 import $ from 'jquery';
 import d3v3 from 'd3v3';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import nv from 'ext/nv.d3.1.1.15b.custom';
 
 ko.bindingHandlers.scatterChart = {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/charts/ko.timelineChart.js

@@ -16,7 +16,7 @@
 
 import $ from 'jquery';
 import d3v3 from 'd3v3';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import I18n from 'utils/i18n';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/charts/mapchart/ko.mapChart.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import nv from 'ext/nv.d3.1.1.15b.custom';
 
 import Datamap from './datamap';

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/charts/plotly/ko.plotly.js

@@ -21,7 +21,7 @@
  */
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import Plotly from 'plotly.js-dist';
 
 import huePubSub from 'utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.appAwareTemplateContextMenu.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.assistFileDraggable.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.assistFileDroppable.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.assistVerticalResizer.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 import huePubSub from 'utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.attachViewModelToElementData.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.attachViewModelToElementData = {
   init: function(el, valueAccessor, allBindingsAccessor, viewModel) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.augmentHtml.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 // TODO: less from bootstrap?
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.autocomplete.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.autogrowInput.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.autogrowInput = {
   init: function(element, valueAccessor) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.blurHide.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.blurHide = {
   init: function(element, valueAccessor) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.bytesize.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import sprintf from 'sprintf-js';
 
 ko.bindingHandlers.bytesize = (function() {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.chosen.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.chosen = {
   init: function(element, valueAccessor, allBindings) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.clearable.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.clearable = {
   after: ['textInput', 'value', 'valueUpdate'],

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.clickForAceFocus.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.clickForAceFocus = {
   init: function(element, valueAccessor) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.clickToCopy.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.clickToCopy = {
   init: function(element, valueAccessor) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.clipboard.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.clipboard = {
   init: (element, valueAccessor) => {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.codemirror.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import hueUtils from 'utils/hueUtils';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.contextMenu.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.contextSubMenu.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.datalist.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 // https://stackoverflow.com/questions/19865364/knockoutjs-linking-value-from-a-input-to-a-datalist-value
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.dateRangePicker.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.dateRangePicker = {
   INTERVAL_OPTIONS: [

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.datepicker.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.datepicker = {
   init: function(element, valueAccessor, allBindings) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.dblClick.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.dblclick = {
   init: function(element, valueAccessor, allBindingsAccessor, viewModel) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.delayedOverflow.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.delayedOverflow = {
   init: function(element, valueAccessor) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.dockable.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 import hueUtils from 'utils/hueUtils';

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.documentChooser.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.documentContextPopover.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 import huePubSub from 'utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.draggableText.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.dropdown.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.dropdown = {
   init: function(element) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.dropzone.js

@@ -16,7 +16,7 @@
 
 import Dropzone from 'dropzone';
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import I18n from 'utils/i18n';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.duration.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 import sprintf from 'sprintf-js';
 
 ko.bindingHandlers.duration = (function() {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.ellipsis.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.ellipsis = {
   update: function(element, valueAccessor) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.fadeVisible.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.fadeVisible = {
   init: function(element, valueAccessor) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.fetchMore.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.fetchMore = {
   init: function(element, valueAccessor) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.fileChooser.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import hueUtils from 'utils/hueUtils';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.foreachVisible.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.fresherEditor.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import hueUtils from 'utils/hueUtils';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.hdfsAutocomplete.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.hdfsAutocomplete = {
   init: function(element) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.hdfsTree.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.hdfsTree = {
   update: function(element, valueAccessor) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.highlight.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 // TODO: Depends on Ace
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.hiveChooser.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.hiveChooser = {
   init: function(element, valueAccessor, allBindingsAccessor) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.html.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import hueUtils from 'utils/hueUtils';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.hueAppIcon.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 const APP_ICON_INDEX = {
   adls: `<svg class="hi hi-fw"><use xlink:href="#hi-adls"></use></svg>`,

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.hueCheckAll.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.hueCheckAll = {
   init: function(element, valueAccessor) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.hueCheckbox.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.hueCheckbox = {
   after: ['value', 'attr'],

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.hueChecked.js

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.hueChecked = {
   after: ['value', 'attr'],

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.hueLink.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.hueSpinner.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 /**
  * Binding for adding a spinner to the page

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.hueach.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.impalaDagre.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 import huePubSub from 'utils/huePubSub';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.jHueRowSelector.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.jHueRowSelector = {
   init: function(element) {

+ 1 - 1
desktop/core/src/desktop/js/ko/bindings/ko.logResizer.js

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import $ from 'jquery';
-import ko from 'knockout';
+import * as ko from 'knockout';
 
 ko.bindingHandlers.logResizer = {
   init: function(element, valueAccessor) {

Деякі файли не було показано, через те що забагато файлів було змінено