Selaa lähdekoodia

feat(query editors): progress on query editors

Torkel Ödegaard 9 vuotta sitten
vanhempi
commit
bca0894f73

+ 2 - 0
public/app/features/panel/partials/query_editor_row.html

@@ -1,3 +1,4 @@
+
 <div class="gf-form-query">
 	<div class="gf-form">
 		<label class="gf-form-label">
@@ -24,6 +25,7 @@
 	<div class="gf-form">
 		<label class="gf-form-label">
 			<a class="pointer" tabindex="1" ng-click="ctrl.toggleCollapse()" ng-class="{muted: !ctrl.canCollapse}">
+				<em ng-show="ctrl.target.datasource">{{ctrl.target.datasource}}&nbsp;</em>
 				<i class="fa fa-fw fa-chevron-down" ng-hide="ctrl.collapsed"></i>
 				<i class="fa fa-fw fa-chevron-left" ng-show="ctrl.collapsed"></i>
 			</a>

+ 2 - 2
public/app/plugins/datasource/elasticsearch/partials/bucket_agg.html

@@ -43,9 +43,9 @@
 
 		<div class="gf-form offset-width-7">
 			<label class="gf-form-label width-10">
-				Trim edges points
+				Trim edges
 				<info-popover mode="right-normal">
-					Trim the edges on the timeseries x datapoints
+					Trim the edges on the timeseries datapoints
 				</info-popover>
 			</label>
 			<input class="gf-form-input max-width-12" type="number" ng-model="agg.settings.trimEdges" ng-change="onChangeInternal()">

+ 1 - 1
public/app/plugins/datasource/elasticsearch/partials/query.editor.html

@@ -7,7 +7,7 @@
 		</div>
 		<div class="gf-form max-width-15">
 			<label class="gf-form-label query-keyword">Alias</label>
-			<input type="text" class="gf-form-input" ng-model="ctrl.target.alias" spellcheck='false' placeholder="alias patterns (empty = auto)" ng-blur="ctrl.refresh()">
+			<input type="text" class="gf-form-input" ng-model="ctrl.target.alias" spellcheck='false' placeholder="alias patterns" ng-blur="ctrl.refresh()">
 		</div>
 	</div>
 

+ 2 - 2
public/sass/_variables.dark.scss

@@ -67,8 +67,8 @@ $page-gradient: linear-gradient(60deg, transparent 70%, darken($page-bg, 4%) 98%
 
 // Links
 // -------------------------
-$link-color:              darken($white,11%);
-$link-color-disabled:     darken($link-color,30%);
+$link-color:              darken($white, 11%);
+$link-color-disabled:     darken($link-color, 30%);
 $link-hover-color:        $white;
 $external-link-color:     $blue;
 

+ 1 - 0
public/sass/components/_gf-form.scss

@@ -126,6 +126,7 @@ $gf-form-margin: 0.25rem;
 
   &--dropdown {
     padding-right: $input-padding-x*2;
+
     &:after {
       position: absolute;
       top: 35%;

+ 3 - 2
public/sass/utils/_utils.scss

@@ -59,15 +59,16 @@ button.close {
 
 // Toggling content
 .hide {
-  display: none;
+  display: none !important;
 }
+
 .show {
   display: block;
 }
 
 // Visibility
 .invisible {
-  visibility: hidden;
+  visibility: hidden !important;
 }
 
 // For Affix plugin