Commit graph

314 commits

Author SHA1 Message Date
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
e5202791ac catch error while trying to write to calendars file 2024-10-20 01:29:38 +03:00
7dfa5875fe ensure mergedCalendars array exists 2024-10-20 01:28:35 +03:00
69a6718af8 update saveCalendarData function 2024-10-20 01:27:43 +03:00
026367fb17 update calendar.json 2024-10-20 01:24:15 +03:00
0e7e3e7804 restructure calendars.json 2024-10-19 18:32:43 +03:00
3901a5d894 update name of function used to updateMergedCalendars 2024-10-19 17:41:06 +03:00
42bfb3bdd2 remove unused /:filename endpoint 2024-10-19 17:37:10 +03:00
ae0d41dca4 remove unused code for saving file in calendars.json 2024-10-19 17:36:27 +03:00
fe35fd3665 remove merged-calendar endpoint 2024-10-19 17:14:59 +03:00
d43a701051 fix syntax error 2024-10-19 17:13:45 +03:00
e6b63cd85f Modify the updateMergedCalendar function to update all merged calendars 2024-10-19 17:08:55 +03:00
896738a123 import crypto 2024-10-19 17:06:09 +03:00
8cdeba3d93 edit updateMergedCalendar function 2024-10-19 02:21:20 +03:00