feat(images): migrate images from r2 to local storage

- Removed references to images hosted on r2
- Updated image paths to use local storage
- Ensured all components and pages reference the new local image paths
This commit is contained in:
2025-02-10 20:16:55 +01:00
parent 1b684c9cba
commit 066deccd2a
13 changed files with 76 additions and 76 deletions

View File

@@ -6,7 +6,7 @@ import { Banner } from '../../src/components/banner/banner';
describe('<Banner />', () => {
it('renders the first Banner component correctly', () => {
const image = {
src: 'https://r2.modelec.club/coupe-2024.png',
src: '/assets//coupe-2024.png',
alt: 'Modelec Photo',
};
const header = 'Qui sommes-nous ?';
@@ -28,7 +28,7 @@ describe('<Banner />', () => {
it('renders the second Banner component correctly', () => {
const image = {
src: 'https://r2.modelec.club/isen_group_photo.png',
src: '/assets//isen_group_photo.png',
alt: "Photo de groupe à l'ISEN",
};
const header = 'Une question ?';

View File

@@ -7,7 +7,7 @@ describe('<Box />', () => {
const elements = [
{
type: 'image',
src: 'https://r2.modelec.club/serge-pixel.png',
src: '/assets//serge-pixel.png',
alt: 'Serge Pixel',
},
{ type: 'data', data: '14e', subtext: '/82 équipes' },

View File

@@ -7,13 +7,13 @@ describe('<Carousel />', () => {
const carouselItems = [
{
image:
'https://r2.modelec.club/Selection%20site/IMG_20231027_221105.jpg',
'/assets/IMG_20231027_221105.jpg',
title: 'Lorem Ipsum',
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, vestibulum neque et, vehicula justo.',
},
{
image:
'https://r2.modelec.club/Selection%20site/IMG_20231116_192517.jpg',
'/assets/IMG_20231116_192517.jpg',
title: 'Fusce et sem',
text: 'Fusce et sem nec nunc luctus tincidunt. Nullam sit amet neque sed elit fermentum efficitur.',
},

View File

@@ -7,7 +7,7 @@ describe('<Partner />', () => {
cy.mount(
<Partner
name={'ISEN Nantes'}
logo={'https://r2.modelec.club/isen.png'}
logo={'/assets//isen.png'}
texts={[
<>
L'ISEN Nantes est une école d'ingénieurs généraliste en 5 ans. Elle
@@ -16,7 +16,7 @@ describe('<Partner />', () => {
disposition un local pour travailler sur nos projets.
</>,
]}
photos={['https://r2.modelec.club/ISEN-2.jpg']}
photos={['/assets//ISEN-2.jpg']}
link={'https://isen-nantes.fr'}
/>
);
@@ -26,7 +26,7 @@ describe('<Partner />', () => {
cy.get('.partner-logo').should(
'have.attr',
'src',
'https://r2.modelec.club/isen.png'
'/assets//isen.png'
);
cy.get('.partner-text').should(
'contain.text',
@@ -35,7 +35,7 @@ describe('<Partner />', () => {
cy.get('.partner-photos img').should(
'have.attr',
'src',
'https://r2.modelec.club/ISEN-2.jpg'
'/assets//ISEN-2.jpg'
);
cy.get('.partner-link').should(
'have.attr',
@@ -48,7 +48,7 @@ describe('<Partner />', () => {
cy.mount(
<Partner
name={'MercuryCloud'}
logo={'https://r2.modelec.club/mercurycloud.png'}
logo={'/assets//mercurycloud.png'}
texts={[
<>
MercuryCloud est un hébergeur web, de vps ainsi que de serveur de
@@ -56,7 +56,7 @@ describe('<Partner />', () => {
pour héberger certains service dont ce site web.
</>,
]}
photos={['https://r2.modelec.club/MercuryCloud.jpg']}
photos={['/assets//MercuryCloud.jpg']}
link={'https://mercurycloud.fr/aff.php?aff=14'}
/>
);
@@ -66,7 +66,7 @@ describe('<Partner />', () => {
cy.get('.partner-logo').should(
'have.attr',
'src',
'https://r2.modelec.club/mercurycloud.png'
'/assets//mercurycloud.png'
);
cy.get('.partner-text').should(
'contain.text',
@@ -75,7 +75,7 @@ describe('<Partner />', () => {
cy.get('.partner-photos img').should(
'have.attr',
'src',
'https://r2.modelec.club/MercuryCloud.jpg'
'/assets//MercuryCloud.jpg'
);
cy.get('.partner-link').should(
'have.attr',
@@ -88,7 +88,7 @@ describe('<Partner />', () => {
cy.mount(
<Partner
name={'Odyssey BDE'}
logo={'https://r2.modelec.club/bde.png'}
logo={'/assets//bde.png'}
texts={[
<>
Le BDE de l'ISEN Nantes, Odyssey, est un partenaire de longue date.
@@ -96,7 +96,7 @@ describe('<Partner />', () => {
soutiennent dans nos projets.
</>,
]}
photos={['https://r2.modelec.club/Odyseey.JPEG']}
photos={['/assets//Odyseey.JPEG']}
link={'https://instagram.com/odyssey_bde'}
/>
);
@@ -106,7 +106,7 @@ describe('<Partner />', () => {
cy.get('.partner-logo').should(
'have.attr',
'src',
'https://r2.modelec.club/bde.png'
'/assets//bde.png'
);
cy.get('.partner-text').should(
'contain.text',
@@ -115,7 +115,7 @@ describe('<Partner />', () => {
cy.get('.partner-photos img').should(
'have.attr',
'src',
'https://r2.modelec.club/Odyseey.JPEG'
'/assets//Odyseey.JPEG'
);
cy.get('.partner-link').should(
'have.attr',

View File

@@ -11,22 +11,22 @@ describe('<Team />', () => {
{
name: 'Maxime Chauveau',
role: 'Président',
image: 'https://r2.modelec.club/maxime.png',
image: '/assets//maxime.png',
},
{
name: 'Vincent Rocher',
role: 'Vice-Président',
image: 'https://r2.modelec.club/vincent.jpg',
image: '/assets//vincent.jpg',
},
{
name: 'Felix Marquet',
role: 'Secrétaire',
image: 'https://r2.modelec.club/felix.png',
image: '/assets//felix.png',
},
{
name: 'Florent Butery',
role: 'Trésorier',
image: 'https://r2.modelec.club/flo.jpg',
image: '/assets//flo.jpg',
},
],
},
@@ -36,17 +36,17 @@ describe('<Team />', () => {
{
name: 'Cléo Sionville',
role: 'Communication',
image: 'https://r2.modelec.club/cleo.jpg',
image: '/assets//cleo.jpg',
},
{
name: 'Arthur Grossmann-Le Mauguen',
role: 'Evenementiel',
image: 'https://r2.modelec.club/arthur.png',
image: '/assets//arthur.png',
},
{
name: 'Allan Cueff',
role: 'Partenariat',
image: 'https://r2.modelec.club/allan.png',
image: '/assets//allan.png',
},
],
},

View File

@@ -19,13 +19,13 @@ describe('<Timeline />', () => {
cards: [
{
type: 'image',
src: 'https://r2.modelec.club/Bureau/IMG_3881.PNG',
src: '/assets//Bureau/IMG_3881.PNG',
alt: 'Table de jeu pour la Coupe de France de Robotique',
fit: 'cover',
},
{
type: 'image',
src: 'https://r2.modelec.club/Bureau/IMG_3882.PNG',
src: '/assets//Bureau/IMG_3882.PNG',
alt: 'Table de jeu pour la Coupe de France de Robotique',
fit: 'cover',
},
@@ -34,7 +34,7 @@ describe('<Timeline />', () => {
{
title: 'Serge : Notre robot',
date: '2024',
banner: 'https://r2.modelec.club/serge.png',
banner: '/assets//serge.png',
paragraphs: [
<>
Voici Serge, notre robot pour la{' '}
@@ -70,7 +70,7 @@ describe('<Timeline />', () => {
{ type: 'stat', data: '14', label: '/82 équipes' },
{
type: 'image',
src: 'https://r2.modelec.club/cdf.png',
src: '/assets//cdf.png',
alt: 'Logo Coupe de France de Robotique',
fit: 'contain',
},
@@ -91,7 +91,7 @@ describe('<Timeline />', () => {
cards: [
{
type: 'image',
src: 'https://r2.modelec.club/PAMI-V1.png',
src: '/assets//PAMI-V1.png',
alt: 'PAMI v1',
fit: 'cover',
},
@@ -112,25 +112,25 @@ describe('<Timeline />', () => {
cards: [
{
type: 'image',
src: 'https://r2.modelec.club/table2024.jpg',
src: '/assets//table2024.jpg',
alt: 'Table de jeu pour la Coupe de France de Robotique',
fit: 'cover',
},
{
type: 'image',
src: 'https://r2.modelec.club/Table/20231102_163959.jpg',
src: '/assets//Table/20231102_163959.jpg',
alt: 'Table de jeu pour la Coupe de France de Robotique',
fit: 'cover',
},
{
type: 'image',
src: 'https://r2.modelec.club/Table/20231102_164300.jpg',
src: '/assets//Table/20231102_164300.jpg',
alt: 'Table de jeu pour la Coupe de France de Robotique',
fit: 'cover',
},
{
type: 'image',
src: 'https://r2.modelec.club/Table/IMG_20231202_160702.jpg',
src: '/assets//Table/IMG_20231202_160702.jpg',
alt: 'Table de jeu pour la Coupe de France de Robotique',
fit: 'cover',
},