diff --git a/next-env.d.ts b/next-env.d.ts index 4f11a03..fd36f94 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,5 +1,6 @@ /// /// +/// // NOTE: This file should not be edited // see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/next.config.js b/next.config.js index 6fd956d..4b3ea35 100644 --- a/next.config.js +++ b/next.config.js @@ -18,6 +18,9 @@ const nextConfig = { reloadOnOnline: false, runtimeCaching, }, + eslint: { + ignoreDuringBuilds: true + }, webpack: function (config, { isServer, webpack }) { if (!isServer) { config.plugins.push( diff --git a/package.json b/package.json index 74f8f45..94c55b8 100644 --- a/package.json +++ b/package.json @@ -3,38 +3,42 @@ "version": "0.2.0", "private": true, "dependencies": { - "@chakra-ui/icons": "^1.0.10", - "@chakra-ui/react": "^1.0.0", - "@emotion/react": "^11.0.0", - "@emotion/styled": "^11.0.0", - "@next/bundle-analyzer": "^12.2.2", - "@reduxjs/toolkit": "^1.8.3", - "@testing-library/jest-dom": "^5.9.0", - "@testing-library/react": "^10.2.1", - "@testing-library/user-event": "^12.0.2", + "@chakra-ui/icons": "^2.1.1", + "@chakra-ui/react": "^2.8.2", + "@emotion/react": "^11.11.4", + "@emotion/styled": "^11.11.5", + "@next/bundle-analyzer": "^14.2.3", + "@reduxjs/toolkit": "^2.2.5", + "@testing-library/jest-dom": "^6.4.5", + "@testing-library/react": "^16.0.0", + "@testing-library/user-event": "^14.5.2", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", "cheerio": "^1.0.0-rc.12", - "dotenv": "^8.2.0", - "framer-motion": "^4.0.0", - "jsonschema": "^1.4.0", - "mongoose": "^5.12.7", - "nanoid": "^3.1.22", - "next": "^12.2.2", + "dotenv": "^16.4.5", + "framer-motion": "^11.2.10", + "jsonschema": "^1.4.1", + "mongoose": "^8.4.1", + "nanoid": "^5.0.7", + "next": "^14.2.3", "next-compose-plugins": "^2.2.1", - "next-pwa": "^5.5.4", - "react": "^17.0.2", - "react-beautiful-dnd": "^13.1.0", - "react-dom": "^17.0.2", - "react-icons": "^3.0.0", - "react-redux": "^8.0.2", + "next-pwa": "^5.6.0", + "react": "^18.3.1", + "react-beautiful-dnd": "^13.1.1", + "react-dom": "^18.3.1", + "react-icons": "^5.2.1", + "react-redux": "^9.1.2", "redux-logger": "^3.0.6", "redux-persist": "^6.0.0", - "reselect": "^4.1.6", - "web-vitals": "^0.2.2" + "reselect": "^5.1.1", + "web-vitals": "^4.0.1", + "yarn": "^1.22.22" }, "scripts": { "start": "next start", "build": "next build", "dev": "next dev", + "lint": "eslint", "analyze": "ANALYZE=true next build" }, "eslintConfig": { @@ -53,13 +57,10 @@ ] }, "devDependencies": { - "@types/cheerio": "^0.22.31", - "@types/react-beautiful-dnd": "^13.1.2", - "@types/redux-logger": "^3.0.9", - "typescript": "^4.7.4" - }, - "resolutions": { - "@types/react": "17.0.15", - "@types/react-dom": "17.0.15" + "@types/cheerio": "^0.22.35", + "@types/react-beautiful-dnd": "^13.1.8", + "@types/redux-logger": "^3.0.13", + "eslint": "^9.4.0", + "typescript": "^5.4.5" } } diff --git a/src/common/Logo.tsx b/src/common/Logo.tsx index 7e25072..5efb55a 100644 --- a/src/common/Logo.tsx +++ b/src/common/Logo.tsx @@ -1,5 +1,5 @@ import { Box, useColorModeValue } from '@chakra-ui/react'; -import Image from 'next/image'; +import Image from "next/legacy/image"; import React from 'react'; const WhiteLogo = ({ display = "inherit", ...props }: { display?: string }) => { diff --git a/src/features/importLectures/ImportLectures.tsx b/src/features/importLectures/ImportLectures.tsx index 34d7267..010c11e 100644 --- a/src/features/importLectures/ImportLectures.tsx +++ b/src/features/importLectures/ImportLectures.tsx @@ -1,4 +1,4 @@ -import { Button, Menu, MenuButton, MenuItem, MenuList, useDisclosure } from "@chakra-ui/react" +import { Button, Menu, MenuButton, MenuItem, MenuList, Text, useDisclosure } from "@chakra-ui/react" import React from "react" import { FaCloudDownloadAlt } from "react-icons/fa" import ModalFromUnipa, { UnipaLabel } from "./components/UniPa/ModalWrapper" @@ -16,7 +16,7 @@ const ImportLecture: React.FC = () => { Importa Materie - + diff --git a/src/features/importLectures/components/UniPa/ModalWrapper.tsx b/src/features/importLectures/components/UniPa/ModalWrapper.tsx index fb0ccd4..d7ef463 100644 --- a/src/features/importLectures/components/UniPa/ModalWrapper.tsx +++ b/src/features/importLectures/components/UniPa/ModalWrapper.tsx @@ -4,7 +4,7 @@ import { ExpandedIndex, Icon, Modal, ModalBody, ModalCloseButton, ModalContent, ModalHeader, ModalOverlay, Text, useToast } from "@chakra-ui/react"; -import Image from "next/image"; +import Image from "next/legacy/image"; import React, { useEffect, useState } from "react"; import { FaCaretDown, FaPollH } from "react-icons/fa"; import { API_FETCH_UNIPA_URL, FetchFromUnipaResponse } from "../../../../pages/api/unipa/fetch"; @@ -21,7 +21,7 @@ export const UnipaLabel = () => <> width={25} height={25} /> - UniPa + UniPa ⚒️ diff --git a/src/features/preferences/components/FinalBonusComponent.tsx b/src/features/preferences/components/FinalBonusComponent.tsx index 3120ee6..556469b 100644 --- a/src/features/preferences/components/FinalBonusComponent.tsx +++ b/src/features/preferences/components/FinalBonusComponent.tsx @@ -209,7 +209,7 @@ function FinalBonusComponent({ :
+ aria-label='slider-ex-1' defaultValue={0} min={0} max={10} step={0.1} my={"2em"} maxWidth={"80%"} value={temporarySliderValue} onChange={setTemporarySliderValue} onChangeEnd={endOfSliding} > @@ -224,4 +224,4 @@ function FinalBonusComponent({ ); } -export default FinalBonusComponent; \ No newline at end of file +export default FinalBonusComponent; diff --git a/src/global.d.ts b/src/global.d.ts new file mode 100644 index 0000000..effa38f --- /dev/null +++ b/src/global.d.ts @@ -0,0 +1 @@ +declare module "redux-persist/es/persistReducer" { interface PersistPartial { _persist?: PersistState; } } \ No newline at end of file diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index c129f43..92f7a56 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -36,8 +36,8 @@ export default function MyApp({ Component, pageProps }: AppProps) { {SchemaORG['name']} -