Browse Source

Grafana 7.1+ legend displacement #455 (#456)

master
rozetko 4 years ago committed by GitHub
parent
commit
1d6d654e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/datasource/partials/config.html
  2. 14
      src/panel/graph_panel/partials/analytic_unit_5.x_6.x.html
  3. 6
      src/panel/graph_panel/partials/analytic_unit_7.x.html
  4. 2
      src/panel/graph_panel/partials/analytic_units_5.x.html
  5. 2
      src/panel/graph_panel/partials/analytic_units_6.x.html
  6. 2
      src/panel/graph_panel/partials/axes_editor.html
  7. 4
      src/panel/graph_panel/partials/new_analytic_unit.html
  8. 2
      src/panel/graph_panel/partials/reconnect_to_datasource.html
  9. 2
      src/panel/graph_panel/partials/tab_webhooks.html
  10. 4
      src/panel/graph_panel/template.html

4
src/datasource/partials/config.html

@ -35,7 +35,7 @@
class="gf-form-input" class="gf-form-input"
ng-model="ctrl.current.access" ng-model="ctrl.current.access"
ng-options="f.key as f.value for f in ctrl.ACCESS_OPTIONS" ng-options="f.key as f.value for f in ctrl.ACCESS_OPTIONS"
/> ></select>
</div> </div>
</div> </div>
<div class="gf-form"> <div class="gf-form">
@ -74,7 +74,7 @@
ng-model="ctrl.current.jsonData.keepCookies" ng-model="ctrl.current.jsonData.keepCookies"
width-class="width-20" tagclass="label label-tag" width-class="width-20" tagclass="label label-tag"
placeholder="Add Name" placeholder="Add Name"
/> ></bootstrap-tagsinput>
<info-popover mode="right-absolute"> <info-popover mode="right-absolute">
Grafana Proxy deletes forwarded cookies by default. Specify cookies by name Grafana Proxy deletes forwarded cookies by default. Specify cookies by name
that should be forwarded to the data source. that should be forwarded to the data source.

14
src/panel/graph_panel/partials/analytic_unit_5.x_6.x.html

@ -16,7 +16,7 @@
ng-model="analyticUnit.type" ng-model="analyticUnit.type"
ng-options="type.value as type.name for type in ctrl.analyticUnitTypes[analyticUnit.detectorType]" ng-options="type.value as type.name for type in ctrl.analyticUnitTypes[analyticUnit.detectorType]"
ng-disabled="true" ng-disabled="true"
/> ></select>
</div> </div>
</div> </div>
<div class="gf-form gf-form--grow"> <div class="gf-form gf-form--grow">
@ -31,7 +31,7 @@
<color-picker <color-picker
color="analyticUnit.labeledColor" color="analyticUnit.labeledColor"
onChange="ctrl.onColorChange.bind(ctrl, analyticUnit.id, false)" onChange="ctrl.onColorChange.bind(ctrl, analyticUnit.id, false)"
/> ></color-picker>
</label> </label>
</div> </div>
@ -43,7 +43,7 @@
<color-picker <color-picker
color="analyticUnit.deletedColor" color="analyticUnit.deletedColor"
onChange="ctrl.onColorChange.bind(ctrl, analyticUnit.id, true)" onChange="ctrl.onColorChange.bind(ctrl, analyticUnit.id, true)"
/> ></color-picker>
</label> </label>
</div> </div>
<div class="gf-form gf-form--grow"> <div class="gf-form gf-form--grow">
@ -63,7 +63,7 @@
ng-model="analyticUnit.condition" ng-model="analyticUnit.condition"
ng-options="type for type in ctrl.analyticsController.conditions" ng-options="type for type in ctrl.analyticsController.conditions"
ng-change="ctrl.onAnalyticUnitChange(analyticUnit)" ng-change="ctrl.onAnalyticUnitChange(analyticUnit)"
/> ></select>
<input class="gf-form-input width-4" <input class="gf-form-input width-4"
ng-if="analyticUnit.condition !== 'NO_DATA'" ng-if="analyticUnit.condition !== 'NO_DATA'"
type="number" type="number"
@ -117,7 +117,7 @@
label-class="query-keyword width-8" label-class="query-keyword width-8"
on-change="ctrl.onAnalyticUnitChange(analyticUnit)" on-change="ctrl.onAnalyticUnitChange(analyticUnit)"
checked="analyticUnit.hasSeasonality" checked="analyticUnit.hasSeasonality"
/> ></gf-form-switch>
</div> </div>
<div class="gf-form" ng-if="analyticUnit.hasSeasonality"> <div class="gf-form" ng-if="analyticUnit.hasSeasonality">
@ -138,7 +138,7 @@
ng-model="analyticUnit.seasonalityPeriod.unit" ng-model="analyticUnit.seasonalityPeriod.unit"
ng-change="ctrl.onSeasonalityChange(analyticUnit.id)" ng-change="ctrl.onSeasonalityChange(analyticUnit.id)"
ng-options="type for type in ['seconds', 'minutes', 'hours', 'days', 'years']" ng-options="type for type in ['seconds', 'minutes', 'hours', 'days', 'years']"
/> ></select>
</div> </div>
</div> </div>
@ -155,7 +155,7 @@
ng-model="analyticUnit.enableBounds" ng-model="analyticUnit.enableBounds"
ng-change="ctrl.onAnalyticUnitChange(analyticUnit)" ng-change="ctrl.onAnalyticUnitChange(analyticUnit)"
ng-options="bound.value as bound.name for bound in ctrl.boundTypes" ng-options="bound.value as bound.name for bound in ctrl.boundTypes"
/> ></select>
</div> </div>
</div> </div>
<div class="gf-form gf-form--grow"> <div class="gf-form gf-form--grow">

