mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Reformat unit menu definition.
This commit is contained in:
@@ -439,28 +439,28 @@ function($, _) {
|
|||||||
{
|
{
|
||||||
text: 'none',
|
text: 'none',
|
||||||
submenu: [
|
submenu: [
|
||||||
{text: 'none' , value: 'none'},
|
{text: 'none' , value: 'none' },
|
||||||
{text: 'short', value: 'short'},
|
{text: 'short', value: 'short' },
|
||||||
{text: 'percent', value: 'percent'},
|
{text: 'scaled percentage (0-100)', value: 'percent' },
|
||||||
{text: 'ppm', value: 'ppm'},
|
{text: 'ppm', value: 'ppm' },
|
||||||
{text: 'dB', value: 'dB'},
|
{text: 'decibel', value: 'dB' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'duration',
|
text: 'duration',
|
||||||
submenu: [
|
submenu: [
|
||||||
{text: 'nanoseconds (ns)' , value: 'ns'},
|
{text: 'Hertz (1/s)', value: 'hertz'},
|
||||||
{text: 'microseconds (µs)', value: 'µs'},
|
{text: 'nanoseconds (ns)' , value: 'ns' },
|
||||||
{text: 'milliseconds (ms)', value: 'ms'},
|
{text: 'microseconds (µs)', value: 'µs' },
|
||||||
{text: 'seconds (s)', value: 's'},
|
{text: 'milliseconds (ms)', value: 'ms' },
|
||||||
{text: 'Hertz (1/s)', value: 'hertz'},
|
{text: 'seconds (s)', value: 's' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'data',
|
text: 'data',
|
||||||
submenu: [
|
submenu: [
|
||||||
{text: 'bits', value: 'bits'},
|
{text: 'bits', value: 'bits' },
|
||||||
{text: 'bytes', value: 'bytes'},
|
{text: 'bytes', value: 'bytes' },
|
||||||
{text: 'kilobytes', value: 'kbytes'},
|
{text: 'kilobytes', value: 'kbytes'},
|
||||||
{text: 'megabytes', value: 'mbytes'},
|
{text: 'megabytes', value: 'mbytes'},
|
||||||
{text: 'gigabytes', value: 'gbytes'},
|
{text: 'gigabytes', value: 'gbytes'},
|
||||||
@@ -470,40 +470,40 @@ function($, _) {
|
|||||||
text: 'data rate',
|
text: 'data rate',
|
||||||
submenu: [
|
submenu: [
|
||||||
{text: 'packets/sec', value: 'pps'},
|
{text: 'packets/sec', value: 'pps'},
|
||||||
{text: 'bits/sec', value: 'bps'},
|
{text: 'bits/sec', value: 'bps'},
|
||||||
{text: 'bytes/sec', value: 'Bps'},
|
{text: 'bytes/sec', value: 'Bps'},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'energy',
|
text: 'energy',
|
||||||
submenu: [
|
submenu: [
|
||||||
{text: 'watt (W)', value: 'watt'},
|
{text: 'watt (W)', value: 'watt' },
|
||||||
{text: 'kilowatt (kW)', value: 'kwatt'},
|
{text: 'kilowatt (kW)', value: 'kwatt' },
|
||||||
{text: 'watt-hour (Wh)', value: 'watth'},
|
{text: 'watt-hour (Wh)', value: 'watth' },
|
||||||
{text: 'kilowatt-hour (kWh)', value: 'kwatth'},
|
{text: 'kilowatt-hour (kWh)', value: 'kwatth'},
|
||||||
{text: 'joule (J)', value: 'joule'},
|
{text: 'joule (J)', value: 'joule' },
|
||||||
{text: 'electron volt (eV)', value: 'ev'},
|
{text: 'electron volt (eV)', value: 'ev' },
|
||||||
{text: 'Ampere (A)', value: 'amp'},
|
{text: 'Ampere (A)', value: 'amp' },
|
||||||
{text: 'Volt (V)', value: 'volt'},
|
{text: 'Volt (V)', value: 'volt' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'weather',
|
text: 'weather',
|
||||||
submenu: [
|
submenu: [
|
||||||
{text: 'Celcius (°C)', value: 'celsius' },
|
{text: 'Celcius (°C)', value: 'celsius' },
|
||||||
{text: 'Farenheit (°F)', value: 'farenheit'},
|
{text: 'Farenheit (°F)', value: 'farenheit' },
|
||||||
{text: 'Humidity (%H)', value: 'humidity' },
|
{text: 'Humidity (%H)', value: 'humidity' },
|
||||||
{text: 'Pressure (mbar)', value: 'pressurembar' },
|
{text: 'Pressure (mbar)', value: 'pressurembar'},
|
||||||
{text: 'Pressure (hPa)', value: 'pressurehpa' },
|
{text: 'Pressure (hPa)', value: 'pressurehpa' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'velocity',
|
text: 'velocity',
|
||||||
submenu: [
|
submenu: [
|
||||||
{text: 'm/s', value: 'velocityms' },
|
{text: 'm/s', value: 'velocityms' },
|
||||||
{text: 'km/h', value: 'velocitykmh' },
|
{text: 'km/h', value: 'velocitykmh' },
|
||||||
{text: 'mph', value: 'velocitymph' },
|
{text: 'mph', value: 'velocitymph' },
|
||||||
{text: 'knot (kn)', value: 'velocityknot' },
|
{text: 'knot (kn)', value: 'velocityknot'},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user