* 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>
29 lines
681 B
JavaScript
29 lines
681 B
JavaScript
import genericProxyHandler from "utils/proxy/handlers/generic";
|
|
import { jsonArrayFilter } from "utils/proxy/api-helpers";
|
|
|
|
const widget = {
|
|
api: "{url}/api/v1/{endpoint}?apikey={key}",
|
|
proxyHandler: genericProxyHandler,
|
|
|
|
mappings: {
|
|
book: {
|
|
endpoint: "book",
|
|
map: (data) => ({
|
|
have: jsonArrayFilter(data, (item) => item?.statistics?.bookFileCount > 0).length,
|
|
}),
|
|
},
|
|
"queue/status": {
|
|
endpoint: "queue/status",
|
|
},
|
|
"wanted/missing": {
|
|
endpoint: "wanted/missing",
|
|
},
|
|
calendar: {
|
|
endpoint: "calendar",
|
|
params: ["start", "end", "unmonitored", "includeAuthor"],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|