mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
use fake modules instead
This commit is contained in:
parent
c392b5a661
commit
ed0ad7b988
@ -20,6 +20,7 @@ _This release is scheduled to be released on 2022-04-01._
|
|||||||
- deprecated roboto fonts package `roboto-fontface-bower` replaced with `fontsource`.
|
- deprecated roboto fonts package `roboto-fontface-bower` replaced with `fontsource`.
|
||||||
- update `helmet` to v5, use defaults of v4.
|
- update `helmet` to v5, use defaults of v4.
|
||||||
- updates Font Awesome css class to new default style (fixes #2768)
|
- updates Font Awesome css class to new default style (fixes #2768)
|
||||||
|
- replaced deprecated modules `currentweather` and `weatherforecast` with dummy modules only displaying that they have to be replaced.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
33
modules/default/currentweather/currentweather.js
Normal file
33
modules/default/currentweather/currentweather.js
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
|
/* Magic Mirror
|
||||||
|
* Module: CurrentWeather
|
||||||
|
*
|
||||||
|
* By Michael Teeuw https://michaelteeuw.nl
|
||||||
|
* MIT Licensed.
|
||||||
|
*
|
||||||
|
* This module is deprecated. Any additional feature will no longer be merged.
|
||||||
|
*/
|
||||||
|
Module.register("currentweather", {
|
||||||
|
// Define start sequence.
|
||||||
|
start: function () {
|
||||||
|
Log.info("Starting module: " + this.name);
|
||||||
|
},
|
||||||
|
|
||||||
|
// Override dom generator.
|
||||||
|
getDom: function () {
|
||||||
|
var wrapper = document.createElement("div");
|
||||||
|
wrapper.className = this.config.tableClass;
|
||||||
|
wrapper.innerHTML =
|
||||||
|
"<style>text-decoration: none</style>" +
|
||||||
|
"This module is deprecated since release v2.15 and removed with v2.19." +
|
||||||
|
'<br>Please use the `weather` module as replacement, more info in the <a href="https://docs.magicmirror.builders/modules/weather.html">documentation</a>.';
|
||||||
|
wrapper.className = "dimmed light small";
|
||||||
|
return wrapper;
|
||||||
|
},
|
||||||
|
|
||||||
|
// Override getHeader method.
|
||||||
|
getHeader: function () {
|
||||||
|
return "deprecated currentweather";
|
||||||
|
}
|
||||||
|
});
|
@ -4,7 +4,7 @@
|
|||||||
* By Michael Teeuw https://michaelteeuw.nl
|
* By Michael Teeuw https://michaelteeuw.nl
|
||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
*/
|
*/
|
||||||
const defaultModules = ["alert", "calendar", "clock", "compliments", "helloworld", "newsfeed", "updatenotification", "weather"];
|
const defaultModules = ["alert", "calendar", "clock", "compliments", "currentweather", "helloworld", "newsfeed", "weatherforecast", "updatenotification", "weather"];
|
||||||
|
|
||||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||||
if (typeof module !== "undefined") {
|
if (typeof module !== "undefined") {
|
||||||
|
33
modules/default/weatherforecast/weatherforecast.js
Normal file
33
modules/default/weatherforecast/weatherforecast.js
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
|
/* Magic Mirror
|
||||||
|
* Module: CurrentWeather
|
||||||
|
*
|
||||||
|
* By Michael Teeuw https://michaelteeuw.nl
|
||||||
|
* MIT Licensed.
|
||||||
|
*
|
||||||
|
* This module is deprecated. Any additional feature will no longer be merged.
|
||||||
|
*/
|
||||||
|
Module.register("weatherforecast", {
|
||||||
|
// Define start sequence.
|
||||||
|
start: function () {
|
||||||
|
Log.info("Starting module: " + this.name);
|
||||||
|
},
|
||||||
|
|
||||||
|
// Override dom generator.
|
||||||
|
getDom: function () {
|
||||||
|
var wrapper = document.createElement("div");
|
||||||
|
wrapper.className = this.config.tableClass;
|
||||||
|
wrapper.innerHTML =
|
||||||
|
"<style>text-decoration: none</style>" +
|
||||||
|
"This module is deprecated since release v2.15 and removed with v2.19." +
|
||||||
|
'<br>Please use the `weather` module as replacement, more info in the <a href="https://docs.magicmirror.builders/modules/weather.html">documentation</a>.';
|
||||||
|
wrapper.className = "dimmed light small";
|
||||||
|
return wrapper;
|
||||||
|
},
|
||||||
|
|
||||||
|
// Override getHeader method.
|
||||||
|
getHeader: function () {
|
||||||
|
return "deprecated weatherforecast";
|
||||||
|
}
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user