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
84618a60
Commit
84618a60
authored
May 18, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style and layout changes for InfluxDB 0.9 editor #1525
parent
b61f30de
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
14 deletions
+55
-14
public/app/plugins/datasource/influxdb/partials/query.editor.html
+45
-12
public/app/plugins/datasource/influxdb/queryCtrl.js
+1
-1
public/css/less/tightform.less
+9
-1
No files found.
public/app/plugins/datasource/influxdb/partials/query.editor.html
View file @
84618a60
<div
class=
"editor-row"
>
<div
ng-repeat=
"target in panel.targets"
class=
"tight-form"
ng-class=
"{'tight-form-disabled': target.hide}"
ng-controller=
"InfluxQueryCtrl"
ng-init=
"init()"
>
<div
ng-repeat=
"target in panel.targets"
ng-controller=
"InfluxQueryCtrl"
ng-init=
"init()"
ng-class=
"{'tight-form-disabled': target.hide}"
class=
"tight-form-container-no-item-borders"
style=
"margin-bottom: 10px"
>
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list pull-right"
>
<li
ng-show=
"parserError"
class=
"tight-form-item"
>
<a
bs-tooltip=
"parserError"
style=
"color: rgb(229, 189, 28)"
role=
"menuitem"
>
...
...
@@ -62,11 +59,10 @@
</li>
</ul>
<input
type=
"text"
class=
"tight-form-clear-input span10"
ng-model=
"target.query"
focus-me=
"target.rawQuery"
spellcheck=
'false'
ng-model-onblur
ng-change=
"targetTextChanged()"
ng-show=
"target.rawQuery"
/>
<input
type=
"text"
class=
"tight-form-clear-input span10"
ng-model=
"target.query"
focus-me=
"target.rawQuery"
spellcheck=
'false'
ng-model-onblur
ng-change=
"targetTextChanged()"
ng-show=
"target.rawQuery"
/>
<ul
class=
"tight-form-list"
role=
"menu"
ng-hide=
"target.rawQuery"
>
<li
class=
"tight-form-item query-keyword"
>
<li
class=
"tight-form-item query-keyword"
style=
"width: 75px;"
>
SELECT
</li>
<li
class=
"dropdown tight-form-item"
>
...
...
@@ -74,22 +70,58 @@
{{target.function}}
<span>
(value)
</span>
</a>
</li>
<li
class=
"tight-form-item query-keyword"
>
</ul>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"tight-form"
ng-hide=
"target.rawQuery"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
>
<i
class=
"fa fa-eye invisible"
></i>
</li>
<li
class=
"tight-form-item query-keyword"
style=
"width: 75px;"
>
FROM
</li>
<li>
<metric-segment
segment=
"measurementSegment"
get-alt-segments=
"getMeasurements()"
on-value-changed=
"measurementChanged()"
></metric-segment>
</li>
<li
class=
"tight-form-item query-keyword"
>
</ul>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"tight-form"
ng-hide=
"target.rawQuery"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
>
<i
class=
"fa fa-eye invisible"
></i>
</li>
<li
class=
"tight-form-item query-keyword"
style=
"width: 75px;"
>
WHERE
</li>
<li
ng-repeat=
"segment in tagSegments"
>
<metric-segment
segment=
"segment"
get-alt-segments=
"getTagsOrValues(segment, $index)"
on-value-changed=
"tagSegmentUpdated(segment, $index)"
></metric-segment>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"tight-form"
ng-hide=
"target.rawQuery"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
>
<i
class=
"fa fa-eye invisible"
></i>
</li>
<li
class=
"tight-form-item"
>
<span
class=
"query-keyword"
>
GROUP BY
</span>
</li>
<li
class=
"tight-form-item"
>
time($interval)
</li>
<li
ng-repeat=
"segment in groupBySegments"
>
<metric-segment
segment=
"segment"
get-alt-segments=
"getGroupByTagSegments(segment, 0)"
on-value-changed=
"groupByTagUpdated(segment, $index)"
></metric-segment>
</li>
...
...
@@ -108,14 +140,15 @@
<li><a
ng-click=
"target.fill = '0'"
>
fill (0)
</a></li>
</ul>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
</div>
</div>
<div
class=
"editor-row"
>
<div
class=
"pull-left"
style=
"margin-top: 30px;"
>
</div>
</div>
public/app/plugins/datasource/influxdb/queryCtrl.js
View file @
84618a60
...
...
@@ -266,7 +266,7 @@ function (angular, _, InfluxQueryBuilder) {
};
MetricSegment
.
newPlusButton
=
function
()
{
return
new
MetricSegment
({
fake
:
true
,
html
:
'<i class="fa fa-plus"></i>'
,
type
:
'plus-button'
});
return
new
MetricSegment
({
fake
:
true
,
html
:
'<i class="fa fa-plus
"></i>'
,
type
:
'plus-button'
});
};
MetricSegment
.
newSelectTagValue
=
function
()
{
...
...
public/css/less/tightform.less
View file @
84618a60
...
...
@@ -20,6 +20,14 @@
}
}
.tight-form-container-no-item-borders {
border: 1px solid @grafanaTargetBorder;
.tight-form, .tight-form-item {
border: none;
}
}
.spaced-form {
.tight-form {
margin: 7px 0;
...
...
@@ -85,9 +93,9 @@
&.last {
border-right: none;
}
}
.tight-form-item-icon {
i {
width: 15px;
...
...
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