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
ed57a409
Commit
ed57a409
authored
Oct 23, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into valuepanel
parents
31a4d920
79c5d48a
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
47 additions
and
20 deletions
+47
-20
src/app/dashboards/default.json
+0
-1
src/app/dashboards/scripted.js
+11
-0
src/app/dashboards/template_vars.json
+0
-1
src/app/directives/dropdown.typeahead.js
+11
-0
src/app/panels/graph/module.js
+0
-4
src/app/panels/graph/seriesOverridesCtrl.js
+1
-1
src/app/panels/timepicker/module.html
+8
-1
src/app/partials/dashboard_topnav.html
+0
-6
src/app/partials/help_modal.html
+4
-0
src/app/services/dashboard/dashboardKeyBindings.js
+1
-1
src/app/services/keyboardManager.js
+4
-0
src/css/less/grafana.less
+5
-3
src/css/less/submenu.less
+1
-1
src/test/specs/seriesOverridesCtrl-specs.js
+1
-1
No files found.
src/app/dashboards/default.json
View file @
ed57a409
...
...
@@ -101,7 +101,6 @@
"legend_counts"
:
true
,
"timezone"
:
"browser"
,
"percentage"
:
false
,
"zerofill"
:
true
,
"nullPointMode"
:
"connected"
,
"steppedLine"
:
false
,
"tooltip"
:
{
...
...
src/app/dashboards/scripted.js
View file @
ed57a409
...
...
@@ -68,6 +68,17 @@ for (var i = 0; i < rows; i++) {
'target'
:
"randomWalk('random walk2')"
}
],
seriesOverrides
:
[
{
alias
:
'/random/'
,
yaxis
:
2
,
fill
:
0
,
linewidth
:
5
}
],
tooltip
:
{
shared
:
true
}
}
]
});
...
...
src/app/dashboards/template_vars.json
View file @
ed57a409
...
...
@@ -65,7 +65,6 @@
"avg"
:
false
},
"percentage"
:
false
,
"zerofill"
:
true
,
"nullPointMode"
:
"connected"
,
"steppedLine"
:
false
,
"tooltip"
:
{
...
...
src/app/directives/dropdown.typeahead.js
View file @
ed57a409
...
...
@@ -37,6 +37,17 @@ function (angular, app, _, $) {
return
memo
;
},
[]);
$scope
.
menuItemSelected
=
function
(
optionIndex
,
valueIndex
)
{
var
option
=
$scope
.
menuItems
[
optionIndex
];
var
result
=
{
$item
:
option
.
submenu
[
valueIndex
],
$optionIndex
:
optionIndex
,
$valueIndex
:
valueIndex
};
$scope
.
dropdownTypeaheadOnSelect
(
result
);
};
$input
.
attr
(
'data-provide'
,
'typeahead'
);
$input
.
typeahead
({
source
:
typeaheadValues
,
...
...
src/app/panels/graph/module.js
View file @
ed57a409
...
...
@@ -150,10 +150,6 @@ function (angular, app, $, _, kbn, moment, TimeSeries) {
* queries
*/
percentage
:
false
,
/** @scratch /panels/histogram/3
* zerofill:: Improves the accuracy of line charts at a small performance cost.
*/
zerofill
:
true
,
nullPointMode
:
'connected'
,
...
...
src/app/panels/graph/seriesOverridesCtrl.js
View file @
ed57a409
...
...
@@ -23,7 +23,7 @@ define([
option
.
submenu
=
_
.
map
(
values
,
function
(
value
,
index
)
{
return
{
text
:
String
(
value
),
click
:
'
setOverride
('
+
option
.
index
+
','
+
index
+
')'
click
:
'
menuItemSelected
('
+
option
.
index
+
','
+
index
+
')'
};
});
...
...
src/app/panels/timepicker/module.html
View file @
ed57a409
...
...
@@ -10,7 +10,14 @@
}
</style>
<form
name=
"input"
style=
"margin:0"
>
<ul
class=
"nav nav-pills timepicker-dropdown"
>
<ul
class=
"nav timepicker-dropdown"
>
<li
class=
"grafana-menu-zoom-out"
>
<a
class=
'small'
ng-click=
'zoom(2)'
>
Zoom Out
</a>
</li>
<li
class=
"dropdown"
>
<a
class=
"dropdown-toggle timepicker-dropdown"
data-toggle=
"dropdown"
href=
""
bs-tooltip=
"time.tooltip"
data-placement=
"bottom"
ng-click=
"dismiss();"
>
...
...
src/app/partials/dashboard_topnav.html
View file @
ed57a409
...
...
@@ -13,12 +13,6 @@
</a>
</li>
<li
class=
"grafana-menu-zoom-out"
>
<a
class=
'small'
ng-click=
'zoom(2)'
>
Zoom Out
</a>
</li>
<li
ng-repeat=
"pulldown in dashboard.nav"
ng-controller=
"PulldownCtrl"
ng-show=
"pulldown.enable"
>
<grafana-simple-panel
type=
"pulldown.type"
ng-cloak
>
</grafana-simple-panel>
...
...
src/app/partials/help_modal.html
View file @
ed57a409
...
...
@@ -36,6 +36,10 @@
<td><span
class=
"label label-info"
>
CTRL+R
</span></td>
<td>
Refresh (Fetches new data and rerenders panels)
</td>
</tr>
<tr>
<td><span
class=
"label label-info"
>
CTRL+O
</span></td>
<td>
Enable/Disable shared graph crosshair
</td>
</tr>
</table>
</div>
...
...
src/app/services/dashboard/dashboardKeyBindings.js
View file @
ed57a409
...
...
@@ -23,7 +23,7 @@ function(angular, $) {
});
var
helpModalScope
=
null
;
keyboardManager
.
bind
(
'shift+
¿
'
,
function
()
{
keyboardManager
.
bind
(
'shift+
?
'
,
function
()
{
if
(
helpModalScope
)
{
return
;
}
helpModalScope
=
$rootScope
.
$new
();
...
...
src/app/services/keyboardManager.js
View file @
ed57a409
...
...
@@ -61,6 +61,7 @@ function (angular) {
else
if
(
e
.
which
)
{
code
=
e
.
which
;
}
var
character
=
String
.
fromCharCode
(
code
).
toLowerCase
();
if
(
code
===
188
)
{
...
...
@@ -93,6 +94,9 @@ function (angular) {
","
:
"<"
,
"."
:
">"
,
"/"
:
"?"
,
"»"
:
"?"
,
"«"
:
"?"
,
"¿"
:
"?"
,
"
\
\"
: "
|
"
};
// Special Keys - and their codes
...
...
src/css/less/grafana.less
View file @
ed57a409
...
...
@@ -116,7 +116,7 @@
position: fixed;
left: 0px;
right: 0px;
top: 5
4
px;
top: 5
1
px;
height: 100%;
padding: 0 10px;
background: @grafanaPanelBackground;
...
...
@@ -134,9 +134,11 @@
.dashboard-fullscreen {
.main-view-container {
height: 0;
overflow: hidden;
padding: 0;
height: 0;
.row-control-inner {
display: none;
}
}
}
...
...
src/css/less/submenu.less
View file @
ed57a409
.submenu-controls-visible:not(.hide-controls) {
.panel-fullscreen {
top:
91
px;
top:
88
px;
}
}
...
...
src/test/specs/seriesOverridesCtrl-specs.js
View file @
ed57a409
...
...
@@ -18,7 +18,7 @@ define([
describe
(
'Controller should init overrideMenu'
,
function
()
{
it
(
'click should include option and value index'
,
function
()
{
expect
(
ctx
.
scope
.
overrideMenu
[
1
].
submenu
[
1
].
click
).
to
.
be
(
'
setOverride
(1,1)'
);
expect
(
ctx
.
scope
.
overrideMenu
[
1
].
submenu
[
1
].
click
).
to
.
be
(
'
menuItemSelected
(1,1)'
);
});
});
...
...
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