* Added font awesome 5, keeping shims in place for the calendar app (https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4)

* Updated example sample config
This commit is contained in:
P-DESK\P-Storm 2018-10-05 01:16:25 +02:00
parent d4fe01f9b9
commit fc89feec4e
6 changed files with 279 additions and 890 deletions

View File

@ -44,7 +44,7 @@ var config = {
config: { config: {
calendars: [ calendars: [
{ {
symbol: "calendar-check-o ", symbol: "calendar-check",
url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics" url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
} }
] ]

View File

@ -51,7 +51,7 @@ Module.register("calendar", {
// Define required scripts. // Define required scripts.
getStyles: function () { getStyles: function () {
return ["calendar.css", "font-awesome.css"]; return ["calendar.css", "font-awesome5.css", "font-awesome5.v4shims.css"];
}, },
// Define required scripts. // Define required scripts.

982
vendor/package-lock.json generated vendored

File diff suppressed because it is too large Load Diff

1
vendor/package.json vendored
View File

@ -10,6 +10,7 @@
"url": "https://github.com/MichMich/MagicMirror/issues" "url": "https://github.com/MichMich/MagicMirror/issues"
}, },
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^5.3.1",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",
"moment": "^2.17.1", "moment": "^2.17.1",
"moment-timezone": "^0.5.11", "moment-timezone": "^0.5.11",

2
vendor/vendor.js vendored
View File

@ -13,6 +13,8 @@ var vendor = {
"weather-icons.css": "node_modules/weathericons/css/weather-icons.css", "weather-icons.css": "node_modules/weathericons/css/weather-icons.css",
"weather-icons-wind.css": "node_modules/weathericons/css/weather-icons-wind.css", "weather-icons-wind.css": "node_modules/weathericons/css/weather-icons-wind.css",
"font-awesome.css": "node_modules/font-awesome/css/font-awesome.min.css", "font-awesome.css": "node_modules/font-awesome/css/font-awesome.min.css",
"font-awesome5.css": "node_modules/@fortawesome/fontawesome-free/css/all.min.css",
"font-awesome5.v4shims.css": "node_modules/@fortawesome/fontawesome-free/css/v4-shims.min.css",
"nunjucks.js": "node_modules/nunjucks/browser/nunjucks.min.js" "nunjucks.js": "node_modules/nunjucks/browser/nunjucks.min.js"
}; };

178
vendor/yarn.lock vendored

File diff suppressed because it is too large Load Diff