UNPKG
@robotical/sensors-dashboard
Version:
latest (2.2.1)
2.2.1
2.2.0
2.1.0
2.0.11
2.0.10
2.0.9
2.0.8
2.0.7
2.0.5
2.0.3
2.0.2
2.0.1
2.0.0-cog
1.0.27
1.0.26
1.0.25
1.0.24
1.0.23
1.0.22
1.0.13
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.2
1.0.1
0.1.19
0.1.17
0.1.15
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
A dashboard tool for depicting Marty data by Robotical
.
robotical/sensors_dashboard
@robotical/sensors-dashboard
/
src
/
utils
/
rename-value-label.ts
7 lines
(6 loc)
•
267 B
text/typescript
View Raw
1
2
3
4
5
6
7
import
addonNamesMap
from
"./constants/addons-names"
;
export
default
function
renameValueLabel
(
valKey
:
string
,
addonName
:
string
) {
let
newValueLabel = valKey.
replace
(addonName,
""
); newValueLabel =
addonNamesMap
(newValueLabel);
return
newValueLabel; }