On ajoute le cof et on le met avant les clubs

Co-authored-by: sinavir <sinavir@sinavir.fr>
Reviewed-on: https://git.rz.ens.wtf/Klub-RZ/metis/pulls/23
Co-authored-by: sinavir <maurice.debray@ens.fr>
Co-committed-by: sinavir <maurice.debray@ens.fr>
This commit is contained in:
sinavir 2022-07-18 13:47:05 +02:00 committed by tomate
parent 183d0df233
commit f877eda899
2 changed files with 22 additions and 6 deletions

BIN
public.tar.gz Normal file

Binary file not shown.

View file

@ -58,6 +58,21 @@ const calendars = {
name: 'Ernestophone',
color: null
},
QZGnSH8GNeDpqkXt: {
cloud: clouds.ELEVES_ENS,
name: 'COF - Évènements',
color: null
},
bCgRFByHLiCCNc55: {
cloud: clouds.ELEVES_ENS,
name: 'COF - AG',
color: null
},
r4yJZDHjwNtH8wkR: {
cloud: clouds.ELEVES_ENS,
name: 'BdA',
color: null
},
T5WoHbs4FT5A945Z: {
cloud: clouds.FRAMA_AGENDA,
name: 'CinéClub',
@ -82,6 +97,11 @@ export const initialCalendars = Array.from(
.map(cal => cal[0])
export const calendarTree = {
COF: {
BdA: {},
'COF - Évènements': {},
'COF - AG': {}
},
'Clubs COF': {
'Club réseau': {},
hackENS: {},
@ -90,13 +110,9 @@ export const calendarTree = {
Ernestophone: {},
'Club Inutile ☔': {}
},
COF: {
BDA: {},
AG: {}
},
BDS: {},
'Délégation Générale': {},
'K-Fêt': {}
'K-Fêt': {},
'Rentrée académique': {}
}
export function getSubCalendars(name, tree = calendarTree) {