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
58fef5d3
Commit
58fef5d3
authored
Dec 13, 2013
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:elasticsearch/kibana
parents
d5c156be
7580042b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
9 deletions
+42
-9
src/app/app.js
+6
-3
src/app/directives/addPanel.js
+5
-0
src/app/directives/kibanaPanel.js
+7
-2
src/app/panels/histogram/module.js
+2
-2
src/app/services/dashboard.js
+3
-0
src/vendor/angular/angular.js
+17
-0
src/vendor/jquery/jquery.flot.js
+2
-2
No files found.
src/app/app.js
View file @
58fef5d3
...
...
@@ -136,9 +136,12 @@ function (angular, $, _, appLevelRequire) {
var
$scope
=
this
;
$scope
.
requireContext
(
deps
,
function
()
{
var
deps
=
_
.
toArray
(
arguments
);
$scope
.
$apply
(
function
()
{
fn
.
apply
(
$scope
,
deps
);
});
// Check that this is a valid scope.
if
(
$scope
.
$id
)
{
$scope
.
$apply
(
function
()
{
fn
.
apply
(
$scope
,
deps
);
});
}
});
};
}]);
...
...
src/app/directives/addPanel.js
View file @
58fef5d3
...
...
@@ -12,6 +12,11 @@ function (angular, app, _) {
return
{
restrict
:
'A'
,
link
:
function
(
$scope
,
elem
)
{
$scope
.
$on
(
"$destroy"
,
function
()
{
elem
.
remove
();
});
$scope
.
$watch
(
'panel.type'
,
function
()
{
var
_type
=
$scope
.
panel
.
type
;
$scope
.
reset_panel
(
_type
);
...
...
src/app/directives/kibanaPanel.js
View file @
58fef5d3
...
...
@@ -13,7 +13,6 @@ function (angular) {
'<div class="row-fluid panel-extra"><div class="panel-extra-container">'
+
'<span class="extra row-button" ng-show="panel.editable != false">'
+
'<span ng-click="remove_panel_from_row(row,panel)" class="pointer">'
+
'<i class="icon-remove pointer" bs-tooltip="
\'
Remove
\'
"></i></span>'
+
...
...
@@ -61,16 +60,22 @@ function (angular) {
link
:
function
(
$scope
,
elem
,
attr
)
{
// once we have the template, scan it for controllers and
// load the module.js if we have any
var
newScope
=
$scope
.
$new
();
// compile the module and uncloack. We're done
function
loadModule
(
$module
)
{
$module
.
appendTo
(
elem
);
elem
.
wrap
(
container
);
/* jshint indent:false */
$compile
(
elem
.
contents
())(
$s
cope
);
$compile
(
elem
.
contents
())(
newS
cope
);
elem
.
removeClass
(
"ng-cloak"
);
}
newScope
.
$on
(
'$destroy'
,
function
(){
elem
.
unbind
();
elem
.
remove
();
});
$scope
.
$watch
(
attr
.
type
,
function
(
name
)
{
elem
.
addClass
(
"ng-cloak"
);
// load the panels module file, then render it in the dom.
...
...
src/app/panels/histogram/module.js
View file @
58fef5d3
...
...
@@ -528,7 +528,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
restrict
:
'A'
,
template
:
'<div></div>'
,
link
:
function
(
scope
,
elem
)
{
var
data
;
var
data
,
plot
;
scope
.
$on
(
'refresh'
,
function
(){
scope
.
get_data
();
...
...
@@ -700,7 +700,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
data
[
i
].
data
=
_d
;
}
scope
.
plot
=
$
.
plot
(
elem
,
data
,
options
);
plot
=
$
.
plot
(
elem
,
data
,
options
);
}
catch
(
e
)
{
// Nothing to do here
...
...
src/app/services/dashboard.js
View file @
58fef5d3
...
...
@@ -134,6 +134,9 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
// here before telling the panels to refresh
this
.
refresh
=
function
()
{
if
(
self
.
current
.
index
.
interval
!==
'none'
)
{
if
(
_
.
isUndefined
(
filterSrv
))
{
return
;
}
if
(
filterSrv
.
idsByType
(
'time'
).
length
>
0
)
{
var
_range
=
filterSrv
.
timeRange
(
'last'
);
kbnIndex
.
indices
(
_range
.
from
,
_range
.
to
,
...
...
src/vendor/angular/angular.js
View file @
58fef5d3
...
...
@@ -8464,6 +8464,21 @@ function $RootScopeProvider(){
}
else
{
this
.
$$childHead
=
this
.
$$childTail
=
child
;
}
// RASHID: Fix for chrome GC bug
child
.
$on
(
'$destroy'
,
function
()
{
if
(
Child
)
Child
.
prototype
=
null
;
// Async so that the $broadcast('$destroy') can traverse the rest
setTimeout
(
function
()
{
child
.
__proto__
=
{};
for
(
var
i
in
child
)
child
[
i
]
=
null
;
child
=
null
;
return
null
;
});
});
return
child
;
},
...
...
@@ -8893,6 +8908,8 @@ function $RootScopeProvider(){
// see: https://github.com/angular/angular.js/issues/1313#issuecomment-10378451
this
.
$parent
=
this
.
$$nextSibling
=
this
.
$$prevSibling
=
this
.
$$childHead
=
this
.
$$childTail
=
null
;
parent
=
this
.
$$nextSibling
=
this
.
$$prevSibling
=
this
.
$$childHead
=
this
.
$$childTail
=
null
;
},
/**
...
...
src/vendor/jquery/jquery.flot.js
View file @
58fef5d3
...
...
@@ -2438,9 +2438,9 @@ Licensed under the MIT license.
radius
=
series
.
points
.
radius
,
symbol
=
series
.
points
.
symbol
;
// If the user sets the line width to 0, we change it to a very
// If the user sets the line width to 0, we change it to a very
// small value. A line width of 0 seems to force the default of 1.
// Doing the conditional here allows the shadow setting to still be
// Doing the conditional here allows the shadow setting to still be
// optional even with a lineWidth of 0.
if
(
lw
==
0
)
...
...
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