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
e0bbb74b
Commit
e0bbb74b
authored
Aug 08, 2017
by
Alexander Zobnin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code-editor: test editors for MySQL and prometheus
parent
0e0e6031
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
public/app/plugins/datasource/mysql/partials/query.editor.html
+9
-1
public/app/plugins/datasource/prometheus/partials/query.editor.html
+6
-0
No files found.
public/app/plugins/datasource/mysql/partials/query.editor.html
View file @
e0bbb74b
<query-editor-row
query-ctrl=
"ctrl"
can-collapse=
"false"
>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form gf-form--grow"
>
<textarea
rows=
"10"
class=
"gf-form-input"
ng-model=
"ctrl.target.rawSql"
spellcheck=
"false"
placeholder=
"query expression"
data-min-length=
0
data-items=
100
ng-model-onblur
ng-change=
"ctrl.panelCtrl.refresh()"
></textarea>
<textarea
rows=
"5"
class=
"gf-form-input"
ng-model=
"ctrl.target.rawSql"
spellcheck=
"false"
placeholder=
"query expression"
data-min-length=
0
data-items=
100
ng-model-onblur
ng-change=
"ctrl.panelCtrl.refresh()"
></textarea>
</div>
</div>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form gf-form--grow"
>
<code-editor
content=
"ctrl.target.rawSql"
on-change=
"ctrl.panelCtrl.refresh()"
data-mode=
"sql"
>
</code-editor>
</div>
</div>
...
...
public/app/plugins/datasource/prometheus/partials/query.editor.html
View file @
e0bbb74b
...
...
@@ -6,6 +6,12 @@
</div>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form gf-form--grow"
>
<code-editor
content=
"ctrl.target.expr"
on-change=
"ctrl.refreshMetricData()"
></code-editor>
</div>
</div>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form max-width-26"
>
<label
class=
"gf-form-label width-8"
>
Legend format
</label>
<input
type=
"text"
class=
"gf-form-input"
ng-model=
"ctrl.target.legendFormat"
...
...
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