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
bbf4d003
Commit
bbf4d003
authored
Apr 25, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(query editors): added select style to segment, used by data source selector
parent
6b813b4e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
8 deletions
+24
-8
public/app/core/directives/metric_segment.js
+6
-3
public/app/features/panel/metrics_ds_selector.ts
+2
-2
public/app/plugins/datasource/elasticsearch/bucket_agg.js
+0
-1
public/app/plugins/datasource/elasticsearch/partials/bucket_agg.html
+1
-1
public/app/plugins/datasource/graphite/partials/query.editor.html
+1
-1
public/sass/components/_gf-form.scss
+14
-0
No files found.
public/app/core/directives/metric_segment.js
View file @
bbf4d003
...
@@ -11,7 +11,10 @@ function (_, $, coreModule) {
...
@@ -11,7 +11,10 @@ function (_, $, coreModule) {
' class="gf-form-input input-medium"'
+
' class="gf-form-input input-medium"'
+
' spellcheck="false" style="display:none"></input>'
;
' spellcheck="false" style="display:none"></input>'
;
var
buttonTemplate
=
'<a class="gf-form-label" ng-class="segment.cssClass" '
+
var
linkTemplate
=
'<a class="gf-form-label" ng-class="segment.cssClass" '
+
'tabindex="1" give-focus="segment.focus" ng-bind-html="segment.html"></a>'
;
var
selectTemplate
=
'<a class="gf-form-input gf-form-input--dropdown" ng-class="segment.cssClass" '
+
'tabindex="1" give-focus="segment.focus" ng-bind-html="segment.html"></a>'
;
'tabindex="1" give-focus="segment.focus" ng-bind-html="segment.html"></a>'
;
return
{
return
{
...
@@ -20,9 +23,9 @@ function (_, $, coreModule) {
...
@@ -20,9 +23,9 @@ function (_, $, coreModule) {
getOptions
:
"&"
,
getOptions
:
"&"
,
onChange
:
"&"
,
onChange
:
"&"
,
},
},
link
:
function
(
$scope
,
elem
)
{
link
:
function
(
$scope
,
elem
,
attrs
)
{
var
$input
=
$
(
inputTemplate
);
var
$input
=
$
(
inputTemplate
);
var
$button
=
$
(
button
Template
);
var
$button
=
$
(
attrs
.
styleMode
===
'select'
?
selectTemplate
:
link
Template
);
var
segment
=
$scope
.
segment
;
var
segment
=
$scope
.
segment
;
var
options
=
null
;
var
options
=
null
;
var
cancelBlur
=
null
;
var
cancelBlur
=
null
;
...
...
public/app/features/panel/metrics_ds_selector.ts
View file @
bbf4d003
...
@@ -13,10 +13,10 @@ var template = `
...
@@ -13,10 +13,10 @@ var template = `
<i class="icon-gf icon-gf-datasource"></i>
<i class="icon-gf icon-gf-datasource"></i>
</label>
</label>
<label class="gf-form-label">
<label class="gf-form-label">
D
ata source
Panel d
ata source
</label>
</label>
<metric-segment segment="ctrl.dsSegment"
<metric-segment segment="ctrl.dsSegment"
style-mode="select"
get-options="ctrl.getOptions()"
get-options="ctrl.getOptions()"
on-change="ctrl.datasourceChanged()"></metric-segment>
on-change="ctrl.datasourceChanged()"></metric-segment>
</div>
</div>
...
...
public/app/plugins/datasource/elasticsearch/bucket_agg.js
View file @
bbf4d003
...
@@ -124,7 +124,6 @@ function (angular, _, queryDef) {
...
@@ -124,7 +124,6 @@ function (angular, _, queryDef) {
}
}
}
}
console
.
log
(
settingsLinkText
);
$scope
.
settingsLinkText
=
settingsLinkText
;
$scope
.
settingsLinkText
=
settingsLinkText
;
$scope
.
agg
.
settings
=
settings
;
$scope
.
agg
.
settings
=
settings
;
return
true
;
return
true
;
...
...
public/app/plugins/datasource/elasticsearch/partials/bucket_agg.html
View file @
bbf4d003
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<div
class=
"gf-form offset-width-7"
>
<div
class=
"gf-form offset-width-7"
>
<label
class=
"gf-form-label width-10"
>
<label
class=
"gf-form-label width-10"
>
Trim edges points
Trim edges points
<info-popver
mode=
"right-normal"
>
<info-pop
o
ver
mode=
"right-normal"
>
Trim the edges on the timeseries x datapoints
Trim the edges on the timeseries x datapoints
</info-popover>
</info-popover>
</label>
</label>
...
...
public/app/plugins/datasource/graphite/partials/query.editor.html
View file @
bbf4d003
<query-editor-row
query-ctrl=
"ctrl"
>
<query-editor-row
query-ctrl=
"ctrl"
>
<div
class=
"gf-form"
ng-show=
"ctrl.target.textEditor"
>
<div
class=
"gf-form"
ng-show=
"ctrl.target.textEditor"
>
<input
type=
"text"
class=
"gf-form-input"
ng-model=
"ctrl.target.
query
"
spellcheck=
"false"
ng-blur=
"ctrl.refresh()"
></input>
<input
type=
"text"
class=
"gf-form-input"
ng-model=
"ctrl.target.
target
"
spellcheck=
"false"
ng-blur=
"ctrl.refresh()"
></input>
</div>
</div>
<div
ng-hide=
"ctrl.target.textEditor"
>
<div
ng-hide=
"ctrl.target.textEditor"
>
...
...
public/sass/components/_gf-form.scss
View file @
bbf4d003
...
@@ -123,6 +123,20 @@ $gf-form-margin: 0.25rem;
...
@@ -123,6 +123,20 @@ $gf-form-margin: 0.25rem;
}
}
&
.gf-size-auto
{
width
:
auto
;
}
&
.gf-size-auto
{
width
:
auto
;
}
&
--dropdown
{
padding-right
:
$input-padding-x
*
2
;
&
:after
{
position
:
absolute
;
top
:
35%
;
right
:
$input-padding-x
/
2
;
background-color
:
transparent
;
color
:
$input-color
;
font
:
normal
normal
normal
$font-size-sm
/
1
FontAwesome
;
content
:
'\f0d7'
;
pointer-events
:
none
;
}
}
}
}
.gf-form-select-wrapper
{
.gf-form-select-wrapper
{
...
...
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