Dateien nach "frontend/src" hochladen
This commit is contained in:
@@ -114,6 +114,7 @@ export default function CalendarWidget() {
|
||||
if (res.ok) {
|
||||
const text = await res.text();
|
||||
dbg.push(`Bytes: ${text.length}, VCALENDAR: ${text.includes('BEGIN:VCALENDAR')}, VEVENTs: ${(text.match(/BEGIN:VEVENT/g)||[]).length}`);
|
||||
dbg.push(`Inhalt (erste 200 Zeichen): ${text.slice(0,200).replace(/\n/g,' ')}`);
|
||||
const evs = parseIcal(text).map(e => ({ ...e, color: f.color, feedName: f.name }));
|
||||
dbg.push(`Geparst: ${evs.length} Termine`);
|
||||
if (evs.length > 0) dbg.push(`Erstes: ${evs[0].summary} @ ${evs[0].dtstart}`);
|
||||
|
||||
Reference in New Issue
Block a user