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
f0b7099b
Commit
f0b7099b
authored
Nov 06, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SingleStatPanel: renamed panel to singlestat
parent
ee183d45
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
18 deletions
+18
-18
src/app/components/settings.js
+1
-1
src/app/panels/singlestat/editor.html
+0
-0
src/app/panels/singlestat/module.html
+2
-2
src/app/panels/singlestat/module.js
+4
-4
src/app/panels/singlestat/singleStatPanel.js
+6
-6
src/css/less/grafana.less
+1
-1
src/css/less/singlestat.less
+4
-4
No files found.
src/app/components/settings.js
View file @
f0b7099b
...
@@ -17,7 +17,7 @@ function (_, crypto) {
...
@@ -17,7 +17,7 @@ function (_, crypto) {
window_title_prefix
:
'Grafana - '
,
window_title_prefix
:
'Grafana - '
,
panels
:
{
panels
:
{
'graph'
:
{
path
:
'panels/graph'
},
'graph'
:
{
path
:
'panels/graph'
},
's
tats'
:
{
path
:
'panels/stats
'
},
's
inglestat'
:
{
path
:
'panels/singlestat
'
},
'text'
:
{
path
:
'panels/text'
}
'text'
:
{
path
:
'panels/text'
}
},
},
plugins
:
{},
plugins
:
{},
...
...
src/app/panels/s
tats/statsE
ditor.html
→
src/app/panels/s
inglestat/e
ditor.html
View file @
f0b7099b
File moved
src/app/panels/s
tats
/module.html
→
src/app/panels/s
inglestat
/module.html
View file @
f0b7099b
<div
ng-controller=
'S
tats
Ctrl'
>
<div
ng-controller=
'S
ingleStat
Ctrl'
>
<div
class=
"s
tats-panel"
stats
-panel
></div>
<div
class=
"s
inglestat-panel"
singlestat
-panel
></div>
<div
class=
"clearfix"
></div>
<div
class=
"clearfix"
></div>
...
...
src/app/panels/s
tats
/module.js
→
src/app/panels/s
inglestat
/module.js
View file @
f0b7099b
...
@@ -5,15 +5,15 @@ define([
...
@@ -5,15 +5,15 @@ define([
'components/timeSeries'
,
'components/timeSeries'
,
'kbn'
,
'kbn'
,
'services/panelSrv'
,
'services/panelSrv'
,
'./s
tatsDirective
'
,
'./s
ingleStatPanel
'
,
],
],
function
(
angular
,
app
,
_
,
TimeSeries
,
kbn
)
{
function
(
angular
,
app
,
_
,
TimeSeries
,
kbn
)
{
'use strict'
;
'use strict'
;
var
module
=
angular
.
module
(
'grafana.panels.s
tats
'
);
var
module
=
angular
.
module
(
'grafana.panels.s
inglestat
'
);
app
.
useModule
(
module
);
app
.
useModule
(
module
);
module
.
controller
(
'S
tats
Ctrl'
,
function
(
$scope
,
panelSrv
,
timeSrv
)
{
module
.
controller
(
'S
ingleStat
Ctrl'
,
function
(
$scope
,
panelSrv
,
timeSrv
)
{
$scope
.
panelMeta
=
{
$scope
.
panelMeta
=
{
titlePos
:
'left'
,
titlePos
:
'left'
,
...
@@ -29,7 +29,7 @@ function (angular, app, _, TimeSeries, kbn) {
...
@@ -29,7 +29,7 @@ function (angular, app, _, TimeSeries, kbn) {
},
},
{
{
title
:
'Options'
,
title
:
'Options'
,
src
:
'app/panels/s
tats/statsE
ditor.html'
src
:
'app/panels/s
inglestat/e
ditor.html'
}
}
],
],
fullscreenEdit
:
true
,
fullscreenEdit
:
true
,
...
...
src/app/panels/s
tats/statsDirective
.js
→
src/app/panels/s
inglestat/singleStatPanel
.js
View file @
f0b7099b
...
@@ -10,10 +10,10 @@ define([
...
@@ -10,10 +10,10 @@ define([
function
(
angular
,
app
,
_
,
kbn
,
$
)
{
function
(
angular
,
app
,
_
,
kbn
,
$
)
{
'use strict'
;
'use strict'
;
var
module
=
angular
.
module
(
'grafana.panels.s
tats
'
,
[]);
var
module
=
angular
.
module
(
'grafana.panels.s
inglestat
'
,
[]);
app
.
useModule
(
module
);
app
.
useModule
(
module
);
module
.
directive
(
's
tats
Panel'
,
function
()
{
module
.
directive
(
's
inglestat
Panel'
,
function
()
{
return
{
return
{
link
:
function
(
scope
,
elem
)
{
link
:
function
(
scope
,
elem
)
{
...
@@ -69,14 +69,14 @@ function (angular, app, _, kbn, $) {
...
@@ -69,14 +69,14 @@ function (angular, app, _, kbn, $) {
}
}
function
getBigValueHtml
()
{
function
getBigValueHtml
()
{
var
body
=
'<div class="s
tats
-panel-value-container">'
;
var
body
=
'<div class="s
inglestat
-panel-value-container">'
;
if
(
panel
.
prefix
)
{
body
+=
getSpan
(
's
tats
-panel-prefix'
,
panel
.
prefixFontSize
,
scope
.
panel
.
prefix
);
}
if
(
panel
.
prefix
)
{
body
+=
getSpan
(
's
inglestat
-panel-prefix'
,
panel
.
prefixFontSize
,
scope
.
panel
.
prefix
);
}
var
value
=
applyColoringThresholds
(
data
.
mainValue
,
data
.
mainValueFormated
);
var
value
=
applyColoringThresholds
(
data
.
mainValue
,
data
.
mainValueFormated
);
body
+=
getSpan
(
's
tats
-panel-value'
,
panel
.
valueFontSize
,
value
);
body
+=
getSpan
(
's
inglestat
-panel-value'
,
panel
.
valueFontSize
,
value
);
if
(
panel
.
postfix
)
{
body
+=
getSpan
(
's
tats
-panel-postfix'
,
panel
.
postfixFontSize
,
panel
.
postfix
);
}
if
(
panel
.
postfix
)
{
body
+=
getSpan
(
's
inglestat
-panel-postfix'
,
panel
.
postfixFontSize
,
panel
.
postfix
);
}
body
+=
'</div>'
;
body
+=
'</div>'
;
...
...
src/css/less/grafana.less
View file @
f0b7099b
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
@import "search.less";
@import "search.less";
@import "panel.less";
@import "panel.less";
@import "forms.less";
@import "forms.less";
@import "s
tats-panel
.less";
@import "s
inglestat
.less";
.row-control-inner {
.row-control-inner {
padding:0px;
padding:0px;
...
...
src/css/less/s
tats-panel
.less
→
src/css/less/s
inglestat
.less
View file @
f0b7099b
.s
tats
-panel {
.s
inglestat
-panel {
position: relative;
position: relative;
display: table;
display: table;
width: 100%;
width: 100%;
}
}
.s
tats
-panel-value-container {
.s
inglestat
-panel-value-container {
padding: 20px;
padding: 20px;
display: table-cell;
display: table-cell;
vertical-align: middle;
vertical-align: middle;
...
@@ -15,11 +15,11 @@
...
@@ -15,11 +15,11 @@
font-weight: bold;
font-weight: bold;
}
}
.s
tats
-panel-prefix {
.s
inglestat
-panel-prefix {
padding-right: 20px;
padding-right: 20px;
}
}
.s
tats
-panel-table {
.s
inglestat
-panel-table {
width: 100%;
width: 100%;
td {
td {
padding: 5px 10px;
padding: 5px 10px;
...
...
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