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
3f05b4bb
Commit
3f05b4bb
authored
Feb 22, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(annotations): updated annotations query editor
parent
9eabd956
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
22 deletions
+23
-22
public/app/features/annotations/partials/editor.html
+11
-9
public/app/plugins/datasource/graphite/partials/annotations.editor.html
+5
-6
public/app/plugins/datasource/influxdb/datasource.ts
+4
-0
public/sass/components/_dashboard.scss
+0
-5
public/sass/components/_drop.scss
+2
-2
public/sass/components/_sidemenu.scss
+1
-0
No files found.
public/app/features/annotations/partials/editor.html
View file @
3f05b4bb
...
...
@@ -76,22 +76,24 @@
<select
class=
"gf-form-input gf-size-auto"
ng-model=
"currentAnnotation.datasource"
ng-options=
"f.name as f.name for f in datasources"
ng-change=
"datasourceChanged()"
></select>
</div>
</div>
<div
class=
"gf-form-inline
last-row
"
>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form gf-size-max-xl"
>
<span
class=
"gf-form-label width-10"
>
Icon size
</span>
<select
class=
"gf-form-input gf-size-md"
ng-model=
"currentAnnotation.iconSize"
ng-options=
"f for f in [7,8,9,10,13,15,17,20,25,30]"
></select>
</div>
<div
class=
"gf-form max-width-10"
>
<spectrum-picker
ng-model=
"currentAnnotation.iconColor"
></spectrum-picker>
<span
class=
"checkbox-label"
>
Icon color
</span>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label"
>
<span>
Icon color
</span>
<spectrum-picker
ng-model=
"currentAnnotation.iconColor"
></spectrum-picker>
</label>
</div>
<div
class=
"gf-form max-width-10"
>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label"
>
<span>
Line color
</span>
<spectrum-picker
ng-model=
"currentAnnotation.lineColor"
></spectrum-picker>
</label>
<editor-checkbox
text=
"Grid line"
model=
"currentAnnotation.showLine"
></editor-checkbox>
</div>
<div
class=
"gf-form max-width-10"
>
<spectrum-picker
ng-model=
"currentAnnotation.lineColor"
></spectrum-picker>
<span
class=
"checkbox-label"
>
Line color
</span>
</div>
</div>
</div>
...
...
public/app/plugins/datasource/graphite/partials/annotations.editor.html
View file @
3f05b4bb
<div
class=
"gf-form-group"
>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label width-1
4"
>
Graphite target expression
</span>
<input
type=
"text"
class=
"gf-form-input
max-width-20
"
ng-model=
'ctrl.annotation.target'
placeholder=
""
></input>
<span
class=
"gf-form-label width-1
3"
>
Graphite metrics query
</span>
<input
type=
"text"
class=
"gf-form-input"
ng-model=
'ctrl.annotation.target'
placeholder=
""
></input>
</div>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label width-1
4"
>
Graphite event tags
</span>
<input
type=
"text"
class=
"gf-form-input
max-width-20
"
ng-model=
'ctrl.annotation.tags'
placeholder=
""
></input>
<span
class=
"gf-form-label width-1
3"
>
Or Graphite events query
</span>
<input
type=
"text"
class=
"gf-form-input"
ng-model=
'ctrl.annotation.tags'
placeholder=
""
></input>
</div>
</div>
\ No newline at end of file
</div>
public/app/plugins/datasource/influxdb/datasource.ts
View file @
3f05b4bb
...
...
@@ -85,6 +85,10 @@ export function InfluxDatasource(instanceSettings, $q, backendSrv, templateSrv)
};
this
.
annotationQuery
=
function
(
options
)
{
if
(
!
options
.
annotation
.
query
)
{
return
$q
.
reject
({
message
:
'Query missing in annotation definition'
});
}
var
timeFilter
=
getTimeFilter
({
rangeRaw
:
options
.
rangeRaw
});
var
query
=
options
.
annotation
.
query
.
replace
(
'$timeFilter'
,
timeFilter
);
query
=
templateSrv
.
replace
(
query
);
...
...
public/sass/components/_dashboard.scss
View file @
3f05b4bb
...
...
@@ -286,8 +286,3 @@ div.flot-text {
}
}
.annotations-basic-settings
{
.last-row
{
margin-bottom
:
20px
;
}
}
public/sass/components/_drop.scss
View file @
3f05b4bb
...
...
@@ -15,8 +15,8 @@ $easing: cubic-bezier(0, 0, 0.265, 1.00);
display
:
block
;
}
&
.drop-open.drop-
popover
.drop-out-of-bounds
,
&
.drop-open-transitionend.drop-
popover
.drop-out-of-bounds
{
&
.drop-open.drop-
help
.drop-out-of-bounds
,
&
.drop-open-transitionend.drop-
help
.drop-out-of-bounds
{
display
:
none
;
}
}
...
...
public/sass/components/_sidemenu.scss
View file @
3f05b4bb
...
...
@@ -60,6 +60,7 @@
position
:
relative
;
@include
left-brand-border
();
&
.active
,
&
:hover
{
background-color
:
$side-menu-item-hover-bg
;
@include
left-brand-border-gradient
();
...
...
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