diff --git a/locales/en.json b/locales/en.json index ee6b1165..f8b599c9 100644 --- a/locales/en.json +++ b/locales/en.json @@ -29,7 +29,8 @@ "washers": "Number of available washers", "dryers": "Number of available dryers", "schooling": "Easy access to all your documents and results.", - "sosinfra": "Report issues within a building" + "sosinfra": "Report issues within a building", + "map": "Find your way around INSA" }, "titles": { "yearlyPlanning": "Yearly planning" diff --git a/locales/es.json b/locales/es.json index 9fee2c3a..b43fd521 100644 --- a/locales/es.json +++ b/locales/es.json @@ -25,7 +25,8 @@ "ent": "Mira tus notas", "equipment": "Reserva un BBQ u otro material", "washers": "Número de lavadoras disponibles", - "dryers": "Número de secadoras disponibles" + "dryers": "Número de secadoras disponibles", + "map": "¡Ubícate en el INSA!" }, "mascotDialog": { "title": "Un poco perdido?", diff --git a/locales/fr.json b/locales/fr.json index f41336fe..6ba64eb6 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -29,7 +29,8 @@ "washers": "Nombre de lave-Linges disponibles", "dryers": "Nombre de sèche-Linges disponibles", "schooling": "Accéde facilement à tous tes documents et résultats.", - "sosinfra": "Signale un problème dans un bâtiment" + "sosinfra": "Signale un problème dans un bâtiment", + "map": "Repère toi dans l'INSA" }, "titles": { "yearlyPlanning": "Planning de l'année" diff --git a/locales/it.json b/locales/it.json index 51bb480a..d66a6fe4 100644 --- a/locales/it.json +++ b/locales/it.json @@ -25,7 +25,8 @@ "ent": "Trova i tuoi voti", "equipment": "Prenota un BBQ o altro materiale", "washers": "Numero di lavatrici disponibili", - "dryers": "Numero di asciugatrici disponibili" + "dryers": "Numero di asciugatrici disponibili", + "map": "Orientati all'INSA" }, "mascotDialog": { "title": "Un po' perso?", diff --git a/src/constants/Urls.tsx b/src/constants/Urls.tsx index 3c02260b..d071bf40 100644 --- a/src/constants/Urls.tsx +++ b/src/constants/Urls.tsx @@ -81,6 +81,12 @@ export default { usefulLinks: APP_IMAGES_ENDPOINT + 'UsefulLinks.png', schooling: APP_IMAGES_ENDPOINT + 'Schooling.png', sosinfra: APP_IMAGES_ENDPOINT + 'SOSInfra.png', + + map: 'https://sh.veagle.fr/api/shares/map-insat/files/a9181c31-f72e-40f0-a693-26fa5e4067ed?download=false', + // !!!!! WARNING FOR REVIEWER !!!!!!!! + // TODO : upload Map.png to the student server + // map: APP_IMAGES_ENDPOINT + 'Map.png', + // Download the png at https://sh.veagle.fr/s/map-insat }, websites: { amicale: AMICALE_SERVER, @@ -95,7 +101,8 @@ export default { yearlyPlanning: 'https://wiki.etud.insa-toulouse.fr/books/quotidien/page/planning-de-lannee-en-cours', schooling: 'https://mascolarite.insa-toulouse.fr/', - sosInfra: 'https://sosinfra.insa-toulouse.fr/', + sosInfra: 'http://sosinfra.insa-toulouse.fr/', + map: STUDENT_SERVER + '~map/', }, about: { appstore: 'https://apps.apple.com/us/app/campus-amicale-insat/id1477722148', diff --git a/src/utils/Services.ts b/src/utils/Services.ts index 2b01dcb2..434ea59b 100644 --- a/src/utils/Services.ts +++ b/src/utils/Services.ts @@ -63,6 +63,7 @@ export const SERVICES_KEY = { DRYERS: 'dryers', SCHOOLING: 'schooling', SOS_INFRA: 'sosinfra', + MAP: 'map', }; export const SERVICES_CATEGORIES_KEY = { @@ -221,6 +222,17 @@ export function getStudentServices( title: "Planning de l'année", }), }, + { + key: SERVICES_KEY.MAP, + title: 'Map INSA', + subtitle: i18n.t('screens.services.descriptions.map'), + image: Urls.images.map, + onPress: () => + onPress(MainRoutes.Website, { + host: Urls.websites.map, + title: 'Map INSA', + }), + }, ]; return getStrippedServicesList(studentsDataset, excludedItems); }