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
24a7d4f8
Commit
24a7d4f8
authored
Mar 29, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux(): query editors, added group by
parent
a4f96214
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
public/app/plugins/datasource/influxdb/partials/query.editor.html
+20
-3
No files found.
public/app/plugins/datasource/influxdb/partials/query.editor.html
View file @
24a7d4f8
<query-editor-row
ctrl=
"ctrl"
>
<query-editor-row
ctrl=
"ctrl"
>
<div
ng-hide=
"ctrl.target.rawQuery"
class=
"gf-form-inline"
>
<div
ng-hide=
"ctrl.target.rawQuery"
class=
"gf-form-inline"
>
<label
class=
"gf-form-label query-keyword width-
6
"
>
FROM
</label>
<label
class=
"gf-form-label query-keyword width-
7
"
>
FROM
</label>
<metric-segment
segment=
"ctrl.policySegment"
get-options=
"ctrl.getPolicySegments()"
on-change=
"ctrl.policyChanged()"
></metric-segment>
<metric-segment
segment=
"ctrl.policySegment"
get-options=
"ctrl.getPolicySegments()"
on-change=
"ctrl.policyChanged()"
></metric-segment>
<metric-segment
segment=
"ctrl.measurementSegment"
get-options=
"ctrl.getMeasurements()"
on-change=
"ctrl.measurementChanged()"
></metric-segment>
<metric-segment
segment=
"ctrl.measurementSegment"
get-options=
"ctrl.getMeasurements()"
on-change=
"ctrl.measurementChanged()"
></metric-segment>
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<div
ng-hide=
"ctrl.target.rawQuery"
>
<div
ng-hide=
"ctrl.target.rawQuery"
>
<div
class=
"gf-form-inline query-editor-secondary-row"
ng-repeat=
"selectParts in ctrl.queryModel.selectModels"
>
<div
class=
"gf-form-inline query-editor-secondary-row"
ng-repeat=
"selectParts in ctrl.queryModel.selectModels"
>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label query-keyword width-
6
"
>
<label
class=
"gf-form-label query-keyword width-
7
"
>
<span
ng-show=
"$index === 0"
>
SELECT
</span>
<span
ng-show=
"$index === 0"
>
SELECT
</span>
</label>
</label>
...
@@ -39,6 +39,23 @@
...
@@ -39,6 +39,23 @@
dropdown-typeahead=
"ctrl.selectMenu"
dropdown-typeahead=
"ctrl.selectMenu"
dropdown-typeahead-on-select=
"ctrl.addSelectPart(selectParts, $item, $subItem)"
>
dropdown-typeahead-on-select=
"ctrl.addSelectPart(selectParts, $item, $subItem)"
>
</label>
</label>
</div>
</div>
<div
class=
"gf-form-inline query-editor-secondary-row"
>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label query-keyword width-7"
>
<span>
GROUP BY
</span>
</label>
<influx-query-part-editor
ng-repeat=
"part in ctrl.queryModel.groupByParts"
part=
"part"
class=
"gf-form-label tight-form-func"
remove-action=
"ctrl.removeGroupByPart(part, $index)"
part-updated=
"ctrl.refresh();"
get-options=
"ctrl.getPartOptions(part)"
>
</influx-query-part-editor>
<metric-segment
segment=
"ctrl.groupBySegment"
get-options=
"ctrl.getGroupByOptions()"
on-change=
"ctrl.groupByAction(part, $index)"
></metric-segment>
</div>
</div>
</div>
</div>
...
@@ -75,7 +92,7 @@
...
@@ -75,7 +92,7 @@
<div
class=
"gf-form-inline query-editor-secondary-row"
>
<div
class=
"gf-form-inline query-editor-secondary-row"
>
<div
class=
"gf-form max-width-30"
>
<div
class=
"gf-form max-width-30"
>
<label
class=
"gf-form-label query-keyword"
>
ALIAS BY
</label>
<label
class=
"gf-form-label query-keyword
width-7
"
>
ALIAS BY
</label>
<input
type=
"text"
class=
"gf-form-input"
ng-model=
"ctrl.target.alias"
spellcheck=
'false'
placeholder=
"Naming pattern"
ng-blur=
"ctrl.refresh()"
>
<input
type=
"text"
class=
"gf-form-input"
ng-model=
"ctrl.target.alias"
spellcheck=
'false'
placeholder=
"Naming pattern"
ng-blur=
"ctrl.refresh()"
>
</div>
</div>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
...
...
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