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
dcdea1d8
Commit
dcdea1d8
authored
Aug 27, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing merge conflict
parent
826e8d73
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
36 deletions
+52
-36
.gitignore
+2
-0
.jshintrc
+41
-0
Gruntfile.js
+3
-29
panels/histogram/module.js
+6
-7
No files found.
.gitignore
0 → 100644
View file @
dcdea1d8
node_modules
\ No newline at end of file
.jshintrc
0 → 100644
View file @
dcdea1d8
{
"jquery": true,
"browser": true,
"bitwise":false,
"curly": true,
"eqnull": true,
"globalstrict": true,
"devel": true,
"eqeqeq": true,
"forin": false,
"immed": true,
"supernew": true,
"expr": true,
"indent": 2,
"latedef": true,
"newcap": true,
"noarg": true,
"noempty": true,
"undef": true,
"boss": true,
"trailing": false,
"laxbreak": true,
"laxcomma": true,
"sub": true,
"maxlen": 140,
"globals": {
"$LAB": false,
"_": false,
"$": false,
"kbn" : false,
"angular" : false,
"exports": true,
"module": false,
"config": false,
"moment": false
}
}
\ No newline at end of file
Gruntfile.js
View file @
dcdea1d8
...
@@ -17,34 +17,7 @@ module.exports = function (grunt) {
...
@@ -17,34 +17,7 @@ module.exports = function (grunt) {
jshint
:
{
jshint
:
{
files
:
[
'Gruntfile.js'
,
'js/*.js'
,
'panels/*/*.js'
],
files
:
[
'Gruntfile.js'
,
'js/*.js'
,
'panels/*/*.js'
],
options
:
{
options
:
{
bitwise
:
true
,
jshintrc
:
'.jshintrc'
maxlen
:
140
,
curly
:
true
,
eqeqeq
:
true
,
immed
:
true
,
indent
:
2
,
latedef
:
true
,
newcap
:
true
,
noarg
:
true
,
sub
:
true
,
undef
:
true
,
boss
:
true
,
eqnull
:
true
,
globalstrict
:
true
,
devel
:
true
,
node
:
true
,
globals
:
{
'$LAB'
:
false
,
'_'
:
false
,
'$'
:
false
,
'kbn'
:
false
,
window
:
false
,
document
:
false
,
exports
:
true
,
module
:
false
,
config
:
false
,
moment
:
false
}
}
}
},
},
less
:
{
less
:
{
...
@@ -70,4 +43,4 @@ module.exports = function (grunt) {
...
@@ -70,4 +43,4 @@ module.exports = function (grunt) {
// Default task.
// Default task.
grunt
.
registerTask
(
'default'
,
[
'jshint'
,
'less'
]);
grunt
.
registerTask
(
'default'
,
[
'jshint'
,
'less'
]);
};
};
\ No newline at end of file
panels/histogram/module.js
View file @
dcdea1d8
...
@@ -392,9 +392,9 @@ angular.module('kibana.histogram', [])
...
@@ -392,9 +392,9 @@ angular.module('kibana.histogram', [])
// so that the stacking happens in the proper order
// so that the stacking happens in the proper order
var
required_times
=
[];
var
required_times
=
[];
if
(
scope
.
panel
.
bars
&&
stack
)
{
if
(
scope
.
panel
.
bars
&&
stack
)
{
required_times
=
Array
.
prototype
.
concat
.
apply
([],
_
.
map
(
scope
.
data
,
function
(
series
)
{
required_times
=
_
.
uniq
(
Array
.
prototype
.
concat
.
apply
([],
_
.
map
(
scope
.
data
,
function
(
query
)
{
return
series
.
time_series
.
getOrderedTimes
();
return
query
.
time_series
.
getOrderedTimes
();
}));
}))
.
sort
(),
true
)
;
}
}
for
(
var
i
=
0
;
i
<
scope
.
data
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
scope
.
data
.
length
;
i
++
)
{
...
@@ -532,11 +532,11 @@ angular.module('kibana.histogram', [])
...
@@ -532,11 +532,11 @@ angular.module('kibana.histogram', [])
* @return {array} An array of integer times.
* @return {array} An array of integer times.
*/
*/
this
.
ZeroFilled
.
prototype
.
getOrderedTimes
=
function
(
include
)
{
this
.
ZeroFilled
.
prototype
.
getOrderedTimes
=
function
(
include
)
{
var
times
=
_
.
map
(
_
.
keys
(
this
.
_data
),
base10Int
)
.
sort
()
;
var
times
=
_
.
map
(
_
.
keys
(
this
.
_data
),
base10Int
);
if
(
_
.
isArray
(
include
))
{
if
(
_
.
isArray
(
include
))
{
times
=
times
.
concat
(
include
);
times
=
times
.
concat
(
include
);
}
}
return
times
;
return
_
.
uniq
(
times
.
sort
(),
true
)
;
};
};
/**
/**
...
@@ -618,4 +618,4 @@ angular.module('kibana.histogram', [])
...
@@ -618,4 +618,4 @@ angular.module('kibana.histogram', [])
return
result
;
return
result
;
};
};
});
});
\ No newline at end of file
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