6
src/panel/graph_panel/partials/analytic_unit_7.x.html

@ -28,7 +28,7 @@
<color-picker <color-picker
color="analyticUnit.labeledColor" color="analyticUnit.labeledColor"
onChange="ctrl.onColorChange.bind(ctrl, analyticUnit.id, false)" onChange="ctrl.onColorChange.bind(ctrl, analyticUnit.id, false)"
/> ></color-picker>
</label> </label>
</div> </div>
@ -40,7 +40,7 @@
<color-picker <color-picker
color="analyticUnit.deletedColor" color="analyticUnit.deletedColor"
onChange="ctrl.onColorChange.bind(ctrl, analyticUnit.id, true)" onChange="ctrl.onColorChange.bind(ctrl, analyticUnit.id, true)"
/> ></color-picker>
</label> </label>
</div> </div>
</div> </div>
@ -107,7 +107,7 @@
label-class="query-keyword" label-class="query-keyword"
on-change="ctrl.onAnalyticUnitChange(analyticUnit)" on-change="ctrl.onAnalyticUnitChange(analyticUnit)"
checked="analyticUnit.hasSeasonality" checked="analyticUnit.hasSeasonality"
/> ></gf-form-switch>
</div> </div>
<div class="gf-form" ng-if="analyticUnit.hasSeasonality"> <div class="gf-form" ng-if="analyticUnit.hasSeasonality">

2
src/panel/graph_panel/partials/analytic_units_5.x.html

@ -113,7 +113,7 @@
ng-model="ctrl.analyticsController.labelingMode" ng-model="ctrl.analyticsController.labelingMode"
ng-options="type.value as type.name for type in analyticUnit.labelingModes" ng-options="type.value as type.name for type in analyticUnit.labelingModes"
ng-disabled="analyticUnit.status === 'LEARNING'" ng-disabled="analyticUnit.status === 'LEARNING'"
/> ></select>
<label class="gf-form-label" <label class="gf-form-label"
ng-if="analyticUnit.selected && !analyticUnit.saving" ng-if="analyticUnit.selected && !analyticUnit.saving"

2
src/panel/graph_panel/partials/analytic_units_6.x.html

