mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
fix linting errors. add line to changelog
This commit is contained in:
parent
e492012004
commit
c6bf69cce4
@ -13,6 +13,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- Added scroll up in fullscreen newsfeed article view
|
- Added scroll up in fullscreen newsfeed article view
|
||||||
- Changed fullscreen newsfeed width from 100% to 100vw (better results)
|
- Changed fullscreen newsfeed width from 100% to 100vw (better results)
|
||||||
- Added option to calendar module that colors only the symbol instead of the whole line
|
- Added option to calendar module that colors only the symbol instead of the whole line
|
||||||
|
- Added option for new display format in the calendar module with date headers with times/events below.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Use Electron 2 Beta. **Please test!**
|
- Use Electron 2 Beta. **Please test!**
|
||||||
|
@ -132,7 +132,7 @@ Module.register("calendar", {
|
|||||||
return wrapper;
|
return wrapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
var lastSeenDate = '';
|
var lastSeenDate = "";
|
||||||
|
|
||||||
for (var e in events) {
|
for (var e in events) {
|
||||||
var event = events[e];
|
var event = events[e];
|
||||||
@ -227,18 +227,18 @@ Module.register("calendar", {
|
|||||||
timeWrapper.style.paddingLeft = "2px";
|
timeWrapper.style.paddingLeft = "2px";
|
||||||
var timeFormatString = "";
|
var timeFormatString = "";
|
||||||
switch (config.timeFormat) {
|
switch (config.timeFormat) {
|
||||||
case 12: {
|
case 12: {
|
||||||
timeFormatString = "h:mm A";
|
timeFormatString = "h:mm A";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 24: {
|
case 24: {
|
||||||
timeFormatString = "HH:mm";
|
timeFormatString = "HH:mm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
timeFormatString = "HH:mm";
|
timeFormatString = "HH:mm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
timeWrapper.innerHTML = moment(event.startDate, "x").format(timeFormatString);
|
timeWrapper.innerHTML = moment(event.startDate, "x").format(timeFormatString);
|
||||||
eventWrapper.appendChild(timeWrapper);
|
eventWrapper.appendChild(timeWrapper);
|
||||||
@ -418,7 +418,7 @@ Module.register("calendar", {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(this.listContainsEvent(events,event)){
|
if(this.listContainsEvent(events,event)){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
event.url = c;
|
event.url = c;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user