Skip to content
Commits on Source (3)
......@@ -153,16 +153,16 @@
"eventType": {
"type": "Type",
"rdv": "appointment",
"prefere": "favorite",
"project": "project",
"problems": "problems",
"suivi": "follow up",
"perso": "personal",
"meeting": "meeting",
"préférés": "favorite",
"projets": "project",
"problèmes": "problems",
"suivis": "follow up",
"personnel": "personal",
"réunion": "meeting",
"divers": "diverse",
"ferie": "public holiday",
"call": "call",
"conge": "holiday"
"appels": "call",
"congés": "holiday"
},
"SimpleSchema": {
"required": "{$label} is required",
......
......@@ -153,16 +153,16 @@
"eventType": {
"type": "Type",
"rdv": "rendez-vous",
"prefere": "préféré",
"project": "projet",
"problems": "problème",
"suivi": "suivis",
"perso": "personel",
"meeting": "réunion",
"préférés": "préféré",
"projets": "projet",
"problèmes": "problème",
"suivis": "suivis",
"personnel": "personel",
"réunion": "réunion",
"divers": "divers",
"ferie": "jour férié",
"call": "appels",
"conge": "congés"
"appels": "appels",
"congés": "congés"
},
"SimpleSchema": {
"required": "{$label} est requis",
......
......@@ -151,7 +151,7 @@ export const importICSToAgenda = (eFiles, setImporting) => {
allDayImport = true;
}
const title = ev.summary;
const eventType = ev.categories?.[0] || 'rdv';
const eventType = ev.categories?.[0]?.toLowerCase() || 'rdv';
const { location } = ev;
// eslint-disable-next-line prefer-destructuring
const description = ev.description;
......
const EVENTS_COLOR = {
rdv: '#3788D8',
prefere: '#00bcd4',
project: '#4caf50',
problems: '#009688',
suivi: '#cddc39',
perso: '#A8470A',
meeting: '#DB9F53',
préférés: '#00bcd4',
projets: '#4caf50',
problèmes: '#009688',
suivis: '#cddc39',
personnel: '#A8470A',
réunion: '#DB9F53',
divers: '#ff5722',
ferie: '#e91e63',
call: '#9c27b0',
conge: '#673ab7',
appels: '#9c27b0',
congés: '#673ab7',
};
export default EVENTS_COLOR;
{
"name": "agenda3",
"version": "3.12.0-testing.1",
"version": "3.12.0-testing.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "agenda3",
"version": "3.12.0-testing.1",
"version": "3.12.0-testing.2",
"license": "EUPL-1.2",
"dependencies": {
"@babel/runtime": "^7.23.5",
......
{
"name": "agenda3",
"version": "3.12.0-testing.1",
"version": "3.12.0-testing.2",
"license": "EUPL-1.2",
"description": "Online diary",
"author": "EOLE/PCLL <team@eole.education> - DINUM",
......