replace U+00BA º (not degrees) with U+00B0 ° (degrees)

U+00BA º MASCULINE ORDINAL INDICATOR vs. U+00B0 ° DEGREE SIGN (°)
This commit is contained in:
Travis Hardiman 2025-04-25 00:20:39 -04:00 committed by Anton Roslund
parent 11f5898996
commit b3bb02fede

View file

@ -1334,8 +1334,8 @@
<label class="block text-sm font-medium text-gray-900">Temperature Format</label> <label class="block text-sm font-medium text-gray-900">Temperature Format</label>
<div class="text-xs text-gray-600 mb-2">Metrics will be shown in the selected format.</div> <div class="text-xs text-gray-600 mb-2">Metrics will be shown in the selected format.</div>
<select v-model="configTemperatureFormat" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"> <select v-model="configTemperatureFormat" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5">
<option value="celsius">Celsius (ºC)</option> <option value="celsius">Celsius (°C)</option>
<option value="fahrenheit">Fahrenheit (ºF)</option> <option value="fahrenheit">Fahrenheit (°F)</option>
</select> </select>
</div> </div>
@ -2078,7 +2078,7 @@
datasets: [ datasets: [
{ {
label: 'Temperature', label: 'Temperature',
suffix: 'ºC', suffix: '°C',
borderColor: '#3b82f6', borderColor: '#3b82f6',
backgroundColor: '#3b82f6', backgroundColor: '#3b82f6',
pointStyle: false, // no points pointStyle: false, // no points
@ -2473,11 +2473,11 @@
formatTemperature: function(celsius) { formatTemperature: function(celsius) {
switch(this.configTemperatureFormat){ switch(this.configTemperatureFormat){
case "celsius": { case "celsius": {
return `${Number(celsius).toFixed(0)}ºC`; return `${Number(celsius).toFixed(0)}°C`;
} }
case "fahrenheit": { case "fahrenheit": {
const fahrenheit = this.celsiusToFahrenheit(celsius); const fahrenheit = this.celsiusToFahrenheit(celsius);
return `${fahrenheit.toFixed(0)}ºF`; return `${fahrenheit.toFixed(0)}°F`;
} }
} }
}, },
@ -2493,8 +2493,8 @@
}, },
getTemperatureUnit: function() { getTemperatureUnit: function() {
switch(this.configTemperatureFormat){ switch(this.configTemperatureFormat){
case "celsius": return "ºC"; case "celsius": return "°C";
case "fahrenheit": return "ºF"; case "fahrenheit": return "°F";
} }
}, },
celsiusToFahrenheit: function(celsius) { celsiusToFahrenheit: function(celsius) {