@ -102,7 +102,7 @@
ng-model="ctrl.analyticsController.labelingMode" ng-model="ctrl.analyticsController.labelingMode"
ng-options="type.value as type.name for type in analyticUnit.labelingModes" ng-options="type.value as type.name for type in analyticUnit.labelingModes"
ng-disabled="analyticUnit.status === 'LEARNING'" ng-disabled="analyticUnit.status === 'LEARNING'"
/> ></select>
<button class="query-editor-row__action" <button class="query-editor-row__action"
ng-if="analyticUnit.selected && !analyticUnit.saving" ng-if="analyticUnit.selected && !analyticUnit.saving"

2
src/panel/graph_panel/partials/axes_editor.html

@ -12,7 +12,7 @@
<div <div
class="gf-form-dropdown-typeahead max-width-20" ng-model="yaxis.format" class="gf-form-dropdown-typeahead max-width-20" ng-model="yaxis.format"
dropdown-typeahead2="ctrl.unitFormats" dropdown-typeahead-on-select="ctrl.setUnitFormat(yaxis, $subItem)" dropdown-typeahead2="ctrl.unitFormats" dropdown-typeahead-on-select="ctrl.setUnitFormat(yaxis, $subItem)"
/> ></div>
</div> </div>
<div class="gf-form"> <div class="gf-form">

4
src/panel/graph_panel/partials/new_analytic_unit.html

@ -20,7 +20,7 @@
ng-model="ctrl.analyticsController.newAnalyticUnit.detectorType" ng-model="ctrl.analyticsController.newAnalyticUnit.detectorType"
ng-options="analyticUnitDetectorType for analyticUnitDetectorType in ctrl.analyticUnitDetectorTypes" ng-options="analyticUnitDetectorType for analyticUnitDetectorType in ctrl.analyticUnitDetectorTypes"
ng-change="ctrl.analyticsController.onAnalyticUnitDetectorChange(ctrl.analyticUnitTypes);" ng-change="ctrl.analyticsController.onAnalyticUnitDetectorChange(ctrl.analyticUnitTypes);"
/> ></select>
</div> </div>
</div> </div>
@ -33,7 +33,7 @@
type.value as type.name type.value as type.name
for type in ctrl.analyticUnitTypes[ctrl.analyticsController.newAnalyticUnit.detectorType] for type in ctrl.analyticUnitTypes[ctrl.analyticsController.newAnalyticUnit.detectorType]
" "
/> ></select>
</div> </div>
</div> </div>

2
src/panel/graph_panel/partials/reconnect_to_datasource.html

@ -7,7 +7,7 @@
<i class="fa fa-check" ng-show="ctrl.connectionStatus.status !== 'error'"></i> <i class="fa fa-check" ng-show="ctrl.connectionStatus.status !== 'error'"></i>
</div> </div>
<div class="alert-body"> <div class="alert-body">
<div class="alert-title" ng-bind-html="ctrl.connectionStatus.message" /> <div class="alert-title" ng-bind-html="ctrl.connectionStatus.message"></div>
</div> </div>
</div> </div>
<div ng-hide="ctrl.connectionStatus.status === 'info'"> <div ng-hide="ctrl.connectionStatus.status === 'info'">

2
src/panel/graph_panel/partials/tab_webhooks.html

@ -11,7 +11,7 @@
<gf-form-switch <gf-form-switch
on-change="ctrl.onAnalyticUnitAlertChange(analyticUnit)" on-change="ctrl.onAnalyticUnitAlertChange(analyticUnit)"
checked="analyticUnit.alert" checked="analyticUnit.alert"
/> ></gf-form-switch>
</div> </div>
</div> </div>
</div> </div>

4
src/panel/graph_panel/template.html

@ -1,4 +1,4 @@
<div class="graph-panel" ng-class="{'graph-panel--legend-right': ctrl.panel.legend.rightSide}"> <div class="graph-panel" ng-class="{'graph-panel--legend-right': ctrl.panel.legend.rightSide}">
<div class="graph-panel__chart" id="graphPanel" ng-dblclick="ctrl.zoomOut()" /> <div class="graph-panel__chart" id="graphPanel" ng-dblclick="ctrl.zoomOut()"></div>
<div class="hastic-graph-legend" id="graphLegend" /> <div class="hastic-graph-legend" id="graphLegend"></div>
</div> </div>

Loading…
Cancel
Save