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
4544f794
Commit
4544f794
authored
Jan 12, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed influxdb and opentsdb editors to use latest markup and css, #1331
parent
a3da11c5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
78 deletions
+50
-78
src/app/features/influxdb/funcEditor.js
+1
-2
src/app/features/influxdb/partials/query.editor.html
+29
-27
src/app/features/opentsdb/partials/query.editor.html
+20
-18
src/css/less/grafana.less
+0
-31
No files found.
src/app/features/influxdb/funcEditor.js
View file @
4544f794
...
...
@@ -133,4 +133,4 @@ function (angular, _, $) {
});
});
\ No newline at end of file
});
src/app/features/influxdb/partials/query.editor.html
View file @
4544f794
...
...
@@ -8,22 +8,24 @@
<div
class=
"grafana-target-inner-wrapper"
>
<div
class=
"grafana-target-inner"
>
<ul
class=
"grafana-target-controls"
>
<li
class=
"dropdown"
>
<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()"
>
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>
<ul
class=
"grafana-segment-list pull-right"
>
<li
class=
"grafana-target-segment"
>
<div
class=
"dropdown"
>
<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()"
>
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>
</div>
</li>
<li>
<li
class=
"grafana-target-segment last"
>
<a
class=
"pointer"
tabindex=
"1"
ng-click=
"removeDataQuery(target)"
>
<i
class=
"fa fa-remove"
></i>
</a>
...
...
@@ -42,7 +44,7 @@
<ul
class=
"grafana-segment-list"
ng-show=
"target.rawQuery"
>
<li>
<input
type=
"text"
class=
"grafana-target-
tex
t-input span10"
class=
"grafana-target-
segmen
t-input span10"
ng-model=
"target.query"
placeholder=
"select ..."
focus-me=
"target.rawQuery"
...
...
@@ -60,7 +62,7 @@
</li>
<li>
<input
type=
"text"
class=
"grafana-target-
tex
t-input span8"
class=
"grafana-target-
segmen
t-input span8"
ng-model=
"target.series"
spellcheck=
'false'
bs-typeahead=
"listSeries"
...
...
@@ -76,7 +78,7 @@
</li>
<li>
<input
type=
"text"
class=
"input-medium grafana-target-
tex
t-input"
ng-model=
"target.alias"
<input
type=
"text"
class=
"input-medium grafana-target-
segmen
t-input"
ng-model=
"target.alias"
spellcheck=
'false'
placeholder=
"alias"
ng-blur=
"get_data()"
>
</li>
...
...
@@ -89,14 +91,14 @@
<!-- Raw Query mode -->
<ul
class=
"grafana-segment-list"
ng-show=
"target.rawQuery"
>
<li
class=
"grafana-target-segment"
>
<i
class=
"fa eye invisible"
></i>
<i
class=
"fa
fa-
eye invisible"
></i>
</li>
<li
class=
"grafana-target-segment"
>
alias
</li>
<li>
<input
type=
"text"
class=
"input-medium grafana-target-
tex
t-input"
class=
"input-medium grafana-target-
segmen
t-input"
ng-model=
"target.alias"
spellcheck=
'false'
placeholder=
"alias"
...
...
@@ -106,7 +108,7 @@
group by time
</li>
<li>
<input
type=
"text"
class=
"input-mini grafana-target-
tex
t-input"
ng-model=
"target.interval"
<input
type=
"text"
class=
"input-mini grafana-target-
segmen
t-input"
ng-model=
"target.interval"
spellcheck=
'false'
placeholder=
"{{interval}}"
data-placement=
"right"
bs-tooltip=
"'Leave blank for auto handling based on time range and panel width'"
ng-model-onblur
ng-change=
"get_data()"
>
...
...
@@ -122,7 +124,7 @@
select
</li>
<li
class=
"dropdown"
>
<span
influxdb-func-editor
class=
"grafana-target-segment"
>
<span
influxdb-func-editor
class=
"grafana-target-segment
grafana-target-function
"
>
</span>
</li>
...
...
@@ -130,7 +132,7 @@
where
</li>
<li>
<input
type=
"text"
class=
"input-medium grafana-target-
tex
t-input"
ng-model=
"target.condition"
<input
type=
"text"
class=
"input-medium grafana-target-
segmen
t-input"
ng-model=
"target.condition"
bs-tooltip=
"'Add a where clause'"
data-placement=
"right"
spellcheck=
'false'
placeholder=
"column ~= value"
ng-blur=
"get_data()"
>
</li>
...
...
@@ -138,18 +140,18 @@
group by time
</li>
<li>
<input
type=
"text"
class=
"input-mini grafana-target-
tex
t-input"
ng-model=
"target.interval"
<input
type=
"text"
class=
"input-mini grafana-target-
segmen
t-input"
ng-model=
"target.interval"
spellcheck=
'false'
placeholder=
"{{interval}}"
data-placement=
"right"
bs-tooltip=
"'Leave blank for auto handling based on time range and panel width'"
ng-model-onblur
ng-change=
"get_data()"
>
</li>
<li
class=
"grafana-target-segment"
>
<i
class=
"fa fa-plus"
></i>
and
</li>
<li>
<input
type=
"text"
class=
"input-small grafana-target-
tex
t-input"
ng-model=
"target.groupby_field"
bs-tooltip=
"'Add a group by column or leave blank'"
<input
type=
"text"
class=
"input-small grafana-target-
segmen
t-input"
ng-model=
"target.groupby_field"
bs-tooltip=
"'Add a group by column or leave blank'"
placeholder=
"column"
spellcheck=
"false"
bs-typeahead=
"listColumns"
data-min-length=
0
ng-blur=
"get_data()"
>
</li>
...
...
@@ -190,7 +192,7 @@
group by time
</li>
<li>
<input
type=
"text"
class=
"input-medium grafana-target-
tex
t-input"
ng-model=
"panel.interval"
ng-blur=
"get_data();"
<input
type=
"text"
class=
"input-medium grafana-target-
segmen
t-input"
ng-model=
"panel.interval"
ng-blur=
"get_data();"
spellcheck=
'false'
placeholder=
"example: >10s"
>
</li>
<li
class=
"grafana-target-segment"
>
...
...
src/app/features/opentsdb/partials/query.editor.html
View file @
4544f794
...
...
@@ -7,24 +7,26 @@
<div
class=
"grafana-target-inner-wrapper"
>
<div
class=
"grafana-target-inner"
>
<ul
class=
"grafana-target-controls"
>
<li
class=
"dropdown"
>
<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()"
>
Duplicate
</a>
</li>
</ul>
</li>
<li>
<a
class=
"pointer"
tabindex=
"1"
ng-click=
"removeDataQuery(target)"
>
<ul
class=
"grafana-segment-list pull-right"
>
<li
class=
"grafana-target-segment"
>
<div
class=
"dropdown"
>
<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()"
>
Duplicate
</a>
</li>
</ul>
</div>
</li>
<li
class=
"grafana-target-segment last"
>
<a
class=
"pointer"
tabindex=
"1"
ng-click=
"removeDataQuery(target)"
>
<i
class=
"fa fa-remove"
></i>
</a>
</li>
...
...
src/css/less/grafana.less
View file @
4544f794
...
...
@@ -203,37 +203,6 @@ input[type=text].grafana-function-param-input {
padding: 0;
}
.grafana-target-controls {
float: right;
list-style: none;
margin: 0;
text-align: right;
>li {
display: inline-block;
white-space: nowrap;
}
.fa {
position: relative;
top: 8px;
}
a {
padding: 8px 7px;
color: @grafanaTargetColor;
font-size: 16px;
.grafana-target-hidden & {
color: @grafanaTargetColorHide;
}
&:hover, &:focus {
text-decoration: none;
}
}
}
input[type=text].grafana-target-text-input {
padding: 8px 7px;
border: none;
...
...
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