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
2a50bc35
Commit
2a50bc35
authored
Mar 20, 2018
by
Patrick O'Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
converted file to ts
parent
40332832
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
public/app/plugins/datasource/graphite/add_graphite_func.ts
+12
-8
No files found.
public/app/plugins/datasource/graphite/add_graphite_func.
j
s
→
public/app/plugins/datasource/graphite/add_graphite_func.
t
s
View file @
2a50bc35
define
([
'angular'
,
'lodash'
,
'jquery'
,
'rst2html'
,
'tether-drop'
],
function
(
angular
,
_
,
$
,
rst2html
,
Drop
)
{
import
angular
from
'angular'
;
'use strict'
;
import
_
from
'lodash'
;
import
$
from
'jquery'
;
import
rst2html
from
'rst2html'
;
import
Drop
from
'tether-drop'
;
angular
.
module
(
'grafana.directives'
).
directive
(
'graphiteAddFunc'
,
function
(
$compile
)
{
export
function
graphiteAddFunc
(
$compile
)
{
var
inputTemplate
=
var
inputTemplate
=
'<input type="text"'
+
' class="gf-form-input"'
+
' spellcheck="false" style="display:none"></input>'
;
'<input type="text"'
+
' class="gf-form-input"'
+
' spellcheck="false" style="display:none"></input>'
;
...
@@ -40,7 +43,7 @@ define(['angular', 'lodash', 'jquery', 'rst2html', 'tether-drop'], function(angu
...
@@ -40,7 +43,7 @@ define(['angular', 'lodash', 'jquery', 'rst2html', 'tether-drop'], function(angu
});
});
if
(
!
funcDef
)
{
if
(
!
funcDef
)
{
return
;
return
''
;
}
}
}
}
...
@@ -124,9 +127,11 @@ define(['angular', 'lodash', 'jquery', 'rst2html', 'tether-drop'], function(angu
...
@@ -124,9 +127,11 @@ define(['angular', 'lodash', 'jquery', 'rst2html', 'tether-drop'], function(angu
$scope
.
$on
(
'$destroy'
,
cleanUpDrop
);
$scope
.
$on
(
'$destroy'
,
cleanUpDrop
);
},
},
};
};
});
}
function
createFunctionDropDownMenu
(
funcDefs
)
{
angular
.
module
(
'grafana.directives'
).
directive
(
'graphiteAddFunc'
,
graphiteAddFunc
);
function
createFunctionDropDownMenu
(
funcDefs
)
{
var
categories
=
{};
var
categories
=
{};
_
.
forEach
(
funcDefs
,
function
(
funcDef
)
{
_
.
forEach
(
funcDefs
,
function
(
funcDef
)
{
...
@@ -151,5 +156,4 @@ define(['angular', 'lodash', 'jquery', 'rst2html', 'tether-drop'], function(angu
...
@@ -151,5 +156,4 @@ define(['angular', 'lodash', 'jquery', 'rst2html', 'tether-drop'], function(angu
}),
}),
'text'
'text'
);
);
}
}
});
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