Feature: calendar widget (#2077)

* Implemented calendar

Signed-off-by: Denis Papec <denis.papec@gmail.com>

* Added lidarr events to calendar

Signed-off-by: Denis Papec <denis.papec@gmail.com>

* Added radarr events to calendar

Signed-off-by: Denis Papec <denis.papec@gmail.com>

* Added readarr events to calendar

Signed-off-by: Denis Papec <denis.papec@gmail.com>

* Added sonarr events to calendar

Signed-off-by: Denis Papec <denis.papec@gmail.com>

* fix sonarr series title

* integrations

* fix bad setstate call

* handle user sets includeSeries: false for sonarr

* Translate radarr release strings

* Support all widths

* readarr get author

* Finished first day in week config

Signed-off-by: Denis Papec <denis.papec@gmail.com>

---------

Signed-off-by: Denis Papec <denis.papec@gmail.com>
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Denis Papec 2023-09-28 19:23:44 +01:00 committed by GitHub
parent 855f12e4c1
commit 4cd4103edf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 439 additions and 3 deletions

View file

@ -357,6 +357,7 @@ export function cleanServiceGroups(groups) {
method, // openmediavault widget
mappings, // customapi widget
refreshInterval,
integrations, // calendar widget
} = cleanedService.widget;
let fieldsList = fields;
@ -440,6 +441,9 @@ export function cleanServiceGroups(groups) {
if (mappings) cleanedService.widget.mappings = mappings;
if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval;
}
if (type === "calendar") {
if (integrations) cleanedService.widget.integrations = integrations;
}
}
return cleanedService;