mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-04-25 15:10:30 -04:00
Second round of undef fixes
This commit is contained in:
parent
b9d19cfcb4
commit
c04fa496bf
9 changed files with 13 additions and 21 deletions
|
@ -1,10 +1,12 @@
|
||||||
|
/* global Class, xyz */
|
||||||
|
|
||||||
/* Simple JavaScript Inheritance
|
/* Simple JavaScript Inheritance
|
||||||
* By John Resig https://johnresig.com/
|
* By John Resig https://johnresig.com/
|
||||||
|
*
|
||||||
|
* Inspired by base2 and Prototype
|
||||||
|
*
|
||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
// Inspired by base2 and Prototype
|
|
||||||
(function () {
|
(function () {
|
||||||
var initializing = false;
|
var initializing = false;
|
||||||
var fnTest = /xyz/.test(function () { xyz; }) ? /\b_super\b/ : /.*/;
|
var fnTest = /xyz/.test(function () { xyz; }) ? /\b_super\b/ : /.*/;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* exported defaults */
|
/* global mmPort */
|
||||||
|
|
||||||
/* Magic Mirror
|
/* Magic Mirror
|
||||||
* Config Defaults
|
* Config Defaults
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* global Module, vendor */
|
/* global defaultModules, Module, vendor */
|
||||||
|
|
||||||
/* Magic Mirror
|
/* Magic Mirror
|
||||||
* Module and File loaders.
|
* Module and File loaders.
|
||||||
|
|
10
js/logger.js
10
js/logger.js
|
@ -1,16 +1,12 @@
|
||||||
/* exported Log */
|
|
||||||
|
|
||||||
/* Magic Mirror
|
/* Magic Mirror
|
||||||
* Logger
|
* Logger
|
||||||
|
* This logger is very simple, but needs to be extended.
|
||||||
|
* This system can eventually be used to push the log messages to an external target.
|
||||||
*
|
*
|
||||||
* By Michael Teeuw https://michaelteeuw.nl
|
* By Michael Teeuw https://michaelteeuw.nl
|
||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
*/
|
*/
|
||||||
|
const Log = (function() {
|
||||||
// This logger is very simple, but needs to be extended.
|
|
||||||
// This system can eventually be used to push the log messages to an external target.
|
|
||||||
|
|
||||||
var Log = (function() {
|
|
||||||
return {
|
return {
|
||||||
info: Function.prototype.bind.call(console.info, console),
|
info: Function.prototype.bind.call(console.info, console),
|
||||||
log: Function.prototype.bind.call(console.log, console),
|
log: Function.prototype.bind.call(console.log, console),
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* global Class, Loader, MMSocket, nunjucks, Translator */
|
/* global Class, cloneObject, Loader, MMSocket, nunjucks, Translator */
|
||||||
|
|
||||||
/* Magic Mirror
|
/* Magic Mirror
|
||||||
* Module Blueprint.
|
* Module Blueprint.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* exported Translator */
|
/* global translations */
|
||||||
|
|
||||||
/* Magic Mirror
|
/* Magic Mirror
|
||||||
* Translator (l10n)
|
* Translator (l10n)
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
/* exported Utils */
|
|
||||||
|
|
||||||
/* Magic Mirror
|
/* Magic Mirror
|
||||||
* Utils
|
* Utils
|
||||||
*
|
*
|
||||||
* By Rodrigo Ramírez Norambuena https://rodrigoramirez.com
|
* By Rodrigo Ramírez Norambuena https://rodrigoramirez.com
|
||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var colors = require("colors/safe");
|
var colors = require("colors/safe");
|
||||||
|
|
||||||
var Utils = {
|
var Utils = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* global Module */
|
/* global cloneObject, Module */
|
||||||
|
|
||||||
/* Magic Mirror
|
/* Magic Mirror
|
||||||
* Module: Calendar
|
* Module: Calendar
|
||||||
|
|
3
vendor/vendor.js
vendored
3
vendor/vendor.js
vendored
|
@ -1,12 +1,9 @@
|
||||||
/* exported vendor */
|
|
||||||
|
|
||||||
/* Magic Mirror
|
/* Magic Mirror
|
||||||
* Vendor File Definition
|
* Vendor File Definition
|
||||||
*
|
*
|
||||||
* By Michael Teeuw https://michaelteeuw.nl
|
* By Michael Teeuw https://michaelteeuw.nl
|
||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var vendor = {
|
var vendor = {
|
||||||
"moment.js" : "node_modules/moment/min/moment-with-locales.js",
|
"moment.js" : "node_modules/moment/min/moment-with-locales.js",
|
||||||
"moment-timezone.js" : "node_modules/moment-timezone/builds/moment-timezone-with-data.js",
|
"moment-timezone.js" : "node_modules/moment-timezone/builds/moment-timezone-with-data.js",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue