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
166a3c4d
Commit
166a3c4d
authored
Sep 11, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tech(typescript): added tslint to default task
parent
d4a701aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
public/app/core/filters/filters.ts
+7
-6
public/test/karma.conf.js
+1
-3
tasks/default_task.js
+1
-0
No files found.
public/app/core/filters/filters.ts
View file @
166a3c4d
...
...
@@ -15,7 +15,7 @@ module.filter('stringSort', function() {
module
.
filter
(
'slice'
,
function
()
{
return
function
(
arr
,
start
,
end
)
{
if
(
!
_
.
isUndefined
(
arr
))
{
if
(
!
_
.
isUndefined
(
arr
))
{
return
arr
.
slice
(
start
,
end
);
}
};
...
...
@@ -23,7 +23,7 @@ module.filter('slice', function() {
module
.
filter
(
'stringify'
,
function
()
{
return
function
(
arr
)
{
if
(
_
.
isObject
(
arr
)
&&
!
_
.
isArray
(
arr
))
{
if
(
_
.
isObject
(
arr
)
&&
!
_
.
isArray
(
arr
))
{
return
angular
.
toJson
(
arr
);
}
else
{
return
_
.
isNull
(
arr
)
?
null
:
arr
.
toString
();
...
...
@@ -32,8 +32,8 @@ module.filter('stringify', function() {
});
module
.
filter
(
'moment'
,
function
()
{
return
function
(
date
,
mode
)
{
switch
(
mode
)
{
return
function
(
date
,
mode
)
{
switch
(
mode
)
{
case
'ago'
:
return
moment
(
date
).
fromNow
();
}
...
...
@@ -66,11 +66,12 @@ module.filter('interpolateTemplateVars', function(templateSrv) {
}
else
{
return
templateSrv
.
replaceWithText
(
text
,
scope
.
row
.
scopedVars
);
}
}
}
;
interpolateTemplateVars
.
$stateful
=
true
;
return
interpolateTemplateVars
;
});
export
function
filters
()
{}
// dummy export
export
{};
public/test/karma.conf.js
View file @
166a3c4d
...
...
@@ -9,9 +9,6 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
files
:
[
'public/test/test-main.js'
,
{
pattern
:
'public_gen/.app_gen/**/*.js'
,
included
:
false
},
{
pattern
:
'public_gen/vendor/**/*.js'
,
included
:
false
},
{
pattern
:
'public_gen/test/**/*.js'
,
included
:
false
},
{
pattern
:
'public_gen/**/*.js'
,
included
:
false
}
],
...
...
@@ -28,4 +25,5 @@ module.exports = function(config) {
singleRun
:
true
,
});
};
tasks/default_task.js
View file @
166a3c4d
...
...
@@ -6,6 +6,7 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'default'
,
[
'jscs'
,
'jshint'
,
'tslint'
,
'clean:gen'
,
'copy:public_to_gen'
,
'css'
,
...
...
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