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 |
Ryan Mwangi
|
a6b3747bfe
|
use POST method in refresh button event listener
|
2024-10-22 14:56:57 +03:00 |
Ryan Mwangi
|
c6117e3470
|
update cron job to use mergedCalendar.id when calling the updateMergedCalendars function
|
2024-10-22 14:35:11 +03:00 |
Ryan Mwangi
|
77f19504a2
|
update refresh calendar endpoint to have some error handling
|
2024-10-22 14:32:28 +03:00 |
Ryan Mwangi
|
a3703ef485
|
use calendarId in updateMergedCalendars function
|
2024-10-22 14:29:51 +03:00 |
Ryan Mwangi
|
b4674feabf
|
endpoint to refresh the merged calender
|
2024-10-22 02:40:08 +03:00 |
Ryan Mwangi
|
714a82575b
|
add refresh button event listener
|
2024-10-21 23:22:45 +03:00 |
Ryan Mwangi
|
ea87f77288
|
add new refresh calendars button
|
2024-10-21 23:09:05 +03:00 |
Ryan Mwangi
|
2c99ea1209
|
spell calendarIndex correctly
|
2024-10-21 20:03:01 +03:00 |
Ryan Mwangi
|
ccc8847713
|
proceed if only all URLs are valid
|
2024-10-21 19:47:18 +03:00 |
Ryan Mwangi
|
3ffd34190f
|
correct syntax error
|
2024-10-21 19:41:41 +03:00 |
Ryan Mwangi
|
707e085fe7
|
validate the URL
|
2024-10-21 19:38:05 +03:00 |
Ryan Mwangi
|
7c19b8d12c
|
add function to validate URL format
|
2024-10-21 19:35:12 +03:00 |
Ryan Mwangi
|
28335713f3
|
add working ics links to calendars.json
|
2024-10-21 17:56:09 +03:00 |
Ryan Mwangi
|
f5f23d85e0
|
edit server side code error message for wrong user input
|
2024-10-21 15:33:57 +03:00 |
Ryan Mwangi
|
fe446b1b09
|
report unknown error in the case of missing error message
|
2024-10-21 15:29:48 +03:00 |