Remove carousel component and its depencencues

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-01-18 08:51:09 +04:00
parent 155fb6475f
commit e21482362b
3 changed files with 1 additions and 110 deletions
-87
View File
@@ -1,87 +0,0 @@
import PropTypes from 'prop-types'
import {red, green, grey} from '@material-ui/core/colors'
import {AutoRotatingCarousel, Slide} from 'material-auto-rotating-carousel'
export default function Carousel({handleOpen, setHandleOpen, isMobile}) {
return (
<AutoRotatingCarousel
label='An nou ay'
open={handleOpen}
autoplay={false}
mobile={isMobile}
style={{position: 'absolute'}}
onClose={() => setHandleOpen(false)}
onStart={() => setHandleOpen(false)}
>
<Slide
media={<img alt='logo' title='' src='/logo-192x110.png' />}
mediaBackgroundStyle={{backgroundColor: grey[900]}}
style={{backgroundColor: grey[800]}}
title='Bienvenue'
subtitle='Voici un rapide tour dhorizon de ce que nous proposons'
/>
<Slide
media={<img alt='awtis' title='awtis' src='/awtis.JPG' />}
mediaBackgroundStyle={{backgroundColor: red[400]}}
style={{backgroundColor: red[600]}}
title='La page "Awtis"'
subtitle='Liste les différents artistes par ordre alphabétique.'
/>
<Slide
media={<img alt='admiral T bio' title='admiral T bio' src='/admiral.JPG' />}
mediaBackgroundStyle={{backgroundColor: green[400]}}
style={{backgroundColor: green[600]}}
title='Biographie'
subtitle='Disponible en cliquant sur lartiste. Vous pourrez également consulter ses "teks" via licône à côté de son nom.'
/>
<Slide
media={<img alt='admiral T teks' title='admiral T teks' src='/admiral-teks.JPG' />}
mediaBackgroundStyle={{backgroundColor: grey[900]}}
style={{backgroundColor: grey[800]}}
title='Liste des "tèks"'
subtitle='Disponible en cliquant sur la flèche en dessous de la photo.'
/>
<Slide
media={<img alt='page teks' title='page teks' src='/teks.JPG' />}
mediaBackgroundStyle={{backgroundColor: red[400]}}
style={{backgroundColor: red[600]}}
title='La page "Tèks"'
subtitle='Regroupe les transcriptions et les traductions disponibles. Si aucun "tèks" nest sélectionné, la page affiche les 6 derniers publiés sur le site.'
/>
<Slide
media={<img alt='teks' title='teks' src='/teks-cheche.JPG' />}
mediaBackgroundStyle={{backgroundColor: green[400]}}
style={{backgroundColor: green[600]}}
title='Liste des "Tèks"'
subtitle='La barre latérale gauche permet de sélectionner un "tèks" ou deffectuer une recherche.'
/>
<Slide
media={<img alt='oki-mizik' title='OKi Mizik' src='/aleca-oki-mizik-icon.JPG' />}
mediaBackgroundStyle={{backgroundColor: grey[900]}}
style={{backgroundColor: grey[800]}}
title='OKi Mizik'
subtitle='Une icône informe de la possibilité d’écouter le morceau directement sur le site.'
/>
<Slide
media={<img alt='streaming' title='streaming' src='/stream.JPG' />}
mediaBackgroundStyle={{backgroundColor: red[400]}}
style={{backgroundColor: red[600]}}
title='Streaming'
subtitle='Vous avez la possiblité de visionner le clip, écouter et/ou télécharger la musique via les plateformes de streaming et de téléchargement.'
/>
<Slide
media={<img alt='logo' title='logo' src='/logo-192x110.png' />}
mediaBackgroundStyle={{backgroundColor: grey[900]}}
style={{backgroundColor: grey[800]}}
title='Nous contacter'
subtitle='Pour toute correction ou suggestion, vous pouvez nous contacter à cette adresse : kontak@o-k-i.net'
/>
</AutoRotatingCarousel>
)
}
Carousel.propTypes = {
handleOpen: PropTypes.bool.isRequired,
setHandleOpen: PropTypes.func.isRequired,
isMobile: PropTypes.bool.isRequired
}
-1
View File
@@ -21,7 +21,6 @@
"lodash.deburr": "^4.1.0", "lodash.deburr": "^4.1.0",
"lodash.union": "^4.6.0", "lodash.union": "^4.6.0",
"lodash.uniq": "^4.5.0", "lodash.uniq": "^4.5.0",
"material-auto-rotating-carousel": "^3.0.2",
"mongodb": "^3.6.9", "mongodb": "^3.6.9",
"next": "12", "next": "12",
"next-auth": "^3.23.0", "next-auth": "^3.23.0",
+1 -22
View File
@@ -2106,11 +2106,6 @@ ci-info@^3.2.0:
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.2.0.tgz#2876cb948a498797b5236f0095bc057d0dca38b6" resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.2.0.tgz#2876cb948a498797b5236f0095bc057d0dca38b6"
integrity sha512-dVqRX7fLUm8J6FgHJ418XuIgDLZDkYcDFTeL6TA2gt5WlIZUQrrH6EZrNClwT/H0FateUsZkGIOPRrLbP+PR9A== integrity sha512-dVqRX7fLUm8J6FgHJ418XuIgDLZDkYcDFTeL6TA2gt5WlIZUQrrH6EZrNClwT/H0FateUsZkGIOPRrLbP+PR9A==
classnames@^2.2.5:
version "2.2.6"
resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce"
integrity sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==
clean-regexp@^1.0.0: clean-regexp@^1.0.0:
version "1.0.0" version "1.0.0"
resolved "https://registry.yarnpkg.com/clean-regexp/-/clean-regexp-1.0.0.tgz#8df7c7aae51fd36874e8f8d05b9180bc11a3fed7" resolved "https://registry.yarnpkg.com/clean-regexp/-/clean-regexp-1.0.0.tgz#8df7c7aae51fd36874e8f8d05b9180bc11a3fed7"
@@ -4464,22 +4459,6 @@ map-obj@^4.1.0:
resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a" resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a"
integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ== integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==
material-auto-rotating-carousel@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/material-auto-rotating-carousel/-/material-auto-rotating-carousel-3.0.2.tgz#a4d41b7fa54e328f0d5687648277c96acf8360d6"
integrity sha512-ql/jiV0R9xsOUVn7JNOomvgXHkVFYjmClei+jsfgpOlHXsXztqfOFl6rb0mLbBIpg4mRzTV5oNYOGAM3MvXETA==
dependencies:
classnames "^2.2.5"
material-ui-dots "^2.0.0"
prop-types "^15.5.8"
material-ui-dots@^2.0.0:
version "2.0.2"
resolved "https://registry.yarnpkg.com/material-ui-dots/-/material-ui-dots-2.0.2.tgz#0d9980536845ec66d51405c9e3d5a94781795065"
integrity sha512-1pKjHednWNaVmzo/3fr6dJ+yDCZWfR/GEasqhJKRvb1hIs54064smlNJ/zVdAmt4NMsbxZQPf2D3LnEWvH8y8g==
dependencies:
prop-types "^15.7.2"
media-typer@0.3.0: media-typer@0.3.0:
version "0.3.0" version "0.3.0"
resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
@@ -5261,7 +5240,7 @@ process-nextick-args@~2.0.0:
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==
prop-types@^15.5.4, prop-types@^15.5.8, prop-types@^15.6.0, prop-types@^15.6.2, prop-types@^15.7.2: prop-types@^15.5.4, prop-types@^15.6.0, prop-types@^15.6.2, prop-types@^15.7.2:
version "15.7.2" version "15.7.2"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ== integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==