chore: updated dependencies
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
|
|
||||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
||||||
enabled: process.env.ANALYZE === 'true',
|
enabled: process.env.ANALYZE === 'true',
|
||||||
openAnalyzer: false
|
openAnalyzer: false
|
||||||
|
|||||||
+23
-23
@@ -7,46 +7,46 @@
|
|||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"postinstall": "husky install"
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.10.4",
|
"@emotion/react": "^11.11.1",
|
||||||
"@emotion/styled": "^11.10.4",
|
"@emotion/styled": "^11.11.0",
|
||||||
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
||||||
"@fortawesome/free-brands-svg-icons": "^6.2.0",
|
"@fortawesome/free-brands-svg-icons": "^6.4.2",
|
||||||
"@fortawesome/free-solid-svg-icons": "^6.2.0",
|
"@fortawesome/free-solid-svg-icons": "^6.4.2",
|
||||||
"@fortawesome/react-fontawesome": "^0.2.0",
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||||
"@mui/material": "^5.10.6",
|
"@mui/material": "^5.14.9",
|
||||||
"formik": "^2.2.9",
|
"formik": "^2.4.4",
|
||||||
"gsap": "^3.11.1",
|
"gsap": "^3.12.2",
|
||||||
"isomorphic-fetch": "^3.0.0",
|
"isomorphic-fetch": "^3.0.0",
|
||||||
"next": "12.3.1",
|
"next": "13.4.19",
|
||||||
"next-connect": "^0.13.0",
|
"next-connect": "^1.0.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"sharp": "^0.31.0",
|
"sharp": "^0.32.5",
|
||||||
"swiper": "^8.4.2",
|
"swiper": "^10.2.0",
|
||||||
"yup": "^0.32.11"
|
"yup": "^1.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^17.1.2",
|
"@commitlint/cli": "^17.7.1",
|
||||||
"@commitlint/config-conventional": "^17.1.0",
|
"@commitlint/config-conventional": "^17.7.0",
|
||||||
"@emotion/eslint-plugin": "^11.10.0",
|
"@emotion/eslint-plugin": "^11.11.0",
|
||||||
"@next/bundle-analyzer": "^12.3.1",
|
"@next/bundle-analyzer": "^13.4.19",
|
||||||
"@types/isomorphic-fetch": "^0.0.36",
|
"@types/isomorphic-fetch": "^0.0.36",
|
||||||
"@types/node": "18.7.18",
|
"@types/node": "20.6.0",
|
||||||
"@types/react": "18.0.20",
|
"@types/react": "18.2.21",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.38.0",
|
"@typescript-eslint/eslint-plugin": "^5.38.0",
|
||||||
"@typescript-eslint/parser": "^5.38.0",
|
"@typescript-eslint/parser": "^5.38.0",
|
||||||
"eslint": "^8.23.1",
|
"eslint": "^8.23.1",
|
||||||
"eslint-config-next": "12.3.1",
|
"eslint-config-next": "latest",
|
||||||
"eslint-config-standard": "^17.0.0",
|
"eslint-config-standard": "^17.0.0",
|
||||||
"eslint-plugin-import": "^2.25.2",
|
"eslint-plugin-import": "^2.25.2",
|
||||||
"eslint-plugin-n": "^15.2.5",
|
"eslint-plugin-n": "^15.2.5",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-promise": "^6.0.1",
|
"eslint-plugin-promise": "^6.0.1",
|
||||||
"eslint-plugin-react": "^7.31.8",
|
"eslint-plugin-react": "^7.31.8",
|
||||||
"husky": "^8.0.1",
|
"husky": "^8.0.3",
|
||||||
"typescript": "4.8.3"
|
"typescript": "5.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { Container, Paper, Typography } from '@mui/material'
|
import { Container, Paper, Typography } from '@mui/material'
|
||||||
import NextLink from 'next/link'
|
|
||||||
import MuiLink from '@mui/material/Link'
|
import MuiLink from '@mui/material/Link'
|
||||||
|
import NextLink from 'next/link'
|
||||||
|
|
||||||
import { FooterColumn } from '@interfaces'
|
|
||||||
import { faAngleRight } from '@fortawesome/free-solid-svg-icons'
|
import { faAngleRight } from '@fortawesome/free-solid-svg-icons'
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||||
|
import { FooterColumn } from '@interfaces'
|
||||||
|
|
||||||
const Footer = () => {
|
const Footer = () => {
|
||||||
const columns: FooterColumn[] = [
|
const columns: FooterColumn[] = [
|
||||||
@@ -50,11 +50,12 @@ const Footer = () => {
|
|||||||
{column.links.map((link, index) => (
|
{column.links.map((link, index) => (
|
||||||
<li key={index}>
|
<li key={index}>
|
||||||
<FontAwesomeIcon icon={faAngleRight} listItem />
|
<FontAwesomeIcon icon={faAngleRight} listItem />
|
||||||
<NextLink href={link.url} passHref>
|
<MuiLink
|
||||||
<MuiLink>
|
component={NextLink}
|
||||||
{link.label}
|
href={link.url}
|
||||||
</MuiLink>
|
>
|
||||||
</NextLink>
|
{link.label}
|
||||||
|
</MuiLink>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { faBars } from '@fortawesome/free-solid-svg-icons'
|
import { faBars } from '@fortawesome/free-solid-svg-icons'
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||||
import { AppBar, Box, Container, IconButton, NoSsr, ListItemButton, Divider } from '@mui/material'
|
import { AppBar, Box, Container, Divider, IconButton, ListItemButton, NoSsr } from '@mui/material'
|
||||||
import NextLink from 'next/link'
|
|
||||||
import dynamic from 'next/dynamic'
|
import dynamic from 'next/dynamic'
|
||||||
|
import NextLink from 'next/link'
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
|
|
||||||
@@ -65,12 +65,10 @@ const Header = () => {
|
|||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<NextLink href="/">
|
<NextLink href="/">
|
||||||
<a>
|
<EntGamers
|
||||||
<EntGamers
|
width="40"
|
||||||
width="40"
|
height="40"
|
||||||
height="40"
|
/>
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
</NextLink>
|
</NextLink>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -120,14 +118,14 @@ const Header = () => {
|
|||||||
sx={{ paddingTop: '0' }}
|
sx={{ paddingTop: '0' }}
|
||||||
>
|
>
|
||||||
{MenuItems.map(({ label, url }) => (
|
{MenuItems.map(({ label, url }) => (
|
||||||
<NextLink key={`menu-item-${label}`} href={url} passHref>
|
<ListItemButton
|
||||||
<ListItemButton
|
key={`menu-item-${label}`}
|
||||||
component="a"
|
href={url}
|
||||||
selected={router.pathname === url}
|
component={NextLink}
|
||||||
>
|
selected={router.pathname === url}
|
||||||
<ListItemText primary={label} />
|
>
|
||||||
</ListItemButton>
|
<ListItemText primary={label} />
|
||||||
</NextLink>
|
</ListItemButton>
|
||||||
))}
|
))}
|
||||||
</List>
|
</List>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -1,18 +1,17 @@
|
|||||||
import gsap, { Linear } from 'gsap'
|
import { SocialSliderProps } from '@components/pages/home/socialNetworks/SocialSlider'
|
||||||
import ScrollTrigger from 'gsap/dist/ScrollTrigger'
|
|
||||||
import ScrollToPlugin from 'gsap/dist/ScrollToPlugin'
|
|
||||||
import { Container, Paper } from '@mui/material'
|
import { Container, Paper } from '@mui/material'
|
||||||
|
import gsap, { Linear } from 'gsap'
|
||||||
|
import ScrollToPlugin from 'gsap/dist/ScrollToPlugin'
|
||||||
|
import ScrollTrigger from 'gsap/dist/ScrollTrigger'
|
||||||
import { FC, useEffect, useRef } from 'react'
|
import { FC, useEffect, useRef } from 'react'
|
||||||
|
|
||||||
import SocialSlider, { SocialSliderProps } from '@components/pages/home/socialNetworks/SocialSlider'
|
|
||||||
|
|
||||||
gsap.registerPlugin(ScrollTrigger, ScrollToPlugin)
|
gsap.registerPlugin(ScrollTrigger, ScrollToPlugin)
|
||||||
|
|
||||||
export interface SocialNetworksProps {
|
export interface SocialNetworksProps {
|
||||||
socialNetworks: SocialSliderProps['slides']
|
socialNetworks: SocialSliderProps['slides']
|
||||||
}
|
}
|
||||||
|
|
||||||
const SocialNetworks: FC<SocialNetworksProps> = ({ socialNetworks }) => {
|
const SocialNetworks: FC<SocialNetworksProps> = () => {
|
||||||
const layer01 = useRef<HTMLDivElement| null>(null)
|
const layer01 = useRef<HTMLDivElement| null>(null)
|
||||||
const layer02 = useRef<HTMLDivElement| null>(null)
|
const layer02 = useRef<HTMLDivElement| null>(null)
|
||||||
const layer03 = useRef<HTMLDivElement| null>(null)
|
const layer03 = useRef<HTMLDivElement| null>(null)
|
||||||
@@ -87,9 +86,9 @@ const SocialNetworks: FC<SocialNetworksProps> = ({ socialNetworks }) => {
|
|||||||
component={Container}
|
component={Container}
|
||||||
variant='glass'
|
variant='glass'
|
||||||
>
|
>
|
||||||
<SocialSlider
|
{/* <SocialSlider
|
||||||
slides={socialNetworks}
|
slides={socialNetworks}
|
||||||
/>
|
/> */}
|
||||||
</Paper>
|
</Paper>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Container, Button, Typography } from '@mui/material'
|
import { Button, Container, Typography } from '@mui/material'
|
||||||
import NextLink from 'next/link'
|
import NextLink from 'next/link'
|
||||||
import { FC } from 'react'
|
import { FC } from 'react'
|
||||||
|
|
||||||
@@ -57,24 +57,22 @@ const Team: FC<TeamProps> = ({ title, teamMembers, joinTeamButtonText, viewTeamB
|
|||||||
marginBlock: '16px'
|
marginBlock: '16px'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<NextLink href="/equipo" passHref>
|
<Button
|
||||||
<Button
|
href="/equipo"
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="info"
|
color="info"
|
||||||
component="a"
|
component={NextLink}
|
||||||
>
|
>
|
||||||
{viewTeamButtonText}
|
{viewTeamButtonText}
|
||||||
</Button>
|
</Button>
|
||||||
</NextLink>
|
<Button
|
||||||
<NextLink href="/equipo/unirse" passHref>
|
href="/equipo/unirse"
|
||||||
<Button
|
variant="contained"
|
||||||
variant="contained"
|
color="success"
|
||||||
color="success"
|
component={NextLink}
|
||||||
component="a"
|
>
|
||||||
>
|
{joinTeamButtonText}
|
||||||
{joinTeamButtonText}
|
</Button>
|
||||||
</Button>
|
|
||||||
</NextLink>
|
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ import { Avatar, Card, CardContent, IconButton, Tooltip, Typography } from '@mui
|
|||||||
import NextImage from 'next/image'
|
import NextImage from 'next/image'
|
||||||
import { FC } from 'react'
|
import { FC } from 'react'
|
||||||
|
|
||||||
import { SocialLink } from '@interfaces'
|
|
||||||
import { faGlobe } from '@fortawesome/free-solid-svg-icons'
|
|
||||||
import BadgeBook from '@assets/images/gaming/BadgeBook.png'
|
import BadgeBook from '@assets/images/gaming/BadgeBook.png'
|
||||||
import BadgeShield from '@assets/images/gaming/BadgeShield.png'
|
import BadgeShield from '@assets/images/gaming/BadgeShield.png'
|
||||||
import BadgeSword from '@assets/images/gaming/BadgeSword.png'
|
import BadgeSword from '@assets/images/gaming/BadgeSword.png'
|
||||||
import ButtonA from '@assets/images/gaming/ButtonA.png'
|
import ButtonA from '@assets/images/gaming/ButtonA.png'
|
||||||
|
import { faGlobe } from '@fortawesome/free-solid-svg-icons'
|
||||||
|
import { SocialLink } from '@interfaces'
|
||||||
|
|
||||||
export interface ProfileCardProps {
|
export interface ProfileCardProps {
|
||||||
userName: string
|
userName: string
|
||||||
@@ -47,6 +47,7 @@ const ProfileCard: FC<ProfileCardProps> = ({ avatar, biography, socialNetworks,
|
|||||||
>
|
>
|
||||||
<NextImage
|
<NextImage
|
||||||
src={role === 'moderator' ? BadgeShield : role === 'collaborator' ? BadgeBook : BadgeSword}
|
src={role === 'moderator' ? BadgeShield : role === 'collaborator' ? BadgeBook : BadgeSword}
|
||||||
|
alt={role}
|
||||||
width={30}
|
width={30}
|
||||||
height={30}
|
height={30}
|
||||||
/>
|
/>
|
||||||
@@ -62,6 +63,7 @@ const ProfileCard: FC<ProfileCardProps> = ({ avatar, biography, socialNetworks,
|
|||||||
>
|
>
|
||||||
<NextImage
|
<NextImage
|
||||||
src={ButtonA}
|
src={ButtonA}
|
||||||
|
alt="Button A"
|
||||||
width={30}
|
width={30}
|
||||||
height={30}
|
height={30}
|
||||||
/>
|
/>
|
||||||
@@ -90,6 +92,7 @@ const ProfileCard: FC<ProfileCardProps> = ({ avatar, biography, socialNetworks,
|
|||||||
>
|
>
|
||||||
<NextImage
|
<NextImage
|
||||||
src={avatar}
|
src={avatar}
|
||||||
|
alt={userName}
|
||||||
width={150}
|
width={150}
|
||||||
height={150}
|
height={150}
|
||||||
/>
|
/>
|
||||||
|
|||||||
+9
-10
@@ -34,17 +34,16 @@ const Page404 = () => {
|
|||||||
>
|
>
|
||||||
El árbol que buscas no está aquí
|
El árbol que buscas no está aquí
|
||||||
</Typography>
|
</Typography>
|
||||||
<NextLink href="/">
|
<Button
|
||||||
<Button
|
sx={{
|
||||||
sx={{
|
marginBlock: 1
|
||||||
marginBlock: 1
|
}}
|
||||||
}}
|
href="/"
|
||||||
component="a"
|
component={NextLink}
|
||||||
variant="contained"
|
variant="contained"
|
||||||
>
|
>
|
||||||
Volver al inicio
|
Volver al inicio
|
||||||
</Button>
|
</Button>
|
||||||
</NextLink>
|
|
||||||
</Box>
|
</Box>
|
||||||
</Contained>
|
</Contained>
|
||||||
)
|
)
|
||||||
|
|||||||
+23
-26
@@ -3,9 +3,9 @@ import { GetStaticProps, InferGetStaticPropsType } from 'next'
|
|||||||
import NextLink from 'next/link'
|
import NextLink from 'next/link'
|
||||||
import { FC } from 'react'
|
import { FC } from 'react'
|
||||||
|
|
||||||
import ProfileCard, { ProfileCardProps } from '@components/profiles/ProfileCard'
|
|
||||||
import Contained from '@components/layouts/Contained'
|
|
||||||
import Seo from '@components/Seo'
|
import Seo from '@components/Seo'
|
||||||
|
import Contained from '@components/layouts/Contained'
|
||||||
|
import ProfileCard, { ProfileCardProps } from '@components/profiles/ProfileCard'
|
||||||
import { EquipoPageProps } from '@interfaces'
|
import { EquipoPageProps } from '@interfaces'
|
||||||
|
|
||||||
export const getStaticProps: GetStaticProps<EquipoPageProps> = async () => {
|
export const getStaticProps: GetStaticProps<EquipoPageProps> = async () => {
|
||||||
@@ -103,15 +103,14 @@ const Equipo: FC<InferGetStaticPropsType<typeof getStaticProps>> = (
|
|||||||
marginBlock: 2
|
marginBlock: 2
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<NextLink href="/equipo/unirse" passHref>
|
<Button
|
||||||
<Button
|
href="/equipo/unirse"
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="primary"
|
||||||
component="a"
|
component={NextLink}
|
||||||
>
|
>
|
||||||
Quiero ser administrador
|
Quiero ser administrador
|
||||||
</Button>
|
</Button>
|
||||||
</NextLink>
|
|
||||||
</Box>
|
</Box>
|
||||||
<Typography variant="h2" align="center" gutterBottom >
|
<Typography variant="h2" align="center" gutterBottom >
|
||||||
{moderatorsTitle}
|
{moderatorsTitle}
|
||||||
@@ -157,15 +156,14 @@ const Equipo: FC<InferGetStaticPropsType<typeof getStaticProps>> = (
|
|||||||
marginBlock: 2
|
marginBlock: 2
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<NextLink href="/equipo/unirse" passHref>
|
<Button
|
||||||
<Button
|
href="/equipo/unirse"
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="primary"
|
||||||
component="a"
|
component={NextLink}
|
||||||
>
|
>
|
||||||
Quiero ser moderador
|
Quiero ser moderador
|
||||||
</Button>
|
</Button>
|
||||||
</NextLink>
|
|
||||||
</Box>
|
</Box>
|
||||||
<Typography variant="h2" align="center" gutterBottom >
|
<Typography variant="h2" align="center" gutterBottom >
|
||||||
{collaboratorsTitle}
|
{collaboratorsTitle}
|
||||||
@@ -211,15 +209,14 @@ const Equipo: FC<InferGetStaticPropsType<typeof getStaticProps>> = (
|
|||||||
marginBlock: 2
|
marginBlock: 2
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<NextLink href="/equipo/unirse" passHref>
|
<Button
|
||||||
<Button
|
href="/equipo/unirse"
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="primary"
|
||||||
component="a"
|
component={NextLink}
|
||||||
>
|
>
|
||||||
Quiero ser colaborador
|
Quiero ser colaborador
|
||||||
</Button>
|
</Button>
|
||||||
</NextLink>
|
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
</Contained>
|
</Contained>
|
||||||
|
|||||||
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
import type { NextPage } from 'next'
|
import type { NextPage } from 'next'
|
||||||
|
|
||||||
|
import Seo from '@components/Seo'
|
||||||
|
import Footer from '@components/layouts/Footer'
|
||||||
|
import Header from '@components/layouts/Header'
|
||||||
import Clanes from '@components/pages/home/Clanes'
|
import Clanes from '@components/pages/home/Clanes'
|
||||||
import Hero from '@components/pages/home/Hero'
|
import Hero from '@components/pages/home/Hero'
|
||||||
import SocialNetworks from '@components/pages/home/SocialNetworks'
|
import SocialNetworks from '@components/pages/home/SocialNetworks'
|
||||||
import Team from '@components/pages/home/Team'
|
import Team from '@components/pages/home/Team'
|
||||||
import Header from '@components/layouts/Header'
|
|
||||||
import Footer from '@components/layouts/Footer'
|
|
||||||
import Seo from '@components/Seo'
|
|
||||||
|
|
||||||
const Home: NextPage = () => {
|
const Home: NextPage = () => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user