Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
03390266
Commit
03390266
authored
Aug 18, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(default datasource): minor fix for handling of default datasource
parent
2f5115ca
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
43 deletions
+26
-43
public/app/plugins/datasource/influxdb/partials/query.editor.html
+4
-12
public/app/plugins/datasource/influxdb_08/partials/query.editor.html
+12
-18
public/app/plugins/datasource/influxdb_08/queryCtrl.js
+2
-8
public/app/plugins/datasource/kairosdb/partials/query.editor.html
+3
-0
public/app/plugins/datasource/opentsdb/partials/query.editor.html
+5
-5
No files found.
public/app/plugins/datasource/influxdb/partials/query.editor.html
View file @
03390266
...
...
@@ -15,18 +15,10 @@
<i
class=
"fa fa-bars"
></i>
</a>
<ul
class=
"dropdown-menu pull-right"
role=
"menu"
>
<a
tabindex=
"1"
ng-click=
"toggleEditorMode()"
>
Switch editor mode
</a>
<li
role=
"menuitem"
>
<a
tabindex=
"1"
ng-click=
"duplicate()"
>
Duplicate
</a>
</li>
<li
role=
"menuitem"
>
<a
tabindex=
"1"
ng-click=
"moveMetricQuery($index, $index-1)"
>
Move up
</a>
</li>
<li
role=
"menuitem"
>
<a
tabindex=
"1"
ng-click=
"moveMetricQuery($index, $index+1)"
>
Move down
</a>
</li>
<li
role=
"menuitem"
><a
tabindex=
"1"
ng-click=
"toggleQueryMode()"
>
Switch editor mode
</a></li>
<li
role=
"menuitem"
><a
tabindex=
"1"
ng-click=
"duplicate()"
>
Duplicate
</a></li>
<li
role=
"menuitem"
><a
tabindex=
"1"
ng-click=
"moveMetricQuery($index, $index-1)"
>
Move up
</a></li>
<li
role=
"menuitem"
><a
tabindex=
"1"
ng-click=
"moveMetricQuery($index, $index+1)"
>
Move down
</a></li>
</ul>
</div>
</li>
...
...
public/app/plugins/datasource/influxdb_08/partials/query.editor.html
View file @
03390266
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list pull-right"
>
<li
class=
"tight-form-item small"
ng-show=
"target.datasource"
>
<em>
{{target.datasource}}
</em>
</li>
<li
class=
"tight-form-item"
>
<div
class=
"dropdown"
>
<a
class=
"pointer dropdown-toggle"
data-toggle=
"dropdown"
tabindex=
"1"
>
<a
class=
"pointer dropdown-toggle"
data-toggle=
"dropdown"
tabindex=
"1"
>
<i
class=
"fa fa-bars"
></i>
</a>
<ul
class=
"dropdown-menu pull-right"
role=
"menu"
>
<li
role=
"menuitem"
><a
tabindex=
"1"
ng-click=
"toggleQueryMode()"
>
Switch editor mode
</a></li>
<li
role=
"menuitem"
><a
tabindex=
"1"
ng-click=
"duplicate()"
>
Duplicate
</a></li>
<li
role=
"menuitem"
><a
tabindex=
"1"
ng-click=
"showQuery()"
ng-hide=
"target.rawQuery"
>
Raw query mode
</a></li>
<li
role=
"menuitem"
><a
tabindex=
"1"
ng-click=
"hideQuery()"
ng-show=
"target.rawQuery"
>
Query editor mode
</a></li>
<li
role=
"menuitem"
><a
tabindex=
"1"
ng-click=
"moveMetricQuery($index, $index-1)"
>
Move up
</a></li>
<li
role=
"menuitem"
><a
tabindex=
"1"
ng-click=
"moveMetricQuery($index, $index+1)"
>
Move down
</a></li>
</ul>
...
...
@@ -35,19 +35,13 @@
</ul>
<!-- Raw Query mode -->
<ul
class=
"tight-form-list"
ng-show=
"target.rawQuery"
>
<li>
<input
type=
"text"
class=
"tight-form-input span10"
ng-model=
"target.query"
placeholder=
"select ..."
give-focus=
"target.rawQuery"
spellcheck=
'false'
data-min-length=
0
data-items=
100
ng-model-onblur
ng-blur=
"get_data()"
>
</li>
</ul>
<input
type=
"text"
class=
"tight-form-clear-input"
style=
"width: 80%"
ng-model=
"target.query"
placeholder=
"select ..."
ng-show=
"target.rawQuery"
give-focus=
"target.rawQuery"
spellcheck=
'false'
data-min-length=
0
data-items=
100
ng-model-onblur
ng-blur=
"get_data()"
></input>
<!-- Query editor mode -->
<ul
class=
"tight-form-list"
role=
"menu"
ng-hide=
"target.rawQuery"
>
...
...
public/app/plugins/datasource/influxdb_08/queryCtrl.js
View file @
03390266
...
...
@@ -30,8 +30,6 @@ function (angular, _) {
delete
target
.
groupby_field_add
;
}
$scope
.
rawQuery
=
false
;
$scope
.
functions
=
[
'count'
,
'mean'
,
'sum'
,
'min'
,
'max'
,
'mode'
,
'distinct'
,
'median'
,
...
...
@@ -46,12 +44,8 @@ function (angular, _) {
});
};
$scope
.
showQuery
=
function
()
{
$scope
.
target
.
rawQuery
=
true
;
};
$scope
.
hideQuery
=
function
()
{
$scope
.
target
.
rawQuery
=
false
;
$scope
.
toggleQueryMode
=
function
()
{
$scope
.
target
.
rawQuery
=
!
$scope
.
target
.
rawQuery
;
};
// Cannot use typeahead and ng-change on blur at the same time
...
...
public/app/plugins/datasource/kairosdb/partials/query.editor.html
View file @
03390266
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list pull-right"
>
<li
class=
"tight-form-item small"
ng-show=
"target.datasource"
>
<em>
{{target.datasource}}
</em>
</li>
<li
class=
"tight-form-item"
>
<div
class=
"dropdown"
>
<a
class=
"pointer dropdown-toggle"
data-toggle=
"dropdown"
tabindex=
"1"
>
...
...
public/app/plugins/datasource/opentsdb/partials/query.editor.html
View file @
03390266
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list pull-right"
>
<li
class=
"tight-form-item small"
ng-show=
"target.datasource"
>
<em>
{{target.datasource}}
</em>
</li>
<li
class=
"tight-form-item"
>
<div
class=
"dropdown"
>
<a
class=
"pointer dropdown-toggle"
data-toggle=
"dropdown"
tabindex=
"1"
>
<a
class=
"pointer dropdown-toggle"
data-toggle=
"dropdown"
tabindex=
"1"
>
<i
class=
"fa fa-bars"
></i>
</a>
<ul
class=
"dropdown-menu pull-right"
role=
"menu"
>
<li
role=
"menuitem"
>
<a
tabindex=
"1"
ng-click=
"duplicate()"
>
<a
tabindex=
"1"
ng-click=
"duplicate()"
>
Duplicate
</a>
</li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment