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
47215098
Commit
47215098
authored
Mar 20, 2018
by
Patrick O'Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed var to const, changed to string interpolation
parent
2a903702
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
public/app/plugins/datasource/graphite/func_editor.ts
+16
-17
No files found.
public/app/plugins/datasource/graphite/func_editor.ts
View file @
47215098
...
...
@@ -4,16 +4,17 @@ import $ from 'jquery';
import
rst2html
from
'rst2html'
;
export
function
graphiteFuncEditor
(
$compile
,
templateSrv
,
popoverSrv
)
{
var
funcSpanTemplate
=
'<a ng-click="">{{func.def.name}}</a><span>(</span>'
;
var
paramTemplate
=
'<input type="text" style="display:none"'
+
' class="input-small tight-form-func-param"></input>'
;
var
funcControlsTemplate
=
'<div class="tight-form-func-controls">'
+
'<span class="pointer fa fa-arrow-left"></span>'
+
'<span class="pointer fa fa-question-circle"></span>'
+
'<span class="pointer fa fa-remove" ></span>'
+
'<span class="pointer fa fa-arrow-right"></span>'
+
'</div>'
;
const
funcSpanTemplate
=
'<a ng-click="">{{func.def.name}}</a><span>(</span>'
;
const
paramTemplate
=
'<input type="text" style="display:none"'
+
' class="input-small tight-form-func-param"></input>'
;
const
funcControlsTemplate
=
`
<div class="tight-form-func-controls">
<span class="pointer fa fa-arrow-left"></span>
<span class="pointer fa fa-question-circle"></span>
<span class="pointer fa fa-remove" ></span>
<span class="pointer fa fa-arrow-right"></span>
</div>`
;
return
{
restrict
:
'A'
,
...
...
@@ -281,13 +282,11 @@ export function graphiteFuncEditor($compile, templateSrv, popoverSrv) {
element
:
e
.
target
,
position
:
'bottom left'
,
classNames
:
'drop-popover drop-function-def'
,
template
:
'<div style="overflow:auto;max-height:30rem;">'
+
'<h4>'
+
funcDef
.
name
+
'</h4>'
+
rst2html
(
funcDef
.
description
)
+
'</div>'
,
template
:
`
<div style="overflow:auto;max-height:30rem;">
<h4>
${
funcDef
.
name
}
</h4>
${
rst2html
(
funcDef
.
description
)}
</div>`
,
openOn
:
'click'
,
});
}
else
{
...
...
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