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 |
Ryan Mwangi
|
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 |
Ryan Mwangi
|
2ceb708452
|
remove refresh interval code from the client side
|
2024-10-21 15:22:43 +03:00 |
Ryan Mwangi
|
65520b70f2
|
reflect error message on client side when there is an error merging calendars
|
2024-10-21 15:21:34 +03:00 |
Ryan Mwangi
|
94e3fe49b3
|
add error handling on the response from the client side
|
2024-10-21 15:18:43 +03:00 |
Ryan Mwangi
|
6c3fa294d6
|
edit submit event listener
|
2024-10-21 15:15:26 +03:00 |
Ryan Mwangi
|
3204bb8a4b
|
update /merge endpoint to use linkGroupName input
|
2024-10-21 02:25:40 +03:00 |
Ryan Mwangi
|
e5202791ac
|
catch error while trying to write to calendars file
|
2024-10-20 01:29:38 +03:00 |
Ryan Mwangi
|
7dfa5875fe
|
ensure mergedCalendars array exists
|
2024-10-20 01:28:35 +03:00 |
Ryan Mwangi
|
69a6718af8
|
update saveCalendarData function
|
2024-10-20 01:27:43 +03:00 |
Ryan Mwangi
|
026367fb17
|
update calendar.json
|
2024-10-20 01:24:15 +03:00 |
Ryan Mwangi
|
0e7e3e7804
|
restructure calendars.json
|
2024-10-19 18:32:43 +03:00 |
Ryan Mwangi
|
3901a5d894
|
update name of function used to updateMergedCalendars
|
2024-10-19 17:41:06 +03:00 |
Ryan Mwangi
|
42bfb3bdd2
|
remove unused /:filename endpoint
|
2024-10-19 17:37:10 +03:00 |
Ryan Mwangi
|
ae0d41dca4
|
remove unused code for saving file in calendars.json
|
2024-10-19 17:36:27 +03:00 |
Ryan Mwangi
|
fe35fd3665
|
remove merged-calendar endpoint
|
2024-10-19 17:14:59 +03:00 |
Ryan Mwangi
|
d43a701051
|
fix syntax error
|
2024-10-19 17:13:45 +03:00 |
Ryan Mwangi
|
e6b63cd85f
|
Modify the updateMergedCalendar function to update all merged calendars
|
2024-10-19 17:08:55 +03:00 |
Ryan Mwangi
|
896738a123
|
import crypto
|
2024-10-19 17:06:09 +03:00 |