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
fc829b32
Commit
fc829b32
authored
Feb 02, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(plugins): minor fixes to breaking out query editor row into reusable component
parent
f2700822
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
19 deletions
+20
-19
public/app/features/panel/query_editor_row.ts
+1
-1
public/app/plugins/datasource/graphite/partials/query.editor.html
+17
-15
public/app/plugins/datasource/prometheus/partials/query.editor.html
+1
-3
public/less/tightform.less
+1
-0
No files found.
public/app/features/panel/query_editor_row.ts
View file @
fc829b32
...
...
@@ -11,7 +11,7 @@ function queryEditorRowDirective() {
restrict
:
'E'
,
templateUrl
:
'public/app/features/panel/partials/query_editor_row.html'
,
transclude
:
true
,
scope
:
{
ctrl
:
"="
},
scope
:
{
ctrl
:
"="
},
};
}
...
...
public/app/plugins/datasource/graphite/partials/query.editor.html
View file @
fc829b32
<query-editor-row
ctrl=
"ctrl"
controls=
"true"
>
<query-editor-row
ctrl=
"ctrl"
>
<
span
style=
"display: block; overflow: hidden;
"
>
<input
type=
"text"
class=
"tight-form-clear-input"
style=
"width: 100%;"
ng-model=
"ctrl.target.target"
give-focus=
"ctrl.target.textEditor"
spellcheck=
'false'
ng-model-onblur
ng-change=
"ctrl.targetTextChanged()"
ng-show=
"ctrl.target.textEditor"
></input>
</
span
>
<
li
class=
"tight-form-flex-wrapper"
ng-show=
"ctrl.target.textEditor
"
>
<input
type=
"text"
class=
"tight-form-clear-input"
style=
"width: 100%;"
ng-model=
"ctrl.target.target"
give-focus=
"ctrl.target.textEditor"
spellcheck=
'false'
ng-model-onblur
ng-change=
"ctrl.targetTextChanged()"
></input>
</
li
>
<ul
class=
"tight-form-list"
role=
"menu"
ng-hide=
"ctrl.target.textEditor"
>
<li
ng-repeat=
"segment in ctrl.segments"
role=
"menuitem"
>
<metric-segment
segment=
"segment"
get-options=
"ctrl.getAltSegments($index)"
on-change=
"ctrl.segmentValueChanged(segment, $index)"
></metric-segment>
</li>
<li
ng-repeat=
"func in ctrl.functions"
>
<span
graphite-func-editor
class=
"tight-form-item tight-form-func"
>
</span>
</li>
<li
class=
"dropdown"
graphite-add-func
>
</li>
</ul>
<li
ng-hide-start=
"ctrl.target.textEditor"
></li>
<li
ng-repeat=
"segment in ctrl.segments"
role=
"menuitem"
>
<metric-segment
segment=
"segment"
get-options=
"ctrl.getAltSegments($index)"
on-change=
"ctrl.segmentValueChanged(segment, $index)"
></metric-segment>
</li>
<li
ng-repeat=
"func in ctrl.functions"
>
<span
graphite-func-editor
class=
"tight-form-item tight-form-func"
>
</span>
</li>
<li
class=
"dropdown"
graphite-add-func
>
</li>
<li
ng-hide-end
></li>
</query-editor-row>
public/app/plugins/datasource/prometheus/partials/query.editor.html
View file @
fc829b32
<query-editor-row
ctrl=
"ctrl"
controls=
"true"
>
<query-editor-row
ctrl=
"ctrl"
>
<li
class=
"tight-form-item"
style=
"width: 94px"
>
Query
</li>
...
...
@@ -25,7 +24,6 @@
placeholder=
"metric name"
data-min-length=
0
data-items=
100
>
</li>
</query-editor-row>
<div
class=
"tight-form"
>
...
...
public/less/tightform.less
View file @
fc829b32
...
...
@@ -62,6 +62,7 @@
.tight-form-flex-wrapper {
display: flex;
flex-direction: row;
float: none !important;
}
.grafana-metric-options {
...
...
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