diff --git a/CHANGELOG.md b/CHANGELOG.md index edbf900c..4b21d6a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ _This release is scheduled to be released on 2022-04-01._ - deprecated roboto fonts package `roboto-fontface-bower` replaced with `fontsource`. - update `helmet` to v5. +- updates Font Awesome css class to new default style (fixes #2768) ### Fixed diff --git a/modules/default/alert/templates/alert.njk b/modules/default/alert/templates/alert.njk index 5592ea35..a748d268 100644 --- a/modules/default/alert/templates/alert.njk +++ b/modules/default/alert/templates/alert.njk @@ -3,7 +3,7 @@ {% if imageUrl %} {% else %} - + {% endif %}
{% endif %} diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js index 52bb87da..c38f7a6e 100755 --- a/modules/default/calendar/calendar.js +++ b/modules/default/calendar/calendar.js @@ -13,7 +13,7 @@ Module.register("calendar", { maximumNumberOfDays: 365, limitDays: 0, // Limit the number of days shown, 0 = no limit displaySymbol: true, - defaultSymbol: "calendar", // Fontawesome Symbol see https://fontawesome.com/cheatsheet?from=io + defaultSymbol: "calendar-alt", // Fontawesome Symbol see https://fontawesome.com/cheatsheet?from=io showLocation: false, displayRepeatingCountTitle: false, defaultRepeatingCountTitle: "", @@ -43,7 +43,7 @@ Module.register("calendar", { tableClass: "small", calendars: [ { - symbol: "calendar", + symbol: "calendar-alt", url: "https://www.calendarlabs.com/templates/ical/US-Holidays.ics" } ], @@ -239,7 +239,7 @@ Module.register("calendar", { const symbols = this.symbolsForEvent(event); symbols.forEach((s, index) => { const symbol = document.createElement("span"); - symbol.className = "fa fa-fw fa-" + s; + symbol.className = "fas fa-fw fa-" + s; if (index > 0) { symbol.style.paddingLeft = "5px"; } diff --git a/modules/default/clock/clock.js b/modules/default/clock/clock.js index 52cdb7e0..df2364a4 100644 --- a/modules/default/clock/clock.js +++ b/modules/default/clock/clock.js @@ -199,13 +199,13 @@ Module.register("clock", { sunWrapper.innerHTML = ' ' + + '"> ' + untilNextEventString + "" + - ' ' + + ' ' + formatTime(this.config, sunTimes.sunrise) + "" + - ' ' + + ' ' + formatTime(this.config, sunTimes.sunset) + ""; digitalWrapper.appendChild(sunWrapper); @@ -230,13 +230,13 @@ Module.register("clock", { moonWrapper.innerHTML = ' ' + + '"> ' + illuminatedFractionString + "" + - ' ' + + ' ' + (moonRise ? formatTime(this.config, moonRise) : "...") + "" + - ' ' + + ' ' + (moonSet ? formatTime(this.config, moonSet) : "...") + ""; digitalWrapper.appendChild(moonWrapper); diff --git a/modules/default/currentweather/currentweather.js b/modules/default/currentweather/currentweather.js index 5a00fb99..e8ced0bb 100644 --- a/modules/default/currentweather/currentweather.js +++ b/modules/default/currentweather/currentweather.js @@ -135,7 +135,7 @@ Module.register("currentweather", { var windDirection = document.createElement("sup"); if (this.config.showWindDirectionAsArrow) { if (this.windDeg !== null) { - windDirection.innerHTML = '   '; + windDirection.innerHTML = '   '; } } else { windDirection.innerHTML = " " + this.translate(this.windDirection); @@ -234,7 +234,7 @@ Module.register("currentweather", { if (this.config.showIndoorTemperature && this.indoorTemperature) { var indoorIcon = document.createElement("span"); - indoorIcon.className = "fa fa-home"; + indoorIcon.className = "fas fa-home"; large.appendChild(indoorIcon); var indoorTemperatureElem = document.createElement("span"); @@ -245,7 +245,7 @@ Module.register("currentweather", { if (this.config.showIndoorHumidity && this.indoorHumidity) { var indoorHumidityIcon = document.createElement("span"); - indoorHumidityIcon.className = "fa fa-tint"; + indoorHumidityIcon.className = "fas fa-tint"; large.appendChild(indoorHumidityIcon); var indoorHumidityElem = document.createElement("span"); diff --git a/modules/default/updatenotification/updatenotification.njk b/modules/default/updatenotification/updatenotification.njk index aa4a5250..3149816f 100644 --- a/modules/default/updatenotification/updatenotification.njk +++ b/modules/default/updatenotification/updatenotification.njk @@ -1,7 +1,7 @@ {% if not suspended %} {% for name, status in moduleList %}
- + {% set mainTextLabel = "UPDATE_NOTIFICATION" if name === "default" else "UPDATE_NOTIFICATION_MODULE" %} {{ mainTextLabel | translate({MODULE_NAME: name}) }} diff --git a/modules/default/weather/current.njk b/modules/default/weather/current.njk index 40746e82..bfeb0b8f 100755 --- a/modules/default/weather/current.njk +++ b/modules/default/weather/current.njk @@ -15,7 +15,7 @@ {% if config.showWindDirection %} {% if config.showWindDirectionAsArrow %} - + {% else %} {{ current.cardinalWindDirection() | translate }} {% endif %} @@ -47,7 +47,7 @@
{% if config.showIndoorTemperature and indoor.temperature %}
- + {{ indoor.temperature | roundValue | unit("temperature") | decimalSymbol }} @@ -55,7 +55,7 @@ {% endif %} {% if config.showIndoorHumidity and indoor.humidity %}
- + {{ indoor.humidity | roundValue | unit("humidity") | decimalSymbol }} diff --git a/tests/e2e/modules/calendar_spec.js b/tests/e2e/modules/calendar_spec.js index 929b9f57..8fb803d7 100644 --- a/tests/e2e/modules/calendar_spec.js +++ b/tests/e2e/modules/calendar_spec.js @@ -33,7 +33,7 @@ describe("Calendar module", function () { }); it("should show the default calendar symbol in each event", () => { - testElementLength(".calendar .event .fa-calendar", 0, "not"); + testElementLength(".calendar .event .fa-calendar-alt", 0, "not"); }); }); diff --git a/tests/e2e/modules/weather_spec.js b/tests/e2e/modules/weather_spec.js index 6c5afbb0..56581d25 100644 --- a/tests/e2e/modules/weather_spec.js +++ b/tests/e2e/modules/weather_spec.js @@ -117,7 +117,7 @@ describe("Weather module", function () { }); it("should render showWindDirectionAsArrow = true", function () { - const elem = getElement(".weather .normal.medium sup i.fa-long-arrow-up"); + const elem = getElement(".weather .normal.medium sup i.fa-long-arrow-alt-up"); expect(elem.outerHTML).toContain("transform:rotate(250deg);"); });