mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Put file deprecated into js directory
Request in Pull Request #569 Initial work by @olexs
This commit is contained in:
parent
fd7fe129e2
commit
db0b663a3d
@ -47,6 +47,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
- Estonian Translation.
|
||||
- Add test for compliments module for parts of day
|
||||
- Korean Translation.
|
||||
- Added console warning on startup when deprecated config options are used
|
||||
|
||||
|
||||
### Fixed
|
||||
@ -92,7 +93,6 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
- Added ability to configure electronOptions
|
||||
- Calendar module: option to hide private events
|
||||
- Add root_path for global vars
|
||||
- Added console warning on startup when deprecated config options are used
|
||||
|
||||
### Updated
|
||||
- Modified translations for Frysk.
|
||||
|
1
config/.gitignore
vendored
1
config/.gitignore
vendored
@ -1,3 +1,2 @@
|
||||
*
|
||||
!config.js.sample
|
||||
!deprecated.js
|
||||
|
@ -79,7 +79,7 @@ var App = function() {
|
||||
};
|
||||
|
||||
var checkDeprecatedOptions = function(userConfig) {
|
||||
var deprecatedOptions = require(__dirname + "/../config/deprecated.js");
|
||||
var deprecatedOptions = require(global.root_path + "/js/deprecated.js").configs;
|
||||
var usedDeprecated = [];
|
||||
|
||||
deprecatedOptions.forEach(function(option) {
|
||||
@ -89,7 +89,11 @@ var App = function() {
|
||||
});
|
||||
|
||||
if (usedDeprecated.length > 0) {
|
||||
console.error("WARNING! Your config is using deprecated options: " + usedDeprecated.join(", ") + ". Check README and CHANGELOG for more up-to-date ways of getting the same functionality.");
|
||||
console.warn(
|
||||
"WARNING! Your config is using deprecated options: ",
|
||||
usedDeprecated.join(", "),
|
||||
". Check README and CHANGELOG for more up-to-date ways of getting the same functionality."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,11 +2,13 @@
|
||||
*
|
||||
* By Michael Teeuw http://michaelteeuw.nl
|
||||
* MIT Licensed.
|
||||
*
|
||||
* Olex S. original idea this deprecated option
|
||||
*/
|
||||
|
||||
var deprecated = [
|
||||
'kioskmode'
|
||||
];
|
||||
var deprecated = {
|
||||
configs: ["kioskmode"]
|
||||
};
|
||||
|
||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||
if (typeof module !== 'undefined') {module.exports = deprecated;}
|
||||
if (typeof module !== "undefined") {module.exports = deprecated;}
|
Loading…
x
Reference in New Issue
Block a user