Przeglądaj źródła

HUE-7541 [assist] Missing styles from the Hue 3 assist

Enrico Berti 8 lat temu
rodzic
commit
0748dae

Plik diff jest za duży
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


Plik diff jest za duży
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 35 - 0
desktop/core/src/desktop/static/desktop/less/hue-cross-version.less

@@ -560,3 +560,38 @@ ul.errorlist {
   .nowrap-ellipsis();
 }
 
+.inline-autocomplete-container {
+  position: relative;
+  border-radius: 4px;
+  border: 1px solid @cui-gray-300;
+
+  > div {
+    position:absolute;
+    left: 0;
+    right: 0;
+    height: 30px;
+
+    input {
+      display: block;
+      position: absolute;
+      width: 100%;
+      border: none;
+      box-shadow: none;
+      padding: 5px;
+      margin: 0;
+      font-size: 15px;
+      line-height: 15px;
+      background-color: transparent;
+
+      &.inline-autocomplete-input {
+        z-index: 2;
+      }
+
+      &.inline-autocomplete-autocomplete {
+        color: @cui-gray-500;
+        outline: none;
+        z-index: 1;
+      }
+    }
+  }
+}

+ 0 - 36
desktop/core/src/desktop/static/desktop/less/hue.less

@@ -326,42 +326,6 @@ body {
   }
 }
 
-.inline-autocomplete-container {
-  position: relative;
-  border-radius: 4px;
-  border: 1px solid @cui-gray-300;
-
-  > div {
-    position:absolute;
-    left: 0;
-    right: 0;
-    height: 30px;
-
-    input {
-      display: block;
-      position: absolute;
-      width: 100%;
-      border: none;
-      box-shadow: none;
-      padding: 5px;
-      margin: 0;
-      font-size: 15px;
-      line-height: 15px;
-      background-color: transparent;
-
-      &.inline-autocomplete-input {
-        z-index: 2;
-      }
-
-      &.inline-autocomplete-autocomplete {
-        color: @cui-gray-500;
-        outline: none;
-        z-index: 1;
-      }
-    }
-  }
-}
-
 .search-container-top-old > a,
 .search-container > a {
   .flex(0 0 31px);

+ 5 - 0
desktop/core/src/desktop/templates/common_header.mako

@@ -174,6 +174,11 @@ if USE_NEW_EDITOR.get():
   <script src="${ static('desktop/js/ace/mode-hive.js') }"></script>
   <script src="${ static('desktop/js/ace/ext-language_tools.js') }"></script>
   <script src="${ static('desktop/js/ace.extended.js') }"></script>
+  <script src="${ static('desktop/js/autocomplete/sqlParseSupport.js') }"></script>
+  <script src="${ static('desktop/js/autocomplete/sqlStatementsParser.js') }"></script>
+  <script src="${ static('desktop/js/autocomplete/sqlAutocompleteParser.js') }"></script>
+  <script src="${ static('desktop/js/autocomplete/globalSearchParser.js') }"></script>
+
   <script>
     ace.config.set("basePath", "/static/desktop/js/ace");
   </script>

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

@@ -60,6 +60,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
 <script src="${ static('desktop/js/autocomplete/sqlParseSupport.js') }"></script>
 <script src="${ static('desktop/js/autocomplete/sqlStatementsParser.js') }"></script>
 <script src="${ static('desktop/js/autocomplete/sqlAutocompleteParser.js') }"></script>
+<script src="${ static('desktop/js/autocomplete/globalSearchParser.js') }"></script>
 <script src="${ static('desktop/js/sqlAutocompleter.js') }"></script>
 <script src="${ static('desktop/js/sqlAutocompleter2.js') }"></script>
 <script src="${ static('desktop/js/sqlAutocompleter3.js') }"></script>

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików