Compare commits
No commits in common. "49b136a43a51c53226db42cf1788a4812cb9549b" and "f2bbd93c7517603ae2fef6bd6a87db8790327e43" have entirely different histories.
49b136a43a
...
f2bbd93c75
2 changed files with 53 additions and 1 deletions
|
@ -1,6 +1,15 @@
|
|||
{
|
||||
"tree": {
|
||||
"Rentrée": {
|
||||
"Amphis de rentrée": {},
|
||||
"Départements": {},
|
||||
"Visites de bibliothèque": {},
|
||||
"Masters": {},
|
||||
"Étudiants internationaux": {},
|
||||
"Conférences de recherche": {}
|
||||
},
|
||||
"COF": {
|
||||
"Rentrée du COF": {},
|
||||
"Évènements (COF)": {},
|
||||
"Assemblées Générales (COF)": {},
|
||||
"BdA": {
|
||||
|
@ -25,7 +34,8 @@
|
|||
"Club Inutile ☔": {}
|
||||
},
|
||||
"BDS": {
|
||||
"Évènements (BDS)": {}
|
||||
"Évènements (BDS)": {},
|
||||
"Rentrée du BDS": {}
|
||||
},
|
||||
"Clubs BDS": {
|
||||
"Créneaux encadrés": {},
|
||||
|
@ -145,6 +155,40 @@
|
|||
"AYNpoC674yAjEmRy": {
|
||||
"name": "L'Hômonerie"
|
||||
},
|
||||
"TcwNdrs6iyBRxFzk": {
|
||||
"name": "Divers"
|
||||
},
|
||||
"G5ZRyTkMifXC2iHj": {
|
||||
"name": "Amphis de rentrée",
|
||||
"short_name": "Amphis"
|
||||
},
|
||||
"dJofECeczaGgNiKs": {
|
||||
"name": "Rentrée du BDS",
|
||||
"short_name": "BDS"
|
||||
},
|
||||
"7Rwd8JERwBsso7XG": {
|
||||
"name": "Rentrée du COF",
|
||||
"short_name": "COF"
|
||||
},
|
||||
"tiMsNcncqBxR4nL2": {
|
||||
"name": "Départements",
|
||||
"short_name": "Dpt"
|
||||
},
|
||||
"RpP773D6e2ReLfcY": {
|
||||
"name": "Visites de bibliothèque",
|
||||
"short_name": "Bibli"
|
||||
},
|
||||
"YRZ4A8imEEf8jnDE": {
|
||||
"name": "Masters"
|
||||
},
|
||||
"8EDHX6kiPYcSrXXL": {
|
||||
"name": "Étudiants internationaux",
|
||||
"short_name": "Internationaux"
|
||||
},
|
||||
"TWgNxdri7zQSoiRf": {
|
||||
"name": "Conférences de recherche",
|
||||
"short_name": "Conf"
|
||||
},
|
||||
"MJf2wnQafbLc2arS": {
|
||||
"name": "Arts pla'",
|
||||
"color": "#ffb969"
|
||||
|
|
|
@ -190,6 +190,14 @@ function fcEventFromjCalEvent(cal) {
|
|||
}
|
||||
}
|
||||
|
||||
function mkEventsFromCalendar(id, cal) {
|
||||
return fetchCalendar(id, cal).then(calendar => {
|
||||
if (calendar[0] !== 'vcalendar') return
|
||||
const cal = new Calendar(id, calendar)
|
||||
return cal.events.map(fcEventFromjCalEvent(cal))
|
||||
})
|
||||
}
|
||||
|
||||
export function mkSource(name) {
|
||||
const calendarId = calendarsByName[name]
|
||||
if (!calendarId) return null
|
||||
|
|
Loading…
Reference in a new issue