Commit Graph

148 Commits

Author SHA1 Message Date
Ryan Mwangi 7c01cfc964 get rid of end point to refresh merged calender using the refresh button 2024-10-29 02:35:10 +03:00
Ryan Mwangi 8031333bce save the calendar to a file 2024-10-29 02:31:58 +03:00
Ryan Mwangi 8927cc1cd3 parse calendar data using ical-generator 2024-10-29 02:31:00 +03:00
Ryan Mwangi 4310d3f395 create a new iCalendar instance in the calendar/:name end point 2024-10-29 02:29:29 +03:00
Ryan Mwangi a00321c922 update test.ics using ical-generator 2024-10-28 21:03:58 +03:00
Ryan Mwangi 4584280eab save the calendar to a file 2024-10-28 20:57:34 +03:00
Ryan Mwangi d62a8cd144 parse calendar data using icalGenerator 2024-10-28 20:56:36 +03:00
Ryan Mwangi f6e0ef8fdf create a new iCalendar instance 2024-10-28 20:53:46 +03:00
Ryan Mwangi 51bfb1304a import ical-generator 2024-10-28 20:52:07 +03:00
Ryan Mwangi b031e85497 install latest version of ical-generator 2024-10-28 20:48:44 +03:00
Ryan Mwangi 9e9936ce36 delete unused cron import 2024-10-28 20:34:49 +03:00
Ryan Mwangi 26c4997af0 delete unused crypto import 2024-10-28 20:34:08 +03:00
Ryan Mwangi 5f9309c683 update test JSON and .ics files 2024-10-28 15:53:13 +03:00
Ryan Mwangi bbd93317a1 update the name of the saved separate JSON file 2024-10-28 15:12:57 +03:00
Ryan Mwangi 8531b4ce2b Save the user input and sanitzedLinkGroupName in a separate JSON file 2024-10-28 15:10:34 +03:00
Ryan Mwangi 63b1e9b079 remove second declaration of the filename 2024-10-28 15:08:25 +03:00
Ryan Mwangi 0a9cddcbaa sanitize the provided linkGroupName to create a valid filename 2024-10-28 15:05:49 +03:00
Ryan Mwangi b99932b9ce remove unique identifier for the id of each generated calendar 2024-10-28 15:03:54 +03:00
Ryan Mwangi ad4f2faaca create function to santize the linkGroupName for use as a filename 2024-10-28 15:02:13 +03:00
Ryan Mwangi 0f5563ab2a remove unused link group name 2024-10-28 14:54:33 +03:00
Ryan Mwangi 90f698c84f get rid of the cron schedule 2024-10-25 15:45:55 +03:00
Ryan Mwangi 03cf9f85d0 remove refreshCalendarButton constant in script.js 2024-10-25 14:56:14 +03:00
Ryan Mwangi 4a88b0a5ec remove refresh calendar button event listener 2024-10-25 14:54:25 +03:00
Ryan Mwangi f0eb318f26 remove refresh calendars button in html 2024-10-25 14:52:41 +03:00
Ryan Mwangi edfc7c9eec remove calendar :id end point 2024-10-25 14:51:39 +03:00
Ryan Mwangi 1d4e440093 ensure path to the JSON file is absolute 2024-10-25 14:45:34 +03:00
Ryan Mwangi 9420ce1cce ensure path to the ics file is absolute 2024-10-25 14:44:43 +03:00
Ryan Mwangi d1084ea558 return the contents of the .ics file 2024-10-24 15:35:03 +03:00
Ryan Mwangi 1150778f4c save merged calendar to file 2024-10-24 15:33:58 +03:00
Ryan Mwangi 418fea84b9 parse calendar data 2024-10-24 15:30:01 +03:00
Ryan Mwangi d2d0f7fd1e filter out any failed requests 2024-10-24 15:28:13 +03:00
Ryan Mwangi 08f9f5a15d add catch block 2024-10-24 15:26:50 +03:00
Ryan Mwangi 35deb877a3 fetch calendar data for each merged calendar 2024-10-24 15:25:02 +03:00
Ryan Mwangi c898cb0b24 read the JSON file toget the source URL and other details 2024-10-24 15:22:50 +03:00
Ryan Mwangi bab040df0f check if the file is older than an hour 2024-10-24 15:21:56 +03:00
Ryan Mwangi 96e25f7169 check if .ics file exists 2024-10-24 15:20:52 +03:00
Ryan Mwangi 50ad583698 define jsonFilePath 2024-10-24 15:19:15 +03:00
Ryan Mwangi bfa61b8e77 define icsFilePath 2024-10-24 15:18:44 +03:00
Ryan Mwangi c3c7e79286 define calendarName 2024-10-24 15:18:02 +03:00
Ryan Mwangi 6d0e28486f create new end point to serve the merged calendar file and refresh if older than an hour 2024-10-24 15:16:44 +03:00
Ryan Mwangi bd3ab65003 delete saveCalendarDatajoint function 2024-10-24 15:08:11 +03:00
Ryan Mwangi 1b0f792fd6 import path into server.js 2024-10-24 15:02:01 +03:00
Ryan Mwangi 1e03f668c3 update name of merged calendars directory to calendars 2024-10-24 14:21:21 +03:00
Ryan Mwangi ff2862c4d1 delete calendar.json file and have individual json files for each merged calendar 2024-10-23 16:01:54 +03:00
Ryan Mwangi 3bbaeb2048 edit updateMergedCalendars function to read from the calendarFile 2024-10-23 15:52:43 +03:00
Ryan Mwangi e9569f9690 fetch calendar data from the individual JSON file 2024-10-23 15:46:58 +03:00
Ryan Mwangi 318f585689 function to save calendar data to seperate .json files 2024-10-23 15:22:01 +03:00
Ryan Mwangi 3578ea262d update calendar.json 2024-10-22 19:25:35 +03:00
Ryan Mwangi 1bb8eda0ec support time based events 2024-10-22 19:22:57 +03:00
Ryan Mwangi c570cd9054 improve error handling on refresh button event listener 2024-10-22 14:59:32 +03:00