Feature: Implement iCal integration for calendar, improve styling (#2376)

* Feature: Implement iCal integration, improve calendar/agenda styling

* Delete calendar.jsx

* Calendar proxy handler

* code style

* Add some basic error handling

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Denis Papec
2023-11-25 16:17:25 +00:00
committed by GitHub
parent 518ed7fc4e
commit 95d66707f5
20 changed files with 251 additions and 115 deletions

View File

@@ -1,12 +1,10 @@
import { DateTime } from "luxon";
import { useEffect, useContext } from "react";
import { useEffect } from "react";
import useWidgetAPI from "../../../utils/proxy/use-widget-api";
import { EventContext } from "../../../utils/contexts/calendar";
import Error from "../../../components/services/widget/error";
export default function Integration({ config, params, hideErrors = false }) {
const { setEvents } = useContext(EventContext);
export default function Integration({ config, params, setEvents, hideErrors = false }) {
const { data: sonarrData, error: sonarrError } = useWidgetAPI(config, "calendar", {
...params,
includeSeries: "true",