From d7de5841d056036b0c8e8567a5c62a692adfab82 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Fri, 11 Oct 2024 15:12:51 +0300 Subject: [PATCH] update calendars.json file to handle multiple link groups and persist links across application restarts --- calendars.json | 44 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/calendars.json b/calendars.json index b7f1672..8e50438 100644 --- a/calendars.json +++ b/calendars.json @@ -1,10 +1,34 @@ -[ - { - "url": "https://calendar.google.com/calendar/ical/b4c66eb4bb2cc15257d071bab3f935385778b042112ea1aaedada47f3f1a6e3a%40group.calendar.google.com/public/basic.ics", - "prefix": "work" - }, - { - "url": "https://calendar.google.com/calendar/ical/774518759e4e2dd42aab0c511b02397bb216f3b67dc425d76bae07d1eff529d6%40group.calendar.google.com/public/basic.ics", - "prefix": "Calendar 2" - } -] \ No newline at end of file +{ + "linkGroups": [ + { + "name": "Group 1", + "links": [ + { + "url": "https://example.com/calendar1.ics", + "prefix": "Calendar 1", + "overrideSummary": false + }, + { + "url": "https://example.com/calendar2.ics", + "prefix": "Calendar 2", + "overrideSummary": true + } + ] + }, + { + "name": "Group 2", + "links": [ + { + "url": "https://example.com/calendar3.ics", + "prefix": "Calendar 3", + "overrideSummary": false + }, + { + "url": "https://example.com/calendar4.ics", + "prefix": "Calendar 4", + "overrideSummary": true + } + ] + } + ] + } \ No newline at end of file