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
895b4b40
Commit
895b4b40
authored
Jul 27, 2018
by
Worty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct volume unit
parent
715c82b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
public/app/core/specs/kbn.jest.ts
+1
-1
public/app/core/utils/kbn.ts
+18
-18
No files found.
public/app/core/specs/kbn.jest.ts
View file @
895b4b40
...
@@ -402,7 +402,7 @@ describe('duration', function() {
...
@@ -402,7 +402,7 @@ describe('duration', function() {
describe
(
'volume'
,
function
()
{
describe
(
'volume'
,
function
()
{
it
(
'1000m3'
,
function
()
{
it
(
'1000m3'
,
function
()
{
var
str
=
kbn
.
valueFormats
[
'm3'
](
1000
,
1
,
null
);
var
str
=
kbn
.
valueFormats
[
'm3'
](
1000
,
1
,
null
);
expect
(
str
).
toBe
(
'1000.0 m
3
'
);
expect
(
str
).
toBe
(
'1000.0 m
³
'
);
});
});
});
});
...
...
public/app/core/utils/kbn.ts
View file @
895b4b40
...
@@ -572,9 +572,9 @@ kbn.valueFormats.accG = kbn.formatBuilders.fixedUnit('g');
...
@@ -572,9 +572,9 @@ kbn.valueFormats.accG = kbn.formatBuilders.fixedUnit('g');
// Volume
// Volume
kbn.valueFormats.litre = kbn.formatBuilders.decimalSIPrefix('
L
');
kbn.valueFormats.litre = kbn.formatBuilders.decimalSIPrefix('
L
');
kbn.valueFormats.mlitre = kbn.formatBuilders.decimalSIPrefix('
L
', -1);
kbn.valueFormats.mlitre = kbn.formatBuilders.decimalSIPrefix('
L
', -1);
kbn.valueFormats.m3 = kbn.formatBuilders.fixedUnit('
m
3
');
kbn.valueFormats.m3 = kbn.formatBuilders.fixedUnit('
m
³
');
kbn.valueFormats.Nm3 = kbn.formatBuilders.fixedUnit('
Nm
3
');
kbn.valueFormats.Nm3 = kbn.formatBuilders.fixedUnit('
Nm
³
');
kbn.valueFormats.dm3 = kbn.formatBuilders.fixedUnit('
dm
3
');
kbn.valueFormats.dm3 = kbn.formatBuilders.fixedUnit('
dm
³
');
kbn.valueFormats.gallons = kbn.formatBuilders.fixedUnit('
gal
');
kbn.valueFormats.gallons = kbn.formatBuilders.fixedUnit('
gal
');
// Flow
// Flow
...
@@ -605,14 +605,14 @@ kbn.valueFormats.radsvh = kbn.formatBuilders.decimalSIPrefix('Sv/h');
...
@@ -605,14 +605,14 @@ kbn.valueFormats.radsvh = kbn.formatBuilders.decimalSIPrefix('Sv/h');
// Concentration
// Concentration
kbn.valueFormats.ppm = kbn.formatBuilders.fixedUnit('
ppm
');
kbn.valueFormats.ppm = kbn.formatBuilders.fixedUnit('
ppm
');
kbn.valueFormats.conppb = kbn.formatBuilders.fixedUnit('
ppb
');
kbn.valueFormats.conppb = kbn.formatBuilders.fixedUnit('
ppb
');
kbn.valueFormats.conngm3 = kbn.formatBuilders.fixedUnit('
ng
/
m
3
');
kbn.valueFormats.conngm3 = kbn.formatBuilders.fixedUnit('
ng
/
m
³
');
kbn.valueFormats.conngNm3 = kbn.formatBuilders.fixedUnit('
ng
/
Nm
3
');
kbn.valueFormats.conngNm3 = kbn.formatBuilders.fixedUnit('
ng
/
Nm
³
');
kbn.valueFormats.conμgm3 = kbn.formatBuilders.fixedUnit('
μ
g
/
m
3
');
kbn.valueFormats.conμgm3 = kbn.formatBuilders.fixedUnit('
μ
g
/
m
³
');
kbn.valueFormats.conμgNm3 = kbn.formatBuilders.fixedUnit('
μ
g
/
Nm
3
');
kbn.valueFormats.conμgNm3 = kbn.formatBuilders.fixedUnit('
μ
g
/
Nm
³
');
kbn.valueFormats.conmgm3 = kbn.formatBuilders.fixedUnit('
mg
/
m
3
');
kbn.valueFormats.conmgm3 = kbn.formatBuilders.fixedUnit('
mg
/
m
³
');
kbn.valueFormats.conmgNm3 = kbn.formatBuilders.fixedUnit('
mg
/
Nm
3
');
kbn.valueFormats.conmgNm3 = kbn.formatBuilders.fixedUnit('
mg
/
Nm
³
');
kbn.valueFormats.congm3 = kbn.formatBuilders.fixedUnit('
g
/
m
3
');
kbn.valueFormats.congm3 = kbn.formatBuilders.fixedUnit('
g
/
m
³
');
kbn.valueFormats.congNm3 = kbn.formatBuilders.fixedUnit('
g
/
Nm
3
');
kbn.valueFormats.congNm3 = kbn.formatBuilders.fixedUnit('
g
/
Nm
³
');
// Time
// Time
kbn.valueFormats.hertz = kbn.formatBuilders.decimalSIPrefix('
Hz
');
kbn.valueFormats.hertz = kbn.formatBuilders.decimalSIPrefix('
Hz
');
...
@@ -1119,13 +1119,13 @@ kbn.getUnitFormats = function() {
...
@@ -1119,13 +1119,13 @@ kbn.getUnitFormats = function() {
{ text: '
parts
-
per
-
million
(
ppm
)
', value: '
ppm
' },
{ text: '
parts
-
per
-
million
(
ppm
)
', value: '
ppm
' },
{ text: '
parts
-
per
-
billion
(
ppb
)
', value: '
conppb
' },
{ text: '
parts
-
per
-
billion
(
ppb
)
', value: '
conppb
' },
{ text: '
nanogram
per
cubic
metre
(
ng
/
m3
)
', value: '
conngm3
' },
{ text: '
nanogram
per
cubic
metre
(
ng
/
m3
)
', value: '
conngm3
' },
{ text: '
nanogram
per
normal
cubic
metre
(
ng
/
Nm
3
)
', value: '
conngNm3
' },
{ text: '
nanogram
per
normal
cubic
metre
(
ng
/
Nm
³
)
', value: '
conngNm3
' },
{ text: '
microgram
per
cubic
metre
(
μ
g
/
m
3
)
', value: '
con
μ
gm3
' },
{ text: '
microgram
per
cubic
metre
(
μ
g
/
m
³
)
', value: '
con
μ
gm3
' },
{ text: '
microgram
per
normal
cubic
metre
(
μ
g
/
Nm
3
)
', value: '
con
μ
gNm3
' },
{ text: '
microgram
per
normal
cubic
metre
(
μ
g
/
Nm
³
)
', value: '
con
μ
gNm3
' },
{ text: '
milligram
per
cubic
metre
(
mg
/
m
3
)
', value: '
conmgm3
' },
{ text: '
milligram
per
cubic
metre
(
mg
/
m
³
)
', value: '
conmgm3
' },
{ text: '
milligram
per
normal
cubic
metre
(
mg
/
Nm
3
)
', value: '
conmgNm3
' },
{ text: '
milligram
per
normal
cubic
metre
(
mg
/
Nm
³
)
', value: '
conmgNm3
' },
{ text: '
gram
per
cubic
metre
(
g
/
m
3
)
', value: '
congm3
' },
{ text: '
gram
per
cubic
metre
(
g
/
m
³
)
', value: '
congm3
' },
{ text: '
gram
per
normal
cubic
metre
(
g
/
Nm
3
)
', value: '
congNm3
' },
{ text: '
gram
per
normal
cubic
metre
(
g
/
Nm
³
)
', value: '
congNm3
' },
],
],
},
},
];
];
...
...
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