Commit graph

227 commits

Author SHA1 Message Date
03cf9f85d0 remove refreshCalendarButton constant in script.js 2024-10-25 14:56:14 +03:00
4a88b0a5ec remove refresh calendar button event listener 2024-10-25 14:54:25 +03:00
f0eb318f26 remove refresh calendars button in html 2024-10-25 14:52:41 +03:00
edfc7c9eec remove calendar :id end point 2024-10-25 14:51:39 +03:00
1d4e440093 ensure path to the JSON file is absolute 2024-10-25 14:45:34 +03:00
9420ce1cce ensure path to the ics file is absolute 2024-10-25 14:44:43 +03:00
d1084ea558 return the contents of the .ics file 2024-10-24 15:35:03 +03:00
1150778f4c save merged calendar to file 2024-10-24 15:33:58 +03:00
418fea84b9 parse calendar data 2024-10-24 15:30:01 +03:00
d2d0f7fd1e filter out any failed requests 2024-10-24 15:28:13 +03:00
08f9f5a15d add catch block 2024-10-24 15:26:50 +03:00
35deb877a3 fetch calendar data for each merged calendar 2024-10-24 15:25:02 +03:00
c898cb0b24 read the JSON file toget the source URL and other details 2024-10-24 15:22:50 +03:00
bab040df0f check if the file is older than an hour 2024-10-24 15:21:56 +03:00
96e25f7169 check if .ics file exists 2024-10-24 15:20:52 +03:00
50ad583698 define jsonFilePath 2024-10-24 15:19:15 +03:00
bfa61b8e77 define icsFilePath 2024-10-24 15:18:44 +03:00
c3c7e79286 define calendarName 2024-10-24 15:18:02 +03:00
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
bd3ab65003 delete saveCalendarDatajoint function 2024-10-24 15:08:11 +03:00
1b0f792fd6 import path into server.js 2024-10-24 15:02:01 +03:00
1e03f668c3 update name of merged calendars directory to calendars 2024-10-24 14:21:21 +03:00
ff2862c4d1 delete calendar.json file and have individual json files for each merged calendar 2024-10-23 16:01:54 +03:00
3bbaeb2048 edit updateMergedCalendars function to read from the calendarFile 2024-10-23 15:52:43 +03:00
e9569f9690 fetch calendar data from the individual JSON file 2024-10-23 15:46:58 +03:00
318f585689 function to save calendar data to seperate .json files 2024-10-23 15:22:01 +03:00
3578ea262d update calendar.json 2024-10-22 19:25:35 +03:00
1bb8eda0ec support time based events 2024-10-22 19:22:57 +03:00
c570cd9054 improve error handling on refresh button event listener 2024-10-22 14:59:32 +03:00
a6b3747bfe use POST method in refresh button event listener 2024-10-22 14:56:57 +03:00
c6117e3470 update cron job to use mergedCalendar.id when calling the updateMergedCalendars function 2024-10-22 14:35:11 +03:00
77f19504a2 update refresh calendar endpoint to have some error handling 2024-10-22 14:32:28 +03:00
a3703ef485 use calendarId in updateMergedCalendars function 2024-10-22 14:29:51 +03:00
b4674feabf endpoint to refresh the merged calender 2024-10-22 02:40:08 +03:00
714a82575b add refresh button event listener 2024-10-21 23:22:45 +03:00
ea87f77288 add new refresh calendars button 2024-10-21 23:09:05 +03:00
2c99ea1209 spell calendarIndex correctly 2024-10-21 20:03:01 +03:00
ccc8847713 proceed if only all URLs are valid 2024-10-21 19:47:18 +03:00
3ffd34190f correct syntax error 2024-10-21 19:41:41 +03:00
707e085fe7 validate the URL 2024-10-21 19:38:05 +03:00
7c19b8d12c add function to validate URL format 2024-10-21 19:35:12 +03:00
28335713f3 add working ics links to calendars.json 2024-10-21 17:56:09 +03:00
f5f23d85e0 edit server side code error message for wrong user input 2024-10-21 15:33:57 +03:00
fe446b1b09 report unknown error in the case of missing error message 2024-10-21 15:29:48 +03:00
cf52d8e6e4 removed the linkGroupName from individual calendar entries and added it as a separate field in the request body 2024-10-21 15:27:12 +03:00
2ceb708452 remove refresh interval code from the client side 2024-10-21 15:22:43 +03:00
65520b70f2 reflect error message on client side when there is an error merging calendars 2024-10-21 15:21:34 +03:00
94e3fe49b3 add error handling on the response from the client side 2024-10-21 15:18:43 +03:00
6c3fa294d6 edit submit event listener 2024-10-21 15:15:26 +03:00
3204bb8a4b update /merge endpoint to use linkGroupName input 2024-10-21 02:25:40 +03:00