mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
commit
4237d0c7e3
@ -33,6 +33,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- Added option `roundTemp` for currentweather and weatherforecast modules to display temperatures rounded to nearest integer.
|
- Added option `roundTemp` for currentweather and weatherforecast modules to display temperatures rounded to nearest integer.
|
||||||
- Added abilty set the classes option to compliments module for style and text size of compliments.
|
- Added abilty set the classes option to compliments module for style and text size of compliments.
|
||||||
- Added ability to configure electronOptions
|
- Added ability to configure electronOptions
|
||||||
|
- Calendar module: option to hide private events
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
- Modified translations for Frysk.
|
- Modified translations for Frysk.
|
||||||
|
@ -161,6 +161,13 @@ The following properties can be configured:
|
|||||||
<br><b>Default value:</b> <code>true</code>
|
<br><b>Default value:</b> <code>true</code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>hidePrivate</code></td>
|
||||||
|
<td>Hides private calendar events.<br>
|
||||||
|
<br><b>Possible values:</b> <code>true</code> or <code>false</code>
|
||||||
|
<br><b>Default value:</b> <code>false</code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ Module.register("calendar", {
|
|||||||
dateFormat: "MMM Do",
|
dateFormat: "MMM Do",
|
||||||
getRelative: 6,
|
getRelative: 6,
|
||||||
fadePoint: 0.25, // Start on 1/4th of the list.
|
fadePoint: 0.25, // Start on 1/4th of the list.
|
||||||
|
hidePrivate: false,
|
||||||
calendars: [
|
calendars: [
|
||||||
{
|
{
|
||||||
symbol: "calendar",
|
symbol: "calendar",
|
||||||
@ -270,6 +271,12 @@ Module.register("calendar", {
|
|||||||
var calendar = this.calendarData[c];
|
var calendar = this.calendarData[c];
|
||||||
for (var e in calendar) {
|
for (var e in calendar) {
|
||||||
var event = calendar[e];
|
var event = calendar[e];
|
||||||
|
if(this.config.hidePrivate) {
|
||||||
|
if(event.class === "PRIVATE") {
|
||||||
|
// do not add the current event, skip it
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
event.url = c;
|
event.url = c;
|
||||||
event.today = event.startDate >= today && event.startDate < (today + 24 * 60 * 60 * 1000);
|
event.today = event.startDate >= today && event.startDate < (today + 24 * 60 * 60 * 1000);
|
||||||
events.push(event);
|
events.push(event);
|
||||||
|
@ -114,6 +114,7 @@ var CalendarFetcher = function(url, reloadInterval, maximumEntries, maximumNumbe
|
|||||||
startDate: startDate.format("x"),
|
startDate: startDate.format("x"),
|
||||||
endDate: endDate.format("x"),
|
endDate: endDate.format("x"),
|
||||||
fullDayEvent: isFullDayEvent(event),
|
fullDayEvent: isFullDayEvent(event),
|
||||||
|
class: event.class,
|
||||||
firstYear: event.start.getFullYear(),
|
firstYear: event.start.getFullYear(),
|
||||||
location: location,
|
location: location,
|
||||||
geo: geo,
|
geo: geo,
|
||||||
@ -148,6 +149,7 @@ var CalendarFetcher = function(url, reloadInterval, maximumEntries, maximumNumbe
|
|||||||
startDate: startDate.format("x"),
|
startDate: startDate.format("x"),
|
||||||
endDate: endDate.format("x"),
|
endDate: endDate.format("x"),
|
||||||
fullDayEvent: fullDayEvent,
|
fullDayEvent: fullDayEvent,
|
||||||
|
class: event.class,
|
||||||
location: location,
|
location: location,
|
||||||
geo: geo,
|
geo: geo,
|
||||||
description: description
|
description: description
|
||||||
|
Loading…
x
Reference in New Issue
Block a user